Long distance communication
underworldman
Posts: 22
Hello there,
I need to know how long distance communication between two micro controllers can take place. What I want is to make vdd & gnd be carried, as part of the cable which can be upto 20 meters between the chips. Please advice me if any of you have done this before. Thanks.
I need to know how long distance communication between two micro controllers can take place. What I want is to make vdd & gnd be carried, as part of the cable which can be upto 20 meters between the chips. Please advice me if any of you have done this before. Thanks.
Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Leon Heller
Amateur radio callsign: G1HSM
Post Edited (Leon) : 7/17/2010 12:40:03 PM GMT
-Phil
Good luck,
Duane
Hopefully the jpg compression on this screenshot will leave the three internet links visible at the bottom left corner.
Cat 5 or Cat6 is very cheap and convenient. Computer cabling only uses 4 of the 8 wires, and there are pseudo standards around for using the other 4 - two for power and two for data.
You can daisy chain RS485 - but it might be worth leaving out the bias resistors on some boards if there are lots of nodes.
I'm using switching regulators LM2574 and LM2575 and so the input volts can be anything from a few volts higher than the regulated volts (7V for 5V) up to 40V. The advantage to higher volts is that less current is needed, and this includes the current in the earth return wire, which can 'lift' the volts at the other end if you draw too much current. Also it is worth just checking the resistance of cat5 cable over long runs but 20 metres would be fine.
Mind you, RS485 and even RS232 might be overkill for just 20 metres. I've run several hundred metres of cat5 cable using just 3V and 0V signal levels (with 1k current limit resistors) and if the baud rate is low, eg 1200 baud, it works fine.
So it really depends on how fast you need to go. The faster the speed, the more the complexity. Ballpark figures I've found from experience is that RS232 19200 baud will go about 5 metres with unshielded cable. I sometimes have trouble with 2 metres of RS232 ribbon cable at 115k baud. 1200 baud will go for hundreds of metres. For fun once I sent 110 baud signals a kilometre using fence wires.
So depending on the speed for your 20 metre link, you might not need anything more than a couple of resistors.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
www.smarthome.viviti.com/propeller
Hi Leon,
I can use EIA-485 as it can also prove to be low cost [noparse]:)[/noparse]
Hi Phil,
That is an excellent point. I'll be using 9V for PoE and regulators and voltage dividers on the slave side to acquire stabilization.
Hi Chap,
That is exactly what I'll be doing.
Hey Duane,
Thanks for your recommendation. I'll take a look at it.
Acula,
Its really great to know you've done it before. I will be using EIA-485 because of its simplicity in design and not to mention its cost effectiveness. Reason why i need this small network is because the slaves I have need to be powered by the ethernet cable, and that is precisely why i'll be using PoE.
Electrically, I think they are the same. RS-422 is more suitable for a simple application and the chips might be cheaper.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Leon Heller
Amateur radio callsign: G1HSM
The article I was thinking of was·Spin Zone #3 in Nuts & Volts Magazine, November 2009 by Jon Williams.· Here's a link to the board at Gadget Gangster:· http://gadgetgangster.com/find-a-project/56?projectnum=201
There are links to the article, schematics and source code on the above page.
The ST485 datasheet says it can be used for·both RS-485 and RS-422.
I haven't found the forum post by Jon discribing his board.· I think there was some additional useful information in his forum post.· I think Jon Williams is JonnyMac here on the forum.
Duane