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

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

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

Introduction

The Durian ESP32 is a powerful and versatile microcontroller board designed for a wide range of applications, particularly in the Internet of Things (IoT) domain. It features built-in Wi-Fi and Bluetooth capabilities, making it ideal for wireless communication and smart device integration. With multiple GPIO pins, analog-to-digital converters (ADCs), and support for various programming environments such as Arduino IDE, MicroPython, and ESP-IDF, the Durian ESP32 is suitable for both hobbyists and professionals.

Explore Projects Built with Durian ESP32

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 NTP Clock with DHT22 Temperature Sensor and WS2812 LED Matrix Display
Image of date time and temperature display : A project utilizing Durian ESP32 in a practical application
This circuit features an ESP32 Devkit V1 microcontroller connected to a DHT22 temperature and humidity sensor and an 8x8 WS2812 RGB LED matrix. The ESP32 reads temperature data from the DHT22 sensor and displays the current date, time, and temperature on the LED matrix, with date and time synchronized via NTP (Network Time Protocol). The ESP32 provides power to both the DHT22 and the LED matrix and communicates with the DHT22 via GPIO 4 and with the LED matrix via GPIO 5.
Cirkit Designer LogoOpen Project in Cirkit Designer
ESP32-Based Environmental Monitoring System with Water Flow Sensing
Image of Water: A project utilizing Durian ESP32 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 Audio Player with LED Indicators and Battery Charging
Image of Device Classification Pil (LED): A project utilizing Durian ESP32 in a practical application
This circuit features an ESP32 Mini microcontroller connected to a DFPlayer Mini MP3 module for audio playback, with a loudspeaker attached for sound output. The ESP32 controls two LEDs (green and red) and reads an analog value from a potentiometer. Power management is handled by a TP4056 charging module connected to an 18650 battery, providing power to the ESP32 and other components.
Cirkit Designer LogoOpen Project in Cirkit Designer
ESP32-Based Smart Environmental Monitoring System with Wi-Fi Connectivity
Image of compost project: A project utilizing Durian ESP32 in a practical application
This circuit features an ESP32 microcontroller interfaced with various sensors including a DHT22 for humidity and temperature, a DS18B20 for temperature, an MH-Z19B for CO2 levels, and an HX711 module for weight measurement. Additionally, it includes a TFT display for visual output, a buzzer for audio alerts, and a fan for ventilation, all powered and controlled by the ESP32.
Cirkit Designer LogoOpen Project in Cirkit Designer

Explore Projects Built with Durian ESP32

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 date time and temperature display : A project utilizing Durian ESP32 in a practical application
ESP32-Based NTP Clock with DHT22 Temperature Sensor and WS2812 LED Matrix Display
This circuit features an ESP32 Devkit V1 microcontroller connected to a DHT22 temperature and humidity sensor and an 8x8 WS2812 RGB LED matrix. The ESP32 reads temperature data from the DHT22 sensor and displays the current date, time, and temperature on the LED matrix, with date and time synchronized via NTP (Network Time Protocol). The ESP32 provides power to both the DHT22 and the LED matrix and communicates with the DHT22 via GPIO 4 and with the LED matrix via GPIO 5.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of Water: A project utilizing Durian ESP32 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 Device Classification Pil (LED): A project utilizing Durian ESP32 in a practical application
ESP32-Based Audio Player with LED Indicators and Battery Charging
This circuit features an ESP32 Mini microcontroller connected to a DFPlayer Mini MP3 module for audio playback, with a loudspeaker attached for sound output. The ESP32 controls two LEDs (green and red) and reads an analog value from a potentiometer. Power management is handled by a TP4056 charging module connected to an 18650 battery, providing power to the ESP32 and other components.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of compost project: A project utilizing Durian ESP32 in a practical application
ESP32-Based Smart Environmental Monitoring System with Wi-Fi Connectivity
This circuit features an ESP32 microcontroller interfaced with various sensors including a DHT22 for humidity and temperature, a DS18B20 for temperature, an MH-Z19B for CO2 levels, and an HX711 module for weight measurement. Additionally, it includes a TFT display for visual output, a buzzer for audio alerts, and a fan for ventilation, all powered and 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 automation systems
  • Wearable technology
  • Data logging and remote monitoring
  • Prototyping and educational projects

Technical Specifications

The Durian ESP32 offers robust hardware capabilities to support a variety of applications. Below are its key technical specifications:

Specification Details
Microcontroller Dual-core Xtensa® 32-bit LX6
Clock Speed Up to 240 MHz
Flash Memory 4 MB
SRAM 520 KB
Wi-Fi 802.11 b/g/n
Bluetooth v4.2 BR/EDR and BLE
Operating Voltage 3.3V
Input Voltage (VIN) 5V
GPIO Pins 34
ADC Channels 18 (12-bit resolution)
DAC Channels 2
Communication Interfaces UART, SPI, I2C, I2S, CAN
Power Consumption Ultra-low power modes available
Dimensions 51mm x 25.5mm

Pin Configuration and Descriptions

The Durian ESP32 has a total of 38 pins, with the following key functionalities:

Pin Name Description
1 VIN Input voltage (5V)
2 GND Ground
3 3V3 3.3V output
4-39 GPIO0-GPIO39 General-purpose input/output pins
34-39 ADC1 Channels Analog-to-digital converter inputs
25, 26 DAC1, DAC2 Digital-to-analog converter outputs
21, 22 SDA, SCL I2C communication pins
16, 17 RX, TX UART communication pins
18, 19 SCK, MISO SPI clock and data pins

Usage Instructions

The Durian ESP32 is easy to integrate into a variety of projects. Below are the steps and best practices for using the board:

How to Use the Durian ESP32 in a Circuit

  1. Powering the Board:

    • Use the VIN pin to supply 5V or connect the board via a USB cable to your computer or power source.
    • Ensure the power supply is stable to avoid damaging the board.
  2. Connecting Peripherals:

    • Use the GPIO pins to connect sensors, actuators, or other peripherals.
    • For analog sensors, connect them to the ADC pins (e.g., GPIO34-GPIO39).
  3. Programming the Board:

    • Install the Arduino IDE or another supported environment (e.g., MicroPython or ESP-IDF).
    • Select "ESP32 Dev Module" as the board in the Arduino IDE.
    • Connect the board to your computer via USB and upload your code.

Example Code for Arduino IDE

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

// Example: Blink an LED on GPIO2
// Ensure the LED is connected to GPIO2 with a current-limiting resistor.

#define LED_PIN 2  // Define the GPIO pin for the LED

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

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

Important Considerations and Best Practices

  • Voltage Levels: The GPIO pins operate at 3.3V. Avoid applying 5V directly to these pins to prevent damage.
  • Power Consumption: Use the ultra-low power modes for battery-powered applications.
  • Wi-Fi and Bluetooth: Avoid placing the board near metal objects or enclosures that may interfere with wireless signals.

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 the Durian ESP32.
  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 is within range and not overloaded.
  4. GPIO pin not working:

    • Confirm the pin is not being used for another function (e.g., ADC, UART).
    • Check for short circuits or incorrect wiring.

FAQs

  • Can I power the Durian ESP32 with a battery?
    Yes, you can use a 3.7V LiPo battery connected to the 3V3 pin or a 5V source to the VIN pin.

  • What is the maximum current output of the GPIO pins?
    Each GPIO pin can source or sink up to 12mA. For higher currents, use an external transistor or relay.

  • Can I use the Durian ESP32 with MicroPython?
    Yes, the Durian ESP32 supports MicroPython. Flash the MicroPython firmware to the board and use a compatible IDE like Thonny.

By following this documentation, you can effectively utilize the Durian ESP32 for your projects and troubleshoot common issues with ease.