eye blink sensing
TRANSCRIPT
![Page 1: Eye blink sensing](https://reader031.vdocuments.net/reader031/viewer/2022021500/58831cc31a28abe2758b46cb/html5/thumbnails/1.jpg)
VEHICLE ACCIDENT PREVENTATION USING EYE
BLINK SENSOR
Archana RallapalliVIT University
![Page 2: Eye blink sensing](https://reader031.vdocuments.net/reader031/viewer/2022021500/58831cc31a28abe2758b46cb/html5/thumbnails/2.jpg)
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.
![Page 3: Eye blink sensing](https://reader031.vdocuments.net/reader031/viewer/2022021500/58831cc31a28abe2758b46cb/html5/thumbnails/3.jpg)
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
![Page 4: Eye blink sensing](https://reader031.vdocuments.net/reader031/viewer/2022021500/58831cc31a28abe2758b46cb/html5/thumbnails/4.jpg)
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.
![Page 5: Eye blink sensing](https://reader031.vdocuments.net/reader031/viewer/2022021500/58831cc31a28abe2758b46cb/html5/thumbnails/5.jpg)
POWER SUPPLY UNIT
![Page 6: Eye blink sensing](https://reader031.vdocuments.net/reader031/viewer/2022021500/58831cc31a28abe2758b46cb/html5/thumbnails/6.jpg)
BLOCK DIAGRAM OF TRANSMITTER
Microcontroller AT89S52
EYE Blink Sensor
comparator Encoder
RF Transmitte
r
![Page 7: Eye blink sensing](https://reader031.vdocuments.net/reader031/viewer/2022021500/58831cc31a28abe2758b46cb/html5/thumbnails/7.jpg)
BLOCK DIAGRAM OF RECEIVER
Microcontroller AT89S52
Buzzer
DC MotorRF Receiver
DecoderLCD
Display
![Page 8: Eye blink sensing](https://reader031.vdocuments.net/reader031/viewer/2022021500/58831cc31a28abe2758b46cb/html5/thumbnails/8.jpg)
MICROCONTROLLER(AT89S52)
Pin Diagram
![Page 9: Eye blink sensing](https://reader031.vdocuments.net/reader031/viewer/2022021500/58831cc31a28abe2758b46cb/html5/thumbnails/9.jpg)
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
![Page 10: Eye blink sensing](https://reader031.vdocuments.net/reader031/viewer/2022021500/58831cc31a28abe2758b46cb/html5/thumbnails/10.jpg)
RF COMMUNICATION
![Page 11: Eye blink sensing](https://reader031.vdocuments.net/reader031/viewer/2022021500/58831cc31a28abe2758b46cb/html5/thumbnails/11.jpg)
RF COMMUNICATION
TRANSMITTER:• Low Cost• 1.5-12V operation• Small size
• operates at 4.5 to 5.5 volts
RECEIVER:
![Page 12: Eye blink sensing](https://reader031.vdocuments.net/reader031/viewer/2022021500/58831cc31a28abe2758b46cb/html5/thumbnails/12.jpg)
ENCODER &DECODER
![Page 13: Eye blink sensing](https://reader031.vdocuments.net/reader031/viewer/2022021500/58831cc31a28abe2758b46cb/html5/thumbnails/13.jpg)
MOTOR (L293D)
L293D Pin description Logic Diagram
Functional description
![Page 14: Eye blink sensing](https://reader031.vdocuments.net/reader031/viewer/2022021500/58831cc31a28abe2758b46cb/html5/thumbnails/14.jpg)
POWER SUPPLY UNIT
![Page 15: Eye blink sensing](https://reader031.vdocuments.net/reader031/viewer/2022021500/58831cc31a28abe2758b46cb/html5/thumbnails/15.jpg)
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)
![Page 16: Eye blink sensing](https://reader031.vdocuments.net/reader031/viewer/2022021500/58831cc31a28abe2758b46cb/html5/thumbnails/16.jpg)
LCD INTERFACING
![Page 17: Eye blink sensing](https://reader031.vdocuments.net/reader031/viewer/2022021500/58831cc31a28abe2758b46cb/html5/thumbnails/17.jpg)
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.
![Page 18: Eye blink sensing](https://reader031.vdocuments.net/reader031/viewer/2022021500/58831cc31a28abe2758b46cb/html5/thumbnails/18.jpg)
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;}
![Page 19: Eye blink sensing](https://reader031.vdocuments.net/reader031/viewer/2022021500/58831cc31a28abe2758b46cb/html5/thumbnails/19.jpg)
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");
![Page 20: Eye blink sensing](https://reader031.vdocuments.net/reader031/viewer/2022021500/58831cc31a28abe2758b46cb/html5/thumbnails/20.jpg)
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);}}
![Page 21: Eye blink sensing](https://reader031.vdocuments.net/reader031/viewer/2022021500/58831cc31a28abe2758b46cb/html5/thumbnails/21.jpg)
CONCLUSION
Reduce the number of accidents.It is also used for security alerts where 24
hours surveillance is required.
![Page 22: Eye blink sensing](https://reader031.vdocuments.net/reader031/viewer/2022021500/58831cc31a28abe2758b46cb/html5/thumbnails/22.jpg)
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
![Page 23: Eye blink sensing](https://reader031.vdocuments.net/reader031/viewer/2022021500/58831cc31a28abe2758b46cb/html5/thumbnails/23.jpg)
THANK YOU