Disha Karnataki
Full Member level 5
- Joined
- Jul 20, 2013
- Messages
- 249
- Helped
- 9
- Reputation
- 18
- Reaction score
- 8
- Trophy points
- 18
- Location
- india
- Activity points
- 2,231
i am using hcsr04 ultrasonic sensor as here : **broken link removed**
interfaced to 8051.
i have connected TRIG PIN TO " P1.7"
ECHO PIN TO " P0.1 "
the timing diagram of the sensor is as here :
https://www.ezdenki.com/graphics/hc-sr04-timing-chart.png
with no pulse given to the sensor ECHO pin must be low.
But i found that ECHO pin is high though i have not triggered the sensor.
i have configured port 1 as output port and port 0 as input port.
What could be the problem?
interfaced to 8051.
i have connected TRIG PIN TO " P1.7"
ECHO PIN TO " P0.1 "
the timing diagram of the sensor is as here :
https://www.ezdenki.com/graphics/hc-sr04-timing-chart.png
with no pulse given to the sensor ECHO pin must be low.
But i found that ECHO pin is high though i have not triggered the sensor.
i have configured port 1 as output port and port 0 as input port.
What could be the problem?