ESP32 Tutorials: Hands-On Projects with Full Code
Hands-on ESP32 projects with full code and explanations. Every one of them runs on a real ESP32 board in our remote lab, live on camera, without buying a single part.
▶ Run it on a real boardFree as a guest for a few minutes, or with your university account
ESP32 tutorials
Traffic lightBuild a three-LED traffic light on an ESP32: wiring, full Arduino code, how digitalWrite and delay work, and run it on a real board from home.
Switch and LEDRead a switch on an ESP32 with digitalRead and drive an LED from it, with a pull-down resistor and a millis()-based debounce. Full code and explanation.
DHT11 with OLEDRead temperature and humidity from a DHT11 with an ESP32 and show them on an SSD1306 OLED over I2C. Libraries, wiring, full code, and fixing nan readings.
HC-SR04 distanceMeasure distance with an HC-SR04 ultrasonic sensor and an ESP32: the TRIG pulse, pulseIn(), converting to centimetres, and an OLED readout with a bar. Full code and explanation.
SG90 servoMove an SG90 servo with an ESP32 and the ESP32Servo library to any angle from 0 to 180 typed into the Serial Monitor. Full code and how servo PWM pulses work.
DS3502 digital potUse a DS3502 digital potentiometer with an ESP32 over I2C: set the wiper in code, read the voltage with analogReadMilliVolts(), and turn it into LED PWM. Full code and voltage warnings.
AC dimmerHow an ESP32 dims a 230 V lamp with a dimmer module: zero-cross detection with an interrupt, phase-angle control, and the full code. With safety warnings.