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.