Projects using this component

HC-SR04 Distance Measurement (Serial Display)
Project that measures distance with HC-SR04 ultrasonic sensor and displays the result in cm on Serial Monitor. It teaches the principle of distance calculation with sound wave.

Measuring Distance Using LCD Display
A project that displays the readings from the HC-SR04 distance sensor in cm in real time on a 2x16 LCD screen. It combines sensor data and LCD display.

Using LCD Screen with I2C
The project that prints messages by controlling the LCD screen with only 2 cables (SDA, SCL) thanks to the I2C module. Teaches how to save pins with I2C protocol.

Height Measurement Project
Project that performs height measurement by calibrating with HC-SR04 sensor and I2C LCD screen. It offers a practical application by managing calibration and measurement steps with two buttons.

Smart Stair and Corridor Lighting
A stylish automation project with a bidirectional HC-SR04 distance sensor that alternately lights on and off in the direction of movement.

Obstacle Avoidance Robot
How about building a smart vehicle that finds its own way? The Obstacle Avoidance Robot constantly scans its surroundings thanks to the ultrasonic sensor in front of it. When it encounters an obstacle

ESP32 HC-SR04 Ultrasonic Distance Sensor
The HC-SR04 ultrasonic sensor calculates distance by measuring the time it takes for the sound wave it emits to bounce off an object and return (Time of Flight). In this project, we will send a 10-microsecond pulse to the TRIG pin of the ESP32 and read the echo duration from the ECHO pin using `pulseIn()`. We will display the calculated distance in centimeters on the Serial Monitor. Since the HC-SR04 operates at 5V, a **voltage divider** is required on the ECHO pin—otherwise, the ESP32’s 3.3V GP

ESP32 Prayer Rakat Counter (HC-SR04 + SSD1306 OLED + 2 Buttons)
Do you sometimes forget how many rak’ahs you’ve prayed while performing salat? This project creates a rak’ah counter that is placed next to your prayer mat and counts your prostrations when you bring your hand close to it. The HC-SR04 ultrasonic distance sensor detects hand proximity, the SSD1306 OLED display shows the rak’ah count, and you can select 2, 3, or 4 rak’ahs and reset the count using two buttons. It features a smart state machine with a 2.5-second debounce and a “hand-away” algorithm

ESP32 Parking Sensor (HC-SR04 + 5-LED Bar + Buzzer + OLED)
The ESP32 version of the car parking sensor! We use the HC-SR04 ultrasonic sensor to measure the distance to the object in front of it. As the distance decreases, the 5-LED bar fills up (green → yellow → red) and the buzzer beep interval shortens. When the object gets very close (under 10 cm), a continuous alarm sounds and all LEDs light up. The SSD1306 OLED display shows the current distance in cm in large font, a status message (STOP / CAUTION / CLOSE / STOP! / DANGER), and a simulation of the

