Projects · Arduino / ESP32 / Pico

Discover Arduino Projects

Hundreds of projects from beginner to advanced — schematics, code, and videos.

ESP32 HC-SR04 Ultrasonic Distance Sensor
ES-14Intermediate

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)
51
ESP32 DHT22 Temperature and Humidity (with LCD Display)
ES-15Intermediate

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 MQ-2 Gas/Smoke Detector Alarm
ES-20Intermediate

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)
47
ESP32 Prayer Rakat Counter (HC-SR04 + SSD1306 OLED + 2 Buttons)
ES-34Advanced
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 Parking Sensor (HC-SR04 + 5-LED Bar + Buzzer + OLED)
ES-38Advanced
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 Temperature Data Logger (DHT22 + DS1307 RTC + microSD + OLED)
ES-40Advanced
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
Arduino Mini Radar (Servo + HC-SR04 + OLED Display)
AR-98Intermediate
Premium

Arduino Mini Radar (Servo + HC-SR04 + OLED Display)

A movie-style radar from a distance sensor and a servo! The SG90 servo sweeps the HC-SR04 from 0 to 180 degrees while the 0.96 inch OLED draws a rotating sweep line and shows detected objects as dots. When something enters the range, the passive buzzer pings, and the pitch rises as the object gets closer. Servo control, ultrasonic measurement, trigonometry-based drawing and tone() sound in one project.

1
Raspberry Pi Pico Parking Sensor (HC-SR04 + 3 LEDs + Buzzer)
PI-18Beginner

Raspberry Pi Pico Parking Sensor (HC-SR04 + 3 LEDs + Buzzer)

Bring your car's reverse parking sensor to your desk! The Raspberry Pi Pico uses an HC-SR04 ultrasonic sensor to measure the distance to an obstacle about 16 times a second. As it gets closer, the green, yellow and red LEDs light up in turn and the buzzer beeps faster; under 10 cm the tone turns continuous and the red LED flashes. Ultrasonic ranging, PWM sound and non-blocking timing in one project.

2
Raspberry Pi Pico Mini Weather Station (DHT22 + OLED Chart)
PI-21Intermediate
Premium

Raspberry Pi Pico Mini Weather Station (DHT22 + OLED Chart)

How has your room's temperature changed over the last two minutes? The Raspberry Pi Pico reads temperature and humidity from a DHT22 every 2 seconds and shows the value in big digits on a 0.96 inch OLED, with a line chart of the last 60 readings below. An arrow shows the trend and the temperature and humidity pages swap every 4 seconds. The OLED driver is built into the code: one file, no libraries.

ESP32 Earthquake Shake Alarm (MPU-6050 + OLED Display + Buzzer)
ES-45Intermediate
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)
Raspberry Pi Pico Sun Tracking Panel (2 LDRs + SG90 Servo)
PI-25Intermediate
Premium

Raspberry Pi Pico Sun Tracking Panel (2 LDRs + SG90 Servo)

A panel that finds the sun on its own! The Raspberry Pi Pico measures light with 2 LDRs on either side of the panel, and an SG90 servo turns it toward the brighter side. A big difference turns it fast, a small one slowly, and it eases to a stop once both sides match. At night the panel swings back east to wait for sunrise. A ready-made experiment for science fairs and school projects.

Arduino Kitchen Scale (HX711 + Load Cell + I2C LCD)
AR-106Intermediate
Premium

Arduino Kitchen Scale (HX711 + Load Cell + I2C LCD)

Put the bowl on, press the button, zero! A real kitchen scale with an HX711 amplifier and a 5 kg load cell: the I2C LCD shows the weight in grams or ounces, with a fill bar on the second row. One button does two jobs: a short press tares, a long press switches between g and oz. At 5 kg an overload warning appears. Calibration, a moving average and short/long presses in one project.