i Love Tech: ultrasonic sensor

Learn Share and Grow Together.

Showing posts with label ultrasonic sensor. Show all posts
Showing posts with label ultrasonic sensor. Show all posts

Monday, March 19, 2018

Arduino Tutorial - Ultrasonic Sensor HC-SR04 with Buzzer and LED Tutorial HIndi Video

March 19, 2018 0
Arduino Tutorial - Ultrasonic Sensor HC-SR04 with Buzzer and LED Tutorial HIndi Video
Home Made Arduino Car Parking System
Arduino Car Parking Concept.

Watch Video


Description:
In this Arduino Tutorial we will learn how the HC-SR04 Ultrasonic Sensor works and how to use it with Buzzer and LED. And this same system can be used as a Car Peking System and other Projects.

Hardware Required:
- Arduino Board - Buy Now From Amazon
- Ultrasonic Sensor HC-SR04 - Buy Now From Amazon
- Buzzer - Buy LED,Buzzer, Resister and Other Component all in one
- LED - Buy LED,Buzzer, Resister and Other Component all in one
- 220ohm Resistor - Buy LED,Buzzer, Resister and Other Component all in one
- Breadboard and Jump Wires - Buy Now From Amazon


Connections:
HC-SR04 Sensor

- 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 (i am using 9 for Trig and 10 for Echo) 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

Code
Replace if (safetyDistance <= 5) 5 with your distance more will catch from more distance.