Connection multiple arduinos via RS485

Is RS422 or RS485 better?

Hi Robert...

Quoting MAXIM, "The great thing about standards is there are so many to choose from." :slight_smile:

Selecting and Using RS-232, RS-422, and RS-485 Serial Data Standards by Maxim: Mixed-signal and digital signal processing ICs | Analog Devices

RS-485 meets all the RS-422 specifications and I always thought that RS-422 was just an early version that is seldom used. Anyone know of RS-422 specific applications?

Anyone know of RS-422 specific applications?

When I worked in the industrial world I ran into 422 far more often than 485. Probably because it's a bit easier to deal with on the software side (no need to turn the transmitter on / off).

Ah but that's comparing point-to-point with multi-drop. If both 422 and 485 are used in the same manner there would be no difference in the software.

Quoting me, "I like standards so much I've decided to design my own" :slight_smile:


Rob

Re: Direction Control:

MAXIM has the "Half-Duplex RS-485-/RS-422-Compatible Transceiver with AutoDirection Control" MAX13487E-MAX13488E

And if you are driving from a PC and USB, the FTDI FT232R (see the data sheet) can automagically control the direction.

This all seems prety interesting so I wanna try my hand at this and learn a bit, and I know there's a whole bunch of rs485 transievers, which do you guys reccomend the most?

Hi, MAX485 is the most popular I think... 75176 is the oldie but goodie... Newer ones are the MAX13487E-MAX13488E mentioned above.

Here are the MAX485 and 75176 on modules: http://goo.gl/S1lFR

The USB interface one uses the 75176 and it's direction is automatically controlled by the FTDI USB Interface, so your PC/MAC application does not need to know about RS-485, just "Serial"..

The "Arduino" / Micro one brings out both Driver Enable and Receiver enable, and the Sketch has to control the driver (as usual)..

I'm just starting to write some code for these; if I have news or examples I'll drop back in here and point to the info...

DISCLAIMER: Mentioned stuff from my own shop...

Hello,
I am very confused about 6 Arduino serial communication using RS485. So can you please help me out how to configure all of them together and make communicating with each other? It will be a great help.
Thank you.

Hi.

This is a very old thread.
In the meantime terryking228 has his shop moved to another (better) domain.
So this (click !) is where you can find the information he has shared in this thread.
Terry has always been honest about mentioning products from his own shop, as you still can see in his posts.
He shows examples and a link to a how to site, so i'm sure you'll find all you need.

gjg.gondaliya@gmail.com:
Hello,
I am very confused about 6 Arduino serial communication using RS485. So can you please help me out how to configure all of them together and make communicating with each other? It will be a great help.
Thank you.

RS485 is only the standard for the voltages/currents on the wire, its says nothing else, there
is no protocol as such.

So you can use it however you wish, but you have to arrange that no more than one station transmits
simultaneously, ie do the bus-negotiation somehow.

Mostly people use a single master and multiple slaves to make this easy - the master polls the slaves and
lets them answer. Slaves only transmit if asked. This requires each slave to have a unique id of some sort
to prevent two replying at once.

You can pick an existing bus that works over RS485 and use that protocol if you wish.

I am using RS485 interface to connect a number of arduino based controllers together. Iam using MAX3480 which can support multiple transceivers on the bus (upto 256) as opposed to the standard MAX485.

I have tried a mixture of daisy chain connections as well as star connections with very robust communication results at the speed i am using which is 9600bps. Iam using the smart bus protocol on top of RS485.

CAT5E is used to carry both the RS485 signals as well as power to each arduino. Power is carried at 24VDC to avoid voltage drops due to the distances inlolved and then lowered accordingly for the needs of the arduinos.

I have recently also tried PLC as well as WIFI as alternative transport in the cases where wired RS485 is not available.

In this application, all arduinos listen to the bus and respond when addressed (each has a unique Device ID) Bus congestion sometimes does happen and this case when the message doesn't get to the other end, it is being repeated. In addition, each device before transmitting , listens and waits to see that no one else is talking.

New version with single relay, PLC, and wifi. This one is powered directly from the 230V AC mains and it is intended to automate individual remote mains power outlets.