Hardware Connection

[中文]

This document introduces what hardware you need to prepare and how to connect them in order to download AT firmware, send AT commands, and receive AT responses.

The commands supported by each series of AT firmware vary, and its compatibility with modules or chips also differs. For more information, refer to ESP-AT Firmware Differences.

If you don’t want to use the default AT pin, you can refer to the How to Set AT Port Pins document to change the pin.

What You Need

List of Components Required for ESP-AT Testing

Component

Function

ESP32-S2 board

Slave MCU.

USB cable (ESP32-S2 board to PC)

Download/Log output connection.

PC

Act as Host MCU. Download firmware to Slave MCU.

USB cable (PC to serial port converter)

AT command/response connection.

USB to serial port converter

Convert between USB signals and TTL signals.

Jumper wires (serial port converter to ESP32-S2 board)

AT command/response connection.

Connection of Components for ESP-AT Testing

Connection of Components for ESP-AT Testing

Note:

  • In the above picture, four jump wires are used to connect the ESP32-S2 board and USB to serial converter. If you do not use hardware flow control, two wires connecting TX/RX and a simpler converter will be enough.

ESP32-S2 Series

ESP32-S2 series refer to the module or board that has a built-in ESP32-S2 chip, such as ESP32S2-MINI series device and ESP32S2-WROOM series device.

ESP32-S2 AT uses two UART ports: UART0 is used to download firmware and log output; UART1 is used to send AT commands and receive AT responses. Both UART0 and UART1 use 115200 baud rate for communication by default.

ESP32-S2 Series Hardware Connection Pinout

Function of Connection

ESP32-S2 Board or Module Pins

Other Device Pins

Download/Log output 1

UART0
  • GPIO44 (RX)

  • GPIO43 (TX)

PC
  • TX

  • RX

AT command/response 2

UART1
  • GPIO21 (RX)

  • GPIO17 (TX)

  • GPIO20 (CTS)

  • GPIO19 (RTS)

USB to serial converter
  • TX

  • RX

  • RTS

  • CTS

Note 1: Connection between individual pins of the ESP32-S2 board and the PC is already established internally on the ESP32-S2 board. You only need to provide USB cable between the board and PC.

Note 2: Connection between CTS/RTS is optional, depending on whether you want to use hardware flow control.

ESP32-S2 Series Hardware Connection

ESP32-S2 Series Hardware Connection

If you want to connect your device directly with ESP32-S2 module rather than the ESP32-S2 board that integrates it, please refer to Datasheet for your module for more details.