Cirkit Designer LogoCirkit DesignerYour all-in-one circuit design IDE Launch Cirkit Designer App

How to Use ESP32Wroom32: Examples, Pinouts, and Specs

Image of ESP32Wroom32Design with ESP32Wroom32 in Cirkit Designer

Introduction

The ESP32 Wroom 32 is a powerful microcontroller module that integrates Wi-Fi and Bluetooth capabilities, making it a versatile choice for Internet of Things (IoT) applications. It features dual-core processing, a rich set of peripherals, and low power consumption, enabling it to handle complex tasks while maintaining energy efficiency. The module is widely used in smart devices, wireless communication systems, and automation projects.

Explore Projects Built with ESP32Wroom32

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 ESP32-Based GPS Tracker with SD Card Logging and Barometric Sensor: A project utilizing ESP32Wroom32 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.

Open Project in Cirkit Designer
Image of ESP32-Based Multi-Sensor Health Monitoring System with Bluetooth Connectivity: A project utilizing ESP32Wroom32 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.

Open Project in Cirkit Designer
Image of ESP32-Controlled WS2812 RGB LED Strip: A project utilizing ESP32Wroom32 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.

Open Project in Cirkit Designer

Common Applications and Use Cases

Technical Specifications

The ESP32 Wroom 32 module is built around the ESP32-D0WDQ6 chip and offers the following key specifications:

Specification Details
Microcontroller ESP32-D0WDQ6
CPU Dual-core Xtensa® 32-bit LX6, up to 240 MHz
Flash Memory 4 MB (default, can vary by module version)
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
ADC Channels 18 (12-bit resolution)
DAC Channels 2
Communication Interfaces UART, SPI, I2C, I2S, CAN, PWM
Power Consumption Ultra-low power consumption in deep sleep mode (as low as 10 µA)
Operating Temperature -40°C to +85°C
Dimensions 18 mm x 25.5 mm

Pin Configuration and Descriptions

The ESP32 Wroom 32 module has 38 pins, with the following key pin assignments:

Pin Number Pin Name Description
1 EN Enable pin. Active high. Resets the chip when pulled low.
2 IO0 GPIO0. Used to enter bootloader mode during programming.
3 IO1 (TX0) GPIO1. UART0 TX pin.
4 IO3 (RX0) GPIO3. UART0 RX pin.
5 IO4 GPIO4. General-purpose I/O pin.
6 IO5 GPIO5. General-purpose I/O pin.
7 IO12 GPIO12. Can be used as an ADC or touch sensor input.
8 IO13 GPIO13. Can be used as an ADC or touch sensor input.
9 IO14 GPIO14. Can be used as an ADC or touch sensor input.
10 IO15 GPIO15. Can be used as an ADC or touch sensor input.
11 IO16 GPIO16. General-purpose I/O pin.
12 IO17 GPIO17. General-purpose I/O pin.
13 GND Ground pin.
14 3V3 3.3V power supply input.
15 VIN Input voltage (5V).

Note: Not all GPIO pins are available for general use. Some are reserved for specific functions or have restrictions.

Usage Instructions

How to Use the ESP32 Wroom 32 in a Circuit

  1. Powering the Module:

    • Connect the 3V3 pin to a 3.3V power source.
    • Alternatively, use the VIN pin to supply 5V, which will be regulated internally.
    • Ensure the GND pin is connected to the ground of your circuit.
  2. Programming the Module:

    • Use a USB-to-serial adapter to connect the ESP32 to your computer.
    • Connect the TX and RX pins of the adapter to the RX0 and TX0 pins of the ESP32, respectively.
    • Pull the IO0 pin low (connect to GND) to enter bootloader mode for programming.
  3. Connecting Peripherals:

    • Use the GPIO pins to connect sensors, actuators, or other peripherals.
    • For analog inputs, use the ADC pins (e.g., IO12, IO13).
    • For PWM signals, use any GPIO pin capable of PWM output.
  4. Wi-Fi and Bluetooth Setup:

    • Configure Wi-Fi and Bluetooth settings in your code to enable wireless communication.

Important Considerations and Best Practices

Example Code for Arduino UNO Integration

Below is an example of using the ESP32 Wroom 32 to connect 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
  delay(1000);          // Wait for a second to stabilize

  Serial.println("Connecting to Wi-Fi...");
  WiFi.begin(ssid, password); // Start Wi-Fi connection

  while (WiFi.status() != WL_CONNECTED) {
    delay(500); // Wait for connection
    Serial.print(".");
  }

  Serial.println("\nWi-Fi connected!");
  Serial.print("IP Address: ");
  Serial.println(WiFi.localIP()); // Print the assigned IP address
}

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

Note: Replace Your_SSID and Your_Password with your Wi-Fi credentials.

Troubleshooting and FAQs

Common Issues

  1. ESP32 Not Connecting to Wi-Fi:

    • Cause: Incorrect SSID or password.
    • Solution: Double-check your Wi-Fi credentials in the code.
  2. Module Not Detected by Computer:

    • Cause: Missing USB-to-serial driver or faulty connection.
    • Solution: Install the correct driver for your USB-to-serial adapter and check the wiring.
  3. Frequent Resets or Instability:

    • Cause: Insufficient power supply.
    • Solution: Use a stable 3.3V or 5V power source with adequate current capacity.
  4. GPIO Pin Not Responding:

    • Cause: Pin may be reserved for internal functions.
    • Solution: Refer to the pin configuration table to ensure the pin is available for general use.

FAQs