Take your Uno skills onto Wi-Fi and Bluetooth boards
17 lessons in 3 parts that follow the Arduino Uno course: 3.3 V boards and pin maps, NeoPixels, Wi-Fi, web servers, HTTP and JSON, MQTT, Bluetooth LE, deep sleep, FreeRTOS and over-the-air updates.
Not part of the Uno class schedule. Start it once you have finished the Uno course.
Before you start
Each ESP32 lesson assumes these Uno skills and does not teach them again. If one feels shaky, revise that Uno lesson first.
- 03. Arduino IDE 2 & First UploadBoard and port selection, Verify, Upload
- 06. UART Serial & DebuggingSerial printing to watch a sketch (ESP32 sketches use 115200 baud)
- 08. Functions: Naming & Reusing TasksYour own functions - XY(), web handlers and callbacks
- 09. Digital Outputs, RGB LEDs & Buzzers and 10. Digital Inputs, Pull-Ups & DebouncingLEDs with series resistors, INPUT_PULLUP buttons and debouncing
- 11. Non-Blocking Timing & State Machinesmillis() timing so loop() stays responsive - every Wi-Fi sketch depends on it
- 14. Analogue Inputs, ADC & Voltage Dividers and 15. PWM Output & Duty CycleanalogRead, voltage dividers and PWM brightness
- 25. DHT11 / DHT22 Temperature & HumidityReading a DHT11 (used again in ESP32 Lesson 11)
What you need
Every lesson
A classic ESP32 DevKit (IDE board: ESP32 Dev Module), a USB data cable - not charge-only - and Arduino IDE 2 with the esp32 board package.
Bench parts
Breadboard and jumpers, LEDs with 220-330 ohm resistors, a push-button and a 10 k ohm potentiometer - the same parts as the Uno kit.
NeoPixels
An 8-LED WS2812 strip or stick (E06) and an 8x8 WS2812 matrix (E07), an external 5 V supply and a 330-470 ohm data resistor.
Optional
A 2.2 k and a 3.3 k ohm resistor for the divider demo (E03), and the DHT11 from the Uno kit for a challenge (E11).
Network and phone
2.4 GHz Wi-Fi with a known name and password (internet access for E10), a phone or PC on the same network, MQTT Explorer on the PC (E11) and the nRF Connect app on the phone (E13).
Libraries
Adafruit NeoPixel (E06, E07), ArduinoJson by Benoit Blanchon (E10, E17), PubSubClient by Nick O'Leary (E11). Wi-Fi, web server, BLE and OTA libraries come with the board package.
3.3 V rule
ESP32 pins are 3.3 V. Never connect a 5 V signal straight to a GPIO pin - E03 shows how to level-shift safely.
Parts list for each lesson
| Lesson | Parts and preparation |
|---|---|
| E01 | Arduino IDE 2, USB data cable (not charge-only), and one ESP32-family board. Course practicals default to a classic ESP32 DevKit (ESP32 Dev Module). C3/C5/C6/P4 are fine for this intro if you pick the matching Board menu entry. |
| E02 | ESP32 DevKit (classic ESP32 Dev Module recommended), USB data cable, Arduino IDE 2 with esp32 by Espressif Systems installed. |
| E03 | ESP32 DevKit, USB data cable, push-button, LED + 220-330 ohm resistor, jumper wires. Optional: two resistors (e.g. 2.2 k ohm and 3.3 k ohm) for the voltage divider demo. |
| E04 | ESP32 DevKit, 10 k ohm potentiometer, breadboard, jumper wires. |
| E05 | ESP32 DevKit, LED, 220-330 ohm series resistor, 10 k ohm potentiometer, breadboard, jumper wires. |
| E06 | ESP32 DevKit, 8-LED WS2812 / NeoPixel strip or stick, external 5 V supply, ~330-470 ohm data resistor, optional bulk capacitor, jumper wires. Library: Adafruit NeoPixel by Adafruit. |
| E07 | ESP32 DevKit, 8x8 WS2812 / NeoPixel matrix (zig-zag wiring), external 5 V supply, ~330-470 ohm data resistor, jumper wires. Library: Adafruit NeoPixel by Adafruit. |
| E08 | ESP32 DevKit (classic Wi-Fi capable), USB data cable, a 2.4 GHz Wi-Fi network with known name and password, a phone. No external components. |
| E09 | ESP32 DevKit, USB, LED + 220-330 ohm on GPIO 2 (or the on-board LED), a phone or PC on the same Wi-Fi. |
| E10 | ESP32 DevKit, USB, Wi-Fi with internet access. Library: ArduinoJson by Benoit Blanchon. Optional for the challenge: LED + resistor on GPIO 2. |
| E11 | ESP32 DevKit, USB, LED + resistor on GPIO 2 (or the on-board LED). Library: PubSubClient by Nick O'Leary. On your PC: MQTT Explorer (free, mqtt-explorer.com). Optional for the challenge: DHT11 on GPIO 4. |
| E12 | ESP32 DevKit, USB, phone or PC that can join the ESP32's network. |
| E13 | ESP32 board with Bluetooth LE (classic ESP32 or C3/C5/C6 - not P4 without a companion radio). USB data cable, LED + resistor on GPIO 2 (or the on-board LED). Phone with the free nRF Connect app. |
| E14 | ESP32 DevKit, USB data cable. Sketch 2: push-button on GPIO 4 to GND, and the LED on GPIO 2 (or the on-board LED). |
| E15 | ESP32 DevKit, USB cable, two LEDs with 220-330 ohm resistors on GPIO 2 and GPIO 4 (or the on-board LED plus one external LED). |
| E16 | ESP32 DevKit on the same Wi-Fi as your PC, USB for the first upload, LED on GPIO 2 (or the on-board LED). |
| E17 | ESP32 DevKit, USB data cable, 10 k ohm potentiometer on GPIO 34 (stand-in for a room sensor), LED + series resistor on GPIO 2 (alert lamp), breadboard and jumpers, a phone or PC on the same Wi-Fi. Library: ArduinoJson by Benoit Blanchon (from ESP32 Lesson 10). |
The three parts
Work through the lessons in order. Mark each one complete at the top of its page.
Part 1 · Foundations
Meet the board, work safely at 3.3 V, learn the pin map and PWM, then drive NeoPixel strips and matrices.
Introducing the ESP32 Family
Start the ESP32 follow-on course: meet the ESP32 family, learn classic DevKit anatomy, install Espressif support, and complete a reliable first blink/Serial upload.
2-3 hoursE02Why ESP32: Architecture, Memory and When to Leave the Uno
Ask the ESP32 what chip it is and how much memory it has, then decide when an ESP32 is a better choice than the Uno.
2-3 hoursE033.3 V Logic, Power Rails and Level Shifting
Learn the 3.3 V rule that keeps ESP32 pins safe, then wire a button and an LED the safe way.
2-3 hoursE04Pinout, Strapping Pins, ADC, DAC and Touch
Learn which ESP32 pins are safe to use, then read a potentiometer with the 0-4095 ADC and turn the number into LOW, MID or HIGH.
3 hoursE05GPIO, PWM, ADC and UART on ESP32
Use the Uno skills you already have on the ESP32: a pot sets an LED's brightness, and Serial shows it as a percentage.
2-3 hoursE06Addressable RGB LEDs: NeoPixel / WS2812 Strips
Power a short NeoPixel strip safely, fill it with one colour, then send a single dot running along it.
3 hoursE07NeoPixel Matrices and XY Mapping
Treat an 8x8 NeoPixel matrix as a grid: an XY() function turns a column and row into an LED number.
3-4 hoursPart 2 · Wireless
Wi-Fi station and access point modes, a web server you control from a phone, HTTP and JSON, MQTT and Wi-Fi setup without hard-coded passwords.
Wi-Fi Fundamentals: Station vs Access Point
Join your Wi-Fi network and print the ESP32's address, then make the ESP32 create a Wi-Fi network of its own.
3 hoursE09Local Web Server: Control from a Browser
Make the ESP32 serve a web page, then add ON and OFF links that switch an LED from your phone.
3-4 hoursE10HTTP Client, JSON and Cloud APIs
Ask a free weather website for today's temperature, print the reply, then pick the temperature out of the JSON.
4 hoursE11MQTT Publish and Subscribe
Send a counting number to an MQTT broker, then switch an LED by sending a message to the ESP32.
3-4 hoursE12Credentials, Reconnect and SoftAP Provisioning
Try to join Wi-Fi and fall back to the ESP32's own network if it fails, then collect a network name and password from a phone.
3-4 hoursPart 3 · Advanced
Bluetooth LE, deep sleep for battery nodes, FreeRTOS tasks, over-the-air updates and a capstone that combines them.
Bluetooth Low Energy Essentials
Make the ESP32 appear on your phone over Bluetooth LE, then switch an LED by writing 1 or 0 from the phone.
3-4 hoursE14Deep Sleep and Power Management
Save battery: put the ESP32 into deep sleep and wake it with a timer, then with a button.
3 hoursE15FreeRTOS Tasks and Dual-Core Basics
Run two jobs at the same time: a task blinks one LED while loop() blinks another at a different speed.
3 hoursE16Over-the-Air Updates
Upload once over USB, then send the next version of the sketch over Wi-Fi with no cable.
3 hoursE17Capstone: Networked Room Node
Put it together: a web page shows a live room level from a pot, an alert LED lights above a threshold, and /json serves the same data to programs.
4-5 hours