ESP32-S3-Relay-1CH-RS485

From Waveshare Wiki
Jump to: navigation, search

RS485 Control

Connect the ESP32-S3-Relay-1CH device using RS485, and send data to ESP32-S3-Relay-1CH 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 CH1 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-1CH USB-TO-RS232-485
RS485 - A+ Tx B - A+
RS485 - B- Rx B - B-

Software 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

ESP32-S3-Relay-1CH-demo-01.png

  • You can control the relays with the following commands

ESP32-S3-Relay-1CH-demo-02.png