• 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: DeepSeek AI Voice Chat ESP32 S3 Development Board 2.06-inch AMOLED Display 410×502 2.06inch TouchScreen Programmable Watch Raspberry Pi RP2040 LoRa 0.85inch Screen Raspberry Pi Pico 2 RP2350 1.47 inch LCD B Display Development board RP2350A 1.47inch Screen RGB color Raspberry Pi Triple Screen HAT Spotpear MPTPU Raspberry Pi 5 TPU AI Kit 2TOPS PCIe to TPU HAT Pi5 For Google Coral Edge TPU Raspberry Pi Pico 2 RP2350 ETH CH9120 TCP/UDP Ethernet Network For Arduino Jetson Orin 4G/3G/2G expansion board GNSS GPS SIM7600G-H-M.2 RM520N GL 5G/4G/3G M.2 Moudle IoT EMBB For LTE-A/NSA/SA And GNSS For DFOTA /VoLTE For Quectel Sipeed Tang Primer 25K GW5A RISCV FPGA Development Board Dock SDRAM GW5A-LV25MG121 Retro Game linux USB to UART Raspberry Pi 5 Arduino IR Thermal Imaging Camera Orange Pi Zero 3 Raspberry Pi Raspberry Pi 5 inch e-Paper ink screen display black white 960×552 For Arduino /Jetson /STM32 /ESP32 RS232 to RJ45 Raspberry Pi 5 PCIe FFC Connector to Standard PCIe x1 Slot (C) Expansion Board Jetson Orin Uninterruptible Power C For Simultaneously Charging and Discharging