• 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 1.47 inch LCD B Display Development board RP2350A 1.47inch Screen RGB color ESP32-S3 Mini ESP32-P4 Pico WIFI6 Development Board C6 MIPI DSI 10.1-inch Display /CSI Camera /Audio Speaker Mic AI Deepseek 14 inch Dual LCD Computer PC Monitor Display Double Secondary Screen Type C Mini HDMI 1080P For Windows/MacOS Raspberry Pi Pico 2 RP2350 1.47 inch LCD Display Development board RP2350A 1.47inch Screen RGB color $8.5 ESP32-C5 Dual-Band Mini Development Board 240MHz ESP32-C5-MINI-1 ESP32-P4 ESP32-C6 Development Board RISC-V WiFi6 MIPI CSI Camera 7/10.1 inch DSI Display /RJ45 Ethernet /Mic /Audio Size Compatible with Raspberry Pi Raspberry Pi DSI Raspberry Pi 5 Case Raspberry Pi Pico 7inch DVI LCD Raspberry Pi 5 Audio Card Raspberry Pi 3D Display ESP32-C3FN4 X1008 Raspberry Pi 5 PCIe to 2.5" 3.5" SATA HDD/SSD Dual Double-SATA (NOT BOOT From SATA/SSD ESP32-S3 ETH Camera Development Board PoE RJ45 / OV2640 OV5640 Port / W5500 / Micro-SD Compatible With Raspberry Pi Pico Size Raspberry Pi 5 PCIe to M.2 SSD ESP32-C5 2.8inch LCD Display Capacitive AI Development Board 240×320 2.8 inch TouchScreen Raspberry Pi 5 Sound Card ESP32-S3 AI 3.97-inch e-Paper Ink Screen 3.97inch Display AIoT Development Board Deepseek Raspberry Pi 5 CR2032