Kart/sensors/HCSR04
(Difference between revisions)
(→Ultrasound ranger) |
(→Ultrasound ranger) |
||
Line 11: | Line 11: | ||
The distance is thus given by: | The distance is thus given by: | ||
− | :: <math>distance = | + | :: <math>distance = count \cdot 0.0017 ~ [cm]</math> |
[[Category:Kart]] | [[Category:Kart]] |
Revision as of 10:48, 19 August 2015
|
Ultrasound ranger
The elecfreaks Ultrasonic sensor distance measuring module receives a trigger pulse, sends an ultrasonic pulse train and the provides a pulse whose length is proportional to the sound flight and echo time.
It has a dedicated connector on the I/O board.
The ultrasoundRanger
block in the sensors
FPGA counts the ultrasonic pulse length in terms of the 10 MHz clock periods.
The distance is thus given by: