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

How to Use ESP32 DevKit V1 (30-pin): Examples, Pinouts, and Specs

Image of ESP32 DevKit V1 (30-pin)Design with ESP32 DevKit V1 (30-pin) in Cirkit Designer

Introduction

The ESP32 DevKit V1 (30-pin) is a versatile development board based on the ESP32 chip, which integrates Wi-Fi and Bluetooth capabilities. This board is widely used in Internet of Things (IoT) applications, home automation, wearable devices, and rapid prototyping. Its compact design, powerful processing capabilities, and extensive connectivity options make it a popular choice for both hobbyists and professionals.

Explore Projects Built with ESP32 DevKit V1 (30-pin)

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 and Logic Level Converter-Based Wi-Fi Controlled Interface: A project utilizing ESP32 DevKit V1 (30-pin) in a practical application
ESP32 and Logic Level Converter-Based Wi-Fi Controlled Interface

This circuit features an ESP32 Devkit V1 microcontroller connected to a Bi-Directional Logic Level Converter, which facilitates voltage level shifting between the ESP32 and external components. The ESP32 is powered through its VIN pin via an alligator clip cable, and the logic level converter is connected to various pins on the ESP32 to manage different voltage levels for communication.

Open Project in Cirkit Designer
Image of ESP32-Based Environmental Monitoring System with Water Flow Sensing: A project utilizing ESP32 DevKit V1 (30-pin) 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.

Open Project in Cirkit Designer

Common Applications

Technical Specifications

The ESP32 DevKit V1 (30-pin) is equipped with robust hardware features that make it suitable for a wide range of applications. Below are the key technical details:

Key Features

Pin Configuration and Descriptions

The ESP32 DevKit V1 has 30 pins, each serving specific functions. Below is the pinout description:

Pin Name Function
1 EN Enable pin. Pulling this pin LOW resets the chip.
2 IO0 GPIO0. Used for boot mode selection 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 VIN Input voltage (5V).
8 GND Ground.
9 IO12 GPIO12. Can be used as ADC2 or touch sensor.
10 IO13 GPIO13. Can be used as ADC2 or touch sensor.
11 IO14 GPIO14. Can be used as ADC2 or touch sensor.
12 IO15 GPIO15. Can be used as ADC2 or touch sensor.
13 IO16 GPIO16. General-purpose I/O pin.
14 IO17 GPIO17. General-purpose I/O pin.
15 IO18 GPIO18. SPI clock (SCK) pin.
16 IO19 GPIO19. SPI master-out/slave-in (MOSI) pin.
17 IO21 GPIO21. I2C data (SDA) pin.
18 IO22 GPIO22. I2C clock (SCL) pin.
19 IO23 GPIO23. SPI master-in/slave-out (MISO) pin.
20 IO25 GPIO25. Can be used as DAC1 or ADC2.
21 IO26 GPIO26. Can be used as DAC2 or ADC2.
22 IO27 GPIO27. General-purpose I/O pin.
23 IO32 GPIO32. Can be used as ADC1 or touch sensor.
24 IO33 GPIO33. Can be used as ADC1 or touch sensor.
25 IO34 GPIO34. Input-only pin.
26 IO35 GPIO35. Input-only pin.
27 3V3 3.3V output pin.
28 GND Ground.
29 IO36 (VP) GPIO36. Input-only pin, ADC1 channel.
30 IO39 (VN) GPIO39. Input-only pin, ADC1 channel.

Usage Instructions

The ESP32 DevKit V1 is easy to use and can be programmed using the Arduino IDE or other development environments like PlatformIO. Below are the steps to get started:

Setting Up the ESP32 DevKit V1

  1. Install the Arduino IDE:
  2. Install the ESP32 Board Package:
    • Open the Arduino IDE and go to File > Preferences.
    • In the "Additional Board Manager URLs" field, add the following URL:
      https://dl.espressif.com/dl/package_esp32_index.json
      
    • Go to Tools > Board > Boards Manager, search for "ESP32", and install the package.
  3. Connect the Board:
    • Use a micro-USB cable to connect the ESP32 DevKit V1 to your computer.
    • Select the correct board (ESP32 Dev Module) and port under the Tools menu.

Example Code: Blinking an LED

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

// Define the GPIO pin for the LED
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

Troubleshooting and FAQs

Common Issues

  1. The board is not detected by the computer:
    • Ensure the USB cable is functional and supports data transfer.
    • Install the necessary USB-to-serial drivers (e.g., CP2102 or CH340, depending on your board).
  2. Upload error in Arduino IDE:
    • Check that the correct board and port are selected in the Tools menu.
    • 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 is within range and supports 2.4 GHz (ESP32 does not support 5 GHz).

FAQs

This concludes the documentation for the ESP32 DevKit V1 (30-pin). Happy prototyping!