# RS485

## {{@218#bkmrk-open-iot-and-iiot-ga}}


Link to repositories:

- [C](https://github.com/Redisage/PAC-ESP32/tree/master/C_examples/rs485)
- [MicroPython](https://github.com/Redisage/PAC-ESP32/tree/master/uPython_examples/rs485)

### Connection

Connect RS485\_1 port to the RS485\_2 port in the loopback configuration.

[![image.png](https://doc.redisage.com/uploads/images/gallery/2024-06/scaled-1680-/Ei3image.png)](https://doc.redisage.com/uploads/images/gallery/2024-06/Ei3image.png)

### Description

This example shows how to handle the RS485 communication via UART and UART-RS485 MAX481 converter. There is also a function implemented for each line termination via the 74HC595BQ shift register. After flashing both ports should send and read data from each other.

### Console output

[![image.png](https://doc.redisage.com/uploads/images/gallery/2024-06/scaled-1680-/Azwimage.png)](https://doc.redisage.com/uploads/images/gallery/2024-06/Azwimage.png)