Introduction: How to Make DIY Arduino Ultrasonic Range Finder Using HC-SR04
In this post, we will be discussing making an Ultrasonic Range Finder by using the HC-SR04 sensor very easily at home. You can use any beginner kit of Arduino to make it, as the parts required are easily available with it.
- Arduino Uno R3
- Jumper Wires
- HC-SR04 sensor
- Buzzer LED
- Resistor 220ohm
Step 1: Procedure
- The HC-SR04 Ultrasonic Module has 4 pins, Ground, VCC, Trig, and Echo.
- The Ground and the VCC pins of the module need 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 attaches 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 connects to the Arduino Board Digital I/O 10 Buzzer and LED The Buzzer to attach to the Breadboard
- The Buzzer long leg (+) connects to the Arduino Board Digital 11
- The Buzzer short leg (-) connects to the Arduino Board GND
- The LED attached to the Breadboard
- The Resistor connect to the LED long leg (+)
- The Resistor another leg (from LED's long leg) connect to the Arduino Board Digital 13
- The LED short leg (-) connect to the Arduino Board GND