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!
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.
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.
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.
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.
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
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).
Boot Mode: To upload code, connect GPIO0 to GND and reset the module. After uploading, disconnect GPIO0 from GND.
GPIO Usage: Configure GPIO pins as input or output in your code. Avoid exceeding the maximum current rating of 12 mA per pin.
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
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.
Wi-Fi Connection Fails:
Double-check the SSID and password in your code.
Ensure the Wi-Fi network is within range and not overloaded.
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.
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.