Example Code for Host Computer-RS485 Relay Control
This article offers a comprehensive guide for controlling RS485 relays using host computer software, detailing hardware requirements, software preparations, wiring instructions, and operational steps to efficiently manage relay modules with LattePanda Alpha & Delta systems.
Hardware Preparation
- DFR0545 LattePanda Alpha & Delta x 1
- DFR0779 RS485 Connector Expansion Shield for LattePanda Alpha&Delta x 1
- DFR0290 8 Channel IoT Ethernet Relay Controller (Support PoE and RS485) x1
Software Preparation
- Download driverDownload driver
Note: the driver needs to be installed when using on Windows for the first time. There is no need to install driver in Linux system.
Wiring Diagram
- Plug the shield into LattePanda Alpha & Delta:
You need to use nylon columns and nylon screws to fix the expansion board and LattePanda.

Use host computer software
- After connecting Lattepanda Alpha & Delta and RS485 interface extension board, boot up
- Power on RLY-8-PoE-RS485 8-channel network control relay module
- Open the host computer software produced by DFRobot on LattePanda Alpha & Delta, select COM1 serial port, and set the baud rate to 115200
- Use the host computer software to operate the relay module

Result

Was this article helpful?
