Microcontroller › 8051 › HC-SR04 with 8051 › there are 2 control pins in
October 24, 2014 at 6:03 pm
#12316
Ashutosh Bhatt
Participant
there are 2 control pins in this sensor
1) echo
2) trig
trig is an input pin and echo pin is an output from sensor
a high pulse input is given to trig pin
then we have to wait for echo output from sensor
if there is any obstacle in sensor range then there is echo output from sensor otherwise no output