RS232 with multiple slaves


Closed Thread
Results 1 to 12 of 12
  1. #1
    Join Date
    Jan 2008
    Location
    Sweden
    Posts
    187

    Default RS232 with multiple slaves

    Hi

    I want all the slaves to receive the same bytes sent by the master using RS-232 at 2400 baud, no communication from the slaves are needed.
    I know that RS-232 communication are not supposed to be used with multiple slaves but maybe if I use an RS-485/422 driver as in the picture below?
    what do you all think, Is it worth trying or does anyone see any obvious problems with this solution?

    The total cable length is about 500 meters.

    Link to SP485 datasheet http://www.farnell.com/datasheets/71017.pdf

    Name:  Comm.png
Views: 2451
Size:  20.4 KB
    Last edited by Fredrick; - 4th November 2015 at 00:51.

  2. #2
    Join Date
    Oct 2005
    Location
    Sweden
    Posts
    3,516


    Did you find this post helpful? Yes | No

    Default Re: RS232 with multiple slaves

    Hi Fredrick,
    I don't see any issues with that. After all, differential signaling over long cables is what those chips are intended for, the RS485 standard specifies 1200m.
    You'll need decoupling caps though but I'm sure you know that.

    /Henrik.

  3. #3
    Join Date
    Aug 2011
    Posts
    408


    Did you find this post helpful? Yes | No

    Default Re: RS232 with multiple slaves

    If you're going to permanently enable the transmitter on your master you can get rid of the pullup/pulldown resistors and just have the termination resistor.

    The pullup/down are there to bias the state of the line when you disable the transmitter so that the lines are seen as an idle state.

  4. #4
    Join Date
    Jan 2008
    Location
    Sweden
    Posts
    187


    Did you find this post helpful? Yes | No

    Default Re: RS232 with multiple slaves

    The optimum cable for RS-485 communication is of course a dedicated RS-485 cable, but I have read that a CAT5e is also working well and are very inexpensive, but how will a 3x0.75 untwisted cable work in my case, and why will it work or not work?

    tumbleweed:
    Yes the transmitter will permanently be enable at the master, Thank you for the information.

    Henrik:
    Yes, If you mean the decoupling caps between VCC and VSS on the transceiver chips.

  5. #5
    Join Date
    Aug 2011
    Posts
    408


    Did you find this post helpful? Yes | No

    Default Re: RS232 with multiple slaves

    A twisted pair works better as the impedance is more controlled along the wire vs having them in a bundle. Also, it helps with noise immunity as any induced noise signals are fairly equal (or common) in both conductors and are cancelled out by the differential receiver. All of that helps with long distance communications.

    It's probably hard to beat the cost/availability of network cabling these days. While it's not "RS-485", many use it and it works fine.

  6. #6
    Join Date
    Oct 2005
    Location
    Sweden
    Posts
    3,516


    Did you find this post helpful? Yes | No

    Default Re: RS232 with multiple slaves

    For a test-setup I did I used some cheap 4-wire single strand telephone wire. 4 slaves with 30 metres of cable between each (90m total) it worked fine but it was "only" 90m and in a relatively "quite" office environment. For a real-life setup I'd use twisted pair cable, any old twisted pair cable will most likely work just fine but, like tumbleweed says, CAT5 or whatever is probably hard to beat in price and accessabillity.

    I believe CAT5 cable is has a specified impedence of ~100ohm while for RS485 it ideally should be 120ohm. If you're not running super high bit rates, close to the maximum speed of the tranceivers I don't think it'll matter much.

  7. #7
    Join Date
    Aug 2011
    Posts
    408


    Did you find this post helpful? Yes | No

    Default Re: RS232 with multiple slaves

    Since you're working at such a low baud rate (2400), you might be better off picking a transceiver that's slower.

    The SP485 is rated for 10Mb operation. You can get RS485 drivers that work at much lower speeds, like 250K baud.

    The lower speed chips have slower slew rates on the signal edges so things don't change as fast, and that will help with any cable mismatch (the slower the edges the less things look like a transmission line). You'll also get much less EMI. Plus, they're usually cheaper.

  8. #8
    Join Date
    Mar 2003
    Location
    Commerce Michigan USA
    Posts
    1,166


    Did you find this post helpful? Yes | No

    Default Re: RS232 with multiple slaves

    Why not consider ISO-9141 single wire half duplex at that slow baud rate.
    Dave Purola,
    N8NTA
    EN82fn

  9. #9
    Join Date
    Jan 2008
    Location
    Sweden
    Posts
    187


    Did you find this post helpful? Yes | No

    Default Re: RS232 with multiple slaves

    tumbleweed
    Maybe the ADM4850 115 kbps chip is a better choice for me then.

    http://www.farnell.com/datasheets/1581181.pdf

  10. #10
    Join Date
    Aug 2011
    Posts
    408


    Did you find this post helpful? Yes | No

    Default Re: RS232 with multiple slaves

    That one should work fine.

    As Henrik pointed out the CAT5 cable is 100 ohm. You can always change the terminations to 100 instead of 120 ohms to better match the cable (the ADM4850 can drive 50 ohms) but with the slower slew rates I doubt you'll notice much of a difference.

    I'd start with the higher value and see how it works out... less power that way.

  11. #11
    Join Date
    Jan 2008
    Location
    Sweden
    Posts
    187


    Did you find this post helpful? Yes | No

    Default Re: RS232 with multiple slaves

    Thanks for all the answers, I will order some parts now and start testing.

  12. #12
    Join Date
    Oct 2004
    Posts
    448


    Did you find this post helpful? Yes | No

    Default Re: RS232 with multiple slaves

    At 2400 baud, and one-way comms, I would even try without the RS-485/422 driver, simply modulating the signal with a transistor (or a pair, to retain the polarity) at the transmitter end, at perhaps 15 volts or so; at the receiving end, just use a voltage divider to get a 5 volt signal back.

Similar Threads

  1. Programming multiple pics with multiple programs
    By Luckyborg in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 3rd April 2013, 18:47
  2. I2C: slaves to alien master
    By dhouston in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 28th June 2011, 13:46
  3. PIC as I2C Master/Slaves
    By Adamey in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 14th February 2011, 04:38
  4. I2C project - 10 slaves, 1 master
    By mikey11 in forum General
    Replies: 0
    Last Post: - 29th June 2010, 19:20
  5. master HSEROUT to mixed slaves
    By Dennis in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 21st December 2009, 17:44

Members who have read this thread : 1

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts