• sales

    +86-0755-88291180

ESP32-DEV-KIT-WROOM-32E-N4 User Guide

Features

  • Uses ESP32 series modules, equipped with a Xtensa 32‑bit LX6 dual‑core processor with a clock speed of up to 240 MHz
  • Integrated 520 KB SRAM, 448 KB ROM, with optional PSRAM and Flash memory variants
  • Supports 2.4 GHz Wi‑Fi, classic Bluetooth, and Bluetooth Low Energy (BLE)
  • Onboard battery charging management module, with a reserved 3.7V GH1.25 lithium battery interface for external battery power supply.
  • Features a reversible USB Type-C connector.
  • Exposes rich peripheral interfaces with a castellated module design, facilitating soldering and integration onto user-designed carrier boards.
  • Supports various low-power operating states, allowing flexible adjustment between communication range, data rate, and power consumption to meet the power requirements of various application scenarios.

Resource Interface


  1. ESP32 module
  2. 3.7 V lithium battery header GH1.25 2PIN connector for connecting a 3.7V lithium battery, supports charging and discharging
  3. Battery reverse polarity warning LED Lights up when the battery polarity is reversed
  4. ETA6098 battery chip
  5. CH343P USB‑to‑Serial chip
  6. RGB indicator
  7. EN button Reset button
  8. BOOT button Press while resetting to enter download mode
  9. Charging indicator
  10. Power indicator
  11. USB Type-C port For program download

Dimensions


Pinout Definition




Working with Arduino

This chapter introduces the Arduino development environment for the ESP32-DEV-KIT-XX and the example programs provided in examples/Arduino/examples.

Setting Up the Development Environment

1. Install Arduino IDE and ESP32 Board Support Package

Please refer to the tutorial Install and Configure Arduino IDE to download and install the Arduino IDE and add ESP32 support.

After installing Arduino IDE, add the Espressif Arduino-ESP32 board index in "Preferences -> Additional Boards Manager URLs", and install the Arduino-ESP32 via the "Boards Manager". Once installed, select ESP32 Dev Module under "Tools -> Board".

Connect the board via USB and select the corresponding serial port under "Tools -> Port". Unless otherwise noted, all examples in this directory use the serial monitor with a baud rate of 115200 bps.

2. Open an Example

Each example directory contains a .ino main file with the same name as the directory. Open the file in Arduino IDE, then compile and upload it.

Installing the Libraries

01_Board_Info02_WS2812_RGB03_WiFi04_UART_Loopback, and 05_SerialToSerialBT only use components provided by the Arduino-ESP32 board package.

Example

The example programs are located in the examples/Arduino/examples directory of the example package. Examples involving peripherals such as LCD or UART require wiring according to the corresponding sections before running.

ExampleDescription
01_Board_InfoPrints chip, Flash, program, and memory information via serial
02_WS2812_RGBControls the WS2812 RGB LED to display red, green, blue, white, and off in sequence
03_WiFiScans for 2.4 GHz Wi-Fi networks and connects to a specified network
04_UART_LoopbackUses UART1 to send and receive data, verifying serial loopback
05_SerialToSerialBTBidirectionally forwards data between the USB serial port and classic Bluetooth SPP

01_Board_Info

After startup, the program prints the chip model, chip revision, CPU frequency, Flash size, program size, remaining heap memory, and base MAC address. This example does not require additional hardware and can be used to verify program upload and serial output.


02_WS2812_RGB

The data pin of the WS2812 RGB LED is GPIO27. The program uses the Arduino-ESP32 rgbLedWriteOrdered() interface to set brightness to 32 and cycles through red, green, blue, white, and off every second. The serial output simultaneously prints the current RGB values.

This example does not rely on third‑party libraries. If the LED color does not match expectations, check whether COLOR_ORDER needs to match the actual color order of the LED.


03_WiFi

This example sets the chip to STA mode, scans for 2.4 GHz Wi-Fi networks, and lists SSID, RSSI, signal quality, channel, and security type over serial. The classic ESP32 chip used on the ESP32-DEV-KIT-XX does not support 5 GHz Wi-Fi.

To test network connectivity, first modify the configuration at the top of the source code:

constexpr char WIFI_SSID[] = "your_ssid";
constexpr char WIFI_PASSWORD[] = "your_password";

After uploading, the program waits up to 20 seconds to connect to the specified Wi-Fi. On successful connection, the serial output shows the IP address, gateway, RSSI, and channel. If connection fails, it retries every 15 seconds; while disconnected, it rescans networks every 60 seconds.


04_UART_Loopback

This example uses UART1 for a self‑loopback test with the following initialization:

SignalGPIOParameters
UART1 TXGPIO4115200 bps, 8N1
UART1 RXGPIO5115200 bps, 8N1

Connect GPIO4 and GPIO5 with a wire, then upload the program. GPIO4 and GPIO5 must not be connected to 5 V. The program sends an incrementing counter message every 2 seconds via TX, and outputs [RX PASS] or [RX FAIL] based on whether the same content is received on RX within 500 ms, while also printing transmit/receive statistics.


05_SerialToSerialBT

This example creates a classic Bluetooth SPP serial port with the device name ESP32-BT-Slave. The program bidirectionally forwards data byte‑by‑byte between the USB serial port and the Bluetooth serial port, with the USB serial baud rate set to 115200 bps.

After uploading, search for and pair with ESP32-BT-Slave on a computer or mobile device that supports classic Bluetooth SPP. Data sent via the Bluetooth serial port appears in the Arduino serial monitor; data sent from the Arduino serial monitor is forwarded to the Bluetooth client.

CLASSIC BLUETOOTH SUPPORT

This example uses classic Bluetooth SPP, not BLE. The SPP functionality of BluetoothSerial is only available on classic ESP32 chips; select ESP32 Dev Module when compiling.

Troubleshooting

ESP32 Dev Module Not Found

Make sure the Espressif Arduino-ESP32 board package has been installed via the "Boards Manager", then reopen the "Tools" > "Board" menu.

Wi-Fi Example Cannot Connect

Verify that WIFI_SSID and WIFI_PASSWORD have been changed to your actual network credentials, and confirm that the target network is 2.4 GHz. The scan results from the serial can be used to confirm whether the target network is visible.

UART Loopback Test Fails

Confirm that GPIO4 and GPIO5 are directly connected with no other peripherals attached. The [RX FAIL] output distinguishes between receive timeout, content mismatch, and receive buffer overflow.

Cannot Connect to Bluetooth Serial Port

Make sure the client supports classic Bluetooth SPP and search for the device name ESP32-BT-Slave. BLE debug tools cannot connect to the SPP serial port provided by this example.


Working with ESP-IDF

This chapter includes the following sections, please read as needed:

ESP-IDF Getting Started

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.

Setting Up the Development Environment

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.

ESP-IDF Examples

The ESP-IDF example programs are located in the examples/ESP-IDF directory of the example package. Each example is an independent project and targets the esp32 chip.

Preparation Before Use

  1. Install and initialize ESP-IDF with ESP32 support. ESP-IDF 6.0.2 is recommended.
  2. Open any example directory in a terminal where ESP-IDF has been initialized.
  3. Connect the board to your computer via USB, and identify its serial port name (e.g., COM5 under Windows).

Navigate to the corresponding example directory and run:

idf.py set-target esp32
idf.py build
idf.py -p COM5 flash monitor

Replace COM5 with the actual serial port name. To exit the serial monitor, press Ctrl-]. On the first build, the component manager will automatically download the dependencies declared by the project, so a network connection is required.

Example

01_HelloWorld

This example prints Hello world!, chip features, Flash size, and minimum free heap size to the serial port; then it outputs a restart countdown every second and reboots automatically when the countdown ends. It can be used to verify that the ESP-IDF environment, flashing path, and serial monitor are working properly.


02_RGB

This example drives the onboard addressable RGB LED. The current sdkconfig selects the RMT driver, the data pin is GPIO27, and the blinking period is 1000 ms. The RGB value when the LED is on is (16, 16, 16).


03_UART

This example uses UART1 for asynchronous transmission and reception, with the chip's internal software loopback enabled, so no external jumper is required. A transmit task sends the string Hello world every 2 seconds. A receive task reads the loopback data and outputs it to the serial monitor in both text and hexadecimal formats.

The current communication parameters are 115200 bps, 8 data bits, no parity, 1 stop bit, and no hardware flow control.

04_WIFI

This example connects to Wi-Fi, then sends an HTTP request to the OpenWeather API to obtain real-time weather data for Beijing and outputs the server response to the serial port. After one request completes, it waits for 30 minutes before sending the next request.

Before flashing, run idf.py menuconfig and enter the Wi-Fi SSID and password in Example Connection Configuration. When connecting to a 2.4 GHz network, make sure the router has the corresponding band enabled.

Note: The weather API URL, location, and access key are fixed in main/main.c and use plain HTTP. Before using this in a product or on a public network, you should replace these with your own key and use HTTPS, certificate validation, and secure key management.


05_Bluetooth

This example starts a BLE GATT Server with the advertisement name ESP_GATTS_DEMO, waiting for a phone or other BLE GATT Client to connect. The service contains two 16‑bit UUIDs:

Service UUIDCharacteristic UUIDFeatures
0x00FF0xFF01Read, Write, Notify, Indicate
0x00EE0xEE01Read, Write, Notify

Use a phone BLE debugging tool to scan and connect to ESP_GATTS_DEMO, then read or write data.

Common Issues

  • Cannot flash or find serial port: Check the USB cable, the serial port number in Device Manager, and whether the board has entered download mode.
  • Wrong build target: In the example root directory, re-run idf.py fullclean and idf.py set-target esp32, then build again.
  • Component download fails: Check the network connection and ESP-IDF Component Manager configuration, then retry.
  • UART receives no data: This example uses internal software loopback and does not require external wiring. Verify that the 03_UART example is flashed and check the serial log for UART initialization errors.
  • Wi-Fi cannot connect: Verify the SSID, password, and availability of the 2.4 GHz network; the serial log will provide the reason for connection failure.

Resources

1. Examples

2. Hardware Resources

3. Technical Manuals

4. Software Tools

Support

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

Email: services01@spotpear.com

TAG: Third-party library configuration X1200 Raspberry Pi 5 UPS Board Uninterruptible Power Supply For 18650-Li-Battery (NOT includ) Jetson Nano Cooler Industrial grade isolated USB to RS232/485 converter supports USB to 2-way RS232 + 2-way RS232/485 original FT4232HL Raspberry Pi display ESP32 ST7789 configuration Raspberry Pi 5 PCIe to M.2 NVMe SSD Adapter Board HAT Raspberry Pi 5 PD Trigger ESP32 S3 MK20 Computer AI Deepseek Mechanical Voice Keyboard Linux 20x0.85inch LCD Screen Customize keys + 2.8 inch Secondary Display ESP32 C3 RV1103 SC3336 Raspberry Pi 10.1 inch DSI LCD TouchScreen Display 800x1280 Also For RK3576/RK3506/ESP32-P4 Sipeed NanoCluster Mini Cluster Board mini data center For Raspberry Pi CM45 / Computer /LM3H /M4N ESP32 S3 Development Board 1.47 inch LCD Touch Screen 1.47inch Display 172×320 SD AXS5106L JD9853 SeeedStudio SenseCAP Watcher Clear Enclosure Camera AI ESP32-S3 Himax WiseEye2 HX6538 AI Agent UART To CAN Raspberry Pi Pico Buzzer ESP32-C5 WIFI6 Development Board ESP32-C5-WROOM-1 N16R4/N16R8 Raspberry Pi 4 USB Audio