These eight ultrasonic pulses travel through the air away from the transmitter. This 8-pulse pattern is specially designed so that the receiver can distinguish the transmitted pulses from ambient ultrasonic noise. In response, the sensor transmits an ultrasonic burst of eight pulses at 40 kHz. It all starts when the trigger pin is set HIGH for 10µs. How Does HC-SR04 Ultrasonic Distance Sensor Work? By measuring the time the Echo pin stays high, the distance can be calculated. By setting this pin to HIGH for 10µs, the sensor initiates an ultrasonic burst.Įcho pin goes high when the ultrasonic burst is transmitted and remains high until the sensor receives an echo, after which it goes low. Trig (Trigger) pin is used to trigger ultrasonic sound pulses. You can connect it to the 5V output from your Arduino. VCC supplies power to the HC-SR04 ultrasonic sensor.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |