Cirkit Designer Logo
Cirkit Designer
Your all-in-one circuit design IDE
Home / 
Component Documentation

How to Use ESP32-WROOM-32: Examples, Pinouts, and Specs

Image of ESP32-WROOM-32
Cirkit Designer LogoDesign with ESP32-WROOM-32 in Cirkit Designer

Introduction

The ESP32-WROOM-32 is a powerful Wi-Fi and Bluetooth microcontroller module designed for IoT applications and embedded systems. It features dual-core processing capabilities, making it suitable for tasks requiring high performance and efficiency. With integrated Wi-Fi and Bluetooth (Classic and BLE), the ESP32-WROOM-32 is widely used in smart home devices, wearables, industrial automation, and other connected applications.

Explore Projects Built with ESP32-WROOM-32

Use Cirkit Designer to design, explore, and prototype these projects online. Some projects support real-time simulation. Click "Open Project" to start designing instantly!
ESP32-Based GPS Tracker with SD Card Logging and Barometric Sensor
Image of gps projekt circuit: A project utilizing ESP32-WROOM-32 in a practical application
This circuit features an ESP32 Wroom Dev Kit as the main microcontroller, interfaced with an MPL3115A2 sensor for pressure and temperature readings, and a Neo 6M GPS module for location tracking. The ESP32 is also connected to an SD card reader for data logging purposes. A voltage regulator is used to step down the USB power supply to 3.3V, which powers the ESP32, the sensor, and the SD card reader.
Cirkit Designer LogoOpen Project in Cirkit Designer
ESP32-Based Multi-Sensor Health Monitoring System with Bluetooth Connectivity
Image of circuit diagram: A project utilizing ESP32-WROOM-32 in a practical application
This circuit features an ESP32-WROOM-32UE microcontroller as the central processing unit, interfacing with a variety of sensors and modules. It includes a MAX30100 pulse oximeter and heart-rate sensor, an MLX90614 infrared thermometer, an HC-05 Bluetooth module for wireless communication, and a Neo 6M GPS module for location tracking. All components are powered by a common voltage supply and are connected to specific GPIO pins on the ESP32 for data exchange, with the sensors using I2C communication and the modules using UART.
Cirkit Designer LogoOpen Project in Cirkit Designer
ESP32-Based Infrared Proximity Sensing System
Image of ir sensor: A project utilizing ESP32-WROOM-32 in a practical application
This circuit features an ESP32 Wroom microcontroller connected to an Infrared Proximity Sensor. The ESP32's GPIO33 is interfaced with the sensor's output, allowing the microcontroller to read proximity data. The sensor is powered by the ESP32's 5V output, and both devices share a common ground.
Cirkit Designer LogoOpen Project in Cirkit Designer
ESP32-Controlled WS2812 RGB LED Strip
Image of LED: A project utilizing ESP32-WROOM-32 in a practical application
This circuit features an ESP32 Wroom Dev Kit microcontroller connected to a WS2812 RGB LED strip. The ESP32's GPIO 4 is used to send data to the LED strip's data input (DIN), while both the ESP32 and the LED strip share a common ground. A separate Vcc power source is connected to the 5V pin of the LED strip to provide power.
Cirkit Designer LogoOpen Project in Cirkit Designer

Explore Projects Built with ESP32-WROOM-32

Use Cirkit Designer to design, explore, and prototype these projects online. Some projects support real-time simulation. Click "Open Project" to start designing instantly!
Image of gps projekt circuit: A project utilizing ESP32-WROOM-32 in a practical application
ESP32-Based GPS Tracker with SD Card Logging and Barometric Sensor
This circuit features an ESP32 Wroom Dev Kit as the main microcontroller, interfaced with an MPL3115A2 sensor for pressure and temperature readings, and a Neo 6M GPS module for location tracking. The ESP32 is also connected to an SD card reader for data logging purposes. A voltage regulator is used to step down the USB power supply to 3.3V, which powers the ESP32, the sensor, and the SD card reader.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of circuit diagram: A project utilizing ESP32-WROOM-32 in a practical application
ESP32-Based Multi-Sensor Health Monitoring System with Bluetooth Connectivity
This circuit features an ESP32-WROOM-32UE microcontroller as the central processing unit, interfacing with a variety of sensors and modules. It includes a MAX30100 pulse oximeter and heart-rate sensor, an MLX90614 infrared thermometer, an HC-05 Bluetooth module for wireless communication, and a Neo 6M GPS module for location tracking. All components are powered by a common voltage supply and are connected to specific GPIO pins on the ESP32 for data exchange, with the sensors using I2C communication and the modules using UART.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of ir sensor: A project utilizing ESP32-WROOM-32 in a practical application
ESP32-Based Infrared Proximity Sensing System
This circuit features an ESP32 Wroom microcontroller connected to an Infrared Proximity Sensor. The ESP32's GPIO33 is interfaced with the sensor's output, allowing the microcontroller to read proximity data. The sensor is powered by the ESP32's 5V output, and both devices share a common ground.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of LED: A project utilizing ESP32-WROOM-32 in a practical application
ESP32-Controlled WS2812 RGB LED Strip
This circuit features an ESP32 Wroom Dev Kit microcontroller connected to a WS2812 RGB LED strip. The ESP32's GPIO 4 is used to send data to the LED strip's data input (DIN), while both the ESP32 and the LED strip share a common ground. A separate Vcc power source is connected to the 5V pin of the LED strip to provide power.
Cirkit Designer LogoOpen Project in Cirkit Designer

Common Applications and Use Cases

  • Smart home devices (e.g., smart lights, thermostats)
  • IoT sensors and actuators
  • Wearable technology
  • Industrial automation and control systems
  • Wireless data logging and monitoring
  • Robotics and drones

Technical Specifications

Key Technical Details

  • Microcontroller: Dual-core Xtensa® 32-bit LX6
  • Clock Speed: Up to 240 MHz
  • Flash Memory: 4 MB (default, varies by model)
  • SRAM: 520 KB
  • Wireless Connectivity:
    • Wi-Fi: 802.11 b/g/n
    • Bluetooth: v4.2 BR/EDR and BLE
  • Operating Voltage: 3.0V to 3.6V
  • GPIO Pins: 34 (multipurpose, including ADC, DAC, PWM, I2C, SPI, UART)
  • ADC Channels: 18 (12-bit resolution)
  • DAC Channels: 2
  • Power Consumption:
    • Active mode: ~160 mA
    • Deep sleep mode: ~10 µA
  • Operating Temperature: -40°C to 85°C

Pin Configuration and Descriptions

The ESP32-WROOM-32 module has 38 pins. Below is a table of the most commonly used pins and their functions:

Pin Name Function
1 EN Enable pin. Pull high to enable the module.
2 GPIO0 General-purpose I/O, also used for boot mode selection.
3 GPIO2 General-purpose I/O, often used for onboard LED.
4 GPIO12 General-purpose I/O, supports ADC and other functions.
5 GPIO13 General-purpose I/O, supports PWM and ADC.
6 GPIO14 General-purpose I/O, supports PWM and ADC.
7 GPIO15 General-purpose I/O, supports PWM and ADC.
8 GPIO16 General-purpose I/O, often used for UART communication.
9 GPIO17 General-purpose I/O, often used for UART communication.
10 3V3 3.3V power supply output.
11 GND Ground.
12 TXD0 UART0 transmit pin.
13 RXD0 UART0 receive pin.
14 ADC1_CH0 Analog input channel 0.
15 DAC1 Digital-to-analog converter channel 1.

For a complete pinout, refer to the ESP32-WROOM-32 datasheet.

Usage Instructions

How to Use the ESP32-WROOM-32 in a Circuit

  1. Power Supply: Provide a stable 3.3V power supply to the 3V3 pin. Ensure the current rating of the power source is sufficient (at least 500 mA).
  2. Boot Mode: To upload code, connect GPIO0 to GND and reset the module. After uploading, disconnect GPIO0 from GND.
  3. GPIO Usage: Configure GPIO pins as input or output in your code. Avoid exceeding the maximum current rating of 12 mA per pin.
  4. Wi-Fi and Bluetooth: Use the ESP-IDF or Arduino IDE libraries to configure and manage wireless connectivity.

Important Considerations and Best Practices

  • Voltage Levels: The ESP32-WROOM-32 operates at 3.3V logic levels. Avoid connecting 5V signals directly to its pins.
  • Heat Management: The module may heat up during operation. Ensure proper ventilation or heat dissipation in your design.
  • Deep Sleep Mode: Use deep sleep mode to conserve power in battery-powered applications.
  • Antenna Placement: Ensure the onboard antenna has sufficient clearance from metal objects to avoid signal interference.

Example: Connecting to an Arduino UNO

The ESP32-WROOM-32 can be programmed using the Arduino IDE. Below is an example of connecting the ESP32 to a Wi-Fi network:

#include <WiFi.h> // Include the Wi-Fi library for ESP32

const char* ssid = "Your_SSID";       // Replace with your Wi-Fi network name
const char* password = "Your_Password"; // Replace with your Wi-Fi password

void setup() {
  Serial.begin(115200); // Initialize serial communication at 115200 baud
  WiFi.begin(ssid, password); // Start connecting to Wi-Fi

  Serial.print("Connecting to Wi-Fi");
  while (WiFi.status() != WL_CONNECTED) {
    delay(500); // Wait for connection
    Serial.print(".");
  }
  Serial.println("\nConnected to Wi-Fi!");
  Serial.print("IP Address: ");
  Serial.println(WiFi.localIP()); // Print the assigned IP address
}

void loop() {
  // Add your main code here
}

Troubleshooting and FAQs

Common Issues and Solutions

  1. Module Not Responding:

    • Ensure the EN pin is pulled high.
    • Verify the power supply voltage is within the 3.0V to 3.6V range.
    • Check connections for loose wires or shorts.
  2. Wi-Fi Connection Fails:

    • Double-check the SSID and password in your code.
    • Ensure the Wi-Fi network is within range and not overloaded.
  3. Code Upload Fails:

    • Ensure GPIO0 is connected to GND during the upload process.
    • Verify the correct COM port and board are selected in the Arduino IDE.
  4. Overheating:

    • Check for excessive current draw in your circuit.
    • Ensure proper ventilation around the module.

FAQs

  • Q: Can the ESP32-WROOM-32 operate on 5V?
    A: No, the module operates at 3.3V. Use a voltage regulator or level shifter for 5V systems.

  • Q: How do I reset the module?
    A: Pull the EN pin low momentarily to reset the module.

  • Q: Can I use the ESP32-WROOM-32 for Bluetooth audio?
    A: Yes, the module supports Bluetooth audio streaming using the A2DP profile.

  • Q: What is the maximum Wi-Fi range?
    A: The range depends on environmental factors but typically extends up to 100 meters in open space.

This documentation provides a comprehensive guide to using the ESP32-WROOM-32 module effectively. For further details, consult the official datasheet and reference materials.