• sales

    +86-0755-88291180

ESP32-S3-RS485-2CH User Guide

Product Introduction​

The ESP32-S3-RS485-2CH is an industrial-grade Wi-Fi wireless communicator built on the ESP32-S3 and supporting peripheral interfaces such as Wi-Fi, Bluetooth, and RS485. It integrates protection circuits such as power isolation and optocoupler isolation, and is suitable for the AIoT field.

Features​

  • Based on the ESP32-S3 microcontroller with a built-in Xtensa 32-bit LX7 dual-core processor running at up to 240 MHz
  • Integrates 2.4 GHz Wi-Fi and Bluetooth Low Energy 5 (LE) dual-mode wireless communication
  • Two on-board isolated RS485 interfaces for easily connecting various RS485 Modbus industrial expansion modules or sensors
  • On-board pin header for easily connecting other devices
  • On-board USB Type-C connector for power supply, download, and debugging, convenient for development
  • On-board terminal block power input supporting a wide 7 V ~ 36 V range, convenient for industrial power supply
  • On-board RTC clock chip supporting scheduled tasks
  • On-board digital isolation preventing external signals from interfering with the control chip
  • On-board integrated power isolation providing a stable isolated voltage, with no extra power required on the isolated side
  • On-board RS485 indicator LEDs for easily sensing the operating status of the device
  • DIN-rail protective enclosure for easy installation; safer with the enclosure

Specifications​

ModelESP32-S3-RS485-2CHESP32-S3-RS485-2CH-U
Antenna connectorOnboard chip ceramic antennaExternal antenna
Microcontroller

ESP32-S3 (ESP32-S3R8 by default, customizable)

Wireless communication

2.4 GHz Wi-Fi (802.11 b/g/n), Bluetooth 5 (LE)

USB
interface

Interface typeUSB Type-C
Supply voltage5V
Functions

Device power, USB communication, firmware download, and more

Isolated
RS485
communication interface

Interface typeTerminal block
Direction control

Automatically controlled by the MCU hardware flow control setting

Interface protection

TVS diode protection, surge and ESD protection

Matching resistor

NC by default; 120R matching resistor reserved, can be enabled with a jumper cap

Indicator LEDsPWR

Power indicator; stays red when powered by USB or an external supply

485_1

RS485 indicators:
green when data is sent from the RS485 interface
blue when data is returned from the RS485 interface

485_2
Terminal power supplySupply range7V ~ 36V
AppearanceEnclosureDIN-rail protective enclosure
Dimensions

91.6 × 23.3 × 58.7 (mm)

Hardware Overview​


  1. ESP32-S3 runs at up to 240 MHz, with 2.4 GHz Wi-Fi and Bluetooth Low Energy
  2. Status indicator LEDs
    • PWR: power indicator
    • 485_1: green when data is sent from the 485_1 interface, blue when data is returned from the 485_1 interface
    • 485_2: green when data is sent from the 485_2 interface, blue when data is returned from the 485_2 interface
  3. BOOT button
  4. Reset button
  5. Power isolation provides a stable isolated voltage, with no extra power required on the isolated side
  6. RS485 matching resistor 120R matching resistor reserved, can be enabled with a jumper cap
  7. RS485 communication interface for connecting external RS485 devices
  8. RS485 transceiver chip
  9. Digital isolation prevents external signals from interfering with the control chip
  10. 16 MB Flash
  11. IPEX Gen 1 connector the external antenna version connects an external antenna through this connector (routed out through the SMA connector on the enclosure)
  12. Chip ceramic antenna the onboard antenna version uses this chip antenna
  13. RTC battery connector for connecting a rechargeable RTC battery (SH1.0)
  14. USB Type-C connector for device power, firmware download, and USB communication
  15. SH1.0 connector for connecting other function modules with an SH1.0 4PIN cable
  16. Power terminal block supports a wide DC 7 V ~ 36 V supply range
  17. Pin header (2.0 mm pitch) for connecting other function modules through the header
  18. MP1605GTF-Z DC-DC power chip, current up to 2 A
  19. On-board TVS (transient voltage suppressor) effectively suppresses surge and transient voltage spikes in the circuit
  20. ME6217C33M5G low-dropout LDO, current up to 800 mA
  21. XL1509-ADJE1 DC-DC power chip supporting 7 ~ 36 V DC input
  22. RTC clock chip PCF85063 RTC clock

Interfaces​


Upper connectorsLower connectors
Power terminalPositive supply: DC 7V ~ 36V485_1 terminalA+ signal pin
Negative supply
Type-C

Can be used for device power,
firmware download, and USB communication

B- signal pin
SH1.0GNDGround485_2 terminalA+ signal pin
3V33.3V power output
GPIO2Exposed I/OB- signal pin
GPIO1Exposed I/O


Dimensions​


Working with Arduino

This chapter contains the following sections. Read them as needed:

Arduino Getting Started Tutorial​

New to Arduino ESP32 development and looking for a quick start? We have prepared a comprehensive Getting Started Tutorial for you.

Note: This tutorial uses the ESP32-S3-Zero as a reference example, and all hardware code is based on its pinout. Before you start, we recommend checking the pinout of your development board to ensure the pin configuration is correct.

Development Environment Setup​

1. Install and Configure the Arduino IDE​

Installing the ESP32 board

  • To use ESP32 boards in the Arduino IDE, install the "esp32 by Espressif Systems" library first.
  • Install it according to the board installation requirements; "online installation" is generally recommended, and if it fails, use "offline installation".
  • For the installation tutorial, see: Arduino Board Management Tutorial

Board installation requirements for the ESP32-S3-RS485-2CH

Board nameBoard installation requirementVersion requirement
esp32 by Espressif Systems"Offline" / "Online" installation3.2.1

2. Installing Libraries​

  • Arduino libraries can be installed online or offline. If the library requires offline installation, the provided library files must be used.

    Most libraries can be found and installed through the Arduino IDE Library Manager. Libraries that are not listed must be installed manually offline.

  • For the library installation tutorial, see: Arduino Library Management Tutorial

  • The library files are provided with the ESP32-S3-RS485-2CH example programs.

Library installation requirements for the ESP32-S3-RS485-2CH

LibraryDescriptionVersionLibrary installation requirement
ArduinoJsonLightweight JSON libraryv6.21.4"Online" or "Offline" installation
PubSubClientMQTT message subscribe/publish libraryv2.8.0"Online" or "Offline" installation
NTPClientNetwork time synchronization client libraryv3.2.1"Online" or "Offline" installation

Example Programs​


Arduino Project Settings


ESP32-S3-RS485-2CH example programs

ExampleBasic example descriptionNotes
01_WIFI_APRS485 interface control, Bluetooth control, Bluetooth IP sending, web page control (short range)Can be flashed directly; the web page is available only after connecting to the device Wi-Fi
02_WIFI_STARS485 interface control, Bluetooth control, Bluetooth IP sending, web page control (short range)The Wi-Fi to connect to must be modified; the web page is available only within the LAN

01_WIFI_AP​

Program Description

  • This example implements control of the RS485 interface over Wi-Fi, and it enables the Wi-Fi AP mode

Notes

  • Can be flashed directly
  • The web page is available only after connecting to the device Wi-Fi

Web Page Control​

Use a Bluetooth debugging app on your phone to connect to the ESP32-S3-RS485-2CH device, obtain the IP after connecting to Wi-Fi, and open the web page through that IP

  • Connect to the Wi-Fi of the ESP32-S3-RS485-2CH device; the Wi-Fi SSID is ESP32-S3-RS485-2CH and the password is waveshare


  • Get the current IP by checking the serial port or the Bluetooth debugging app

  • Open the web page to control the RS485 interface (the device needs a short time to configure after power-up, so opening the web page for the first time after each power-up may be slow)


02_WIFI_STA​

Program Description

  • This example implements control of the RS485 interface over Wi-Fi, and it enables the Wi-Fi STA mode

Notes

  • The Wi-Fi to connect to must be modified
  • The web page is available only when the controlling device and this product are on the same network; if you control it from a phone, disconnect the mobile data

Web Page Control​

Use a Bluetooth debugging app on your phone to connect to the ESP32-S3-RS485-2CH device, obtain the IP after connecting to Wi-Fi, and open the web page through that IP

  • Before flashing, open MAIN_WIFI_STA/WS_Information.h and change STASSID and STAPSK to the Wi-Fi SSID and password to connect to. The device connects to the configured Wi-Fi automatically after power-up.

  • Get the current IP by checking the serial port or the Bluetooth debugging app

  • Open the web page to control the RS485 interface (the device needs a short time to configure after power-up, so opening the web page for the first time after each power-up may be slow)



Working with ESP-IDF

This chapter contains the following sections. Read them as needed:

ESP-IDF Getting Started Tutorial​

New to ESP32 ESP-IDF development and looking to get started quickly? We have prepared a general Getting Started Tutorial for you.

Please Note: This tutorial uses the ESP32-S3-Zero as a teaching example, and all hardware code is based on its pinout. Before you start, it is recommended that you check the pinout of your development board to ensure the pin configuration is correct.

ESP-IDF Development Environment Setup​

INFO

For the ESP32-S3-RS485-2CH board, ESP-IDF V5.5.2 or later is required.

NOTE

The following guide uses Windows as an example, demonstrating development using VS Code + the ESP-IDF extension. macOS and Linux users should refer to the official documentation.

VERSION SELECTION

The screenshots in this section use ESP-IDF V5.5.2 as an example. When installing, please select the ESP-IDF version that matches your board's example.

Install the ESP-IDF Development Environment​

  1. Download the installation manager from the ESP-IDF Installation Manager page. This is Espressif's latest cross-platform installer. The following steps demonstrate how to use its offline installation feature.

    Click the Offline Installer tab on the page, then select Windows as the operating system and the ESP-IDF version you need (the version shown in the screenshot is for reference only — choose the version that fits your actual needs).


    After confirming your selection, click the download button. The browser will automatically download two files: the ESP-IDF Offline Package (.zst) and the ESP-IDF Installer (.exe).


    Please wait for both files to finish downloading.

  2. Once the download is complete, double-click to run the ESP-IDF Installer (eim-gui-windows-x64.exe).

    The installer will automatically detect if the offline package exists in the same directory. Click Install from archive.


    Next, select the installation path. We recommend using the default path. If you need to customize it, ensure the path does not contain Chinese characters or spaces. Click Start installation to proceed.


  3. When you see the following screen, the ESP-IDF installation is successful.


  4. We recommend installing the drivers as well. Click Finish installation, then select Install driver.


Install Visual Studio Code and the ESP-IDF Extension​

  1. Download and install Visual Studio Code.

  2. During installation, it is recommended to check Add "Open with Code" action to Windows Explorer file context menu to facilitate opening project folders quickly.

  3. In VS Code, click the Extensions icon Extensions Icon in the Activity Bar on the side (or use the shortcut Ctrl + Shift + X) to open the Extensions view.

  4. Enter ESP-IDF in the search box, locate the ESP-IDF extension, and click Install.


  5. For ESP-IDF extension versions ≥ 2.0, the extension will automatically detect and recognize the ESP-IDF environment installed in the previous steps, requiring no manual configuration.

Example Programs​

ExampleBasic example descriptionNotes
01_WIFI_APRS485 interface control, Bluetooth control, Bluetooth IP sending, web page control (short range)Can be flashed directly; the web page is available only after connecting to the device Wi-Fi
02_WIFI_STARS485 interface control, Bluetooth control, Bluetooth IP sending, web page control (short range)The Wi-Fi to connect to must be modified; the web page is available only within the LAN

01_WIFI_AP​

Program Description

  • This example implements control of the RS485 interface over Wi-Fi, and it enables the Wi-Fi AP mode

Notes

  • Can be flashed directly
  • The web page is available only after connecting to the device Wi-Fi

Web Page Control​

Use a Bluetooth debugging app on your phone to connect to the ESP32-S3-RS485-2CH device, obtain the IP after connecting to Wi-Fi, and open the web page through that IP

  • Connect to the Wi-Fi of the ESP32-S3-RS485-2CH device; the Wi-Fi SSID is ESP32-S3-RS485-2CH and the password is waveshare


  • Get the current IP by checking the serial port or the Bluetooth debugging app

  • Open the web page to control the RS485 interface (the device needs a short time to configure after power-up, so opening the web page for the first time after each power-up may be slow)


02_WIFI_STA​

Program Description

  • This example implements control of the RS485 interface over Wi-Fi, and it enables the Wi-Fi STA mode

Notes

  • The Wi-Fi to connect to must be modified
  • The web page is available only when the controlling device and this product are on the same network; if you control it from a phone, disconnect the mobile data

Web Page Control​

Use a Bluetooth debugging app on your phone to connect to the ESP32-S3-RS485-2CH device, obtain the IP after connecting to Wi-Fi, and open the web page through that IP

  • Before flashing, open components/esp_bsp/bsp_common.h and change WS_STA_SSID and WS_STA_PASS to the Wi-Fi SSID and password to connect to. The device connects to the configured Wi-Fi automatically after power-up.

  • Get the current IP by checking the serial port or the Bluetooth debugging app

  • Open the web page to control the RS485 interface (the device needs a short time to configure after power-up, so opening the web page for the first time after each power-up may be slow)



Resources and Documents

1. Example Programs

2. Hardware Resources

3. Technical Manuals

4. Software Tools​

5. Other Resources​


Support

Monday-Friday (9:30-6:30) Saturday (9:30-5:30)

Email: services01@spotpear.com