Using Ultrasonic Distance Sensor HC-SR04 with Buzzer, LED and Arduino @maker101io
Using Ultrasonic Distance Sensor HC-SR04 with Buzzer, LED and Arduino  @maker101io
Uploaded November 2016 | Updated September 2026, 2 weeks ago
DIY Home Security - New Video: youtu.be/UBNpL5WpJ54

In this Arduino Tutorial we will learn how the HC-SR04 Ultrasonic Sensor works and how to use it with Buzzer and LED.

Required Hardware
Arduino Board:
goo.gl/UyGYeF (Banggood)
amzn.to/2LZr6t4 (Amazon)
Ultrasonic Sensor HC-SR04 :
goo.gl/dRkWUg (Banggood)
amzn.to/3s4SbdT (Amazon)
Breadboard:
goo.gl/yCa8hX (Banggood)
amzn.to/3qxLxwm (Amazon)
Jumper Wires:
goo.gl/VRzUN4 (Banggood)
amzn.to/3doetmT (Amazon)
Buzzer: amzn.to/3ud2PkF (Amazon)
LED: amzn.to/3qxSs8O (Amazon)
220 Ohm Resistor: amzn.to/3jXMJXs (Amazon)

Recommended Items:
Use Your Muscles in Project - amzn.to/3wdL45C
37 Sensor & Module Packages - amzn.to/3m66WeQ
Try this Robot Arm - amzn.to/3fq8DCl
Best Resin 3D Printer - amzn.to/39tY8KB
Arduino Compatible Kits - bit.ly/2J2AFF7
Banggood Spring Sale - bit.ly/3slMbOn

Connections:
The HC-SR04 Ultrasonic Module has 4 pins, Ground, VCC, Trig and Echo. The Ground and the VCC pins of the module needs to be connected to the Ground and the 5 volts pins on the Arduino Board respectively and the trig and echo pins to any Digital I/O pin on the Arduino Board.

The HC-SR04 sensor attach to the Breadboard
The Sensor VCC connect to the Arduino Board +5V
The Sensor GND connect to the Arduino Board GND
The Sensor Trig connect to the Arduino Board Digital I/O 9
The Sensor Echo connect to the Arduino Board Digital I/O 10

Buzzer and LED
The Buzzer attach to the Breadboard
The Buzzer long leg (+) connect to the Arduino Board Digital 11
The Buzzer short leg (-) connect to the Arduino Board GND
The LED attach to the Breadboard
The Resistor connect to the LED long leg (+)
The Resistor other leg (from LED's long leg) connect to the Arduino Board Digital 13
The LED short leg (-) connect to the Arduino Board GND

Source Code: create.arduino.cc/editor/mertarduinotech/b7022e05-f709-4003-b2a7-5c487ee25007/preview

Social Media:
instagram.com/mertarduino
facebook.com/mertarduino
Using Ultrasonic Distance Sensor HC-SR04 with Buzzer, LED and ArduinoBuild a simple CNC plotter | 3D printing of large parts on Bambu LabUsing Ultrasonic Distance Sensor HC-SR04 with LCD Display and ArduinoI made an educational programming board (source codes by ChatGPT)Arduino Controlled using TV or IR RemoteDIY Simple 3D CNC Plotter - Arduino Based #arduino #3dprinting #3dArduino Remote Control Tank with WiFi Camera | nRF24L01Bluetooth Multi Servo Control #arduino #diy #circuit #coding #pcb @PCBWay #circuitDIY 3D Printed CNC Plotter Machine with NEMA 17 MotorsHow to Make Mini Weather Station for Beginner | ESP8266 | Wemos | ArduinoHow To Make Wireless Control Raspberry Pi Tank | Mert ArduinoArduino - Servo Motor Control with Arduino
Maker 101 |

Using Ultrasonic Distance Sensor HC-SR04 with Buzzer, LED and Arduino

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER