Skip to content

codewithzahid/RS485-COM-Arduino

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Arduino-RS485-Communication

Description:

In this code, we're using the SoftwareSerial library to create a serial communication between the two Arduino boards. The MAX485 transceiver is used to convert the TTL-level signals to RS485 signals that can travel longer distances without signal loss. The MAX485_DE and MAX485_RE_NEG pins are used to control the direction of data transmission.

In the sender code, we define the message to send and use mySerial.write() function to send the message through the MAX485 transceiver.In the receiver code, we use mySerial.readBytes() function to read the incoming message from the MAX485 transceiver and print it to the Serial Monitor using Serial.write() function.

Components:

  1. Arduino Uno x 2 pcs
  2. RS485 Module
  3. Connecting wires

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages