Description
The module consists of 4 pins:-
1. VCC–Power
VCC supplies power to the HC-SR04 ultrasonic sensor. You can connect it to the 5V output from your Arduino.
2. Trigger
Trig (Trigger) pin is used to trigger ultrasonic sound pulses. By setting this pin to HIGH for 10μs, the sensor initiates an ultrasonic burst.
3. Echo
Echo pin goes high when the ultrasonic burst is transmitted and remains high until the sensor receives an echo, after which it goes low. By measuring the time the Echo pin stays high, the distance can be calculated.
4. GND–Ground
It is the ground pin.
Reviews
There are no reviews yet.