Learn by building

ESP32 and Arduino, one practical project at a time. Follow lessons with circuit diagrams, downloadable code and exercises at your own pace.

YOUR LEARNING PATH

First time using ESP32? Start here

Start without programming experience. Follow the prerequisites at each stage; reading the lessons requires no account.

Start lesson 01
  1. Meet your equipment

    Identify the board and a USB data cable.

  2. Prepare your development environment

    Install the documented Arduino IDE and ESP32 board package.

  3. Run your first program

    Read Serial Monitor, then follow lessons 02 and 03 for an LED and a button.

  4. Connect your first sensor

    Measure light. Complete the linked prerequisites before wiring.

    Before this step: Meet the ESP32: your first Arduino program · Your first LED: from circuit to light · A pushbutton that toggles an LED

  5. Build a small project

    Combine DHT11 and OLED after their individual lessons.

    Before this step: Your first LED: from circuit to light · Temperature and humidity: your first DHT11 readings · OLED display: show data without a computer

Check the equipment guide

Showing 24 of 24 available courses

First steps

01Beginner

Getting started with ESP32 and Arduino

Meet the ESP32: your first Arduino program

Set up Arduino IDE, connect an ESP32, and observe a greeting, message counter, and elapsed time in Serial Monitor.

Before you start

No programming experience is required. Basic familiarity with files and installing software on a computer is sufficient.

Required equipment
  • Development board with a classic ESP32-WROOM-32 module
  • USB data and power cable

Equipment from the basic kit

02Beginner

Getting started with ESP32 and Arduino

Your first LED: from circuit to light

Connect an LED and series resistor to GPIO25, program a blink, and connect code instructions with a working circuit.

Before you start

Complete course 01: configure Arduino IDE and independently upload a sketch to a classic ESP32.

Required equipment
  • Development board with a classic ESP32-WROOM-32 module
  • USB data and power cable
  • Solderless breadboard
  • Red LED
  • 220 Ω resistor
  • Jumper wires
03Beginner

Getting started with ESP32 and Arduino

A pushbutton that toggles an LED

Connect a button and LED, recognise one press as one event, and debounce the input using a 30 ms stability check.

Before you start

Complete courses 01 and 02: uploading Arduino sketches, using Serial Monitor and connecting an LED with a series resistor.

Required equipment
  • Development board with a classic ESP32-WROOM-32 module
  • USB data and power cable
  • Solderless breadboard
  • Red LED
  • 220 Ω resistor
  • Momentary pushbutton
  • Jumper wires
04Beginner

Getting started with ESP32 and Arduino

Build a traffic light

Program a four-phase traffic light with three LEDs and a ten-second cycle. Learn state tables and timing with millis().

Before you start

Courses 01 and 02 provide the required uploading and LED wiring skills. Experience with millis() from course 03 is helpful.

Required equipment
  • Development board with a classic ESP32-WROOM-32 module
  • USB data and power cable
  • Solderless breadboard
  • Red LED
  • Yellow LED
  • Green LED
  • 220 Ω resistor
  • Jumper wires
05Beginner

Getting started with ESP32 and Arduino

Adjust LED brightness with a potentiometer

Connect a 10 kΩ potentiometer and an LED, read an ESP32 analogue input and scale the reading into PWM to adjust brightness.

Before you start

Complete courses 01 and 02: sketch upload, Serial Monitor, LED polarity and a series resistor.

Required equipment
  • Development board with a classic ESP32-WROOM-32 module
  • USB data and power cable
  • Solderless breadboard
  • Red LED
  • 220 Ω resistor
  • 10 kΩ potentiometer
  • Jumper wires
06Beginner

Getting started with ESP32 and Arduino

RGB laboratory: mix your own colour

Build an RGB mixer where a button selects the red, green or blue channel and one potentiometer adjusts its intensity. Learn common-cathode and common-anode wiring.

Before you start

Complete courses 02, 03 and 05: LED and resistor, INPUT_PULLUP and debouncing, analogue reading and PWM.

Required equipment
  • Development board with a classic ESP32-WROOM-32 module
  • USB data and power cable
  • Solderless breadboard
  • Four-lead RGB LED
  • 220 Ω resistor
  • 10 kΩ potentiometer
  • Momentary pushbutton
  • Jumper wires

Sensors and electronic components

07Beginner

Sensors and measurement displays

Automatic light: a photosensitive module

Adjust a photosensitive module's threshold, identify its dark-state output and switch an LED after 50 ms of stable input.

Before you start

Complete courses 01, 02 and 03: the Arduino environment, Serial Monitor, an LED with a resistor and filtering button transitions.

Required equipment
  • Development board with a classic ESP32-WROOM-32 module
  • USB data and power cable
  • Solderless breadboard
  • Light sensor module with digital output
  • Red LED
  • 220 Ω resistor
  • Jumper wires
08Beginner

Sensors and measurement displays

IR counter: one arrival, one event

Connect a reflective IR module, filter its digital output and count new detections only after an accepted clear state.

Before you start

Complete courses 03 and 07: button events, digital sensor outputs, polarity and time-based stability checks.

Required equipment
  • Development board with a classic ESP32-WROOM-32 module
  • USB data and power cable
  • Solderless breadboard
  • Infrared obstacle detection module
  • Red LED
  • 220 Ω resistor
  • Jumper wires
09Beginner

Sensors and measurement displays

A motion-operated light with a PIR sensor

Connect an HC-SR501 to the ESP32 and build an LED light with a 60-second startup wait and a five-second hold after the last active output.

Before you start

Complete courses 04 and 07: timing with millis() and reading a sensor module's digital output. You should also be able to wire an LED with a series resistor.

Required equipment
  • Development board with a classic ESP32-WROOM-32 module
  • USB data and power cable
  • Solderless breadboard
  • HC-SR501 PIR motion sensor
  • Red LED
  • 220 Ω resistor
  • Jumper wires
10Beginner

Sensors and measurement displays

Temperature and humidity: your first DHT11 readings

Read a DHT11 every 2.5 seconds, display temperature and relative humidity in Serial Monitor and handle reading failures without fabricated zero values.

Before you start

Complete courses 01 and 07: uploading sketches, using Serial Monitor and connecting sensor module power with a common ground.

Required equipment
  • Development board with a classic ESP32-WROOM-32 module
  • USB data and power cable
  • Solderless breadboard
  • DHT11 temperature and relative humidity module
  • 10 kΩ resistor
  • Jumper wires
11Beginner

Sensors and measurement displays

OLED display: show data without a computer

Connect an I2C OLED, check its address, and display a potentiometer reading as a number and a graphical bar.

Before you start

Courses 01 and 05: Arduino setup, Serial Monitor, analog readings, and potentiometer wiring.

Required equipment
  • Development board with a classic ESP32-WROOM-32 module
  • USB data and power cable
  • Solderless breadboard
  • 0.96-inch OLED — reference I2C SSD1306 128×64
  • 10 kΩ potentiometer
  • Jumper wires

Equipment from the basic kit

12Beginner

Sensors and measurement displays

Indoor station: temperature, humidity, and OLED

Build a DHT11 indoor station with an OLED, historical temperature extremes, and a temperature indicator LED with hysteresis.

Before you start

Courses 02, 10, and 11: an LED with a resistor, DHT11 readings, and an SSD1306 I2C display.

Required equipment
  • Development board with a classic ESP32-WROOM-32 module
  • USB data and power cable
  • Solderless breadboard
  • DHT11 temperature and relative humidity module
  • 10 kΩ resistor
  • 0.96-inch OLED — reference I2C SSD1306 128×64
  • Red LED
  • 220 Ω resistor
  • Jumper wires
13Beginner

Sound, relays and interactive projects

Audible notifications: an active buzzer and transistor

Trigger two short beeps and one long beep with a button. Build a transistor driver and organise the sound pattern using millis().

Before you start

Course 03: buttons, INPUT_PULLUP and debouncing. Course 07: reliable digital input reading. You should know how to upload a sketch to a classic ESP32.

Required equipment
  • Development board with a classic ESP32-WROOM-32 module
  • USB data and power cable
  • Solderless breadboard
  • Active buzzer — 5 V, up to 20 mA reference
  • Additional PN2222A NPN transistor
  • Additional 1N4148 protective diode
  • 1 kΩ resistor
  • 10 kΩ resistor
  • Momentary pushbutton
  • Jumper wires

Additional components required

14Beginner

Sound, relays and interactive projects

A small synthesizer: potentiometer and passive piezo

Hold a button to play and turn a potentiometer to change pitch from 200 to 2000 Hz. Connect a piezo driver and convert an analogue reading into frequency.

Before you start

Course 05: potentiometers and ADC. Course 13: transistor buzzer control, diode polarity and buttons. The reference uses a classic ESP32 and Arduino-ESP32 3.3.12.

Required equipment
  • Development board with a classic ESP32-WROOM-32 module
  • USB data and power cable
  • Solderless breadboard
  • Passive buzzer — reference piezo transducer
  • Additional PN2222A NPN transistor
  • Additional 1N4148 protective diode
  • 1 kΩ resistor
  • 10 kΩ resistor
  • 220 Ω resistor
  • Momentary pushbutton
  • 10 kΩ potentiometer
  • Jumper wires

Additional components required

15Intermediate

Sound, relays and interactive projects

PIR alarm: controlling states, light and sound

Combine a PIR sensor, a button and an active buzzer into an alarm with warm-up, an exit delay and manual disarming. Learn how states and non-blocking timers coordinate the project.

Before you start

Courses 09 and 13: PIR sensing, a transistor-driven active buzzer, button debouncing and elapsed-time control with millis().

Required equipment
  • Development board with a classic ESP32-WROOM-32 module
  • USB data and power cable
  • Solderless breadboard
  • Active buzzer — 5 V, up to 20 mA reference
  • Additional PN2222A NPN transistor
  • Additional 1N4148 protective diode
  • 1 kΩ resistor
  • 10 kΩ resistor
  • HC-SR501 PIR motion sensor
  • Momentary pushbutton
  • Red LED
  • 220 Ω resistor
  • Jumper wires

Additional components required

16Beginner

Sound, relays and interactive projects

Relay and button: from control signal to switched contact

Control a relay module through an additional NPN transistor and toggle a 3.3 V LED circuit with a button. Explore COM, NO and NC, control polarity and the startup off state.

Before you start

Courses 03 and 13: a button toggle, debouncing, an LED with its resistor and a transistor output stage.

Required equipment
  • Development board with a classic ESP32-WROOM-32 module
  • USB data and power cable
  • Solderless breadboard
  • 5 V two-channel relay module — active LOW
  • Additional PN2222A NPN transistor
  • 1 kΩ resistor
  • 10 kΩ resistor
  • Momentary pushbutton
  • Red LED
  • 220 Ω resistor
  • Jumper wires

Additional components required

17Intermediate

Sound, relays and interactive projects

Cooling model: an adjustable temperature controller

Combine a DHT11, OLED, potentiometer, and relay in a controller model. Distinguish temperature demand from the actual output, apply hysteresis and a minimum switching interval, and switch the indicator LED off on sensor failure.

Before you start

Complete courses 10, 11, and 16: DHT11 readings, OLED addressing, and the relay module with a transistor driver.

Required equipment
  • Development board with a classic ESP32-WROOM-32 module
  • USB data and power cable
  • Solderless breadboard
  • 5 V two-channel relay module — active LOW
  • Additional PN2222A NPN transistor
  • 1 kΩ resistor
  • 10 kΩ resistor
  • Red LED
  • 220 Ω resistor
  • DHT11 temperature and relative humidity module
  • 0.96-inch OLED — reference I2C SSD1306 128×64
  • 10 kΩ potentiometer
  • Jumper wires

Additional components required

18Intermediate

Sound, relays and interactive projects

Reaction game: an LED cue, button, and OLED score

Build a game that waits a random interval, lights an LED, and times a button response. Preserve the raw-edge timestamp through debounce, detect false starts and late responses, and display the best score since reset.

Before you start

Complete courses 03, 04, and 11: a debounced button, millis() timing, and OLED display operation.

Required equipment
  • Development board with a classic ESP32-WROOM-32 module
  • USB data and power cable
  • Solderless breadboard
  • 0.96-inch OLED — reference I2C SSD1306 128×64
  • Momentary pushbutton
  • Red LED
  • 220 Ω resistor
  • Jumper wires

Small practical projects

19Intermediate

Integrated projects and user controls

Automatic light: darkness and motion together

Combine a digital light module and PIR in an automatic LED light. Learn to filter the illumination threshold, extend the hold with motion and clear an earlier event when the room becomes bright.

Before you start

Courses 07 and 09: light module, PIR sensor, digital input readings and observations in Serial Monitor.

Required equipment
  • Development board with a classic ESP32-WROOM-32 module
  • USB data and power cable
  • Solderless breadboard
  • HC-SR501 PIR motion sensor
  • Light sensor module with digital output
  • Yellow LED
  • 220 Ω resistor
  • Jumper wires
20Intermediate

Integrated projects and user controls

Desk alarm: acknowledge and silence an event

Build a PIR alarm with separate monitoring and acknowledgment commands. Silence the sound while retaining the LED indication, require a quiet input before arming and define button priority.

Before you start

Courses 15 and 03: a PIR alarm state machine, INPUT_PULLUP button debouncing and non-blocking elapsed-time control.

Required equipment
  • Development board with a classic ESP32-WROOM-32 module
  • USB data and power cable
  • Solderless breadboard
  • HC-SR501 PIR motion sensor
  • Active buzzer — 5 V, up to 20 mA reference
  • Additional PN2222A NPN transistor
  • Additional 1N4148 protective diode
  • 1 kΩ resistor
  • 10 kΩ resistor
  • Momentary pushbutton
  • Red LED
  • 220 Ω resistor
  • Jumper wires

Additional components required

21Intermediate

Integrated projects and user controls

LED thermostat: cold, in range, warm

Combine a DHT11, potentiometer, and three LEDs in a thermostat model. Set a target from 18 to 30 °C, apply entry thresholds and return-to-target hysteresis, and distinguish valid temperature states from sensor failure.

Before you start

Complete courses 5, 10, and 17: a potentiometer and ADC, DHT11 readings, and temperature-controller hysteresis.

Required equipment
  • Development board with a classic ESP32-WROOM-32 module
  • USB data and power cable
  • Solderless breadboard
  • DHT11 temperature and relative humidity module
  • 10 kΩ potentiometer
  • Red LED
  • Green LED
  • Yellow LED
  • 220 Ω resistor
  • 10 kΩ resistor
  • Jumper wires
22Intermediate

Integrated projects and user controls

Workshop timer: set, pause and signal completion

Set a 10–300 second timer with a potentiometer, display the countdown on an OLED, and add pause, resume, and priority RESET. An active buzzer signals completion, with explicit remaining-time accounting and an explanation of display latency.

Before you start

Complete courses 11, 13, and 18: the SSD1306 OLED, an active buzzer with a transistor, and button events in a timing task.

Required equipment
  • Development board with a classic ESP32-WROOM-32 module
  • USB data and power cable
  • Solderless breadboard
  • 0.96-inch OLED — reference I2C SSD1306 128×64
  • 10 kΩ potentiometer
  • Momentary pushbutton
  • Active buzzer — 5 V, up to 20 mA reference
  • Additional PN2222A NPN transistor
  • Additional 1N4148 protective diode
  • 1 kΩ resistor
  • 10 kΩ resistor
  • Jumper wires

Additional components required

23Intermediate

Integrated projects and user controls

STEM quiz: three answers and RGB feedback

Build an OLED quiz with five STEM questions, A/B/C buttons and RGB feedback for correct and incorrect answers. Store questions in an array and handle held buttons, multiple presses and a new round.

Before you start

Courses 06, 11 and 18: RGB channels and polarity, an I2C OLED, debouncing and interactive game states.

Required equipment
  • Development board with a classic ESP32-WROOM-32 module
  • USB data and power cable
  • Solderless breadboard
  • 0.96-inch OLED — reference I2C SSD1306 128×64
  • Momentary pushbutton
  • Four-lead RGB LED
  • 220 Ω resistor
  • Jumper wires
24Intermediate

Integrated projects and user controls

Two relays: independent channels and all-off control

Control two relay channels through additional NPN transistors and display four states with 3.3 V LED circuits. Handle independent buttons, a prioritised all-off command and the supply budget for both coils.

Before you start

Courses 16 and 20: relay contacts, transistor input stages, multiple buttons and priority for an off command.

Required equipment
  • Development board with a classic ESP32-WROOM-32 module
  • USB data and power cable
  • Solderless breadboard
  • 5 V two-channel relay module — active LOW
  • Additional PN2222A NPN transistor
  • 1 kΩ resistor
  • 10 kΩ resistor
  • 220 Ω resistor
  • Red LED
  • Green LED
  • Momentary pushbutton
  • Jumper wires

Additional components required

Times are editorial estimates. Allow extra time for installation and checking your connections. Equipment lists describe what you need; they do not promise that a kit will be supplied.

A little help before you start

Where do I start without experience?

Follow the path above. Lesson 01 introduces the board, installation, uploading and Serial Monitor. Then follow the numbered lessons and their prerequisites.

How do I check equipment and installation?

Open a lesson and check its equipment table, quantities, board profile and module variants before wiring. The preparation section links to official software instructions and lists required libraries.

How do I continue after a workshop?

Repeat the lesson you used, check the expected result, then try its small challenge and next lesson. Workshop pages distinguish confirmed materials from recommended courses.

Find workshops
How do I ask a question or join a workshop?

Check the status and participation conditions on the individual workshop page. Use its registration form when applications are open. For questions, use the project contact.

Project contact