Electronic – arduino – Is an RJ45 / 8P8C connector a good way of connecting an Arduino to a simple device / circuit

arduinocablesconnector

I'm creating a two-part, bass guitar-style MIDI controller, where the left hand plays a small fretboard which detects which frets are being played, and the right hand "plucks" strings (actually senses touch on four separate wires). The right-hand device contains an Arduino and the MIDI output port, while the left-hand device just consists of shift registers to serialize the data from its frets. The right-hand device (with the Arduino) currently communicates with the left-hand device via five wires (clock, latch and data for the shift registers plus 5V and ground).

My question:

What is the best way of connecting the two devices? I would like a detachable cable, so I'm imagining something like a D-sub connector on each device, or maybe an RJ45 or DIN. Ideally, I'd like it to be a fairly common type of cable so that it's not too expensive, and preferably something with a few extra pins in case I want to add some LEDs to the left-hand device. Also, the lighter the cable, the better, so that movement isn't restricted (this might rule out D-sub?).

EDIT – additional info, as requested (answering as best I can!):

  • The cable would be about a metre in length
  • The current is about 40mA
  • The code is currently running about 50,000 times per second (I think), but it doesn't really need to if that's going to affect the cable choice; 1,000 times per second would be fine
  • The shift registers are both 74HC165

Best Answer

The cable would be about a metre in length

The current is about 40mA

The code is currently running about 50,000 times per second (I think), but it doesn't really need to if that's going to affect the cable choice; 1,000 times per second would be fine

The shift registers are both 74HC165

Based on that, it would be fine. RJ45 connectors, and Cat5/5e/6/6e cables have low resistance, and are designed for high frequency communication (Fast Ethernet and Gigabit, 100MHz and 1000Mhz respectfully). 100 METER runs without active repeaters are standard. And POE standards allow for up to 25 Watts of power over standard Cat 5e cable. That's 5 Amps at 5v.

You arn't even at 1% of the maximum rating for either RJ45 or Cat5.

An off the shelf ethernet cable and some RJ45 jacks would be your best bet. Don't even bother with crimping your own.