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

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

Image of ESP32 WROOM 32Design with ESP32 WROOM 32 in Cirkit Designer

Introduction

The ESP32 WROOM 32, manufactured by Microcontroller (Part ID: ESP32), is a powerful and versatile microcontroller module. It features integrated Wi-Fi and Bluetooth capabilities, making it an excellent choice for Internet of Things (IoT) applications, smart devices, and embedded systems. With its dual-core processor, low power consumption, and extensive GPIO options, the ESP32 WROOM 32 is designed to handle a wide range of tasks, from simple sensor monitoring to complex data processing.

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

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

Open Project in Cirkit Designer
Image of ESP32-Based Smart Medication Dispenser with Wi-Fi Connectivity and RTC Scheduling: A project utilizing ESP32 WROOM 32 in a practical application
ESP32-Based Smart Medication Dispenser with Wi-Fi Connectivity and RTC Scheduling

This circuit features an ESP32 microcontroller interfaced with a membrane matrix keypad, an I2C LCD screen, a real-time clock (RTC DS3231), two servos, a buzzer, and additional components like resistors and capacitors for stabilization and current limiting. The ESP32 runs embedded code to manage a keypad-based user interface, display information on the LCD, and control alarms and servo positions based on the RTC input, likely for a timed locking/unlocking mechanism or scheduled alert system. The circuit includes a WiFi setup for remote connectivity and EEPROM for non-volatile storage of configurations and schedules.

Open Project in Cirkit Designer

Common Applications and Use Cases

Technical Specifications

The ESP32 WROOM 32 is packed with features that make it a standout choice for developers. Below are its key technical specifications:

General Specifications

Parameter Value
Microcontroller Tensilica Xtensa LX6 Dual-Core Processor
Clock Speed Up to 240 MHz
Flash Memory 4 MB (external SPI flash)
SRAM 520 KB
Wi-Fi 802.11 b/g/n (2.4 GHz)
Bluetooth v4.2 BR/EDR and BLE
Operating Voltage 3.3 V
Power Consumption Ultra-low power modes available
Operating Temperature -40°C to +85°C

Pin Configuration and Descriptions

The ESP32 WROOM 32 module has 38 pins. Below is a summary of the pin configuration:

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 when pulled low during reset.
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. PWM-capable GPIO pin.
10 IO15 GPIO15. PWM-capable GPIO pin.
... ... ... (Refer to the full datasheet for all pin details.)

Note: Some pins have specific functions during boot (e.g., GPIO0 for bootloader mode). Refer to the datasheet for detailed pin behavior.

Usage Instructions

How to Use the ESP32 WROOM 32 in a Circuit

  1. Powering the Module:

    • The ESP32 WROOM 32 operates at 3.3 V. Ensure your power supply provides a stable 3.3 V to the VCC pin.
    • Avoid supplying 5 V directly to the module, as it may damage the chip.
  2. Connecting to a Microcontroller or PC:

    • Use a USB-to-Serial adapter (e.g., FTDI or CP2102) to connect the ESP32 to your PC for programming.
    • Connect the TX pin of the adapter to the RX pin of the ESP32 and the RX pin of the adapter to the TX pin of the ESP32.
  3. Programming the ESP32:

    • The ESP32 can be programmed using the Arduino IDE or the ESP-IDF framework.
    • To upload code, ensure GPIO0 is pulled low during reset to enter bootloader mode.
  4. Connecting Peripherals:

    • Use the GPIO pins to connect sensors, actuators, or other peripherals.
    • For analog sensors, use the ADC pins (e.g., GPIO32, GPIO33).

Important Considerations and Best Practices

Example Code for Arduino UNO

Below is an example of how to use the ESP32 WROOM 32 with the Arduino IDE to blink an LED:

// Example: Blink an LED connected to GPIO2 on the ESP32 WROOM 32

// Define the GPIO pin for the LED
#define LED_PIN 2

void setup() {
  // Initialize the LED pin as an output
  pinMode(LED_PIN, OUTPUT);
}

void loop() {
  // Turn the LED on
  digitalWrite(LED_PIN, HIGH);
  delay(1000); // Wait for 1 second

  // Turn the LED off
  digitalWrite(LED_PIN, LOW);
  delay(1000); // Wait for 1 second
}

Note: Ensure the LED is connected to GPIO2 with a current-limiting resistor (e.g., 220 Ω).

Troubleshooting and FAQs

Common Issues and Solutions

  1. ESP32 Not Detected by PC:

    • Ensure the USB-to-Serial adapter drivers are installed.
    • Check the connections between the adapter and the ESP32.
  2. Code Upload Fails:

    • Verify that GPIO0 is pulled low during reset to enter bootloader mode.
    • Check the baud rate in the Arduino IDE (default: 115200).
  3. Wi-Fi Connection Issues:

    • Ensure the correct SSID and password are used in the code.
    • Check for interference from other devices on the same Wi-Fi channel.
  4. Module Overheating:

    • Verify the power supply voltage is 3.3 V.
    • Avoid overloading the GPIO pins with excessive current.

FAQs

For more detailed information, refer to the official ESP32 datasheet and programming guides.