VEHICLE ACCIDENT PREVENTATION USING EYE
BLINK SENSOR
PROJECT GUIDE
D.KISHORE M.Tech(Ph.D)
ABSTRACT
Accidents are increasing at a large pace, and various technologies are being introduced to reduce the accidents.
In this project we provide by means of accident prevention using eye blink where as the vehicle is stopped immediately and intimated wherever needed.
OVERVIEW
INTRODUCTION BLOCK DIAGRAM OF TRANSMITTER BLOCK DIAGRAM OF RECEIVER MICROCONTROLLER PIN DESCRIPTION EYE BLINK SENSOR AND COMPARATOR CIRCUIT RF COMMUNICATION ENCODER AND DECODER MOTOR POWER SUPPLY UNIT LCD DISPLAY LCD INTERFACING SOFTWARE SED PROGRAM CONCLUSION FUTURE SCOPE
INTRODUCTION
Vehicle accidents are most common if the driving is inadequate.
Driver drowsiness is recognized as an important factor in the vehicle accidents.
This project involves measure and controls the eye blink using IR sensor. The IR transmitter is used to transmit the infrared rays in our eye.
POWER SUPPLY UNIT
BLOCK DIAGRAM OF TRANSMITTER
Microcontroller AT89S52
EYE Blink Sensor
comparator Encoder
RF Transmitte
r
BLOCK DIAGRAM OF RECEIVER
Microcontroller AT89S52
Buzzer
DC MotorRF
Receiver
Decoder
LCD Display
MICROCONTROLLER(AT89S52)
Pin Diagram
Pin Desciption
Low power, high performance CMOS 8 bit microcontroller. 8K bytes of Flash, 256 bytes of RAM, 32 I/O lines two data
pointers, three 16-bit timer/counters, a six-vector two-level
interrupt architecture
VCC PSEN
GND EA/VPP
PORT 0 XTAL1
PORT 1 XTAL2
PORT 2
PORT3
RST
ALE/PROG
RF COMMUNICATION
RF COMMUNICATION
TRANSMITTER:
• Low Cost• 1.5-12V operation• Small size
• operates at 4.5 to 5.5 volts
RECEIVER:
ENCODER &DECODER
MOTOR (L293D)
L293D Pin description Logic Diagram
Functional description
POWER SUPPLY UNIT
LCD DISPLAY
• LCD display consists of two lines, 20 characters per line.• 3 control lines and 8 I/O lines. - 8 data pins D7:D0
- RS: Register Select- R/W: Read or Write- E: Enable (Latch data)
LCD INTERFACING
SOFTWARE USED
Keil compiler is the software used where the machine language code is written and compiled.
The machine source code is converted into hex code, this hex code is dumped into the microcontroller for further processing.
PROGRAM
#include<reg51.h>
//#include<lcd.h>
sbit s1=P1^4;
sbit s2=P1^5;
sbit s3=P1^6;
sbit s4=P1^7;
sbit r1=P1^0;
sbit r2=P1^1;
sbit r3=P1^2;
sbit r4=P1^3;
sbit rs=P3^7;
sbit en=P3^6;
void delay(unsigned int ch) //delay function
{
unsigned int i=0,j=0;
for(i=0;i<=ch;i++)
{ for(j=0;j<=i;j++)
{
}
}
}
void clcd(unsigned char ch)
{
P2=ch;
rs=0; en=1; delay(15); en=0;
}
void dlcd(unsigned char ch){ P2=ch; rs=1; en=1; delay(15); en=0; }void stringlcd(unsigned char ch,unsigned char *chrt) { unsigned int ix=0; if(ch==0x80) clcd(0x01); clcd(ch); for(ix=0;chrt[ix]!='\0';ix++) { dlcd(chrt[ix]);
} }
void initlcd() { clcd(0x38); clcd(0x0e); clcd(0x06); clcd(0x01); clcd(0x80);◦ }
void main(){P1=0x00;initlcd();stringlcd(0x80,"hai");
while(1){
if(s1==0) //front{r1=1;r2=0;r3=1;r4=0;stringlcd(0xc0,"front ");}else if(s2==0){r1=0;r2=1;r3=0;r4=1;stringlcd(0xc0,"back ");}
else if(s3==0){r1=1;r2=0;r3=0;r4=1;stringlcd(0xc0,"left "); }else if(s4==0){r1=0;r2=1;r3=1;r4=0;stringlcd(0xc0,"right ");}else {r1=0;r2=0;r3=0;r4=0;stringlcd(0xc0,"stopped ");}delay(300);
}}
CONCLUSION
Reduce the number of accidents.It is also used for security alerts where 24
hours surveillance is required.
FUTURE SCOPE
This is extended with alcoholic detection also.
If the person took alcohol who is driving then the vehicle will be stopped immediately by giving alarm .s
THANK YOU