Go Down

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

MrShazzyMan

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.
Roy from ITCrowd: Have you tried turning it off an on again?
I'm on LinkedIn: http://www.linkedin.com/in/jimbrownza

MrShazzyMan

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?
Roy from ITCrowd: Have you tried turning it off an on again?
I'm on LinkedIn: http://www.linkedin.com/in/jimbrownza

Go Up