Go Down

Topic: Connecting two ping sensors (Read 260 times) previous topic - next topic

I have one ping sensor connected to the arduino uno microcontroller however I need to connect two ping sensors up. I don't understand how to do this so could someone show me a diagram or something on how two ping sensors would connect using a breadboard. Thank you.

JimboZA

I don't have a handy means of doing a pic for you, but basically take the Arduino 5V to the red rail on the breadboard with a wire , and put bith pings red wires into the same rail.

Then do the same with the Arduino GND to the other rail (sometimes blue?) and the Ping black wires.

Then the ping signal wires whatever i/o pins on Arduino take your fancy.
"Could you do the egg bacon spam and sausage without the spam then? "

No PMs for help please.
DO NOT power servos from Arduino 5V: give them their own power and connect the grounds.

Tried this but it doesn't work :S I haven't a clue how to even connect this up.

JimboZA

Yeah, well you need to do some coding in the sketch too. Hooking up another one doesn't mean the sketch knows anything about it... What changes did you make to the code?
"Could you do the egg bacon spam and sausage without the spam then? "

No PMs for help please.
DO NOT power servos from Arduino 5V: give them their own power and connect the grounds.

Go Up