Arduino loyihalarini kashf qil
Boshlang‘ichdan yuqori darajagacha, sxemali, kodli va videoli yuzlab loyihalar. Qaysi darajada bo‘lsang, o‘sha yerdan boshla.

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.

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.

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.

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.

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 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 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 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)
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)
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 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 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.
