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

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

Image of ESP32 DevKitC (WROOM-32)
Cirkit Designer LogoDesign with ESP32 DevKitC (WROOM-32) in Cirkit Designer

Introduction

The ESP32 DevKitC (WROOM-32) is a versatile development board built around the ESP32 chip, which integrates Wi-Fi and Bluetooth capabilities. This board is widely used in Internet of Things (IoT) applications, prototyping, and embedded systems development. Its compact design, powerful dual-core processor, and extensive connectivity options make it a popular choice for developers and hobbyists alike.

Explore Projects Built with ESP32 DevKitC (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 DevKitC (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 and Arduino UNO Serial Communication Interface
Image of ESP32 Arduino COM SErial: A project utilizing ESP32 DevKitC (WROOM-32) in a practical application
This circuit integrates an ESP32 Wroom Dev Kit and an Arduino UNO, connected via their TXD/RXD pins for serial communication and sharing a common ground. Both microcontrollers are programmed with basic setup and loop functions, indicating a potential for further development of communication or control tasks.
Cirkit Designer LogoOpen Project in Cirkit Designer
ESP32 and SD Card Module Data Logger with Wi-Fi Connectivity
Image of ESP-32 SD Circuit Diagram : A project utilizing ESP32 DevKitC (WROOM-32) in a practical application
This circuit connects an ESP32 Wroom Dev Kit to an SD card module, enabling the ESP32 to read from and write to the SD card. The ESP32 provides power to the SD card module and communicates with it using SPI protocol through GPIO pins 23 (MOSI), 19 (MISO), 18 (SCK), and 5 (CS).
Cirkit Designer LogoOpen Project in Cirkit Designer
ESP32-Based Smart Medication Dispenser with Wi-Fi Connectivity and RTC Scheduling
Image of VAC: A project utilizing ESP32 DevKitC (WROOM-32) in a practical application
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.
Cirkit Designer LogoOpen Project in Cirkit Designer

Explore Projects Built with ESP32 DevKitC (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 DevKitC (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 ESP32 Arduino COM SErial: A project utilizing ESP32 DevKitC (WROOM-32) in a practical application
ESP32 and Arduino UNO Serial Communication Interface
This circuit integrates an ESP32 Wroom Dev Kit and an Arduino UNO, connected via their TXD/RXD pins for serial communication and sharing a common ground. Both microcontrollers are programmed with basic setup and loop functions, indicating a potential for further development of communication or control tasks.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of ESP-32 SD Circuit Diagram : A project utilizing ESP32 DevKitC (WROOM-32) in a practical application
ESP32 and SD Card Module Data Logger with Wi-Fi Connectivity
This circuit connects an ESP32 Wroom Dev Kit to an SD card module, enabling the ESP32 to read from and write to the SD card. The ESP32 provides power to the SD card module and communicates with it using SPI protocol through GPIO pins 23 (MOSI), 19 (MISO), 18 (SCK), and 5 (CS).
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of VAC: A project utilizing ESP32 DevKitC (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.
Cirkit Designer LogoOpen Project in Cirkit Designer

Common Applications and Use Cases

  • IoT devices and smart home automation
  • Wireless sensor networks
  • Wearable technology
  • Robotics and drones
  • Prototyping for industrial automation
  • Bluetooth Low Energy (BLE) applications

Technical Specifications

The ESP32 DevKitC (WROOM-32) is equipped with the ESP32-WROOM-32 module, which includes a dual-core Xtensa® 32-bit LX6 microprocessor. Below are the key technical details:

Key Technical Details

  • Processor: Dual-core Xtensa® 32-bit LX6, up to 240 MHz
  • Flash Memory: 4 MB (varies by model)
  • 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
  • Input Voltage (via USB): 5 V
  • GPIO Pins: 34 (multipurpose)
  • ADC Channels: 18 (12-bit resolution)
  • DAC Channels: 2
  • PWM Outputs: 16
  • Communication Interfaces: UART, SPI, I2C, I2S, CAN
  • Operating Temperature: -40°C to 125°C

Pin Configuration and Descriptions

The ESP32 DevKitC has a total of 38 pins. Below is a summary of the key pins and their functions:

Pin Name Description
1 3V3 3.3 V power output
2 GND Ground
3 EN Enable pin (active high, used to reset the chip)
4 IO0 GPIO0, used for boot mode selection during programming
5-39 GPIO1-GPIO39 General-purpose input/output pins (multiplexed for ADC, DAC, PWM, etc.)
21 TXD0 UART0 Transmit
22 RXD0 UART0 Receive
25 ADC1_CH0 Analog input channel 0
26 DAC1 Digital-to-Analog Converter output 1
27 DAC2 Digital-to-Analog Converter output 2
28 VIN Input voltage (5 V via USB or external power supply)

Note: Some GPIO pins have specific functions or limitations. Refer to the ESP32 datasheet for detailed pin multiplexing information.

Usage Instructions

How to Use the ESP32 DevKitC in a Circuit

  1. Powering the Board:

    • Connect the board to your computer via a micro-USB cable for power and programming.
    • Alternatively, supply 5 V to the VIN pin or 3.3 V to the 3V3 pin.
  2. Programming the Board:

    • Install the Arduino IDE and add the ESP32 board support package.
    • Select "ESP32 Dev Module" from the Tools > Board menu.
    • Connect the board to your computer and select the appropriate COM port.
  3. Connecting Peripherals:

    • Use the GPIO pins to connect sensors, actuators, or other peripherals.
    • Ensure that the voltage levels of connected devices are compatible with the ESP32 (3.3 V logic).
  4. Uploading Code:

    • Write your code in the Arduino IDE or another supported environment.
    • Press the "Upload" button to flash the code to the ESP32.

Example Code: Blinking an LED

The following example demonstrates how to blink an LED connected to GPIO2:

// Define the GPIO pin where the LED is connected
const int ledPin = 2;

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

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

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

Important Considerations and Best Practices

  • Voltage Levels: Ensure all connected devices operate at 3.3 V logic levels. Use level shifters if necessary.
  • Boot Mode: GPIO0 must be pulled low during programming. This is typically handled automatically by the USB-to-serial converter.
  • Power Supply: Use a stable power source to avoid unexpected resets or instability.
  • Pin Multiplexing: Be aware of pin multiplexing and avoid conflicts when using peripherals like ADC, UART, or SPI.

Troubleshooting and FAQs

Common Issues and Solutions

  1. The board is not detected by the computer:

    • Ensure the USB cable is functional and supports data transfer.
    • Install the correct USB-to-serial driver for your operating system.
  2. Code upload fails:

    • Check that the correct board and COM port are selected in the Arduino IDE.
    • Press and hold the "BOOT" button on the board while uploading the code.
  3. Wi-Fi connection issues:

    • Verify the SSID and password in your code.
    • Ensure the Wi-Fi network operates on the 2.4 GHz band (ESP32 does not support 5 GHz).
  4. Unstable operation or random resets:

    • Use a reliable power source with sufficient current (at least 500 mA).
    • Avoid using GPIO pins that are reserved for internal functions.

FAQs

Q: Can I use the ESP32 DevKitC with MicroPython?
A: Yes, the ESP32 supports MicroPython. You can flash the MicroPython firmware to the board and use it for development.

Q: How do I use the Bluetooth functionality?
A: The ESP32 supports both Bluetooth Classic and BLE. You can use the Arduino IDE or ESP-IDF to write Bluetooth applications.

Q: What is the maximum current draw of the ESP32?
A: The ESP32 can draw up to 500 mA during peak operation, especially when using Wi-Fi or Bluetooth.

Q: Can I power the ESP32 with a battery?
A: Yes, you can use a LiPo battery with a suitable voltage regulator or connect it to the VIN pin.

By following this documentation, you can effectively use the ESP32 DevKitC (WROOM-32) for your projects and troubleshoot common issues.