I have a project with two ultrasonic distance sensors. Each has a trigger and echo pin. The trigger pin is pulsed and the Arduino measures the time until the echo pin goes HIGH.
Since I dont measure both at the same time, I only need to know if echo1 or echo2 is HIGH. I assume connecting two to one pin will shortcut them if one is HIGH and the other is LOW. So I put two diodes between them to prevent that. This delayes the echo signal so I cant calculate the distance anymore.
Is there a way to get the two inputs on one pin without buying additional hardware?