• sales

    +86-0755-88291180

RS485 Control Tutorial

RS485 Control

Connect the ESP32-S3-ETH-8DI-8RO device using RS485, and send data to ESP32-S3-ETH-8DI-8RO to control the opening and closing of each relay. Communication is performed at a default baud rate of 9600.

Operation CommandCommand Function
06 05 00 01 55 00 A2 EDSwitch the state of CH1 relay
06 05 00 02 55 00 52 EDSwitch the state of CH2 relay
06 05 00 03 55 00 03 2DSwitch the state of CH3 relay
06 05 00 04 55 00 B2 ECSwitch the state of CH4 relay
06 05 00 05 55 00 E3 2CSwitch the state of CH5 relay
06 05 00 06 55 00 13 2CSwitch the state of CH6 relay
06 05 00 07 55 00 42 ECSwitch the state of CH7 relay
06 05 00 08 55 00 72 EFSwitch the state of CH8 relay
06 05 00 FF FF 00 BD BDTurn on all relays
06 05 00 FF 00 00 FC 4DTurn off all relays

Hardware Connection

  Here we use the example of USB TO RS232/485 Converter for demonstration

ESP32-S3-Relay-6CHUSB-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


  • You can control the relays with the following commands


TAG: Raspberry Pi Pico 2 RP2350 Pico2 ARM Cortex-M33 And RISC-V Hazard3 520KByte 4MByte QSPI Flash Pan-Tilt Kit Raspberry Pi PICO 1.54inch OLED DeepSeek AI Voice Chat ESP32 S3 Development Board 1.8 inch AMOLED Display 368×448 1.8inch TouchScreen Programmable Watch QMI8658 /MIC /Audio /Battery ESP32 ST7789 configuration ESP32 LVGL 101M-8001280-IPS-CT-K User Guide Changeable Photo ESP32 S3 Development Board 1.91 inch AMOLED Display Screen For Arduino LVGL With SD-Port/ QMI8658C 6-Axis Sensor Spotpear Raspberry Pi 5 PCIe To M.2 E KEY NGFF WIFI7 WIFI6 For BE200/AX210/AX200/RTL8822CE FT4232HL USB TTL RS232 Industrial UART 4-Ch UART 1.54inch OLED Display X1004 Raspberry Pi 1.54inch LCD Bookworm-Desktop Display and Touch Raspberry Pi 5 Active Cooler ESP32-S3FH4R2 Matrix 8x8 RGB-LED-WiFi Bluetooth QST Attitude Gyro Sensor QMI8658C Arduino Python Arduino board manager tutorial User Guide Raspberry Pi Pico 2 RP2350 2.8 inch LCD Capacitive TouchScreen Development Board 240x320 Display QMI8658 6-Axis /PCM5101 Audio /SD /RTC /Battery Port