Enhanced Arduino serial library with RS485 transmit enable control.
RS485HwSerial controls the transmit enable pin TE on half-duplex RS485 transceivers by utilizing the USART transmit complete interrupt USART_TXC_vect to disable the TE pin when the last stop bit was sent. Therefore the RS485 bus is only occupied as short as possible without blocking the code execution in the main loop.

Author: Frank Sautter

Maintainer: Frank Sautter

Read the documentation

Go to repository


This library is compatible with the avr architecture so you should be able to use it on the following Arduino boards:


To use this library, open the Library Manager in the Arduino IDE and install it from there.