Electronic – arduino – Long three cables connection: can I use an audio stereo cable

arduinoaudiocables

I'm building small project where I need to connect a few sonar sensors to an Arduino.
Each of these sensors are connected via 3 wires to the arduino. My problems is that I need to place these sensors quite far from the main box, and since they need to moved easily I would like to use a pre-made 3 wires cable with plug and sockets.

I'm was wondering if I could use a standard stereo audio cable for that, and then on the sensor's side solder the wires from the 3 sonars's pins to an audio socket, and the same on the arduino's side, and then connect the two with a standard audio cable. They should have 3 wires, right? Ground, left and right signal. I need to transfer ground, 5V and analog signal.

The sensor I'm using is a Maxbotix MB1000 LV-MaxSonar-EZ0

If audio cable is not a good solution, what should I use?

Thank you and sorry if this might be a stupid question, but I'm just a programmer starting to explore the microcontrollers' world, and quite newbie for all things electrical.

Simone

Best Answer

You can probably use a stereo cable. Make sure you use the external shielding for ground, the analog signal as oe of the shielded lines, and power for the other line. You probably need to add some decoupling capacitor close to your sensor. If the output impedance of your sensor is high and/or the analog value fluctuates quickly the cable will act as a low-pass filter. You did not provide enough information to guess whether this could be a problem.