Hi,
I am using three ultrasonic sensors in a project and want them all to output (echo) to the same pin. I have tried connecting all three echo pins together on a breadboard and then have a separate wire connect to the Arduino, but I get no output. When I connect each echo pin directly to the Arduino, I do get output so I know the sensors are functioning.
I have limited experience with Arduino and I am under a time restraints so I cannot purchase more equipment.
Can this method work or does sharing the input pin cause some sort of issue?
*More info on the project in the comments.
I am using the Adafruit V1 Motor Shield so I only have 6 analog pins available. I want to connect the three ultrasonic sensors, a bluetooth module and a GPS module as part of my project. I am making an object avoiding rover which can navigate to some GPS coordinates sent from a phone connected via Bluetooth.
At the moment I am using a shift register to control the trig pins of each ultrasonic sensor, which is working. I am praying that I can use this shift register to also do the serial transmit (or receiver?) pins for the bluetooth and GPS modules using the SoftSerial Library - This is a problem for later.
While directly connecting the echo pins to the motor shield I also tried debugging the circuit using a LED to see if I could power it while the echo pin output to know that the circuit was working. While I did see output on my serial monitor, the LED did not light up even though the LED was connected in series to the input pin (I used a resistor, so the LED should not have burned out).
Without R1, and considering the essentially infinite impedance of the uC pin, it would be an open circuit, so no current to forward bias a diode, and an indeterminate (floating) voltage on the pin.