I am trying to build communication across multiple Arduino using RS485. When i am trying to connect 3 Arudino nano together using breadboard my code doesn't reach slave where as if i just if i do direct connection between 2 RS485 without breadboard it works but i use breadboard for 2 it doesn't work. Am i missing any setup here?
Breadboard connection - A & B are connected to + & - of both RS485.
Working connection - A & B of first RS485 connected to A & B of 2nd RS485.
-
show a picture of the breadboard versionJuraj– Juraj ♦2019年05月22日 05:02:01 +00:00Commented May 22, 2019 at 5:02
1 Answer 1
It is possible you have too many resistors on the RS485 bus. From the RS485 wikipedia page there is this quote:
Ideally, the two ends of the cable will have a termination resistor connected across the two wires.
This may explain why you can use 2 of your RS485 interfaces but not 3. Consider removing the resistors from the RS485 board in the middle if possible.
-
problem is even if i use only 2 with breadboard it doesn't work. It only work when i connect them directly ? Do i have to use any resistor on breadboard ?Akshay– Akshay2019年05月22日 04:31:09 +00:00Commented May 22, 2019 at 4:31
-
Breadboards are not good with high frequencies. Try slowing down the baud rate. Also check if you are using the breadboard correctly. So, 2 connected using wires works? And 3 connected using wires works? But 2 connected using the breadboard does not work? And exactly which TTL to RS485 adapter are you using? Have you added termination resistors to the ends of your RS485 bus?st2000– st20002019年05月22日 05:42:39 +00:00Commented May 22, 2019 at 5:42
-
The thing with termination resistors is, that it's value should be the wave resistance of the specific cable at that specific frequency. I don't think, that this is critical here, as long as the OP does not use too high baudrates. But the breadboard might be the real problem here.chrisl– chrisl2019年05月22日 07:42:33 +00:00Commented May 22, 2019 at 7:42