

The Lolin32 ESP32, manufactured by WeMos, is a compact development board based on the powerful ESP32 microcontroller. It features integrated Wi-Fi and Bluetooth capabilities, making it an excellent choice for Internet of Things (IoT) projects, wireless communication, and rapid prototyping. Its small form factor and versatile functionality allow developers to create connected devices with ease.








The Lolin32 ESP32 is designed to provide robust performance while maintaining a compact size. Below are its key technical specifications:
| Parameter | Specification |
|---|---|
| Microcontroller | ESP32 (dual-core, 32-bit Xtensa LX6) |
| Clock Speed | Up to 240 MHz |
| Flash Memory | 4 MB (SPI Flash) |
| SRAM | 520 KB |
| Wi-Fi | 802.11 b/g/n (2.4 GHz) |
| Bluetooth | Bluetooth 4.2 (Classic and BLE) |
| Operating Voltage | 3.3V |
| Input Voltage (VIN) | 5V (via USB or VIN pin) |
| GPIO Pins | 32 (multipurpose, including ADC, DAC, PWM, I2C, SPI) |
| ADC Resolution | 12-bit |
| DAC Resolution | 8-bit |
| USB Interface | Micro-USB (for programming and power) |
| Dimensions | 50 mm x 25.4 mm |
The Lolin32 ESP32 features a variety of pins for different functionalities. Below is the pinout description:
| Pin Name | Function | Description |
|---|---|---|
| VIN | Power Input | Accepts 5V input for powering the board. |
| 3V3 | 3.3V Output | Provides 3.3V output for external components. |
| GND | Ground | Common ground for the circuit. |
| EN | Enable | Enables or disables the ESP32 chip. |
| GPIO0 | General Purpose I/O | Used for boot mode selection or general I/O. |
| GPIO2 | General Purpose I/O | Can be used as an output or input pin. |
| GPIO12-19 | General Purpose I/O | Multipurpose pins for ADC, PWM, I2C, SPI, etc. |
| TXD0, RXD0 | UART0 (TX, RX) | Default UART for serial communication. |
| ADC1_0-ADC1_7 | Analog Input | 12-bit ADC channels for analog signal input. |
| DAC1, DAC2 | Digital-to-Analog Converter | 8-bit DAC output pins. |
| I2C (SDA, SCL) | I2C Communication | Pins for I2C communication (software-configurable). |
| SPI (MOSI, MISO, SCK, CS) | SPI Communication | Pins for SPI communication (software-configurable). |
The Lolin32 ESP32 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:
https://dl.espressif.com/dl/package_esp32_index.json
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
}
Problem: The board is not detected by the computer.
Problem: Uploading code fails with a timeout error.
Problem: Wi-Fi or Bluetooth is not working.
Problem: GPIO pins are not functioning as expected.
Q: Can I power the Lolin32 ESP32 with a battery?
Q: What is the maximum current output of the 3.3V pin?
Q: Can I use the Lolin32 ESP32 with MicroPython?
By following this documentation, you can effectively utilize the Lolin32 ESP32 for your projects and troubleshoot common issues with ease.