

The WeAct ESP32H2-N4 is a compact and versatile development board built around the ESP32-H2 chip. This board integrates Wi-Fi and Bluetooth Low Energy (BLE) capabilities, making it an excellent choice for IoT (Internet of Things) applications. It is designed to deliver low power consumption, high performance, and flexibility for developers working on smart devices, home automation, wearables, and other connected systems.








| Parameter | Value |
|---|---|
| Chipset | ESP32-H2 |
| Wireless Connectivity | Wi-Fi (802.11 b/g/n) and Bluetooth Low Energy (BLE 5.0) |
| Operating Voltage | 3.3V |
| Flash Memory | 4MB (integrated) |
| SRAM | 320KB |
| GPIO Pins | 26 (configurable for digital I/O, ADC, PWM, I2C, SPI, UART, etc.) |
| ADC Resolution | 12-bit |
| Operating Temperature | -40°C to +85°C |
| Power Consumption | Ultra-low power consumption in deep sleep mode (<10 µA) |
| Dimensions | 18mm x 25mm |
The WeAct ESP32H2-N4 features a total of 26 GPIO pins, which can be configured for various functions. Below is the pinout description:
| Pin Number | Pin Name | Function | Description |
|---|---|---|---|
| 1 | GND | Ground | Common ground for the board |
| 2 | 3V3 | Power Supply | 3.3V power input/output |
| 3 | GPIO0 | Digital I/O, Boot Mode Selection | Configurable GPIO, used for boot mode |
| 4 | GPIO1 | Digital I/O, UART TX | Configurable GPIO, UART transmit |
| 5 | GPIO2 | Digital I/O, UART RX | Configurable GPIO, UART receive |
| 6 | GPIO3 | Digital I/O, ADC, PWM | Configurable GPIO, analog input, or PWM |
| 7 | GPIO4 | Digital I/O, I2C SDA | Configurable GPIO, I2C data line |
| 8 | GPIO5 | Digital I/O, I2C SCL | Configurable GPIO, I2C clock line |
| 9 | GPIO6 | Digital I/O, SPI MOSI | Configurable GPIO, SPI data out |
| 10 | GPIO7 | Digital I/O, SPI MISO | Configurable GPIO, SPI data in |
| 11 | GPIO8 | Digital I/O, SPI SCK | Configurable GPIO, SPI clock |
| 12 | GPIO9 | Digital I/O, SPI CS | Configurable GPIO, SPI chip select |
| ... | ... | ... | ... |
Note: Refer to the official datasheet for the complete pinout and advanced configurations.
Powering the Board:
3V3 pin and connect the GND pin to the ground of your circuit.Programming the Board:
Connecting Peripherals:
Wireless Communication:
Below is an example of using the WeAct ESP32H2-N4 to read a temperature sensor and send the data over Wi-Fi:
#include <WiFi.h> // Include the Wi-Fi library
// Wi-Fi credentials
const char* ssid = "Your_SSID";
const char* password = "Your_PASSWORD";
void setup() {
Serial.begin(115200); // Initialize serial communication
WiFi.begin(ssid, password); // Connect to Wi-Fi
// Wait for connection
while (WiFi.status() != WL_CONNECTED) {
delay(1000);
Serial.println("Connecting to Wi-Fi...");
}
Serial.println("Connected to Wi-Fi!");
}
void loop() {
// Example: Read temperature sensor data (replace with actual sensor code)
int temperature = analogRead(34); // Read from GPIO34 (ADC pin)
Serial.print("Temperature: ");
Serial.println(temperature);
delay(2000); // Wait 2 seconds before the next reading
}
Note: Replace
Your_SSIDandYour_PASSWORDwith your Wi-Fi network credentials.
Board Not Detected by Computer:
Wi-Fi Connection Fails:
GPIO Pin Not Responding:
High Power Consumption:
Q: Can I power the board with 5V?
Q: Does the board support OTA (Over-the-Air) updates?
Q: How do I reset the board?
Q: Can I use the board with batteries?
This concludes the documentation for the WeAct ESP32H2-N4. For further details, refer to the official datasheet and resources provided by WeAct.