The ESP32 NodeMCU Modul WiFi Entwicklungsboard mit CP2102, manufactured by AZDelivery (Part ID: ESP32S Dev Kit C), is a powerful and versatile development board designed for Internet of Things (IoT) applications. It features the ESP32 chip, which integrates WiFi and Bluetooth capabilities, making it ideal for wireless communication projects. The board also includes a CP2102 USB-to-UART bridge, simplifying programming and serial communication with a computer.
The following table outlines the key technical details of the ESP32 NodeMCU Modul:
Parameter | Specification |
---|---|
Microcontroller | ESP32 Dual-Core Xtensa LX6 |
Clock Speed | Up to 240 MHz |
Flash Memory | 4 MB (varies by model) |
SRAM | 520 KB |
WiFi | 802.11 b/g/n (2.4 GHz) |
Bluetooth | Bluetooth 4.2 and BLE |
Operating Voltage | 3.3 V |
Input Voltage (via USB) | 5 V |
GPIO Pins | 30 (multipurpose, including ADC, DAC, PWM, I2C, SPI) |
USB-to-UART Bridge | CP2102 |
Dimensions | 58 mm x 25.5 mm |
The ESP32 NodeMCU Modul has a total of 30 GPIO pins, which can be used for various purposes. Below is a table summarizing the key pins and their functions:
Pin | Function | Description |
---|---|---|
VIN | Power Input | Connect to 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 | Active-high pin to enable the chip. |
IO0 | GPIO0 / Boot Mode | Used for boot mode selection during programming. |
IO2 | GPIO2 | General-purpose I/O pin. |
IO4 | GPIO4 | General-purpose I/O pin. |
IO5 | GPIO5 | General-purpose I/O pin. |
IO12 | GPIO12 / ADC2_CH5 | Can be used as an analog input or digital I/O. |
IO13 | GPIO13 / ADC2_CH4 | Can be used as an analog input or digital I/O. |
IO14 | GPIO14 / ADC2_CH6 | Can be used as an analog input or digital I/O. |
IO15 | GPIO15 / ADC2_CH3 | Can be used as an analog input or digital I/O. |
IO16 | GPIO16 / UART2_RXD | Can be used as a UART receive pin or digital I/O. |
IO17 | GPIO17 / UART2_TXD | Can be used as a UART transmit pin or digital I/O. |
IO18 | GPIO18 / SPI_CLK | SPI clock pin or general-purpose I/O. |
IO19 | GPIO19 / SPI_MISO | SPI MISO pin or general-purpose I/O. |
IO21 | GPIO21 / I2C_SDA | I2C data pin or general-purpose I/O. |
IO22 | GPIO22 / I2C_SCL | I2C clock pin or general-purpose I/O. |
IO23 | GPIO23 / SPI_MOSI | SPI MOSI pin or general-purpose I/O. |
IO25 | GPIO25 / DAC1 | Can be used as a DAC output or digital I/O. |
IO26 | GPIO26 / DAC2 | Can be used as a DAC output or digital I/O. |
IO27 | GPIO27 / ADC2_CH7 | Can be used as an analog input or digital I/O. |
IO32 | GPIO32 / ADC1_CH4 | Can be used as an analog input or digital I/O. |
IO33 | GPIO33 / ADC1_CH5 | Can be used as an analog input or digital I/O. |
IO34 | GPIO34 / ADC1_CH6 (Input Only) | Analog input only. |
IO35 | GPIO35 / ADC1_CH7 (Input Only) | Analog input only. |
Powering the Board:
Programming the Board:
ESP32 Dev Module
) and COM port in the Arduino IDE.Connecting Peripherals:
Uploading Code:
BOOT
button while uploading code to put the board in programming mode.BOOT
button once the upload begins.The following example demonstrates how to blink an LED connected to GPIO2:
// Define the GPIO pin where the LED is connected
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
}
BOOT
button for programming mode if the board does not automatically enter it.Problem: The board is not detected by the computer.
Solution:
Problem: Code upload fails with a timeout error.
Solution:
BOOT
button while uploading the code. Problem: The board resets unexpectedly during operation.
Solution:
Q: Can I use 5V sensors with the ESP32?
A: Yes, but you will need a level shifter to convert 5V signals to 3.3V.
Q: How do I enable deep sleep mode?
A: Use the esp_deep_sleep_start()
function in your code. Connect GPIO16 to the RST pin for wake-up functionality.
Q: Can I use the ESP32 with a battery?
A: Yes, connect a 3.7V LiPo battery to the VIN and GND pins. Use a voltage regulator if necessary.