Forum 2005-2010 (read only)
(Read 14 times)
Jun 16, 2008, 01:21 pm
I need communicate 2 Arduino through RS485; i have 2 MAX485 but I don't know how connect Arduino with MAX485.
Have somebody tryed it? Have somebody experience with RS485?
Thank you in advanced.
Location: Manchester (England England)
Solder is electric glue
Jun 16, 2008, 02:06 pm
RS485 is just like RS232 but differential. If you just take one side of it you can send it to an RS232 port. The MAX 485 will convert the signal voltages to the logic signals you need to connect into Pins 1 & 2 on the Arduino, this is the serial port. The you use it just like you would use serial.
In fact you could cut out the Arduino all together and feed the RS285 straight into an RS232 / USB interface and do your software with Processing.
Jun 16, 2008, 02:19 pm
There are more differences between 232 and 485 than the differential signaling - maybe you are thinking of RS422, which is a lot like 232 except differential?
RS485 is multipoint to multipoint, I believe there is some addressing involved, and there are some other changes to accommodate that (I think the output goes hi-Z when not transmitting?).
There is more to even RS232 than the electrical connection - there are specifications on start bits, parity calculation (if used), and other data link layer issues even with our humble RS232.
To the original poster: I think it has been done, but I'm not familiar with it.
Doesn't DMX use rs485? Maybe looking at some of those projects will help.
Jun 16, 2008, 02:52 pm
dmx use RS-485 check out the wiring at the playground:
but this set up there is just for a master talking to a slave,
for communcating you could do something like this:
you can be a little bit smarter and use just one arduino out pin for the RE and DE.
ha det bra
Jun 19, 2008, 12:04 pm
Thanks for your answers, I have achieved communication through RS485. I used the Tom's document for the connections.
Sep 11, 2009, 12:05 am
Please could you post a sample of your code, I'd be interested to see what you've done...
Sep 12, 2009, 11:19 am
Some time ago, I wrote a RS485 sample code in spanish forum.
I´m going to translate to english asap, while you can see the code here =>
Orignal posts =>
Sep 13, 2009, 03:58 pm
Now, the english version to follow: