Introduction: Hc-sr04
This project is a very easy project you will see the distance to the obstacle in front of it
Step 1: Step 1:
materials:
arduino uno r3
hc-sr04 ultrasonic sensor
male to male jumper wires
breadboard
Step 2: Step 2:
connection:
VCC to 5V
TRIG to pin 7
ECHO to pin 8
GND to GND
Step 3: Step 3:
upload the code
This is the link to the code : http://www.mediafire.com/download/b35fc8fv2dvye8o/...
open serial monitor on the Arduino IDE and see the distance in inches and cm