• 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: Industrial RS485 Modbus RTU Relay Mini TOF Time-of-Flight Laser Ranging Radar Sensor Compatible RS485 with Arduino Raspberry Pi ESP32 and Pico Industrial 4-ch RS485 DC Detection Module Modbus RTU DIN Rail 0.85inch LCD Button Mechanical Keyboard Display Screen 128x128 For Arduino /Raspberry Pi /ESP32 /RP2040 /STM32 ESP32 C6 Development Board 1.47 inch LCD Touch Screen 1.47inch Display 172×320SD AXS5106L JD9853 UART To CAN Mini CAN FD Analyzer ESP32-C3-Ornament-Trinket-LVGL-Astronaut-Clock-Watch-MINI-TV-1.69inch-Round-LCD-TouchScreen-ST7789-240x280 Pi5 Active Cooler ESP32-S3 Industrial 8-Channel Controller with WiFi Bluetooth CAN IoT RS485 and RJ45 ETH POE Raspberry Pi Pico Basics User Guide Raspberry Pi 64MP Camera ESP-IDF download and installation Raspberry Pi Pico DVI ESP32 P4 Development Board 7inch Display 7 inch TouchScreen Onboard ESP32-C6/Camera-Port/Speaker-Port Raspberry Pi Monitor Official Original DisplayScreen 15.6 inch LCD Full HD 1920x1080 15.6inch Raspberry Pi 5 RTC Battery spotpear Jetson Nano 5G module Industrial UART USB TO 8CH RS485 Isolated Converter For 35mm standard rail and stacked installation