How to Make DIY Arduino Ultrasonic Range Finder Using HC-SR04

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.

Supplies

  1. Arduino Uno R3
  2. Breadboard
  3. Jumper Wires
  4. HC-SR04 sensor
  5. Buzzer LED
  6. Resistor 220ohm

Step 1: Procedure

  1. The HC-SR04 Ultrasonic Module has 4 pins, Ground, VCC, Trig, and Echo.
  2. 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.
  3. The HC-SR04 sensor attaches to the Breadboard
  4. The Sensor VCC connect to the Arduino Board +5V
  5. The Sensor GND connect to the Arduino Board GND
  6. The Sensor Trig connect to the Arduino Board Digital I/O 9
  7. The Sensor Echo connects to the Arduino Board Digital I/O 10 Buzzer and LED The Buzzer to attach to the Breadboard
  8. The Buzzer long leg (+) connects to the Arduino Board Digital 11
  9. The Buzzer short leg (-) connects to the Arduino Board GND
  10. The LED attached to the Breadboard
  11. The Resistor connect to the LED long leg (+)
  12. The Resistor another leg (from LED's long leg) connect to the Arduino Board Digital 13
  13. The LED short leg (-) connect to the Arduino Board GND

Step 2: Source Code

Step 3: Project Done

Step 4: Check This Video for Directions

Be the First to Share

    Recommendations

    • DIY Summer Camp Contest

      DIY Summer Camp Contest
    • Fandom Contest

      Fandom Contest
    • Pets Challenge

      Pets Challenge

    Comments