Skip to content

kmpelectronics/KMP_RS485

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

KMP_RS485

Description

This is an Arduino library which allows you send and receive data using RS-485 protocol. With RS232 to RS485 chip you can communicate with every RS485 device. The library supports all KMP Electronics boards which includes RS485 and every Arduino RS485 device with a similar pin mapping.

For simplicity we used only one pin for manipulation RE and DE pins we name it Transmission Enable pin. Pin mapping:

RS485 Board
RO RX
RE Transmit enabled connected with DE
DE Transmit enabled connected with RE
DI TX

We have been using this library together with our devices:

Installation

Open Arduino IDE. From menu selects Sketch -> Include Library -> Manage libraries. In Library Manager searches for "KMP_RS485" and install the library.

Examples

With this library we provide following examples:

  • Echo. The example presets using this device as a RS-485 repeater. When the device received the data then collected it and transmit it back.
  • Transmitter. The example presets using this device as a RS-485 transmitter. When we sent some information with Serial port the program read it and send data to RS-485.
  • Receiver. The example presets using this device as a RS-485 receiver. When the device receive data from RS-485 it gets it and print on Serial port.

KMP Electronics invests time and resources providing this open source code, please support KMP Electronics and open-source hardware by purchasing products from KMP Electronics!

License

This project is licensed under the MIT License, see LICENSE for further information.

About

Arduino library for RS485

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages