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