0% found this document useful (0 votes)
36 views7 pages

Arduino Distance Sensor Project Guide

This document describes an Arduino-based distance sensor project using an HC-SR04 ultrasonic sensor module. The sensor measures distance in centimeters and displays it on a 16x2 LCD screen. It requires an Arduino, HC-SR04 sensor, LCD screen, and jumper wires. The HC-SR04's trigger pin connects to digital pin 7 and echo pin to pin 8. The LCD is connected according to its pinout.

Uploaded by

sarvesh
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
36 views7 pages

Arduino Distance Sensor Project Guide

This document describes an Arduino-based distance sensor project using an HC-SR04 ultrasonic sensor module. The sensor measures distance in centimeters and displays it on a 16x2 LCD screen. It requires an Arduino, HC-SR04 sensor, LCD screen, and jumper wires. The HC-SR04's trigger pin connects to digital pin 7 and echo pin to pin 8. The LCD is connected according to its pinout.

Uploaded by

sarvesh
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd

ARDUINO BASED DISTANCE SENSOR

(COMM. PROJECT)
INTRODUCTION:
We build a distance sensor which will show the distance from the
distance sensor
HC-SR04 to the wall or obstacles in front of the sensor in centimeters
and atmega 328 or any other atmega chip is programmed using
arduino program.
HARDWARE REQUIRED:
1. HC-SR04
(it is a ultrasonic ranging module)

SPECIFICATION OF HC-SR04:
1.Power supply : 5V DC
2.Quiescent current : < 2mA
3. Ranging distance: 2cm-500 cm
SEQUENCE CHART

2. ARDUINO
(atmega ic atmega 328 or 128 or 8)
3. 16*2 LCD
4. JUMPER WIRES

CIRCUIT :

CD RS pin to digital pin 12


LCD Enable pin to digital pin 11
CD D4 pin to digital pin 5
LCD D5 pin to digital pin 4
CD D6 pin to digital pin 3
LCD D7 pin to digital pin 2
CD R/W pin to ground
0k variable resistor with two ends to +5V and ground and connect to LCD pin V
r enabling backlight of LCD connect LCD A to +5V ,LCD K to ground and LCD VSS
ound LCD VDD to +5V

r HC-SR04:

CC to 5V , GND to ground ,TRIG pin to Digital pin 7,ECHO pin to digital pin 8

You might also like