The sensor puts out a pulse and listens back for the response. When that pulse is sent out, the output pin for the echo is set to HIGH. When the reflected ultrasonic sound comes back, the echo pin goes back down to LOW. So essentially all that an arduino does it measure the time between the high and low rise and fall, then calculate the distance based on the speed of sound.
Here was a short video of me moving back and forth in front of a sensor showing the incresing and decresing pulse length.
No comments:
Post a Comment