Arduino Ultrasonic Distance Sensor Project: HC‑SR04 Range Finder
Components and supplies
![]() |
| × | 1 | |||
| × | 1 | ||||
![]() |
| × | 10 | |||
![]() |
| × | 1 | |||
![]() |
| × | 1 |
Apps and online services
![]() |
|
About this project
Mode of OperationWith this you can measure distances from point A to point B faster just by pointing. It's pretty accurate and cheap to make. Connect everything as shown below.

The GREEN LED will light up if the distance is more than 100 cm and the RED LED will light up if the distance is less than 100 cm from the subject. To view the distance measurements, simply open up the Arduino IDE. Click "TOOLS" and select Serial Monitor. As long as your Arduino is connected to the PC via USB, you will receive measurements.


Code
Github
https://github.com/saaketporay/Ultrasonic-Distance-FinderSchematics


Manufacturing process
- FlickMote: Gesture‑Controlled IR Remote for Smart Home
- Control an LED via Bluetooth with Arduino – Simple DIY Guide
- Build a Smart Arduino Quadruped Robot: Step‑by‑Step Guide
- Arduino RGB LED Color Mixer – Beginner‑Friendly DIY Project
- Outdoor DMX-Enabled RGB LED Flood Lights – Affordable & High-Performance
- DIY LED Roulette Game – Build a One‑Person Arcade with Arduino Nano
- Build an Ultrasonic Range Detector Using Arduino UNO and SR04 Sensor
- Smart Arduino-Powered Automated Parking Garage System
- Build an Infinity Gauntlet: DIY Arduino LED Kit
- Create Your Own LED Color Sequencer with Arduino – Easy DIY Tutorial



