Your RS485 library with an Arduino MEGA

Posted by Someone on Thu 16 Jan 2014 11:20 PM — 2 posts, 14,985 views.

#0
Hi Nick

First i wan't to thank you for your great library! It works really great!
As my project is growing i bought an Arduino MEGA an would like to use the 4 Serials on it to have more than just one line of RS485.

As long as i use a SoftwareSerial for the communication with the rs485 IC's all works fine.
But now i want to use the 3 Hardware Serials of the MEGA (Serial1, Serial2 and Serial3)
So I changed my code to work with the HardwareSerial Serial1. The problem is now, that i can just receive Data from the RS485 but nothing is sent to the RS485.

I've already tried your examples for using the hardware serial, but they don't work.

Do you have an idea, what the problem could be?

Regards
Peter
Australia Forum Administrator #1
Template:Arduino
Please post Arduino-related questions to the Arduino Forum or to StackExchange: Arduino. This saves splitting questions and answers between this forum and the Arduino ones.


When you make a posting there, post your code.