Let's say someone has four CAT5 cables that are running along the ceiling for the length of a room (30 feet), of which most of the twisted pairs are connected to Arduino input/output pins on one end. Would it be okay to keep these wires bundled together when running along the ceiling? Or is it safer to keep them separated by a few inches? Is interference usually a problem only in very specific situations, or should it be considered for all long wire runs?

How about if there is a telephone cable (hooked up to a landline telephone) running along the same length? Is there any chance of interference if this is too close to the Arduino cables?

How about if there are 120v mains lines running the same length? Should these be kept at a distance from the Arduino cables?

On the other end of the cables that are hooked up to the Arduino, some of the following are connected: temperature sensors, light sensors, servo motors, LCDs, relays, and push-buttons.

  • Wouldn't it be better to have another Arduino at the sensors, and have this Arduino communicate with the other using e.g. RS485? That way you only need 4 wires (2 for power, 2 for communication). You also fix in case of RS485 (differential pair), or at least have the interference only on a single protocol. Alternatively use shielded CAT5/6 cables.
    – Gerben
    Nov 1, 2015 at 16:06
  • I like this idea, and try to use it whenever possible (I already have 1 Arduino at the other end to control an LCD, so that it only needs 4 long wires instead of 9). But because I reprogram the main Arduino so frequently, and because it needs to be connected via ethernet, that's why I need it close to the computer for now.
    – Jerry
    Nov 2, 2015 at 15:13
  • 1
    I just wanted to note that I'm not currently having any interference issues. I was just interested in learning what the best practice is. I'm planning on running another long CAT5 cable soon when I expand my system (planning on implementing an automatic indoor-garden control), and I just wanted to make sure I wasn't setting myself up for trouble later on.
    – Jerry
    Nov 2, 2015 at 15:13

3 Answers 3


A benefit of using CAT-5 is that the pairs are twisted. You would want to look at how you are using the pairs so that you're not introducing cross talk inadvertently, but the twisted pairs tend to resist RFI which is why its used. Telephone wire, however, can be a completely different story. You may find some that is twisted pair, but most if it is simply flat cable. Worse, much of it is very cheap flat cable with what amounts to a piece of thread with a very thin foil wrapped around it. This is very high loss and very vulnerable to RFI.

  • 6
    Twisted Pair only "resists" interference if the right signals are used - i.e., differential signals (LVDS, RS485, RS422, etc). Anything else and it's just like any other wire but with the disadvantage that the wires in a pair have closer coupling with each other than with other wires, so can increase crosstalk.
    – Majenko
    Nov 1, 2015 at 14:56

It depends on the frequency/frequencies you care about transmitting on your cables. One simple approach is to put on both ends a filter that lets pass only those frequencies you care about. You can also consider using some error detection/correction encoding or check if there is some existing library that suits your needs. This last approach will work if you do not get too many interferences and your application can tolerate that data is re-transmitted every now and then, making the communication timing not 100% deterministic.


CAT5 should work well with what you are trying to do, however stay away from power lines unless they are in a grounded conduit. The phone lines would most likely generate interference when the phone is ringing as there is a lot of voltage transients on the line at that time.

To get the full benefit of the twisted pairs send and receive your signals with differential transceivers, one transceiver per pair.

Personally I will not connect a microprocessor pin to the outside world without some type of buffering isolation etc. Those pins were not designed to drive long lines, although it may work eventually it will fail, that may be momentary to many years in the making but it will fail.

Lines connected directly to the microprocessor pins will all act as bidirectional antennas. They are not only are sustainable to interference they also generate it. Remember the wires are small inductors which can generate some huge voltages when the transition time is short.

I typically use Schmidt devices such as a 74C14, 74HC etc. as my input receivers for switches etc. I normally use an active low input signal, this help to keep noise out of the power supply. The input to the gate is pulled up to the 12VDC with a 10K resistor, this keeps a minimum of about 1 mA through the contact. The other end of the resistor is connected to a 100K resistor that in turn connects to the microprocessor input pin. You can add a cap to de-bounce at the gate if you want. The software is easier as it is looking for an active high which is a logic "1". This circuit has been replicated hundreds of thousands of times and is very stable and reliable.

What you are doing will work for dorm room, testing etc...

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.