The Lolin32 ESP32 is a versatile development board created by WeMos, based on the Espressif ESP32 microcontroller. This board is equipped with WiFi and Bluetooth functionalities, making it a powerful platform for Internet of Things (IoT) projects and wireless applications. Its low power consumption and wide range of features make it suitable for hobbyists, educators, and professionals looking to develop connected devices.
Pin Number | Function | Description |
---|---|---|
1 | GND | Ground |
2 | 3V3 | 3.3V power supply input |
3 | EN | Reset (active low) |
4-17 | GPIO 1-14 | General Purpose Input/Output pins |
18-19 | ADC1-2 | Analog to Digital Converter channels 1-2 |
20-21 | DAC1-2 | Digital to Analog Converter channels 1-2 |
22 | 5V | 5V power supply input via USB |
23 | VIN | 7-12V power supply input |
24 | TX0 | UART0 transmit |
25 | RX0 | UART0 receive |
26 | SDA | I2C data |
27 | SCL | I2C clock |
28 | GND | Ground |
Powering the Board:
Connecting to a Computer:
Programming the Board:
Using I/O Pins:
Board not recognized by computer:
Unable to upload code:
Unexpected behavior in circuits:
Here is a simple example of how to blink an LED connected to a GPIO pin on the Lolin32 ESP32 using the Arduino IDE:
// Define the LED pin
const int ledPin = 5; // Use GPIO number where your LED is connected
void setup() {
// Initialize the LED pin as an output
pinMode(ledPin, OUTPUT);
}
void loop() {
// Turn the LED on (HIGH is the voltage level)
digitalWrite(ledPin, HIGH);
// Wait for a second
delay(1000);
// Turn the LED off by making the voltage LOW
digitalWrite(ledPin, LOW);
// Wait for a second
delay(1000);
}
Remember to configure the Arduino IDE with the correct board settings for the Lolin32 ESP32 before uploading the code. This example assumes that an LED with an appropriate current-limiting resistor is connected to GPIO 5.
Note: This documentation is a general guide and does not cover all aspects of the Lolin32 ESP32. For more detailed information, refer to the manufacturer's datasheet and technical resources.