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

How to Use ESP32 38-pin Expansion Board: Examples, Pinouts, and Specs

Image of ESP32 38-pin Expansion Board
Cirkit Designer LogoDesign with ESP32 38-pin Expansion Board in Cirkit Designer

Introduction

The ESP32 38-pin Expansion Board is a versatile development platform designed by Espressif to simplify prototyping and development with the ESP32 microcontroller. This board features 38 pins, providing easy access to the ESP32's GPIOs, power, and communication interfaces. It is ideal for Internet of Things (IoT) applications, smart devices, and embedded systems.

Explore Projects Built with ESP32 38-pin Expansion Board

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 OLED Display Interface
Image of d: A project utilizing ESP32 38-pin Expansion Board in a practical application
This circuit features an ESP32 microcontroller connected to an OLED 1.3" display. The ESP32's GPIO pins 21 and 22 are used for I2C communication (SDA and SCL respectively) with the OLED display. The display is powered by the 5V output from the ESP32, and both devices share a common ground.
Cirkit Designer LogoOpen Project in Cirkit Designer
ESP32-Based Smart Irrigation and Environmental Monitoring System
Image of fyp: A project utilizing ESP32 38-pin Expansion Board in a practical application
This circuit features an ESP32 microcontroller as the central processing unit, interfaced with various sensors and actuators. It includes a humidity sensor (YL-69), a temperature and humidity sensor (DHT11), a buzzer, an RS485 transceiver for serial communication, and an LCD display for user interface. The circuit also controls two 5V mini water pumps via an L298N motor driver, powered by a series connection of two 18650 Li-Ion batteries, with a rocker switch for power control. Additionally, it integrates an NPK soil sensor for measuring soil nutrients.
Cirkit Designer LogoOpen Project in Cirkit Designer
ESP32-Based Obstacle Detection and Display System with Servo Control
Image of xyhaeee: A project utilizing ESP32 38-pin Expansion Board in a practical application
This circuit features an ESP32 microcontroller board as the central processing unit, interfaced with multiple sensors and actuators. It includes IR and ultrasonic sensors for distance or obstacle detection, servomotors for movement control, and an ESP32-CAM module for image capture. The circuit also incorporates LEDs with current-limiting resistors for status indication and an I2C LCD display for outputting information or readings.
Cirkit Designer LogoOpen Project in Cirkit Designer
ESP32-Based Smart Display with Camera and Audio Alert System
Image of cam_circuit_design: A project utilizing ESP32 38-pin Expansion Board in a practical application
This circuit features two ESP32 microcontrollers, one standard 30-pin version and one ESP32-CAM module, both sharing a common ground and power supply. The 30-pin ESP32 is interfaced with an I2C LCD 16x2 Screen for display purposes, using its I2C pins (D21 for SDA and D22 for SCL), and controls a buzzer connected to pin D23. Additionally, the ESP32-CAM is connected to the 30-pin ESP32 via serial communication through pins TX2 and RX2 for potential image data transfer.
Cirkit Designer LogoOpen Project in Cirkit Designer

Explore Projects Built with ESP32 38-pin Expansion Board

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 d: A project utilizing ESP32 38-pin Expansion Board in a practical application
ESP32-Based OLED Display Interface
This circuit features an ESP32 microcontroller connected to an OLED 1.3" display. The ESP32's GPIO pins 21 and 22 are used for I2C communication (SDA and SCL respectively) with the OLED display. The display is powered by the 5V output from the ESP32, and both devices share a common ground.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of fyp: A project utilizing ESP32 38-pin Expansion Board in a practical application
ESP32-Based Smart Irrigation and Environmental Monitoring System
This circuit features an ESP32 microcontroller as the central processing unit, interfaced with various sensors and actuators. It includes a humidity sensor (YL-69), a temperature and humidity sensor (DHT11), a buzzer, an RS485 transceiver for serial communication, and an LCD display for user interface. The circuit also controls two 5V mini water pumps via an L298N motor driver, powered by a series connection of two 18650 Li-Ion batteries, with a rocker switch for power control. Additionally, it integrates an NPK soil sensor for measuring soil nutrients.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of xyhaeee: A project utilizing ESP32 38-pin Expansion Board in a practical application
ESP32-Based Obstacle Detection and Display System with Servo Control
This circuit features an ESP32 microcontroller board as the central processing unit, interfaced with multiple sensors and actuators. It includes IR and ultrasonic sensors for distance or obstacle detection, servomotors for movement control, and an ESP32-CAM module for image capture. The circuit also incorporates LEDs with current-limiting resistors for status indication and an I2C LCD display for outputting information or readings.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of cam_circuit_design: A project utilizing ESP32 38-pin Expansion Board in a practical application
ESP32-Based Smart Display with Camera and Audio Alert System
This circuit features two ESP32 microcontrollers, one standard 30-pin version and one ESP32-CAM module, both sharing a common ground and power supply. The 30-pin ESP32 is interfaced with an I2C LCD 16x2 Screen for display purposes, using its I2C pins (D21 for SDA and D22 for SCL), and controls a buzzer connected to pin D23. Additionally, the ESP32-CAM is connected to the 30-pin ESP32 via serial communication through pins TX2 and RX2 for potential image data transfer.
Cirkit Designer LogoOpen Project in Cirkit Designer

Common Applications and Use Cases

  • IoT devices and smart home automation
  • Wireless communication (Wi-Fi and Bluetooth)
  • Sensor interfacing and data acquisition
  • Robotics and motor control
  • Prototyping and educational projects

Technical Specifications

The ESP32 38-pin Expansion Board is built around the ESP32 microcontroller, which integrates Wi-Fi and Bluetooth capabilities. Below are the key technical details:

Key Technical Details

Parameter Specification
Microcontroller ESP32 (Espressif Systems)
Operating Voltage 3.3V
Input Voltage (VIN) 5V (via USB or external power supply)
GPIO Pins 38
Communication Interfaces UART, SPI, I2C, I2S, PWM, ADC, DAC
Wi-Fi Standard 802.11 b/g/n
Bluetooth Version Bluetooth 4.2 (Classic + BLE)
Flash Memory 4MB (varies by model)
Operating Temperature -40°C to +85°C

Pin Configuration and Descriptions

The ESP32 38-pin Expansion Board provides access to the ESP32's GPIOs and other key interfaces. Below is the pinout description:

Pin Number Pin Name Description
1 GND Ground
2 3V3 3.3V Power Output
3 EN Enable Pin (Active High)
4 IO1 GPIO1 / UART TX
5 IO3 GPIO3 / UART RX
6 IO4 GPIO4
7 IO5 GPIO5
8 IO12 GPIO12 / Touch Sensor / ADC2_CH0
9 IO13 GPIO13 / Touch Sensor / ADC2_CH1
10 IO14 GPIO14 / Touch Sensor / ADC2_CH2
... ... ... (Refer to the full datasheet)
38 IO39 GPIO39 / ADC1_CH3

Note: Some GPIOs have specific functions or limitations (e.g., ADC, DAC, or touch sensing). Refer to the ESP32 datasheet for detailed pin capabilities.

Usage Instructions

How to Use the ESP32 38-pin Expansion Board in a Circuit

  1. Powering the Board:

    • Connect the board to a computer or USB power supply using a micro-USB cable.
    • Alternatively, supply 5V to the VIN pin and GND for external power.
  2. Programming the ESP32:

    • Install the ESP32 board package in the Arduino IDE or use the Espressif IDF (IoT Development Framework).
    • Select the correct board type (e.g., "ESP32 Dev Module") and COM port in the IDE.
    • Write and upload your code to the ESP32 via USB.
  3. Connecting Peripherals:

    • Use jumper wires to connect sensors, actuators, or other modules to the GPIO pins.
    • Ensure proper voltage levels (3.3V logic) to avoid damaging the board.
  4. Using Wi-Fi and Bluetooth:

    • Configure Wi-Fi or Bluetooth settings in your code to enable wireless communication.
    • Use libraries like WiFi.h or BluetoothSerial.h for Arduino-based development.

Important Considerations and Best Practices

  • Voltage Levels: The ESP32 operates at 3.3V logic. Avoid connecting 5V signals directly to GPIO pins. Use level shifters if necessary.
  • Pin Limitations: Some GPIOs (e.g., GPIO0, GPIO2) have specific boot mode functions. Avoid pulling these pins high or low during boot unless required.
  • Power Supply: Ensure a stable power supply, especially when using Wi-Fi or Bluetooth, as these features can cause current spikes.

Example Code for Arduino IDE

Below is an example of how to blink an LED connected to GPIO2:

// 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
}

Tip: Use the onboard LED (usually connected to GPIO2) for quick testing.

Troubleshooting and FAQs

Common Issues and Solutions

  1. Board Not Detected by Computer:

    • Ensure the USB cable is functional and supports data transfer.
    • Install the correct USB-to-serial driver (e.g., CP2102 or CH340).
  2. Upload Fails with "Failed to Connect" Error:

    • Press and hold the "BOOT" button on the board while uploading the code.
    • Check the selected COM port and board type in the Arduino IDE.
  3. Wi-Fi Connection Issues:

    • Verify the SSID and password in your code.
    • Ensure the router is within range and supports 2.4GHz Wi-Fi.
  4. GPIO Pin Not Working:

    • Check if the pin is reserved for specific functions (e.g., boot mode).
    • Avoid using ADC2 pins when Wi-Fi is active, as they share resources.

FAQs

Q: Can I power the ESP32 38-pin Expansion Board with a battery?
A: Yes, you can use a 3.7V LiPo battery with a suitable voltage regulator or connect a 5V source to the VIN pin.

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

Q: Can I use the board with 5V logic sensors?
A: No, the ESP32 operates at 3.3V logic. Use level shifters to interface with 5V devices.

Q: What is the maximum current draw of the ESP32?
A: The ESP32 can draw up to 500mA during peak operation (e.g., Wi-Fi transmission). Ensure your power source can handle this.

By following this documentation, you can effectively use the ESP32 38-pin Expansion Board for your IoT and embedded projects.