ESP32-S3-Relay-6CH-RS485
From Waveshare Wiki
RS485 Control
Connect the ESP32-S3-Relay-6CH device using RS485, and send data to ESP32-S3-Relay-6CH to control the opening and closing of each relay. Communication is performed at a default baud rate of 9600.
Operation Command Command Function 06 05 00 01 55 00 A2 ED Switch the state of the CH1 relay 06 05 00 02 55 00 52 ED Switch the state of the CH2 relay 06 05 00 03 55 00 03 2D Switch the state of the CH3 relay 06 05 00 04 55 00 B2 EC Switch the state of the CH4 relay 06 05 00 05 55 00 E3 2C Switch the state of the CH5 relay 06 05 00 06 55 00 13 2C Switch the state of the CH6 relay 06 05 00 FF FF 00 BD BD Turn on all relays 06 05 00 FF 00 00 FC 4D Turn off all relays
Hardware Connection
Here we use the example of USB TO RS232/485 Converter for demonstration
ESP32-S3-Relay-6CH USB-TO-RS232-485 RS485 - A+ Tx B - A+ RS485 - B- Rx B - B-
Softwares Operation
- Use SSCOM to send data
- Open the SSCOM software and select the COM port corresponding to the Port B connected above
- Open the serial port and use the Send Multi Char function to quickly send commands
- You can control the relays with the following commands