measurement of time in arduino

DickCappels

Joined Aug 21, 2008
10,661
To repeat the question from AlbertHall in post #16. Are you planning to use radio and if not, what transmission medium do you intend to use?
 

Thread Starter

neeladrinath

Joined Apr 5, 2017
37
I will use radio waves only.
The problem was that using arduino it was difficult to calculate the accurate time. So now I am planning to use an external timer to achieve that but I not found any timer till now.
Please suggest some timers for this.
Timer ICS for calculating nanoseconds.
 
Last edited:

DickCappels

Joined Aug 21, 2008
10,661
I don't know of such a chip, but here is a method you might eventually consider.

It is based on a switched integrator is what I would try first. For a switch a Schottkky diode bridge would do well. The input to R1 is the rate of change of the integrator's. It would be a real test of RF skills to design it.
upload_2017-5-23_20-26-7.png
Procedure:
1. Close the switch and wait for the capacitor to discharge.
2. Open the switch for the period you want to measure.
3. At the end of the measurement period remove the voltage from R1.
4. Measure the voltage on the output. This voltage is linearly proportional to the time.

http://www.radio-electronics.com/info/circuits/opamp-circuits/operational-amplifier-integrator.php
 

Attachments

LesJones

Joined Jan 8, 2017
4,544
Have you considered how long it will take for the transmitter to switch on and how long the receiver will take to detect the signal. At your closest distance of 2 metres the path length will be 4 metres. so the time taken will be 4/300 uS = 0.013 uS = 13 nS If you are using a frequency of 433 Mhz the one cycle will be 1000/433 nS = 2.3 nS. So there will only be about 6 cycles of the waveform in that time. I don't think will be able to measure the transit time accurately enough. Did you do the calculations before starting this project ?

Les.
 
Top