117 dự án

Dự án ESP32

ESP32 là vi điều khiển lõi kép của Espressif có sẵn Wi-Fi và Bluetooth. Nó chạy ở tốc độ tới 240 MHz, có bộ nhớ và số chân nhiều hơn hẳn Arduino Uno mà vẫn rẻ. Bạn lập trình nó trong Arduino IDE sau khi thêm gói bo mạch ESP32, nên phần lớn những gì đã học với Arduino đều dùng được với vài thay đổi nhỏ.

Các dự án ESP32 này dành cho bất kỳ ai muốn điều khiển thiết bị từ điện thoại, lấy dữ liệu từ internet hoặc xây dựng hệ thống nhà thông minh. Mỗi dự án IoT, từ web server và cảnh báo Telegram đến trạm thời tiết, đồng hồ NTP và ghi dữ liệu cảm biến, đều có sơ đồ mạch, code có chú thích và danh sách linh kiện.

Cách bắt đầu: chỉ cần một bo ESP32 DevKit, một cáp USB truyền dữ liệu và một breadboard. Làm quen với bo mạch qua các dự án LED và kết nối Wi-Fi, rồi chuyển sang web server và cảm biến. Hãy nhớ rằng chân ESP32 chạy ở 3,3 V, nên dùng cầu phân áp hoặc mạch chuyển mức khi nối các module xuất tín hiệu 5 V.

10 dự án đầu tiên cho người mới

Làm theo đúng thứ tự này, mỗi dự án thêm một kỹ năng mới dựa trên dự án trước.

  1. 1LED Blink with ESP32LED Blink with ESP32Teaches basic GPIO output usage with ESP32. We achieve a blinking effect by turning an LED on and off from a digital pin. ESP32 version of the classic blink project on Arduino UNO; the basic blink commands in the Arduino environment are the same, but the ESP32's pin layout and 3.3 V GPIO levels differ from those of the Arduino UNO.Cơ bản
  2. 2ESP32 LED Control with Push Button (Push)ESP32 LED Control with Push Button (Push)The LED lights up when the button is pressed and turns off when released. Shows how the ESP32's digital input pin and internal pull-up resistor are used. The INPUT_PULLUP mode eliminates the need for an external resistor.Cơ bản
  3. 3ESP32 LED Control with Pushbutton (Toggle)ESP32 LED Control with Pushbutton (Toggle)Each time the button is pressed the state of the LED changes: if it is on it turns off, if it is off it turns on. Classic toggle pattern. With debounce we clean up the mechanical noise of the pushbutton to ensure a single toggle with a single press.Cơ bản
  4. 4ESP32 Built-in LED BlinkESP32 Built-in LED BlinkBlinking the built-in blue LED on the ESP32 DevKit V1. No external components required! The first project you should try when you buy an ESP32. GPIO 2 is connected to the built-in LED.Cơ bản
  5. 5ESP32 Traffic LightESP32 Traffic LightReal traffic light simulation with 3 LEDs red-yellow-green. Timings close to real traffic logic: red long, yellow short, green long. Classic example of sequential GPIO control.Cơ bản
  6. 6ESP32 Knight Rider LEDESP32 Knight Rider LED6 LEDs moving sequentially from left to right and right to left (Knight Rider style). A basic example of using for loops and arrays. Teaches the logic of direction change.Cơ bản
  7. 7ESP32 Police Strobe Light EffectESP32 Police Strobe Light EffectSimulate the strobe lights of a police car by rapidly flashing red and blue LED groups. Using 2 LEDs in each group makes the effect more dramatic. A classic example of fast toggle pattern and group control.Cơ bản
  8. 8ESP32 LED Fade with PWMESP32 LED Fade with PWMSmoothly changing the brightness of the LED from 0 to max, from max to 0. We control PWM with analogWrite() as in Arduino - the same syntax as ESP32 Arduino Core 3.0+ works without problems. Pin definition + pinMode + analogWrite is enough.Cơ bản
  9. 9ESP32 RGB LED ControlESP32 RGB LED ControlUnlimited color generation with a single RGB LED instead of 3 separate LEDs. As in Arduino, we make a rainbow transition by setting the R/G/B values with analogWrite(). Color theory (such as red+green=yellow) is seen practically.Cơ bản
  10. 10ESP32 Night Light with LDRESP32 Night Light with LDRNight light where the LED automatically turns on in the dark and off in the light. The D0 (digital out) pin of the LDR Sensor Module is used - the dark threshold is set with the small potentiometer on the module, the module itself generates the HIGH/LOW output. ESP32 just reads this signal with digitalRead(), the code is very simple.Cơ bản

Dự án theo độ khó

Cơ bản37 dự án

LED Blink with ESP32
ES-1Cơ bản

LED Blink with ESP32

Teaches basic GPIO output usage with ESP32. We achieve a blinking effect by turning an LED on and off from a digital pin. ESP32 version of the classic blink project on Arduino UNO; the basic blink commands in the Arduino environment are the same, but the ESP32's pin layout and 3.3 V GPIO levels differ from those of the Arduino UNO.

4.7(37)
108
ESP32 LED Control with Push Button (Push)
ES-2Cơ bản

ESP32 LED Control with Push Button (Push)

The LED lights up when the button is pressed and turns off when released. Shows how the ESP32's digital input pin and internal pull-up resistor are used. The INPUT_PULLUP mode eliminates the need for an external resistor.

4.6(36)
57
ESP32 LED Control with Pushbutton (Toggle)
ES-3Cơ bản

ESP32 LED Control with Pushbutton (Toggle)

Each time the button is pressed the state of the LED changes: if it is on it turns off, if it is off it turns on. Classic toggle pattern. With debounce we clean up the mechanical noise of the pushbutton to ensure a single toggle with a single press.

4.6(39)
59
ESP32 Built-in LED Blink
ES-4Cơ bản

ESP32 Built-in LED Blink

Blinking the built-in blue LED on the ESP32 DevKit V1. No external components required! The first project you should try when you buy an ESP32. GPIO 2 is connected to the built-in LED.

4.8(29)
54
ESP32 Traffic Light
ES-5Cơ bản

ESP32 Traffic Light

Real traffic light simulation with 3 LEDs red-yellow-green. Timings close to real traffic logic: red long, yellow short, green long. Classic example of sequential GPIO control.

4.4(22)
45
ESP32 Knight Rider LED
ES-6Cơ bản

ESP32 Knight Rider LED

6 LEDs moving sequentially from left to right and right to left (Knight Rider style). A basic example of using for loops and arrays. Teaches the logic of direction change.

4.5(19)
33
ESP32 Police Strobe Light Effect
ES-7Cơ bản
Premium

ESP32 Police Strobe Light Effect

Simulate the strobe lights of a police car by rapidly flashing red and blue LED groups. Using 2 LEDs in each group makes the effect more dramatic. A classic example of fast toggle pattern and group control.

4.6(21)
36
ESP32 LED Fade with PWM
ES-8Cơ bản

ESP32 LED Fade with PWM

Smoothly changing the brightness of the LED from 0 to max, from max to 0. We control PWM with analogWrite() as in Arduino - the same syntax as ESP32 Arduino Core 3.0+ works without problems. Pin definition + pinMode + analogWrite is enough.

4.8(36)
55
ESP32 RGB LED Control
ES-9Cơ bản

ESP32 RGB LED Control

Unlimited color generation with a single RGB LED instead of 3 separate LEDs. As in Arduino, we make a rainbow transition by setting the R/G/B values with analogWrite(). Color theory (such as red+green=yellow) is seen practically.

4.6(29)
52
ESP32 Night Light with LDR
ES-10Cơ bản
Premium

ESP32 Night Light with LDR

Night light where the LED automatically turns on in the dark and off in the light. The D0 (digital out) pin of the LDR Sensor Module is used - the dark threshold is set with the small potentiometer on the module, the module itself generates the HIGH/LOW output. ESP32 just reads this signal with digitalRead(), the code is very simple.

4.6(17)
30
Reading Light Intensity with the ESP32 LDR Module
ES-11Cơ bản

Reading Light Intensity with the ESP32 LDR Module

Real-time monitoring of the LDR module's raw ADC value and relative light percentage calculated from dark and light reference values in the Serial Monitor. This percentage is not a lux measurement. Teaches the module’s calibration logic. It is ideal to complete this before Project 10, as it is used to determine the threshold value.

4.6(36)
55
ESP32 Melody Playback with Buzzer
ES-12Cơ bản
Premium

ESP32 Melody Playback with Buzzer

Playing a simple melody (Twinkle Twinkle Little Star) with a passive buzzer. We play notes with tone() and noTone() functions like in Arduino - ESP32 works with the same syntax as Arduino Core 3.0+. Passive buzzer must be used (active buzzer does not play melody).

4.8(30)
55
ESP32 Pomodoro Timer (NeoPixel Ring + Button + Buzzer)
ES-43Cơ bản
Premium

ESP32 Pomodoro Timer (NeoPixel Ring + Button + Buzzer)

A glowing desk timer that keeps you off your phone while you study! The 24-LED NeoPixel ring shows the time left like a clock face: work is red, short breaks are green and the long break after every four sessions is blue. In the last 5 seconds the ring flashes and the passive buzzer ticks, then a rainbow celebrates the finished phase. One button starts, pauses and resets, all on an ESP32 without a single delay().

ESP32 8-Bit Sound Effects Box (6 Buttons + OLED + Buzzer + Potentiometer)
ES-62Cơ bản
Premium

ESP32 8-Bit Sound Effects Box (6 Buttons + OLED + Buzzer + Potentiometer)

Every button is a retro game sound! The ESP32 gives six buttons a coin, jump, power-up, laser, explosion and extra-life sound; none of them is a sound file, each one is generated live on a passive buzzer with PWM duty cycle and frequency slides. The 0.96 inch OLED draws a pixel animation for every sound. A potentiometer shifts the pitch from giant to squirrel, and buttons 1 and 6 together record a short beat.

ESP32 Automatic Cat Toy (PIR + 2 Servos + LDR + Buzzer)
ES-63Cơ bản
Premium

ESP32 Automatic Cat Toy (PIR + 2 Servos + LDR + Buzzer)

Keep your cat busy while it is home alone! When the PIR sensor spots the cat, the buzzer chirps like a bird and a feather wand on two SG90 servos moves like prey: mouse dash, hide and seek, zigzag, circle and bug jitter. A game lasts one minute, then the toy rests; when the LDR sees darkness it never plays at night. The moves come from the ESP32's hardware randomness, so the cat cannot learn them.

5.0(1)
ESP32 Retro Push-Button Phone (Keypad + I2C LCD + Buzzer)
ES-65Cơ bản
Premium

ESP32 Retro Push-Button Phone (Keypad + I2C LCD + Buzzer)

An 80s and 90s payphone on your desk! Lift the handset for a 425 Hz dial tone, dial on the 4x4 keypad, and the other end either rings and answers or gives you the busy signal. Credit runs down while you talk, and the line drops when it is gone. There is A–D speed dial, redial and a credit card too, and the I2C LCD shows every step. A fun first look at state machines and timing that never waits.

ESP32 Light-Up Piano Teacher (8 LED Strip + 10 Buttons + Buzzer)
ES-70Cơ bản
Premium

ESP32 Light-Up Piano Teacher (8 LED Strip + 10 Buttons + Buzzer)

Never played the piano? You will play your first song in minutes: the 8 LED strip above the keys lights up the next note in white. The right key plays the note and turns its LED green, a wrong key glows red with a short buzz, and wait 3 seconds for a hint note. TEACH and LISTEN modes, a rainbow play mode, three traditional tunes and an accuracy score with 1-3 stars at the end. Notes play from their frequencies and songs live in two arrays.

ESP32 Robot Dog That Sees You: Wags Its Tail and Barks (HC-SR04 + 2 Servos + Buzzer)
ES-73Cơ bản
Premium

ESP32 Robot Dog That Sees You: Wags Its Tail and Barks (HC-SR04 + 2 Servos + Buzzer)

A robot dog that sleeps and snores when nobody is around, then wakes up when you reach out and tilts its head to say hello. The HC-SR04 is its eyes: the closer you get, the faster the tail servo wags, and under 15 cm it barks "woof woof". Walk away and it waits, then sulks: the head servo turns away and the buzzer sighs. Come back and it can't contain its joy. All built on a state machine, a median filter and non-blocking timing.

ESP32 Baby Cradle Rocker (Servo + I2C LCD + 2 Buttons + Buzzer)
ES-74Cơ bản
Premium

ESP32 Baby Cradle Rocker (Servo + I2C LCD + 2 Buttons + Buzzer)

A helper for tired parents: an SG90 servo rocks a toy cradle with a soft, sine-like swing while a buzzer quietly plays Brahms' Lullaby. Two buttons give you 3 speeds (SLOW, MEDIUM, FAST), lullaby on/off and a 10, 20 or 30 minute timer, and the I2C LCD shows the mode and the time left. When time is up the cradle never stops dead: the swing fades out slowly and the lullaby slows to its end.

ESP32 Ear Age Test: Can You Hear This Sound? (Speaker + Pot + I2C LCD + Button)
ES-75Cơ bản
Premium

ESP32 Ear Age Test: Can You Hear This Sound? (Speaker + Pot + I2C LCD + Button)

A desk version of the social media "can you hear this sound?" test: a speaker plays beeps that climb step by step from 8 kHz to 20 kHz, and you press the button the moment you stop hearing them. The I2C LCD shows the last frequency you heard and a rough ear age, and a pot sets the volume. It is for fun, not a medical hearing test; start with the volume low.

ESP32 Blooming Tulip Lamp: Opens at a Touch (Servo + 24 LED Ring + TTP223)
ES-76Cơ bản
Premium

ESP32 Blooming Tulip Lamp: Opens at a Touch (Servo + 24 LED Ring + TTP223)

The maker world's favourite blooming flower lamp, with a Tulip Era twist: touch the TTP223 sensor and an SG90 servo slowly opens the petals on a soft speed curve while a 24 LED ring fades in from darkness. While it is open, every touch changes the colour: red, purple, yellow, warm white and a tulip garden that drifts around the ring. Hold it and the tulip closes as the light fades out.

ESP32 Dinner Bell: Phone Notifications to Every Room (Button + 3 LEDs + Buzzer + ntfy)
ES-78Cơ bản
Premium

ESP32 Dinner Bell: Phone Notifications to Every Room (Button + 3 LEDs + Buzzer + ntfy)

Press CALL in the kitchen and everyone's phone gets an ntfy notification. Whoever taps their name in the notification or types "coming" lights up their LED in the kitchen. If someone doesn't show up, the 2nd call is more urgent, the 3rd goes out with top priority and the buzzer plays the Beethoven 5th Symphony motif. HTTP requests run on the ESP32's second core, so the buttons never lag.

ESP32 Piano Stairs: Every Step Plays a Note (5 LDR + 5 LED + Buzzer)
ES-80Cơ bản
Premium

ESP32 Piano Stairs: Every Step Plays a Note (5 LDR + 5 LED + Buzzer)

The world-famous piano stairs experiment on your desk: an LDR light gate on every step catches the shadow of a foot, and the ESP32 plays that step's note on the buzzer and lights its LED. The steps are C D E F G; at start-up every LDR measures the room light and sets its own threshold. Climb the whole flight for a rising tune, go down for a falling one.

ESP32 Exam Countdown and Study Tracker (DS1307 + I2C LCD + 2 Buttons + Buzzer)
ES-83Cơ bản
Premium

ESP32 Exam Countdown and Study Tracker (DS1307 + I2C LCD + 2 Buttons + Buzzer)

A desk counter for students facing a big exam: the I2C LCD shows the days left to the exam and today's study time. The START button starts and pauses a 25 minute session, a 5 minute break begins by itself when it ends, and the buzzer calls you back when the break is over. At midnight the DS1307 clock moves to a new day, the daily time resets and the countdown drops by one.

ESP32 Frost Alarm: Will the Windshield Freeze Tomorrow Morning? (DHT22 + I2C LCD + 2 LEDs + Buzzer)
ES-88Cơ bản
Premium

ESP32 Frost Alarm: Will the Windshield Freeze Tomorrow Morning? (DHT22 + I2C LCD + 2 LEDs + Buzzer)

No more scraping the car window at 7 am: the DHT22 measures outdoor temperature and humidity, the ESP32 works out the dew point and tells you whether the windshield will freeze tonight. The I2C LCD shows temperature, humidity and dew point; green LED means SAFE, blinking red RISK, steady red plus a buzzer alarm FROST. If the air cooled fast in the last hour, it warns you about the night too.

ESP32 Plank Coach: Beeps When Your Hips Drop (MPU-6050 + I2C LCD + Buzzer)
ES-96Cơ bản
Premium

ESP32 Plank Coach: Beeps When Your Hips Drop (MPU-6050 + I2C LCD + Buzzer)

An MPU-6050 taped to your back watches the angle of your body while the ESP32 counts your plank time on the LCD. If your hips drop it warns with low beeps, if they rise with high beeps, and the time pauses right there; fix your form and it carries on. Fail to recover within 3 seconds and the plank ends with your time on the screen. Your best time is stored on the board as the record and survives unplugging. An honest training partner for a New Year fitness resolution.

ESP32 IoT Lamp Switch (Relay)
ES-100Cơ bản
IoT

ESP32 IoT Lamp Switch (Relay)

Turn your lamp on and off from your phone, wherever you are. This project is the step-by-step guide to the Relay lamp IoT template in the app, built with an ESP32 and a relay module and tried with an LED first. Go to Workshop › Devices › Add a device and pick Relay lamp; Ohmi prepares the code with your own device key. The code on this page is an example: the key and Wi-Fi details are placeholders.

ESP32-CAM Wi-Fi Live Camera
ES-104Cơ bản
Premium

ESP32-CAM Wi-Fi Live Camera

A live camera on your phone with a palm-sized board: the ESP32-CAM joins your home Wi-Fi and serves its own web page. Type the address from the Serial Monitor into your phone's browser and the live picture (MJPEG stream) appears. A button on the page turns the on-board flash LED on and off, and a list picks the resolution from 320x240 up to 1280x720. You upload the code with a CH340 USB-TTL adapter; one jumper between IO0 and GND while uploading is all it takes.

5.0(1)
ESP32 Bluetooth Car (L298N)
ES-107Cơ bản
Bluetooth

ESP32 Bluetooth Car (L298N)

Drive a two-wheel car over Bluetooth with the joystick on your phone; no internet needed, works on iPhone and Android. This project is the step-by-step guide to the Car remote Bluetooth template in the app, built with an ESP32, an L298N and two motors. Go to Workshop › Devices › Add a device › Bluetooth, pick Car remote and upload the code from Get the code. The Set up as a Bluetooth panel button on this page opens the wizard with this template.

1
ESP32 Bluetooth LED and Relay
ES-108Cơ bản
Bluetooth

ESP32 Bluetooth LED and Relay

Switch an LED and a relay on and off from your phone over Bluetooth, no internet or Wi-Fi needed. This project is the step-by-step guide to the LED and relay Bluetooth template in the app, built with an ESP32 and a 5 V relay module. Go to Workshop › Devices › Add a device › Bluetooth, pick LED and relay and upload the code with Get the code. The Set up as a Bluetooth panel button on this page opens the wizard with this template too.

ESP32 Bluetooth Temp and Humidity (DHT11)
ES-109Cơ bản
Bluetooth

ESP32 Bluetooth Temp and Humidity (DHT11)

Watch your room's temperature and humidity live on your phone with an ESP32 and a DHT11 sensor: two reading boxes and a chart update every 2 seconds, no internet needed. This project is the step-by-step guide for the Temperature and humidity Bluetooth template in the app. Go to Workshop › Devices › Add a device › Bluetooth, pick the template and upload the code with Get the code. The Set up as a Bluetooth panel button on this page opens the wizard ready to go.

ESP32 Bluetooth Servo Lock
ES-111Cơ bản
Bluetooth

ESP32 Bluetooth Servo Lock

Control an SG90 servo as a small latch from your phone over Bluetooth: lock, open or set the angle, no internet or Wi-Fi needed. This project is the step-by-step guide to the Servo lock Bluetooth template in the app, built with an ESP32, one servo and 3 wires. Go to Workshop › Devices › Add a device › Bluetooth, pick Servo lock and upload the code with Get the code. The Set up as a Bluetooth panel button on this page opens the wizard with this template too.

ESP32 Bluetooth Text on an LCD
ES-112Cơ bản
Bluetooth

ESP32 Bluetooth Text on an LCD

Type a message on your phone and it shows up on a 16x2 LCD over Bluetooth, no internet or Wi-Fi needed. This project is the step-by-step guide to the Text on an LCD Bluetooth template in the app, built with an ESP32 and an I2C LCD. Go to Workshop › Devices › Add a device › Bluetooth, pick Text on an LCD and upload the code with Get the code. The Set up as a Bluetooth panel button on this page opens the wizard with this template too.

ESP32 Bluetooth Parking Sensor (HC-SR04)
ES-113Cơ bản
Bluetooth

ESP32 Bluetooth Parking Sensor (HC-SR04)

Measure the distance to an obstacle with an HC-SR04 and watch it on your phone; the buzzer beeps faster as it gets closer. No internet needed. This is the step-by-step guide to the Parking sensor Bluetooth template in the app, built with an ESP32. Go to Workshop › Devices › Add a device › Bluetooth, pick Parking sensor and upload the code with Get the code. The Set up as a Bluetooth panel button on this page opens the wizard with this template too.

ESP32 Bluetooth Phone Piano
ES-114Cơ bản
Bluetooth

ESP32 Bluetooth Phone Piano

Turn your phone into an 8-key piano: press a key and a passive buzzer on the ESP32 plays that note, no internet or Wi-Fi needed. This is the step-by-step guide to the Phone piano Bluetooth template in the app, built with a buzzer and two jumper wires. Go to Workshop › Devices › Add a device › Bluetooth, pick Phone piano and upload the code with Get the code. The Set up as a Bluetooth panel button on this page opens the wizard with this template too.

ESP32 Excitement Meter: Lie Detector Party Game with a Live OLED Graph (Voltage Divider + SSD1306 + Buzzer)
ES-115Cơ bản
Premium

ESP32 Excitement Meter: Lie Detector Party Game with a Live OLED Graph (Voltage Divider + SSD1306 + Buzzer)

A lie detector style party game for your friends: you rest two fingers on foil electrodes and the ESP32 first measures your calm baseline. As the questions get harder, skin resistance drops and the voltage divider output rises: a live graph climbs on the OLED, the beeps get higher, and a sudden jump sets off a siren. At the end of the round your highest percentage and a record list of the last four players appear. Just for fun, not a real lie detector.

ESP32 Decision Roulette: A Ticking Light Roulette That Slows Down and Stops (24-LED Ring + Button + Passive Buzzer)
ES-117Cơ bản
Premium

ESP32 Decision Roulette: A Ticking Light Roulette That Slows Down and Stops (24-LED Ring + Button + Passive Buzzer)

Press the button: the light races around the 24-LED ring, ticks on every step, slows down and stops on a random LED. The winner blinks and a victory tune plays. Hold the button for a second and the ring splits into 4 slices to choose between four people or four options; 2 slices make yes or no, 6 slices a die. The random numbers come from the hardware random number generator inside the ESP32.

Trung bình57 dự án

ESP32 LED Brightness Control with a Potentiometer (Analog → PWM)
ES-13Trung bình
Premium

ESP32 LED Brightness Control with a Potentiometer (Analog → PWM)

In this project, we control the brightness of an LED analogically using a potentiometer. The ESP32's ADC pin reads the 0-3.3V voltage from the potentiometer, and this value is then converted into a PWM (Pulse Width Modulation) signal and sent to the LED. As a result, as you turn the potentiometer, the LED gradually brightens and dims. With Arduino Core 3.0+, analogWrite() can be used directly; on the ESP32-S2/S3, the ADC resolution is fixed at 12-bit.

4.5(19)
32
ESP32 HC-SR04 Ultrasonic Distance Sensor
ES-14Trung bình

ESP32 HC-SR04 Ultrasonic Distance Sensor

The HC-SR04 ultrasonic sensor measures distance by timing how long its sound pulse takes to bounce off an object and return (time of flight). In this project the ESP32 sends a 10-microsecond pulse to the TRIG pin and reads the echo time from the ECHO pin with pulseIn(). The distance is shown in cm on a 16x2 I2C LCD. The HC-SR04 runs on 5V, so the ECHO pin needs a voltage divider, or the ESP32's 3.3V GPIO gets damaged.

4.9(29)
48
ESP32 DHT22 Temperature and Humidity (with LCD Display)
ES-15Trung bình

ESP32 DHT22 Temperature and Humidity (with LCD Display)

This project measures ambient temperature and humidity using a DHT22 sensor and displays the data in real time on a 16x2 I2C LCD. Data is read from the sensor using the one-wire protocol via the Adafruit DHT library. This project serves as the foundation for IoT weather stations, smart home automation, or environmental monitoring systems in greenhouses. Communication with the DHT22 is established via the ESP32's GPIO 4 pin.

4.8(38)
57
ESP32 Servo Motor (Potentiometer Control)
ES-16Trung bình
Premium

ESP32 Servo Motor (Potentiometer Control)

In this project, we control an SG90 servo motor using a potentiometer. We adjust the servo angle by mapping the analog value read from the potentiometer to the 0–180-degree range. The ESP32Servo library generates servo signals on suitable output-capable GPIO pins of the ESP32; this project uses GPIO 18. This is a fundamental control method for robotic arms, camera gimbals, and automatic door mechanisms.

4.3(29)
42
ESP32 I2C LCD Display (16x2)
ES-17Trung bình
Premium

ESP32 I2C LCD Display (16x2)

In this project we connect a 16x2 character LCD to the ESP32 over I2C and display text. With I2C, just 2 data pins (SDA and SCL) control the screen, instead of the 6+ pins a classic parallel connection wastes. The code prints a fixed message on the first line and a counter that goes up every second on the second. At startup an I2C scanner also prints the display's address to the Serial Monitor (usually 0x27 or 0x3F).

4.9(23)
40
Digital Clock with ESP32 and DS1307 RTC (I2C + LCD)
ES-18Trung bình
Premium

Digital Clock with ESP32 and DS1307 RTC (I2C + LCD)

In this project, we display the time and date on a 16x2 I2C LCD screen using the DS1307 real-time clock (RTC) module. The DS1307 is a battery-backed RTC that maintains the time even if the ESP32 is powered off. Both modules share the same I2C bus (SDA/SCL), allowing us to learn how to control multiple devices using just two signal wires. Through this project, you will gain practical knowledge of the I2C communication protocol, RTC module operation, and dynamic data display on an LCD screen.

4.6(26)
40
Automatic Lighting with the ESP32 PIR Motion Sensor
ES-19Trung bình
Premium

Automatic Lighting with the ESP32 PIR Motion Sensor

In this project an HC-SR501 PIR motion sensor detects someone entering the room and turns on an LED automatically. millis() tracks how long the LED stays on: each HIGH reading refreshes the last-motion time, and the LED turns off at least 10 seconds after the last HIGH. The code also waits 50 ms with delay(50) in every loop, so the loop is not fully non-blocking. Great for stairs, hallways, bathrooms or closet lighting.

4.4(24)
38
ESP32 MQ-2 Gas/Smoke Detector Alarm
ES-20Trung bình

ESP32 MQ-2 Gas/Smoke Detector Alarm

In this project, combustible gas (LPG, methane, propane) and smoke detection is performed using an MQ-2 gas sensor module, and a siren-like alarm is played through a passive buzzer upon detection. The sensor's digital threshold output (DO) is connected to GPIO 4 on the ESP32; when gas or smoke exceeds the threshold, DO goes LOW and the alarm is triggered. Sensitivity is adjusted via the module's potentiometer. The passive buzzer is driven using tone() to produce a two-frequency siren effect.

4.7(29)
44
ESP32 RFID RC522 Card Reader (with LCD)
ES-21Trung bình

ESP32 RFID RC522 Card Reader (with LCD)

In this project, we will connect the MFRC522-based RC522 RFID module to the ESP32 via SPI and read the card/tag UID. This forms the basis for applications such as door locks, membership systems, and access control. We will display the read UID on an LCD screen; this version does not compare it with an authorized card list. WARNING: The RC522 operates only at 3.3V; supplying 5V will burn out the module!

4.8(21)
42
Remote Control with ESP32 IR Receiver (with LCD Screen)
ES-22Trung bình
Premium

Remote Control with ESP32 IR Receiver (with LCD Screen)

In this project, we use the TSOP4838 IR receiver module to capture signals from a TV, air conditioner, or any other infrared remote control using the ESP32. With the IRremote v4 library, we display decoded nonzero raw codes on the I2C LCD screen. This example is intended to help identify remote control codes; it does not include turning an LED on or off or adjusting its brightness with the remote. This is a great starting point for converting old remotes into smart home controls.

4.7(19)
30
ESP32 TM1637 4-Digit 7-Segment Display
ES-23Trung bình
Premium

ESP32 TM1637 4-Digit 7-Segment Display

We are controlling a 4-digit 7-segment display module with a TM1637 driver using an ESP32. Using just 2 GPIO pins (CLK and DIO), we run a counter from 0 to 9999, adjust the brightness level, and display the colon (:) character in clock format. Thanks to the TM1637Display library, controlling numbers, hex values, segments, and strings is very easy.

4.7(20)
32
ESP32 WS2812B NeoPixel Strip Control
ES-24Trung bình
Premium

ESP32 WS2812B NeoPixel Strip Control

WS2812B (NeoPixel) addressable LEDs are smart RGB LEDs that can be chained and controlled from a single data pin. In this project we drive an 8-LED WS2812B strip with the Adafruit_NeoPixel library and create a smooth rainbow animation. The ESP32's 3.3V logic works with most WS2812B batches; if it gets unstable, we show the fix with a 470Ω series resistor and a 1000µF capacitor. The animation shifts the hue in HSV color space.

4.9(19)
30
ESP32 Robot Eyes (OLED Display + TTP223 Touch Sensor)
ES-42Trung bình
Premium

ESP32 Robot Eyes (OLED Display + TTP223 Touch Sensor)

A desk robot with feelings! The ESP32 draws two eyes on a 0.96 inch OLED that look around and blink on their own. Tap the TTP223 touch sensor and the robot gets happy, hold it and the eyes turn into hearts, poke it too often and it gets angry, ignore it for 20 seconds and it falls asleep. A passive buzzer gives every mood its own sound: a state machine, shape-based animation and non-blocking audio in one project.

1
ESP32 T-Rex Run Dino Game (OLED Display + Button + Buzzer)
ES-44Trung bình
Premium

ESP32 T-Rex Run Dino Game (OLED Display + Button + Buzzer)

Chrome's "no internet" dinosaur game, now on your desk! The ESP32 draws a running dino on a 0.96 inch OLED; press the button to jump while the cacti keep speeding up. Score and best score sit on the top line, and the best score is saved to ESP32 flash with Preferences, so it survives a power cut. It is the ESP32 version of the Arduino OLED T-Rex Run project, with a passive buzzer for jump, 100-point and crash sounds.

1
ESP32 Earthquake Shake Alarm (MPU-6050 + OLED Display + Buzzer)
ES-45Trung bình
Premium

ESP32 Earthquake Shake Alarm (MPU-6050 + OLED Display + Buzzer)

When your desk shakes, this screen notices first! The ESP32 measures vibration with an MPU-6050 accelerometer and draws a live trace that scrolls like a seismograph on a 0.96-inch OLED display. When the shaking passes the threshold, a passive buzzer sounds a siren and the red LED flashes; one button silences and resets it. It is an educational shake meter, not an official earthquake warning.

5.0(1)
ESP32 Live Gold and Currency Display (Wi-Fi + OLED Display + Button)
ES-46Trung bình
Premium

ESP32 Live Gold and Currency Display (Wi-Fi + OLED Display + Button)

What is gold trading at in Turkey right now? No need to check your phone! The ESP32 joins Wi-Fi, pulls gram gold, US dollar and euro prices in Turkish lira from a free, keyless JSON source and shows them on a 0.96 inch OLED. Prices refresh every 60 seconds; the button flips pages and a long press refreshes right away. If the internet drops, the last values stay on screen with an OFFLINE badge.

1
ESP32 Prayer Time Clock (Wi-Fi + OLED Display + Buzzer)
ES-47Trung bình
Premium

ESP32 Prayer Time Clock (Wi-Fi + OLED Display + Buzzer)

How long until Maghrib? The ESP32 gets the time from the internet, pulls your city's prayer times using the Diyanet method and shows the next prayer with a big countdown on a 0.96 inch OLED. When the time comes, a passive buzzer plays a short, gentle chime. Press the button to list all of today's times, or hold it to try the alert right away in demo mode.

1
ESP32 Two-Player Click Race (OLED Display + 2 Buttons + Buzzer)
ES-48Trung bình
Premium

ESP32 Two-Player Click Race (OLED Display + 2 Buttons + Buzzer)

Challenge a friend to a 10-second click race! Both players press their button to get ready, then after a 3-2-1 countdown everyone mashes as fast as they can. The ESP32 races two bars side by side on a 0.96 inch OLED, with the time left, both scores and the leader shown live. When time is up you see the winner and clicks per second, and the best score is saved with Preferences. A passive buzzer plays a click tone for each player, a whistle and a fanfare.

2
ESP32 Slot Machine Game (OLED Display + Button + Buzzer)
ES-49Trung bình
Premium

ESP32 Slot Machine Game (OLED Display + Button + Buzzer)

Pull the lever and watch the reels spin! This ESP32 project spins three reels of cherry, bell, BAR and 7 icons on a 0.96 inch OLED with a realistic slow-down, all from one button. The credits are purely virtual, with no real money involved: the goal is to learn the probability and random numbers behind games of chance. If the first two reels match, the third spins longer for suspense, 7-7-7 plays a JACKPOT tune, and Preferences keeps the credits.

ESP32 Mini Music Box (OLED Display + 3 Buttons + Buzzer)
ES-50Trung bình
Premium

ESP32 Mini Music Box (OLED Display + 3 Buttons + Buzzer)

Three buttons, a buzzer and five classic tunes: a pocket music box built with an ESP32! The 0.96 inch OLED shows a playlist, and the previous, play/pause and next buttons move between Ode to Joy, Für Elise, Jingle Bells, Happy Birthday and Twinkle Twinkle. While a tune plays, the note name appears and its key lights up on a two-octave piano keyboard, with elapsed time and a progress bar. All tunes are public domain, played on a passive buzzer.

ESP32 Color Drawing Tablet (ILI9341 + Joystick + Buttons)
ES-51Trung bình
Premium

ESP32 Color Drawing Tablet (ILI9341 + Joystick + Buttons)

Push the joystick and draw! We are building a small drawing tablet with an ESP32 and a 2.8 inch ILI9341 color display. The joystick moves the cursor faster the further you push it, and four buttons lift the pen, change the color (8 colors + eraser) and brush size, and clear the canvas. In mirror mode every stroke is copied to the other side, so hearts and butterflies draw themselves.

ESP32 microSD Temperature and Humidity Logger (DHT22 + ILI9341 Graph)
ES-52Trung bình
Premium

ESP32 microSD Temperature and Humidity Logger (DHT22 + ILI9341 Graph)

Log the temperature of a room, greenhouse or fridge all day long! An ESP32 measures temperature and humidity with a DHT22 every 2 s and writes each reading to a CSV file on a microSD card. The ILI9341 color display shows live values, min and max, and a two-color live graph of the last 30 readings. Plug the card into your computer and open the file in Excel.

ESP32 Smart Lamp with Rotary Encoder Menu (KY-040 + OLED + NeoPixel Ring)
ES-53Trung bình
Premium

ESP32 Smart Lamp with Rotary Encoder Menu (KY-040 + OLED + NeoPixel Ring)

One knob, five settings! Turn the KY-040 rotary encoder to scroll the menu on the 0.96 inch OLED, press it to edit the color, brightness, effect, sleep timer or warm-cool white. The 24-LED NeoPixel ring shows every change instantly. Settings live in the ESP32 flash, so after a power cut the lamp comes back exactly as you left it. Interrupt-based encoder reading and a menu UI in one project.

ESP32 Egg Incubator Controller (DHT22 + Relay + Servo + OLED)
ES-54Trung bình
Premium

ESP32 Egg Incubator Controller (DHT22 + Relay + Servo + OLED)

Hand the hen's job to an ESP32! The DHT22 measures temperature and humidity, a relay switches the heater with hysteresis, an SG90 servo gently tilts the egg tray every 3 hours, and the 0.96 inch OLED shows the day counter, a temperature graph and alarms. Chicken, quail and duck profiles are built in, and turning stops by itself for the last 3 days. If the sensor fails, the heater switches off for safety.

ESP32 Rhythm Game (8x8 NeoPixel Matrix + 4 Buttons + TM1637)
ES-55Trung bình
Premium

ESP32 Rhythm Game (8x8 NeoPixel Matrix + 4 Buttons + TM1637)

Notes rain down, and if you hit them on time you're the one playing the song! Colored notes fall down 4 lanes of an 8x8 NeoPixel matrix; press the right button the moment one reaches the bottom row and the buzzer plays that note of the melody. The score is on a TM1637 display and combos multiply your points. Üsküdar'a Gider İken, Ode to Joy and Jingle Bells are built in, with an S/A/B/C grade at the end and fireworks for a new record.

ESP32 Smart Curtain (NEMA 17 + A4988 + LDR + OLED)
ES-56Trung bình
Premium

ESP32 Smart Curtain (NEMA 17 + A4988 + LDR + OLED)

The curtain opens by itself when the sun comes up and closes after dark! An LDR measures the light, an A4988 driver turns a NEMA 17 stepper with a soft start and stop, and the 0.96 inch OLED shows a window drawing, how open the curtain is and a sun or moon. Two buttons open and close it by hand, and holding one stops it halfway. The position is saved to flash, so after a power cut the curtain knows where it is.

ESP32 Ambient TV Backlight (ILI9341 TFT + WS2812B LED Strip)
ES-57Trung bình
Premium

ESP32 Ambient TV Backlight (ILI9341 TFT + WS2812B LED Strip)

A TV backlight that spills the colors of the screen edges onto the wall! A 2.8 inch ILI9341 display plays the TV with six scenes; the ESP32 averages the color of each edge zone and sends it to a 34-LED WS2812B strip along the left, top and right. Exponential smoothing and gamma correction keep the fades soft, a potentiometer sets the brightness and a button switches between demo, warm white, colors from the computer and off.

ESP32 Virtual Pet (OLED + 3 Buttons + Buzzer)
ES-58Trung bình
Premium

ESP32 Virtual Pet (OLED + 3 Buttons + Buzzer)

The pocket toy of the 90s is back on an ESP32! A pixel baby hatches from an egg on the 0.96 inch OLED; with 3 buttons you feed it, play a mini game, clean up after it and switch off the light so it can sleep. Hunger, happiness, energy and cleanliness drop over time, and the passive buzzer beeps when it needs you. It grows into a different adult depending on your care, and since its state lives in NVS, it waits for you even after you unplug it.

1
ESP32 Weather Needle (Servo + WS2812B LED Ring + OLED)
ES-59Trung bình
Premium

ESP32 Weather Needle (Servo + WS2812B LED Ring + OLED)

A gauge that shows the weather with a needle and light instead of text! Over Wi-Fi the ESP32 fetches the current weather of six cities in one request; an SG90 servo needle points at sunny, partly cloudy, cloudy, rain or snow-storm on a card. A 24-LED ring shows the temperature as color and the weather as animation, and a 0.96 inch OLED shows city, temperature and wind. A button changes the city; hold it for a demo.

ESP32 Drumming Robot (2 Servos + OLED + Buzzer)
ES-60Trung bình
Premium

ESP32 Drumming Robot (2 Servos + OLED + Buzzer)

A little robot that plays the drums on your desk! Two SG90 servo arms become drumsticks and hit a box or a cup, while a passive buzzer adds the bass hits and a click on each bar. There are 6 rhythms, including rock, disco, march, halay, çiftetelli and 9/8; a potentiometer sets the tempo from 60 to 180 BPM and tapping the TAP button in time teaches the robot your speed. A 0.96 inch OLED shows a 16-step grid with a moving cursor.

ESP32 Hangman Game (OLED + KY-040 Rotary Encoder + Buzzer)
ES-61Trung bình
Premium

ESP32 Hangman Game (OLED + KY-040 Rotary Encoder + Buzzer)

The classic notebook game hangman on an ESP32 and a 0.96 inch OLED! Turning the KY-040 rotary encoder slides the alphabet strip, pressing it guesses the selected letter. A correct letter flies into place and the green LED lights up; a wrong one adds a piece to the gallows while the red LED and the buzzer complain. Turkish and English words, three categories, a best streak and a two-player mode.

ESP32 Camera Gimbal (MPU-6050 + 2 Servos + OLED)
ES-64Trung bình
Premium

ESP32 Camera Gimbal (MPU-6050 + 2 Servos + OLED)

Discover the secret of phone gimbals yourself! As the handle tilts, the MPU-6050 measures the angle and two SG90 servos turn the opposite way to keep the platform on top level. The angle is worked out 200 times a second with a complementary filter that blends gyroscope and accelerometer. The 0.96 inch OLED draws an artificial horizon like an aircraft gauge, and one button switches between LOCK, FOLLOW and CENTER.

ESP32 Arcade Basketball Machine (LDR + TM1637 + 24 LED Ring)
ES-66Trung bình
Premium

ESP32 Arcade Basketball Machine (LDR + TM1637 + 24 LED Ring)

The fairground basketball machine, now on your desk! As the ball drops through the cardboard hoop it cuts the light on the LDR light gate, and the ESP32 counts a basket. Time left is a shrinking arc on the 24 LED ring and the score sits on the TM1637; baskets are worth 3 in the final 10 seconds, and 3 baskets within 2 seconds set the ring on fire. The threshold follows a slow average of the light, so drawing the curtains never scores a basket.

ESP32 Coin Counting Piggy Bank (3 LDR + I2C LCD + Servo Lock)
ES-67Trung bình
Premium

ESP32 Coin Counting Piggy Bank (3 LDR + I2C LCD + Servo Lock)

A piggy bank that tells you how much you have saved! Coins slide down a slanted ramp and drop through the first hole they fit; an LDR light gate under each hole sees the shadow and the ESP32 adds that coin. It is set up for Turkish coins (25 kuruş, 50 kuruş, 1 lira) and easy to switch to yours. The I2C LCD fills a goal bar, a fanfare plays at the goal and the servo lock opens; before that, only a parent can open the lid.

ESP32 Card Dealing Robot (2 Servos + I2C LCD + Buzzer)
ES-68Trung bình
Premium

ESP32 Card Dealing Robot (2 Servos + I2C LCD + Buzzer)

Let a robot deal the cards on game night! A turntable servo turns to the next player, a pusher arm servo slides the top card off the deck, and the buzzer clicks for every card. It knows Pişti and Batak, two classic Turkish card games, plus a colour-matching card game with 7 cards each and one face-up card, for 2–4 players with a random first player and pause, cancel and speed control. The I2C LCD shows who gets which card and what is left in the deck.

ESP32 Snack Vending Machine (Keypad + I2C LCD + 3 Servos + Buzzer)
ES-69Trung bình
Premium

ESP32 Snack Vending Machine (Keypad + I2C LCD + 3 Servos + Buzzer)

A mini school canteen vending machine on your desk! The 1 and 5 lira buttons add credit, you pick a snack on the 4x4 keypad, and with enough credit that shelf's servo swings a pusher arm and drops it. Change comes in the fewest coins on the I2C LCD, with a jingle per coin. It counts in Turkish lira and is easy to switch to your own coins; a service code opens refill, sales report and prices.

ESP32 Light Meter for Film Photographers (LDR + I2C LCD + 2 Buttons)
ES-79Trung bình
Premium

ESP32 Light Meter for Film Photographers (LDR + I2C LCD + 2 Buttons)

An electronic fix for a film camera with a dead meter: an LDR measures the light, the ESP32 turns it into an EV value (EV100 = log2(lux / 2.5)) and corrects it for the film's ISO. The I2C LCD suggests a shutter speed in aperture priority or an aperture in shutter priority. Two buttons change the ISO, the locked value and the mode, and in sunshine it shows the classic sunny 16 rule exactly.

ESP32 What Time Is It? Analog Clock Reading Teacher (2 Servos + Keypad + I2C LCD + Buzzer)
ES-81Trung bình
Premium

ESP32 What Time Is It? Analog Clock Reading Teacher (2 Servos + Keypad + I2C LCD + Buzzer)

A clock reading game for primary school: two SG90 servos become the hour and minute hands on half-circle dials and show a random time; the child types it on the keypad and confirms with #. A right answer plays a happy tune; on a wrong one the misread hand wiggles and the I2C LCD shows the right time. 4 levels: o'clock, half past, quarter and 5 minutes.

ESP32 Robot Head That Follows You: Turns Its Head, Squints Its Eyes (2 HC-SR04 + 2 Servos)
ES-82Trung bình
Premium

ESP32 Robot Head That Follows You: Turns Its Head, Squints Its Eyes (2 HC-SR04 + 2 Servos)

A creepy but funny robot head that turns to face you wherever you go in the room. Two HC-SR04s measure in turn, and the head servo turns toward the one that sees you closer. Come too close and the eyelid servo narrows, the LED eyes dim and the robot gives you a suspicious look. With nobody around it looks about, after a while it falls asleep, and it wakes with a start when someone shows up.

ESP32 Did You Drink Water? Smart Cup Coaster (HX711 + Load Cell + 24 LED Ring + Buzzer)
ES-84Trung bình
Premium

ESP32 Did You Drink Water? Smart Cup Coaster (HX711 + Load Cell + 24 LED Ring + Buzzer)

A coaster that counts the water you drink from your cup's weight: lift the cup and put it back, and the difference is what you drank; a refill is not counted. A 24 LED ring fills up in blue towards a daily 2000 ml goal; skip water for 45 minutes and the buzzer sounds while the empty part pulses orange. The HX711 and load cell average readings for a steady weight; a rainbow spins at the goal.

ESP32 Wi-Fi Plant Watering: Waters When the Soil Dries, Tells Your Phone (Soil Moisture Sensor + Relay + Pump + LCD + ntfy)
ES-85Trung bình
Premium

ESP32 Wi-Fi Plant Watering: Waters When the Soil Dries, Tells Your Phone (Soil Moisture Sensor + Relay + Pump + LCD + ntfy)

Automatic plant watering with an ESP32: the soil moisture sensor is turned into a percentage, and when it drops the relay runs the pump in short pulses, waits for the water to soak in and measures again. A float switch locks the pump when the tank is empty, and a daily limit prevents flooding. After every watering your phone gets "Bitki sulandi (nem %28 -> %65)"; watering keeps going even without Wi-Fi.

ESP32 Wi-Fi Automatic Pet Feeder: Meals on Time, Phone Notifications (Servo + HC-SR04 + LCD + NTP + ntfy)
ES-86Trung bình
Premium

ESP32 Wi-Fi Automatic Pet Feeder: Meals on Time, Phone Notifications (Servo + HC-SR04 + LCD + NTP + ntfy)

An ESP32 automatic pet feeder for a cat, dog or fish: it gets the time from the internet (NTP), rings a food bell before each of 3 daily meals, then an SG90 servo opens and shakes the hopper lid once per portion. An HC-SR04 measures how full the hopper is and warns when it runs low; every meal and low warning reaches your phone through ntfy. A button gives an extra portion (2 a day at most) or skips the day, and the pet never goes hungry when the internet or power drops.

ESP32 Wi-Fi Water Heater Temperature Control: Phone Alert When the Hot Water Is Ready (DS18B20 + Relay + LCD + ntfy)
ES-89Trung bình
Premium

ESP32 Wi-Fi Water Heater Temperature Control: Phone Alert When the Hot Water Is Ready (DS18B20 + Relay + LCD + ntfy)

Water heater temperature control with an ESP32: a DS18B20 measures the water and a relay switches the heater on at target − 3 °C and off at the target. ECO, NORMAL and SHOWER modes plus + and − buttons set the target, and your phone gets a "su hazir" (hot water ready) alert. Overheating, a dead sensor or a heater that won't heat cut the relay at once. 230 V warning: the relay drives a contactor; a breaker, an RCD and a licensed electrician are a must.

ESP32 Snowball Fight: Two-Player Matrix Game (8x8 NeoPixel + 4 Buttons + Buzzer)
ES-90Trung bình
Premium

ESP32 Snowball Fight: Two-Player Matrix Game (8x8 NeoPixel + 4 Buttons + Buzzer)

A two-player snowball fight for the winter break on an 8x8 NeoPixel matrix. Blue on the left, red on the right, both behind an ice wall. The THROW button sends a snowball flying in an arc, the DUCK button hides you behind the wall. Balls that meet in the air burst, and every round has its own wind that speeds balls up or slows them down. Lose 3 lives first and you lose; the winner gets falling snow and fireworks, with throw, hit and victory sounds from the buzzer.

ESP32 Moon Phase Lamp: What Does the Moon Look Like Tonight? (DS1307 + 8x8 NeoPixel + Button)
ES-91Trung bình
Premium

ESP32 Moon Phase Lamp: What Does the Moon Look Like Tonight? (DS1307 + 8x8 NeoPixel + Button)

A night lamp for your desk that draws tonight's moon: an 8x8 NeoPixel matrix shows a crescent, a quarter, a gibbous or a full moon. The DS1307 keeps the date, and the ESP32 counts the phase from a known new moon and corrects it with Meeus' terms to within a minute. One button switches between today, days to full moon and a whole month played in 8 seconds. 24 December 2026 is the last full moon of the year.

ESP32 Firefly Jar: Lights That Fall Into Sync on Their Own (8 LEDs + Button)
ES-93Trung bình
Premium

ESP32 Firefly Jar: Lights That Fall Into Sync on Their Own (8 LEDs + Button)

The 8 LEDs in the jar are fireflies: they flash at random first, and a few minutes later, with nobody telling them, all of them flash at once. There is one rule: a firefly that sees a neighbour flash moves its own clock a little forward. When sync arrives the jar glows for 3 seconds. A short press of the button shakes the jar and scatters them; a long press stops them seeing each other. In the fast version in the video sync takes 11 seconds. No PWM, no library.

ESP32 Sunrise Alarm Clock: Wake Up Gently with Light (DS1307 + LED Ring + LCD)
ES-94Trung bình
Premium

ESP32 Sunrise Alarm Clock: Wake Up Gently with Light (DS1307 + LED Ring + LCD)

Getting up in the dark on a winter morning is hard. 20 minutes before the alarm this clock slowly lights a 24-LED ring from the bottom up: deep red first, then orange, warm white at the end. At alarm time the buzzer plays birdsong. The PLUS button snoozes for 5 minutes, the SET button silences it. A battery-backed DS1307 keeps the time and the alarm is stored on the board, so neither is lost in a power cut. The LCD shows the time, the alarm and the sunrise percentage.

ESP32 Fall Alarm: Notifies the Family if Nobody Answers (MPU-6050 + Button + Buzzer)
ES-95Trung bình
Premium

ESP32 Fall Alarm: Notifies the Family if Nobody Answers (MPU-6050 + Button + Buzzer)

Worn on a belt or in a pocket, this device uses an MPU-6050 to catch a sudden impact followed by stillness. Once that counts as a fall it counts down 30 seconds: the buzzer beeps and the LED blinks. Pressing the I am OK button in that time cancels the alarm. If nobody presses it, a siren sounds and the ESP32 sends a notification to the family's phones over Wi-Fi with ntfy. Made for icy winter days and relatives who live alone; the siren works even without internet.

ESP32 Light Trail Duel: Two Player Retro Game (16x16 NeoPixel + 4 Buttons + Buzzer)
ES-97Trung bình
Premium

ESP32 Light Trail Duel: Two Player Retro Game (16x16 NeoPixel + 4 Buttons + Buzzer)

Two light bikes race across a 16x16 NeoPixel matrix without stopping and leave a glowing trail behind. Each player has two buttons: one turns the bike left, the other right. Hit a trail, the rival or the edge and you lose the round. The bikes speed up as the round goes on and the room runs out; the first to win 3 rounds takes the match. Score on the matrix, sounds from the buzzer. A two player duel in the style of the 80s trail games, made for New Year's Eve.

ESP32 New Year World Tour: Where Is 2027 Right Now? (NTP + I2C LCD + 24 LED Ring + Buzzer)
ES-98Trung bình
Premium

ESP32 New Year World Tour: Where Is 2027 Right Now? (NTP + I2C LCD + 24 LED Ring + Buzzer)

The new year does not reach the whole world at once: it starts on Kiritimati in the Pacific and travels west for 26 hours. This build follows that wave live. The ESP32 gets the time from the internet (NTP); whenever the new year enters one of 24 stops, one LED on the 24 LED ring lights up, the buzzer chimes and the LCD shows the city. The bottom row counts down to the next city. At the last stop the ring turns into a rainbow.

ESP32 IoT Room Station (Relay + DHT22)
ES-99Trung bình
IoT

ESP32 IoT Room Station (Relay + DHT22)

Turn your lamp on from your phone and watch your room's temperature and humidity live, wherever you are. This project is the step-by-step guide to the Room station IoT template in the app, built with an ESP32, a relay module and a DHT22. Go to Workshop › Devices › Add a device and pick Room station; Ohmi prepares the code with your own device key. The code on this page is an example: the key and Wi-Fi details are placeholders.

5.0(1)
4
ESP32 IoT RGB LED Strip (WS2812B)
ES-101Trung bình
IoT

ESP32 IoT RGB LED Strip (WS2812B)

Control your room's light from your phone: pick a color, set the brightness, turn on the rainbow or breathe effect. This project is the step-by-step guide to the RGB LED strip IoT template in the app, built with an ESP32 and a 30-LED WS2812B strip using three wires. Go to Workshop › Devices › Add a device and pick RGB LED strip; Ohmi prepares the code with your own device key. The code on this page is an example: the key and Wi-Fi details are placeholders.

1.0(1)
3
ESP32 IoT Plant Watering (Soil Sensor + Pump)
ES-102Trung bình
IoT

ESP32 IoT Plant Watering (Soil Sensor + Pump)

Let the pump start by itself when the soil in your pot dries out, and watch the soil moisture live on your phone. This project is the step-by-step guide to the Soil moisture + pump IoT template in the app, built with an ESP32, a soil moisture sensor, a relay and a mini water pump. Go to Workshop › Devices › Add a device; Ohmi prepares the code with your own device key. The code on this page is an example: the key and Wi-Fi details are placeholders.

ESP32 IoT Curtain Opener (SG90 Servo)
ES-103Trung bình
IoT

ESP32 IoT Curtain Opener (SG90 Servo)

Tap + or − on your phone and the servo turns to that angle at the same moment: open and close a model curtain, a blind's tilt rod or a small lid from wherever you are. This project is the step-by-step guide to the Servo curtain IoT template in the app, built with an ESP32 and an SG90 servo using just 3 wires. Go to Workshop › Devices › Add a device; Ohmi prepares the code with your own device key. The code on this page is an example: the key and Wi-Fi details are placeholders.

3
ESP32-CAM Camera That Takes Photos When It Sees Motion (PIR + microSD)
ES-105Trung bình
Premium

ESP32-CAM Camera That Takes Photos When It Sees Motion (PIR + microSD)

A battery-powered motion camera for a bird box or the front door. When the HC-SR501 PIR sees motion, the ESP32-CAM wakes from deep sleep, takes three photos and saves them in order on the board's own microSD slot as foto_0001.jpg, foto_0002.jpg. The photo number lives in EEPROM, so the order survives a battery change. When the motion is over the board goes back to sleep; no Wi-Fi or app needed.

ESP32 Bluetooth RGB LED Strip (WS2812B)
ES-110Trung bình
Bluetooth

ESP32 Bluetooth RGB LED Strip (WS2812B)

Change your strip's color, brightness and effect from your phone: the ESP32 connects straight to your phone over its built-in Bluetooth, and the WS2812B strip needs only 3 wires. This project is the step-by-step guide to the RGB LED strip Bluetooth template in the app. Go to Workshop › Devices › Add a device › Bluetooth, pick RGB LED strip and upload the code with Get the code. The Set up as a Bluetooth panel button on this page opens the wizard with this template.

1
ESP32 Power Outage Alert: A Telegram Message to Your Phone When the Power Goes Out (Voltage Divider + OLED + Power Bank)
ES-116Trung bình
Premium

ESP32 Power Outage Alert: A Telegram Message to Your Phone When the Power Goes Out (Voltage Divider + OLED + Power Bank)

When the power goes out at home, a Telegram message reaches your phone with the time, and when it comes back you get the outage length. The 5 V of an adapter in the wall socket is read by the ESP32 through a voltage divider; the ESP32 runs from a power bank, so it keeps working during the outage. The OLED shows the state, voltage and duration, and a buzzer beeps. There is no connection to the 230 V mains, only the 5 V side of the adapter is measured.

Nâng cao23 dự án

ESP32 Wi-Fi STA Connection (with LCD Screen)
ES-25Nâng cao

ESP32 Wi-Fi STA Connection (with LCD Screen)

In this project, we connect the ESP32 to the home Wi-Fi network in Station (STA) mode in a secure, fault-tolerant manner. We store the SSID and password in a separate secrets.h file to prevent leaking to Git, set up an auto-reconnect mechanism, and display the RSSI signal level and IP address on an I2C LCD screen. The internal LED works as a status indicator. It is a production-grade connection manager.

4.4(21)
38
Real-Time Clock from the Internet via ESP32 NTP
ES-26Nâng cao
Premium

Real-Time Clock from the Internet via ESP32 NTP

The ESP32 connects to Wi-Fi and fetches the real time from NTP (Network Time Protocol) servers with millisecond precision. configTzTime() applies the Turkey time zone (TRT, UTC+3) automatically, and in countries with daylight saving time the DST switch is handled by a POSIX TZ string. The time is printed both to the Serial Monitor and to an optional I2C LCD.

4.5(13)
22
ESP32 Asynchronous Web Server (with IP Display on LCD)
ES-27Nâng cao

ESP32 Asynchronous Web Server (with IP Display on LCD)

In this project, we’re turning the ESP32 into an asynchronous web server that you can control from your phone or computer on the same Wi-Fi network. Thanks to the ESPAsyncWebServer library, the server can process multiple requests simultaneously (unlike the classic WebServer.h, which blocks on a single request). You’ll be able to open the ESP32’s IP address in a browser and click the ON/OFF buttons (the /on and /off routes) to turn the LED connected to GPIO 5 on and off.

4.8(16)
26
ESP32 WebSocket Counter (2 Buttons + LCD + Real-Time Web)
ES-28Nâng cao
Premium

ESP32 WebSocket Counter (2 Buttons + LCD + Real-Time Web)

In this project, two buttons wired to the ESP32 (GPIO 5 counts up, GPIO 4 counts down) change a counter. The value updates instantly both on a 16x2 I2C LCD and, through the WebSocket support of ESPAsyncWebServer, in every connected browser without reloading the page. Instead of HTTP polling a single persistent connection is used, and the ESP32 sends the new value to everyone with ws.textAll().

4.5(14)
23
ESP32 mDNS: Accessing the Device via bluegrays-esp.local (with LCD Screen)
ES-29Nâng cao
Premium

ESP32 mDNS: Accessing the Device via bluegrays-esp.local (with LCD Screen)

In this project we add an mDNS (Multicast DNS) service to the ESP32, so you reach it by a readable host name like bluegrays-esp.local instead of an IP address. Even if the IP assigned by DHCP changes, the device always answers to the same name. A small web server on the board lets you control the LED from your browser at http://bluegrays-esp.local/.

4.8(14)
23
ESP32 OTA Update — Wireless Firmware Installation (With LCD Screen)
ES-30Nâng cao
Premium

ESP32 OTA Update — Wireless Firmware Installation (With LCD Screen)

In this project you'll learn to upload new firmware to the ESP32 over Wi-Fi, without a USB cable. With the ArduinoOTA library the ESP32 becomes visible on the network and shows up automatically as bluegrays-ota under "Network port" in the Arduino IDE. The first upload goes over USB; after that every update is wireless, a key feature for devices out in the field.

4.6(14)
22
ESP32 HTTPClient + Weather API (with LCD Screen)
ES-31Nâng cao
Premium

ESP32 HTTPClient + Weather API (with LCD Screen)

In this project the ESP32 makes a REST API call over the internet to a weather API (wttr.in) using HTTPClient.h. The JSON response is parsed with ArduinoJson v7, and the city, temperature, humidity, weather and wind are shown on an I2C LCD. wttr.in needs no API key; just type the name of any city.

4.7(13)
20
ESP32 HTTPClient + Weather API (with SSD1306 OLED Display)
ES-32Nâng cao
Premium

ESP32 HTTPClient + Weather API (with SSD1306 OLED Display)

In this project the ESP32 makes a REST API call over the internet to a weather API (wttr.in) using HTTPClient.h. Unlike the I2C LCD version, it uses an SSD1306 OLED (128×64) display, with large text and vector icons for a richer look. Seven weather icons (sunny, rainy, snowy and more) are drawn on the fly, with no bitmap files.

4.3(10)
22
ESP32 Deep Sleep — Battery Saving (OLED + RTC RAM Counter)
ES-33Nâng cao
Premium

ESP32 Deep Sleep — Battery Saving (OLED + RTC RAM Counter)

The ESP32's Deep Sleep mode shuts down the CPU and most peripherals, cutting current draw to about 10µA, which is vital for battery-powered IoT devices. This project uses three wake-up sources: a timer (15 s), an external pin (EXT0, the button on GPIO 33) and a touch pin (T0/GPIO 4). Counters marked with RTC_DATA_ATTR survive deep sleep.

4.3(10)
16
ESP32 Prayer Rakat Counter (HC-SR04 + SSD1306 OLED + 2 Buttons)
ES-34Nâng cao
Premium

ESP32 Prayer Rakat Counter (HC-SR04 + SSD1306 OLED + 2 Buttons)

Do you sometimes lose track of which rakat you are on during prayer? This project is a rakat counter that sits next to your prayer mat and counts your prostrations when you bring your hand close. The HC-SR04 ultrasonic distance sensor detects your hand, the SSD1306 OLED display shows the count, and two buttons let you choose 2, 3 or 4 rakats and reset. A 2.5-second debounce and a "hand-away" check make sure no prostration is counted twice.

4.8(11)
14
ESP32 RFID Door Lock (RC522 + Servo + OLED + Buzzer + LED)
ES-35Nâng cao
Premium

ESP32 RFID Door Lock (RC522 + Servo + OLED + Buzzer + LED)

We build a smart door lock with an ESP32, an RC522 RFID module, an SG90 servo, an SSD1306 OLED display, an active buzzer and 2 LEDs. When a card is scanned, its UID is checked against the authorized cards defined in the code; if it matches, the servo unlocks (green LED + 2 short beeps) and locks again after 5 seconds. An unknown card lights the red LED, gives 3 quick beeps and shows its UID on the OLED.

4.8(9)
16
ESP32 Color Mixer Light (3 Potentiometers + RGB LED + OLED)
ES-36Nâng cao
Premium

ESP32 Color Mixer Light (3 Potentiometers + RGB LED + OLED)

A smart color-mixer lamp: turn 3 potentiometers on the ESP32 and mix any color you like! As you turn the red, green and blue potentiometers, the common-cathode RGB LED changes color instantly. The SSD1306 OLED display shows each channel's 0-255 value, fill bars and the HEX web color code (like #FF8040) live.

4.7(6)
10
ESP32 Smart Lighting (PIR + LDR + Relay + OLED)
ES-37Nâng cao
Premium

ESP32 Smart Lighting (PIR + LDR + Relay + OLED)

With an ESP32, a PIR motion sensor, an LDR light sensor and a relay module, we turn your hallway, bathroom or pantry into smart lighting. If the room is already bright, the light stays off even when there is motion, so it never wastes energy during the day. The light stays on for 30 seconds, and the time extends automatically while motion continues.

4.3(6)
11
ESP32 Parking Sensor (HC-SR04 + 5-LED Bar + Buzzer + OLED)
ES-38Nâng cao
Premium

ESP32 Parking Sensor (HC-SR04 + 5-LED Bar + Buzzer + OLED)

The ESP32 version of a car parking sensor! The HC-SR04 ultrasonic sensor measures the distance to the object in front. As it gets closer, a 5-LED bar fills up (green → yellow → red) and the buzzer beeps faster. Very close (under 10 cm), a continuous alarm sounds and all LEDs light up. The SSD1306 OLED display shows the live distance in cm in large text, plus a status message.

14
ESP32 IR Universal Remote (IR Receiver + Remote Control + 3 LEDs + Buzzer + OLED)
ES-39Nâng cao
Premium

ESP32 IR Universal Remote (IR Receiver + Remote Control + 3 LEDs + Buzzer + OLED)

Read a ready-made IR remote with the ESP32 and control your own device! The infrared receiver (NEC protocol, 38kHz) captures the signals of a 20-key remote: keys 1/2/3 toggle three separate LEDs and PWR turns them all off. Press an unknown key and the OLED shows its HEX code, so you can easily add your own remote's buttons to the code.

4.5(9)
16
ESP32 Temperature Data Logger (DHT22 + DS1307 RTC + microSD + OLED)
ES-40Nâng cao
Premium

ESP32 Temperature Data Logger (DHT22 + DS1307 RTC + microSD + OLED)

Build a timed temperature and humidity logger with the ESP32! A DHT22 sensor reads temperature and humidity once a minute, and each reading is saved to a microSD card in CSV format with a real-time stamp from the DS1307 RTC module. The OLED display shows the latest temperature, humidity, timestamp and total number of records live, in large text.

4.7(7)
12
ESP32 Motion Alarm System (PIR + Buzzer + LED + Telegram)
ES-41Nâng cao
Premium

ESP32 Motion Alarm System (PIR + Buzzer + LED + Telegram)

A smart security alarm: when the PIR sensor detects motion, it sounds the buzzer, lights the LED and sends the owner an instant Telegram notification. A 30-second cooldown limits how often the alarm repeats; it does not filter out the PIR sensor's false detections. Use it at home, in a garage, a storeroom or a study.

9
ESP32 PID Ball and Beam (HC-SR04 + Servo + I2C LCD + 3 Potentiometers)
ES-71Nâng cao
Premium

ESP32 PID Ball and Beam (HC-SR04 + Servo + I2C LCD + 3 Potentiometers)

The classic control engineering experiment on your desk: a servo tilts a beam and PID holds the ball on target. Three potentiometers change Kp, Ki and Kd live: with P alone the ball swings, D damps it and I cancels the beam's slight lean so the ball lands right on target. The I2C LCD shows the beam, ball and target, plus settling time and overshoot. In SIM mode a physics model rolls the ball; in REAL mode an HC-SR04 measures it.

ESP32 Drawing Robot Arm (3 Servos + ILI9341 TFT Display + 2 Buttons)
ES-72Nâng cao
Premium

ESP32 Drawing Robot Arm (3 Servos + ILI9341 TFT Display + 2 Buttons)

A two-joint robot arm draws a heart, a star, a house, a spiral and the word MERHABA on paper, while a third servo lifts and lowers the pen. The ESP32 turns every point into shoulder and elbow angles with inverse kinematics and moves the arm in 0.5 mm steps; if a point is out of reach, it shows OUT OF REACH. The ILI9341 display shows the faint target, the arm moving live and a trace that shifts from red to blue. Two buttons: shape, pause, cancel and speed.

ESP32 2048 on a Matrix: Slide and Merge (8x8 NeoPixel + Joystick + Buzzer)
ES-77Nâng cao
Premium

ESP32 2048 on a Matrix: Slide and Merge (8x8 NeoPixel + Joystick + Buzzer)

The addictive 2048-style sliding puzzle from phones, now on an 8x8 NeoPixel matrix. The board is 4x4 tiles with no digits: every number has its own color, 2 is blue, 2048 is gold. Slide with the joystick; when equal numbers merge, the buzzer plays a note that rises with the number. Reaching 2048 starts a golden ring celebration, and when no moves are left the score scrolls across the matrix and your best is kept.

ESP32 Robot Vacuum Cleaner: Turns at Obstacles and Maps the Room (2 NEMA 17 + 2 A4988 + HC-SR04 + 2 Bumpers + OLED)
ES-87Nâng cao
Premium

ESP32 Robot Vacuum Cleaner: Turns at Obstacles and Maps the Room (2 NEMA 17 + 2 A4988 + HC-SR04 + 2 Bumpers + OLED)

A two-wheeled robot vacuum cleaner that moves like the real thing. Two NEMA 17 steppers turn the wheels: it draws a spiral, drives straight, slows down and turns when the HC-SR04 sees an obstacle, backs off and turns away when a bumper hits, and does an edge lap along the walls. It works out its position from the wheel steps and shows a map of the room on the OLED with the cleaned percentage and time, then drives back to its start.

ESP32 Tank Duel: Two Player Retro Game (ILI9341 TFT + 2 Joysticks + Buzzer)
ES-92Nâng cao
Premium

ESP32 Tank Duel: Two Player Retro Game (ILI9341 TFT + 2 Joysticks + Buzzer)

A two player tank duel on a color TFT screen, in the style of the two player tank games of the 80s. Each player drives a tank in 8 directions with a joystick and fires by pressing the stick down. Bullets bounce 3 times off the walls: you can hit a rival hiding behind a corner with a bank shot, but your own bullet can come back and hit you too. A tank that is hit explodes and the rival scores 1 point; first to 5 points wins. Score at the top, sounds from the buzzer.

ESP32-CAM Telegram Security Camera
ES-106Nâng cao
Premium

ESP32-CAM Telegram Security Camera

When your door opens or something moves in the room, the ESP32-CAM takes a photo and your Telegram bot sends it to your phone. A reed switch and magnet guard the door, a PIR HC-SR501 watches the room. Type /photo to the bot for a photo on demand; /flash on, /alarm off and /status run the camera from anywhere. The bot only listens to your own chat id. You get the token from @BotFather; the steps are in the FAQ.

Linh kiện và công cụ

Những linh kiện dùng nhiều nhất trong các dự án này, các máy tính hỗ trợ khi lắp ráp và hướng dẫn từng bước.

Câu hỏi thường gặp

ESP32 và Arduino khác nhau thế nào?

ESP32 có sẵn Wi-Fi và Bluetooth, bộ xử lý lõi kép 240 MHz và bộ nhớ lớn hơn nhiều. Arduino Uno là bo 5 V đơn giản hơn, dễ tha thứ lỗi. ESP32 tốt hơn cho dự án kết nối mạng, còn Uno hợp cho những bước đầu tiên với điện tử.

Có thể lập trình ESP32 bằng Arduino IDE không?

Có. Thêm URL board manager của Espressif trong phần tùy chọn của Arduino IDE và cài gói esp32 từ Boards Manager. Sau đó chọn ESP32 Dev Module làm bo mạch và nạp code.

Chân ESP32 có chịu được 5 V không?

Không. Chân GPIO của ESP32 hoạt động ở 3,3 V và tín hiệu 5 V có thể làm hỏng chúng. Hãy dùng cầu phân áp hoặc mạch chuyển mức logic với cảm biến xuất tín hiệu 5 V.

Nên mua bo ESP32 nào?

ESP32 DevKit với module ESP32-WROOM-32 là bo phổ biến nhất và có nhiều ví dụ nhất. Cho dự án camera có ESP32-CAM, còn với dự án Wi-Fi đơn giản hơn thì NodeMCU dùng ESP8266 cũng được.

Có thể làm những dự án IoT nào với ESP32?

Các dự án ESP32 phổ biến gồm rơ-le và LED điều khiển từ điện thoại, trạm thời tiết hiển thị dữ liệu cảm biến trên trang web, báo động chuyển động gửi cảnh báo Telegram, đồng hồ NTP lấy giờ từ internet và các thiết bị điều khiển bằng Bluetooth.

Phải làm gì nếu không nạp được code vào ESP32?

Hãy chắc chắn cáp USB truyền được dữ liệu và driver CP2102 hoặc CH340 đã được cài. Nếu quá trình nạp bị treo ở “Connecting...”, hãy giữ nút BOOT trên bo mạch. Phải chọn đúng cổng và ESP32 Dev Module.

Nền tảng khác