ultrasonic sensor HC-SR04 interface with arduino

Status
Not open for further replies.

Harish Achar

Member level 1
Joined
Mar 15, 2012
Messages
39
Helped
3
Reputation
6
Reaction score
3
Trophy points
1,288
Activity points
1,575
Hi,

I am using 2 ultrasonic sensors consider it at A and B. Which are placed in opposite directions.
I will initiate trigpinA and want to read pulse from echopinB (not echopinA). How do I do that?
I am getting 0 value. Sensor works for trigpinA and echopinA. Not working for trigpinA and echopinB.
Please suggest.
 

Post your code and schematic....
 

I guess it's not possible. HC-SR04 is not designed as detector for externally generated pulses. What do you want to achieve, tof measurement?
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…