Tutorials · Projects · Assistant
Learn the ESP32 by building real things.
Step-by-step guides that explain the gotchas, complete projects you can wire up this weekend, and an assistant that helps you debug your own build.
1// Blink: the first sketch on any new board2const int LED_PIN = 2; // check your board's LED pin34void setup() {5 pinMode(LED_PIN, OUTPUT);6 Serial.begin(115200);7}89void loop() {10 digitalWrite(LED_PIN, !digitalRead(LED_PIN));11 Serial.println("tick");12 delay(500);13}
Start here
All articles →Getting Started with the ESP32 in Arduino IDE
Install the ESP32 Arduino core, pick the right board and port, and upload a first Blink and Serial sketch, plus fixes for the upload errors almost everyone hits.
ESP32 GPIO Pin Guide: Which Pins Are Safe to Use
Strapping pins, flash pins, input-only pins, ADC1 vs ADC2, touch pins and the default I2C and SPI pins on the original ESP32 (WROOM-32), with a table of the pins to use first.
Connect an ESP32 to Wi-Fi
Join a Wi-Fi network in station mode with the ESP32 Arduino core: connect with a timeout, print the IP address, recover from dropouts, and keep your password out of your code.
ESP32 Deep Sleep Basics: Timer and Button Wakeup
Put an ESP32 into deep sleep, wake it with a timer or a button, keep data across sleeps with RTC_DATA_ATTR, and see why dev boards draw far more than the datasheet says.
Build a project
All projects →Wi-Fi Weather Station with a BME280
Read temperature, humidity and pressure from a BME280 over I2C and serve a live dashboard from the ESP32 itself, with a JSON API any other program can use.
Soil Moisture Sensor with MQTT and Deep Sleep
Read a capacitive soil moisture sensor on an ADC1 pin, calibrate it to a 0–100% scale, publish the reading to an MQTT broker, and deep sleep between readings.
AI Voice Assistant on an ESP32-S3 with XiaoZhi
Wire a microphone, an amplifier and an OLED to an ESP32-S3, flash the open-source XiaoZhi firmware, talk to it, and switch an LED by voice through MCP tools, including one you write yourself.
Stuck on your own build?
Sign in and describe your board, wiring and what you see on the serial monitor. The assistant answers with the specific chip in mind, points you to the relevant guide on this site, and keeps your conversations so you can pick up where you left off.
Ask the assistant