Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
11 years ago.
HC-SR04 Tx/Rx Problem
I am using 4 HC-SR04 Ultrasound Ranging Sensor modules with an intention to use 1 as a transmitter and the other 3 as receivers. I have used the available libraries and it works fine for a single sensor which triggers a pulse and then receives an echo. What I want however, is to trigger the pulse only from the transmitter and use to receivers to echo it only. Currently, they are doing it both at the same time. I have tried unplugging the trigger pin for the receivers and the echo pin for the transmitter but that doesn't work either. Please Help.
I have used both libraries available. https://mbed.org/users/prabhuvd/code/HCSR04/ https://mbed.org/users/aralshukaili/code/HCSR04/