RS485 Serial communication not working.

I am refering to this example. https://industruino.com/blog/our-news-1/post/rs485-serial-communication-28

I have two industruino devices connected as per shown in above link the sender code is working fine. But at the reciever device no result.

At reciver end  lcd.print(Serial.available()) = 0 and Serial.read() = -1;

Sunil Mali
Sunil Mali
52
| 0 0 0
Asked on 3/4/20, 8:40 AM
0
vote
255 Views

Hi, are you using the exact code as in the link example? It does not print the Serial.available() and it only does Serial.read() when Serial.available() > 0

Make sure your wires are correct A to A, B to B and both INDIOs have to be powered with external 12/24V

 

Tom
Tom
5570
| 0 0 1
Answered on 3/4/20, 9:50 AM
0
vote

In the example code I have just added print lines for available and read in loop. and connection is also A to A, B to B. As for power is concern I have used USB cable.

Sunil Mali
on 3/4/20, 12:06 PM

USB cable only powers up the topboard, not the base, so RS485 will not work with USB power only

Tom
on 3/4/20, 12:13 PM

Is power voltage 12/24V is mandatory?

Sunil Mali
on 3/4/20, 12:14 PM

Hi Tom, is RS485 will work with 5v supply? I trying with 5V and 2Am adapter the base LEDs are lights up but not able to get result.

Sunil Mali
on 3/5/20, 12:31 PM

Your answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

Ask a Question

Keep Informed

About This Forum

This community is for professionals and enthusiasts of our products and services.

Read Guidelines

Question tools

60 follower(s)

Stats

Asked: 3/4/20, 8:40 AM
Seen: 255 times
Last updated: 3/4/20, 9:50 AM