• 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 USB Camera 2MP OV2735 Distortion-Free USB 2.0 For Jeston RDK Raspberry Pi 5 Serial Raspberry Pi Pico 2 RP2350-Tiny/Tiny-Kit Super Mini Board RP2350A UART To WiFi STM32 downloader Industrial Isolated Converter 7.5 inch Passive NFC e-Paper V2 BW Display 7.5inch E-ink Screen No Need Battery Wireless Powered Data Transfer For Mobile APP Raspberry Pi Pico 2 RP2350 USB A Development Board RP2350A FT232RNL USB TO TTL Industrial UART (C) User Guide D-Robotics RDK X3 Module Core MD Module Horizon Sunrise Pi ARM Cortex-A53 5Tops Size Compatible With Raspberry Pi CM4 Size Raspberry Pi Buzzer Raspberry Pi 8inch LCD 768x1024 Capacitive TouchScreen HDMI Display Pi5 Fan STM32 0.96inch RGB OLED Wiki Adjustable Focus Digital Photo Frames Raspberry Pi 5 Sound Raspberry Pi Pico 2 RP2350 Core2350B Core Board PSRAM USB IR Infrared Thermal Imaging Camera C 45°/88° 160x120 For Phone/PC High Temp Warning/Take Photo /Recording video