Prop to Props with RS485
search.digikey.com/scripts/DkSearch/dksus.dll?Detail?name=296-18121-1-ND
or
search.digikey.com/scripts/DkSearch/dksus.dll?Detail?name=MAX3430ESA%2B-ND
Just now starting to read up on RS485 for multi-hundred feet communication between multi Props (One master and X slave devices).
At first glance this IC linked seems like it allows up to 256 devices on one pair and would work.
With no real knowledge of this stuff, could I assume that this is as simple as dropping this one IC on a board with Prop, include the 100ohm resistor as shown on page 18 of the datasheet, and the Props just talk?
I also suppose that some ID is required per Prop so that if the master is asking a slave device a question or polling it for status of certain sensors, that the ID is required to determine who responds.
If anyone has experience with RS485, I would appreciate any feedback on this plan, I want to put these on a design right away to test.
The only thing I am vague on is what connectors to use. Here is an RJ45 connector that seems appropriate, although I am still searching on this. I assume the cable could be typical cat5 ethernet cable.
search.digikey.com/scripts/DkSearch/dksus.dll?Detail?name=H11289-ND
In observing some typical applications, I see the enables are required to be arbitrated, I don't have extra pins for 2 enables, so would it be possible to pull those to the enabled position and leave them?
As far as termination, would you put two jacks on each board, daisy chain each board together and make up a termination plug on the far end? With a resistor on the master side as well?
Thanks for any suggestions.
EDIT
Searching the forum I see an NV article related to the Stamp which indicates that a single pin can be used to enable both receiver and driver since one enable is inverted. I freed up a pin for the enable, as it appears that with RS485 you must enable the devices.
Post Edited (TChapman) : 12/2/2008 8:40:02 AM GMT
or
search.digikey.com/scripts/DkSearch/dksus.dll?Detail?name=MAX3430ESA%2B-ND
Just now starting to read up on RS485 for multi-hundred feet communication between multi Props (One master and X slave devices).
At first glance this IC linked seems like it allows up to 256 devices on one pair and would work.
With no real knowledge of this stuff, could I assume that this is as simple as dropping this one IC on a board with Prop, include the 100ohm resistor as shown on page 18 of the datasheet, and the Props just talk?
I also suppose that some ID is required per Prop so that if the master is asking a slave device a question or polling it for status of certain sensors, that the ID is required to determine who responds.
If anyone has experience with RS485, I would appreciate any feedback on this plan, I want to put these on a design right away to test.
The only thing I am vague on is what connectors to use. Here is an RJ45 connector that seems appropriate, although I am still searching on this. I assume the cable could be typical cat5 ethernet cable.
search.digikey.com/scripts/DkSearch/dksus.dll?Detail?name=H11289-ND
In observing some typical applications, I see the enables are required to be arbitrated, I don't have extra pins for 2 enables, so would it be possible to pull those to the enabled position and leave them?
As far as termination, would you put two jacks on each board, daisy chain each board together and make up a termination plug on the far end? With a resistor on the master side as well?
Thanks for any suggestions.
EDIT
Searching the forum I see an NV article related to the Stamp which indicates that a single pin can be used to enable both receiver and driver since one enable is inverted. I freed up a pin for the enable, as it appears that with RS485 you must enable the devices.
Post Edited (TChapman) : 12/2/2008 8:40:02 AM GMT
Comments
Since you're already looking to use a Maxim interface chip, I'm surprised you didn't see the attached PDF which is an APP note on RS-232, RS-422, and RS-485. You might want to look at the RS-422 information as well as the RS-485 information and see which interface fits your needs best.
Regards,
Bruce Bates
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
When all else fails, try inserting a new battery.
Termination should be used at the last device on the network to help alleviate problems with reflections.
As far as addressing goes, this depends on what you want to do. Usually you have multidrop so you can address each one. The address could be in software or in hardware via a dip switch or something.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Timothy D. Swieter, E.I.
www.brilldea.com - Prop Blade, LED Painter, RGB LEDs, uOLED-IOC, eProto for SunSPOT, BitScope
www.tdswieter.com
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Tracy Allen
www.emesystems.com
The standard 485 chips feature "failsafe" receive meaning that if the 485 bus lines are undriven that they guarantee a logic high RO which is the idle condition. This works fine on the bench with nothing else connected.I have a problem with such "failsafe" chips in that they are not true failsafe and in fact this very mechanism works against them when the bus is over-terminated or shorted. Normally 120R termination is used to terminate a balanced line but one at either end of a line results in 60R DC termination and this actually causes the "failsafe" mechanism to fail the chip by indicating an active low on the RO. Go for full failsafe chips such as the ISL3175 or ADM3078 for instance. Maxim should also have similar parts.
As for the connector it is quite usual to offer screw terminations, usually via a COMBICON style connector but you can choose RJ11 or RJ45 if it works for you as is the case with daisy chain jacks.
On another note you should at the very least be aware that RS485 is a differential system in that all that the receiver needs to see is a difference of greater than 200mv between it's A and B lines for a valid signal. You could for instance connect a 1.5V battery to A and B to signal a condition then reverse the battery to signal the opposite, all without a ground. The inclusion of a ground directly or via a resistor is problematic and strictly is not required and can create ground loop problems. This technique is usually done erroneously because all circuits need a ground right? No, it's more to do with limitations of common-mode rejection but that's a long story as are many other aspects of balanced lines.
*Peter*
Max3430
search.digikey.com/scripts/DkSearch/dksus.dll?Detail?name=MAX3430ESA%2B-ND
and dual RJ45 connectors to daisychain boards together, with a terminating plug on the last slave.
search.digikey.com/scripts/DkSearch/dksus.dll?Detail?name=151-1075-ND
There is no specific reason for choosing pins 4 and 5 on the RJ45. The extra connections are available on the 6 pin header for future use.
Post Edited (TChapman) : 12/2/2008 11:37:48 PM GMT
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Timothy D. Swieter, E.I.
www.brilldea.com - Prop Blade, LED Painter, RGB LEDs, uOLED-IOC, eProto for SunSPOT, BitScope
www.tdswieter.com
Thank you for bringing up this RS-485 topic. It need to read what other users have to say and it is inspiring me to do some further reading. This particular topic is one that I know enough about, but I am finding some good resources that are cementing my ideas and understanding.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Timothy D. Swieter, E.I.
www.brilldea.com - Prop Blade, LED Painter, RGB LEDs, uOLED-IOC, eProto for SunSPOT, BitScope
www.tdswieter.com
In my experience it depends more on the length of the run. Longer wire = longer antenna!
The amount of "noise" in the local area, also has a good deal to do with it.
Regards,
Bruce Bates
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
When all else fails, try inserting a new battery.
Thanks for the ideas guys, very helpful.