RS-485 and max cable length
Well I am trying to figure out what the max cable length an RS485 signal can be sent.
http://www.national.com/ds/DS/DS96172.pdf
http://www.national.com/ds/DS/DS96173.pdf
18 gauge copper wire has a resistance of 21.400 ohms/km
if I am not mistaken because of the diferential output return resistance does not matter so I only need to worry about the voltage drop one way.
As I can see the 6172 outputs 2.5V and the ds96173 excepts up to 0.2V so 2.3V drop is acceptable.
I think the DS96173 draws up to 1mA and can have up to 32 on the line.
If I am right about all this then the max cable length is 4.67km
Am I right?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
propmod_us and propmod_1x1 are in stock. Only $30. PCB available for $5
Want to make projects and have Gadget Gangster sell them for you? propmod-us_ps_sd and propmod-1x1 are now available for use in your Gadget Gangster Projects.
Need to upload large images or movies for use in the forum. you can do so at uploader.propmodule.com for free.
http://www.national.com/ds/DS/DS96172.pdf
http://www.national.com/ds/DS/DS96173.pdf
18 gauge copper wire has a resistance of 21.400 ohms/km
if I am not mistaken because of the diferential output return resistance does not matter so I only need to worry about the voltage drop one way.
As I can see the 6172 outputs 2.5V and the ds96173 excepts up to 0.2V so 2.3V drop is acceptable.
I think the DS96173 draws up to 1mA and can have up to 32 on the line.
If I am right about all this then the max cable length is 4.67km
Am I right?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
propmod_us and propmod_1x1 are in stock. Only $30. PCB available for $5
Want to make projects and have Gadget Gangster sell them for you? propmod-us_ps_sd and propmod-1x1 are now available for use in your Gadget Gangster Projects.
Need to upload large images or movies for use in the forum. you can do so at uploader.propmodule.com for free.
Comments
http://www.lammertbies.nl/comm/info/RS-485.html
1200m max cable length. 100kbs at max length.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
propmod_us and propmod_1x1 are in stock. Only $30. PCB available for $5
Want to make projects and have Gadget Gangster sell them for you? propmod-us_ps_sd and propmod-1x1 are now available for use in your Gadget Gangster Projects.
Need to upload large images or movies for use in the forum. you can do so at uploader.propmodule.com for free.
just curious - is this an acedemic exercise, or do you really need to drop a·1.2 km '485 cable?
- H
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
I need to run 400m for sure. Was wondering how far I could go before repeater was needed
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
propmod_us and propmod_1x1 are in stock. Only $30. PCB available for $5
Want to make projects and have Gadget Gangster sell them for you? propmod-us_ps_sd and propmod-1x1 are now available for use in your Gadget Gangster Projects.
Need to upload large images or movies for use in the forum. you can do so at uploader.propmodule.com for free.
I didn't use a repeater so 400m shouldn't be a problem...
Specs show 1.2km and 32 nodes though I found chips that count for 1/8 so I should be able to do 128 nodes
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
propmod_us and propmod_1x1 are in stock. Only $30. PCB available for $5
Want to make projects and have Gadget Gangster sell them for you? propmod-us_ps_sd and propmod-1x1 are now available for use in your Gadget Gangster Projects.
Need to upload large images or movies for use in the forum. you can do so at uploader.propmodule.com for free.
Its not just resistance. Capacitance, induced noise and reflections will be also your enemy. Twisted is used for common mode noise rejection. Using untwisted is likely to decrease your S/N ratio in hostile environments.
There are some very good 485 application notes floating about by some very knowledgeable people that outline the real issues faced when deploying large networks. I don't have any to hand as it's 6 years since I did my last one (google may certainly help here), but there are some oddities that can creep in if you are not careful with termination and bias (particularly).
Plan your network and terminations carefully grasshopper. The slower you go, the more reliable it will be.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
<This space for rent>
It would send a message packet, a light would blink and it would return the message, another light would blink. If the error buffers got filled, it would have stopped - but it never did - very stable.
The real advantage here is that RS485 can use generic wire (twisted pair is ideal but not really necessary in many cases) and perform quite well.
If you need to do a some testing, buy a coil of wire a bit longer that the distance that you plan to use and run a similar shuttle as a bench test until your satisfied. In that way, you don't have to walk the distance several times to reload code, to change wire, or to reset the microprocessor on the other end.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Ain't gadetry a wonderful thing?
aka G. Herzog [noparse][[/noparse] 黃鶴 ] in Taiwan
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
propmod_us and propmod_1x1 are in stock. Only $30. PCB available for $5
Want to make projects and have Gadget Gangster sell them for you? propmod-us_ps_sd and propmod-1x1 are now available for use in your Gadget Gangster Projects.
Need to upload large images or movies for use in the forum. you can do so at uploader.propmodule.com for free.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
In my situation by law it would not be used in close proximity to radio tower.
I plan to test in lab best I can then take out to field and run real world tests
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
propmod_us and propmod_1x1 are in stock. Only $30. PCB available for $5
Want to make projects and have Gadget Gangster sell them for you? propmod-us_ps_sd and propmod-1x1 are now available for use in your Gadget Gangster Projects.
Need to upload large images or movies for use in the forum. you can do so at uploader.propmodule.com for free.
right - we thought of that after figuring out why it worked inside but not out.
> take out to field and run real world tests
thought you would, just erring on the side of testing [noparse]:)[/noparse])
cheers
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Pop a running hairdryer with a brushed motor in the middle of one of the spools for testing EMI rejection [noparse]:)[/noparse]
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
<This space for rent>
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
propmod_us and propmod_1x1 are in stock. Only $30. PCB available for $5
Want to make projects and have Gadget Gangster sell them for you? propmod-us_ps_sd and propmod-1x1 are now available for use in your Gadget Gangster Projects.
Need to upload large images or movies for use in the forum. you can do so at uploader.propmodule.com for free.
BTW - Congrats on your upcoming nuptials.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
propmod_us and propmod_1x1 are in stock. Only $30. PCB available for $5
Want to make projects and have Gadget Gangster sell them for you? propmod-us_ps_sd and propmod-1x1 are now available for use in your Gadget Gangster Projects.
Need to upload large images or movies for use in the forum. you can do so at uploader.propmodule.com for free.
Have now figured out I can get 100 boards running 128 matches each, before I need a match
Remote can be 1km away. All boards need to be within 200m of generator.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
propmod_us and propmod_1x1 are in stock. Only $30. PCB available for $5
Want to make projects and have Gadget Gangster sell them for you? propmod-us_ps_sd and propmod-1x1 are now available for use in your Gadget Gangster Projects.
Need to upload large images or movies for use in the forum. you can do so at uploader.propmodule.com for free.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
propmod_us and propmod_1x1 are in stock. Only $30. PCB available for $5
Want to make projects and have Gadget Gangster sell them for you? propmod-us_ps_sd and propmod-1x1 are now available for use in your Gadget Gangster Projects.
Need to upload large images or movies for use in the forum. you can do so at uploader.propmodule.com for free.
Safetywise, I think Airbus is using CANbus with redundancies for their fly-by-wire controls.
There is Propeller CANbus project and I made my own boards that use CANbus with BasicStamps and SX28s or any old microcontroller with SPI. It is a bit of a learning curve, but you can have 20 nodes on that wire as it works as a broadcast and ignore packet messages not addressed to individual units.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Ain't gadetry a wonderful thing?
aka G. Herzog [noparse][[/noparse] 黃鶴 ] in Taiwan
Post Edited (Loopy Byteloose) : 7/24/2009 12:16:23 PM GMT
I am using rs485 for physical layer only writing my own data layer.
I am using very long cables but the datarate is not that high.
Packet size is 1-512bytes not including error checking data.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
propmod_us and propmod_1x1 are in stock. Only $30. PCB available for $5
Want to make projects and have Gadget Gangster sell them for you? propmod-us_ps_sd and propmod-1x1 are now available for use in your Gadget Gangster Projects.
Need to upload large images or movies for use in the forum. you can do so at uploader.propmodule.com for free.
I do understand your need are different than CANbus. With packets as large as 512bytes, you pretty much have to create your own protocol. Besides, you apparently don't need more than a master and a slave on the same line. Still it is worth looking at CANbus to compare safety features that you might want to include in your own proprietary code. They did a lot of things right.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Ain't gadetry a wonderful thing?
aka G. Herzog [noparse][[/noparse] 黃鶴 ] in Taiwan
I am going to look for twisted pair to take advantage of noise canceling effect
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
propmod_us and propmod_1x1 are in stock. Only $30. PCB available for $5
Want to make projects and have Gadget Gangster sell them for you? propmod-us_ps_sd and propmod-1x1 are now available for use in your Gadget Gangster Projects.
Need to upload large images or movies for use in the forum. you can do so at uploader.propmodule.com for free.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Ain't gadetry a wonderful thing?
aka G. Herzog [noparse][[/noparse] 黃鶴 ] in Taiwan
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
propmod_us and propmod_1x1 are in stock. Only $30. PCB available for $5
Want to make projects and have Gadget Gangster sell them for you? propmod-us_ps_sd and propmod-1x1 are now available for use in your Gadget Gangster Projects.
Need to upload large images or movies for use in the forum. you can do so at uploader.propmodule.com for free.