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

How to Use HiLetGo ESP-32: Examples, Pinouts, and Specs

Image of HiLetGo ESP-32Design with HiLetGo ESP-32 in Cirkit Designer

Introduction

The HiLetGo ESP-32 is a versatile and powerful microcontroller development board that leverages the capabilities of the ESP32 chip. This board is widely used in the Internet of Things (IoT) projects due to its integrated Bluetooth and WiFi functionalities. It is suitable for a variety of applications, including smart home devices, wireless sensors, and other connected gadgets.

Explore Projects Built with HiLetGo ESP-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 ESP32-Based Sensor Monitoring System with OLED Display and E-Stop: A project utilizing HiLetGo ESP-32 in a practical application
ESP32-Based Sensor Monitoring System with OLED Display and E-Stop

This circuit features an ESP32 microcontroller that interfaces with a variety of sensors and output devices. It is powered by a Lipo battery through a buck converter, ensuring a stable voltage supply. The ESP32 collects data from a DHT11 temperature and humidity sensor and a vibration sensor, controls a buzzer, and displays information on an OLED screen. An emergency stop (E Stop) is connected for safety purposes, allowing the system to be quickly deactivated.

Open Project in Cirkit Designer
Image of ESP32-Based Smart Weather Station with Wi-Fi Connectivity: A project utilizing HiLetGo ESP-32 in a practical application
ESP32-Based Smart Weather Station with Wi-Fi Connectivity

This circuit features an ESP32 microcontroller interfacing with various sensors and modules, including a DHT22 temperature and humidity sensor, an ESP32 CAM for image capture, an I2C LCD screen for display, a load cell with an HX711 interface for weight measurement, and a buzzer for audio alerts. The ESP32 handles data acquisition, processing, and communication with these peripherals to create a multi-functional monitoring and alert system.

Open Project in Cirkit Designer
Image of ESP32-Based Detection System with IR Sensors and Servo Actuators: A project utilizing HiLetGo ESP-32 in a practical application
ESP32-Based Detection System with IR Sensors and Servo Actuators

This circuit features an ESP32 microcontroller connected to multiple peripherals. Four IR sensors are interfaced with the ESP32's GPIO pins (D34, D32, D33, D27) to likely detect objects or motion. Two servo motors are controlled by the ESP32 (via pins D14 and D15), and an I2C LCD screen is connected for display purposes (using SDA and SCL lines on pins D22 and D21). All components share a common ground and are powered by a shared voltage supply.

Open Project in Cirkit Designer

Technical Specifications

Key Features

Pin Configuration

Pin Number Function Description
1 3V3 3.3V power supply input
2 GND Ground
3-18 GPIO0 - GPIO15 General-purpose input/output pins
19 ADC1_CH0 - CH5 Analog-to-digital converter channels 0 to 5
20 DAC1, DAC2 Digital-to-analog converter channels 1 and 2
21 EN Chip enable, active high
22 VIN Voltage input for battery or unregulated power supply

Usage Instructions

Basic Setup

To use the HiLetGo ESP-32 in a circuit:

  1. Connect the 3V3 pin to a 3.3V power supply.
  2. Connect the GND pin to the ground of the power supply.
  3. Use the GPIO pins for digital input/output as required by your application.
  4. If analog input is needed, connect sensors to the ADC pins.
  5. For analog output, utilize the DAC pins.

Programming

The ESP-32 can be programmed using the Arduino IDE or other development environments that support the ESP32 platform. To program the board:

  1. Install the ESP32 board package in the Arduino IDE.
  2. Select the correct board and port in the Arduino IDE.
  3. Write your code and upload it to the board.

Example Code

Here is a simple example of how to blink an LED using the ESP-32 and Arduino IDE:

// Define the LED pin
const int LED_PIN = 2; // Use GPIO2 for the built-in LED

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 a second
  // Turn the LED off
  digitalWrite(LED_PIN, LOW);
  delay(1000); // Wait for a second
}

Ensure that your code comments are concise and do not exceed 80 characters in line length.

Troubleshooting and FAQs

Common Issues

FAQs

Q: Can the ESP-32 be powered by batteries? A: Yes, the ESP-32 can be powered by batteries connected to the VIN pin.

Q: How do I connect to WiFi using the ESP-32? A: Use the WiFi.h library in your Arduino code to connect to WiFi networks.

Q: What is the maximum current that the GPIO pins can handle? A: Each GPIO pin can source or sink up to 12 mA.

Q: How can I save power when running on batteries? A: Utilize the ESP32's deep sleep mode to significantly reduce power consumption when the device is not active.

For further assistance, consult the ESP32 datasheet and the HiLetGo ESP-32 forums for community support.