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

How to Use ESP32 Dev: Examples, Pinouts, and Specs

Image of ESP32 Dev
Cirkit Designer LogoDesign with ESP32 Dev in Cirkit Designer

Introduction

The ESP32 Dev is a versatile microcontroller development board designed for a wide range of applications, particularly in the Internet of Things (IoT) and embedded systems domains. It features built-in Wi-Fi and Bluetooth capabilities, making it an excellent choice for wireless communication projects. With multiple GPIO pins, ADCs, and support for various programming environments (e.g., Arduino IDE, MicroPython, and ESP-IDF), the ESP32 Dev is suitable for both beginners and advanced users.

Explore Projects Built with ESP32 Dev

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 Dev 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 Environmental Monitoring System with Water Flow Sensing
Image of Water: A project utilizing ESP32 Dev in a practical application
This circuit features an ESP32 Devkit V1 microcontroller connected to a DHT22 temperature and humidity sensor and a water flow sensor. The ESP32 reads environmental data from the DHT22 via a digital input pin (D33) and monitors water flow through the water flow sensor connected to another digital input pin (D23). The ESP32 is powered through its VIN pin, and both sensors are powered by the ESP32's 3V3 output, with common ground connections.
Cirkit Designer LogoOpen Project in Cirkit Designer
ESP32-Based Smart Weather and Health Monitoring System with Wi-Fi Connectivity
Image of Health Monitoring System: A project utilizing ESP32 Dev in a practical application
This circuit uses an ESP32 Devkit V1 microcontroller to interface with multiple sensors, including a DHT11 temperature and humidity sensor, a DS18B20 temperature sensor, and a MAX30102 pulse oximeter and heart-rate sensor. The ESP32 reads data from these sensors and can process or transmit the information for further use.
Cirkit Designer LogoOpen Project in Cirkit Designer
ESP32-Based Environmental Monitoring and Alert System with Solar Charging
Image of mark: A project utilizing ESP32 Dev in a practical application
This circuit features an ESP32 Devkit V1 microcontroller connected to various sensors and modules for monitoring and communication purposes. It includes an MQ-2 gas sensor and a DHT11 temperature and humidity sensor, both interfaced with the ESP32 for environmental data collection. The circuit is powered by a 12V battery, regulated to 5V by step-down converters, and includes a solar charge controller connected to a solar panel for battery charging, a UPS module for power management, and a SIM900A module for GSM communication. Additionally, there is a WS2812 RGB LED strip for visual feedback and a piezo buzzer for audio alerts, both controlled by the ESP32.
Cirkit Designer LogoOpen Project in Cirkit Designer

Explore Projects Built with ESP32 Dev

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 Dev 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 Water: A project utilizing ESP32 Dev in a practical application
ESP32-Based Environmental Monitoring System with Water Flow Sensing
This circuit features an ESP32 Devkit V1 microcontroller connected to a DHT22 temperature and humidity sensor and a water flow sensor. The ESP32 reads environmental data from the DHT22 via a digital input pin (D33) and monitors water flow through the water flow sensor connected to another digital input pin (D23). The ESP32 is powered through its VIN pin, and both sensors are powered by the ESP32's 3V3 output, with common ground connections.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of Health Monitoring System: A project utilizing ESP32 Dev in a practical application
ESP32-Based Smart Weather and Health Monitoring System with Wi-Fi Connectivity
This circuit uses an ESP32 Devkit V1 microcontroller to interface with multiple sensors, including a DHT11 temperature and humidity sensor, a DS18B20 temperature sensor, and a MAX30102 pulse oximeter and heart-rate sensor. The ESP32 reads data from these sensors and can process or transmit the information for further use.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of mark: A project utilizing ESP32 Dev in a practical application
ESP32-Based Environmental Monitoring and Alert System with Solar Charging
This circuit features an ESP32 Devkit V1 microcontroller connected to various sensors and modules for monitoring and communication purposes. It includes an MQ-2 gas sensor and a DHT11 temperature and humidity sensor, both interfaced with the ESP32 for environmental data collection. The circuit is powered by a 12V battery, regulated to 5V by step-down converters, and includes a solar charge controller connected to a solar panel for battery charging, a UPS module for power management, and a SIM900A module for GSM communication. Additionally, there is a WS2812 RGB LED strip for visual feedback and a piezo buzzer for audio alerts, both controlled by the ESP32.
Cirkit Designer LogoOpen Project in Cirkit Designer

Common Applications and Use Cases

  • IoT devices and smart home automation
  • Wireless sensor networks
  • Robotics and control systems
  • Data logging and monitoring
  • Wearable devices
  • Prototyping and educational projects

Technical Specifications

The ESP32 Dev board is built around the ESP32 microcontroller, which integrates a dual-core processor, wireless communication modules, and a variety of peripherals.

Key Technical Details

Specification Value
Microcontroller ESP32 (dual-core Xtensa LX6 processor)
Clock Speed 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.3V
Input Voltage (VIN) 5V (via USB or external power supply)
GPIO Pins 30+ (varies by board variant)
ADC Channels Up to 18
DAC Channels 2
Communication Interfaces UART, SPI, I2C, I2S, CAN, PWM
Power Consumption Ultra-low power (varies by mode)
Dimensions ~25.5 mm x 51 mm

Pin Configuration and Descriptions

The ESP32 Dev board has a variety of pins for different functionalities. Below is a general pinout description:

Pin Name Description
VIN Input voltage (5V) for powering the board
3V3 3.3V output from the onboard regulator
GND Ground connection
GPIO0 General-purpose I/O, also used for boot mode
GPIO2 General-purpose I/O, often used for onboard LED
GPIO12-39 General-purpose I/O pins
ADC1/ADC2 Analog-to-digital converter channels
DAC1/DAC2 Digital-to-analog converter channels
TX/RX UART communication pins
EN Enable pin to reset the board
BOOT Boot mode selection pin

Note: The exact pinout may vary depending on the ESP32 Dev board variant. Always refer to the specific datasheet for your board.

Usage Instructions

How to Use the ESP32 Dev in a Circuit

  1. Powering the Board:

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

    • Install the Arduino IDE or another supported environment (e.g., MicroPython or ESP-IDF).
    • Add the ESP32 board manager URL to the Arduino IDE preferences:
      https://dl.espressif.com/dl/package_esp32_index.json
    • Install the ESP32 board package via the Arduino Boards Manager.
    • Select the appropriate ESP32 board and port in the Arduino IDE.
  3. Connecting Peripherals:

    • Use GPIO pins for digital input/output.
    • Connect sensors to ADC pins for analog input.
    • Use UART, SPI, or I2C for communication with other devices.
  4. Uploading Code:

    • Write your code in the Arduino IDE or other supported environments.
    • Press the "Upload" button to flash the code to the ESP32 Dev board.
    • If required, hold the BOOT button during the upload process.

Example Code: Blinking an LED

Below is an example of how to blink an LED connected to GPIO2 using the Arduino IDE:

// Define the GPIO pin for the LED
const int ledPin = 2; // GPIO2 is often connected to the onboard LED

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

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

Important Considerations and Best Practices

  • Voltage Levels: Ensure all connected peripherals operate at 3.3V logic levels to avoid damaging the ESP32.
  • Power Supply: Use a stable power source to prevent unexpected resets or instability.
  • Boot Mode: If the board fails to upload code, hold the BOOT button while uploading.
  • Wi-Fi and Bluetooth: Avoid using GPIO pins 6-11 as they are connected to the onboard flash memory.

Troubleshooting and FAQs

Common Issues and Solutions

  1. Problem: The board is not detected by the computer.
    Solution:

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

    • Hold the BOOT button while uploading the code.
    • Check that the correct board and port are selected in the Arduino IDE.
  3. Problem: Wi-Fi connection is unstable.
    Solution:

    • Ensure the ESP32 is within range of the Wi-Fi router.
    • Use a stable power supply to avoid voltage drops.
  4. Problem: GPIO pins are not functioning as expected.
    Solution:

    • Verify the pin configuration in your code.
    • Avoid using reserved pins (e.g., GPIO6-11).

FAQs

Q: Can the ESP32 Dev board run on batteries?
A: Yes, the board can be powered using a LiPo battery connected to the VIN or 3V3 pin. Ensure the battery voltage matches the board's requirements.

Q: How do I reset the ESP32 Dev board?
A: Press the EN (Enable) button to reset the board.

Q: Can I use the ESP32 Dev board with MicroPython?
A: Yes, the ESP32 supports MicroPython. Flash the MicroPython firmware to the board and use a compatible IDE like Thonny.

Q: What is the maximum Wi-Fi range of the ESP32?
A: The range depends on environmental factors but typically extends up to 50 meters indoors and 200 meters outdoors.

By following this documentation, you can effectively utilize the ESP32 Dev board for your projects.