Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronic Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Register Log in

ultrasonic sensor HC-SR04 interface with arduino

Harish Achar

Member level 1
Joined
Mar 15, 2012
Messages
38
Helped
3
Reputation
6
Reaction score
3
Trophy points
1,288
Activity points
1,557
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.
 

FvM

Super Moderator
Staff member
Joined
Jan 22, 2008
Messages
47,277
Helped
13,995
Reputation
28,243
Reaction score
12,645
Trophy points
1,393
Location
Bochum, Germany
Activity points
275,228
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?
 

Toggle Sidebar

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top