The distance would not be that far, typically less than 100' and no more than say 200'. It would be 18ga solid wiring, and I have a max of 3 transmit wires (2 would be best if that is workable). What I need is as follows. I have 8 switched output channels that are either 24v or 0. I need to take these 8 IO pins and transmit their status across 2-3 wires as described above. This will be read and the ouput replicated on the other end. Keeping the cost down is important. The output side of this will be used to switch 24v relays.
Hope this helps to clarify..
Thanks!
With RS-485 two signal wires would provide bi-directional communications. RS-485 to a MCU with a built in UART is extremely simple. If you look at the four channel relay board I posted earlier, it uses 4 connections Vin (Pwr), Gnd, and two signal lines for RS-485. I used a 8 pin connection so I could run an extra 4 lines, so I could have two separate runs daisy chained. The advantage of RS-485, is that you can daisy chain them so if you want connect more than one node to the same wire run. Perhaps you need to install two units, one at 200 feet and another at 300 feet. You just connect the units in serial. Soure -200 feet- Node A -- 100 feet -- Node B.. You can go on much futher with RS-485, up to about a mile, but you have to drop the baud rate to 2400 bps at long distance runs. The biggest issue, you'll have with long runs is the voltage drop across the power lines.
This webpage:
http://www.csgnetwork.com/voltagedropcalc.htmlwill estimate the voltage drop across a cable length. I put in 200 feet with 24V with 18 ga, with a 1 amp load and the voltage dropped to 20.4V. That may or may not be an issue depending on if your end use device can tolerate a 4 volt voltage drop.
A better option would be to go with a 48VDC supply and using a point of use DC to DC convert like the LM2576HV to convert the input voltage to 24V at the end-point to ensure you have the correct output voltage. Plus with the higher voltage you can go with a smaller gauge wire. Perhaps even using Cat-5 cable using two or three pair in parallel to deliver power and the one pair for signalling.