share awesome hardware
AlphaBot User Manual
Ultrasonic distance measurement module
The ultrasonic distance measurement module has 4 pins, they are VCC, GND, TRIG
(transmitting pin) and ECHO
(receive pin).
Control theory:
Here is the principle of ultrasonic
distance measurement. When the
ultrasonic wave meets a object, it will be reflected back and received by the receiver.
You can get the distance of the object from the sensor by measuring the interval
from transmitting signal to receiving the echo.
19