I want to communicate between Arduino Nano and Arduino MEGA using RS485.
I want to simply transmit and receive only numeric values.
Both side should be transmitter and receiver.
I have tried with several libraries and try to implement my own code.
If someone can give me a suitable library or can help to implement code appreciated.
Nandika:
Its seems like too complicated that I want. I need only transmit few numeric values.
Okay, if you need simple then you need to supply more details about your setup.
What RS485 modules/chips are you using (with links) as most of the cheap off-the-shelf modules only support half duplex.
Are you using software serial on the Nano or the hardware UART port.
How many numeric values are you sending.
What size range are the values (max/min number you will send)
How fast and often does the data transmit.
Post the code (using code tags) you have already tried.
Nandika:
Its seems like too complicated that I want. I need only transmit few numeric values.
SerialTransfer.h is a bit simpler yet still robust. You can install it through the Arduino IDE Libraries Manager. Take a look at the repository's readme file and example sketches.
If you have questions or issues with the lib, I'd be happy to address them here.