Accident prevention for automobiles with eyeblink and alcohol sensorDocument Transcript
Accident Prevention for Automobiles with Eyeblink and Alcohol SensorAim: To built an intelligent vehicle with safety measures, to PreventAccidents of vehicles.Features in the Project:Accident Indication: Suppose if any accident is detected, it can be indicated to a nearesthospital. This is implemented using an Infrared sensor. The vehicle consistof a IR Transmitter and the IR Receiver is placed in two different zones.When the vehicle comes into contact with the IR receiver, that will beindicated to the system and the zone information is passed to the remoteplace. This is shown by glowing different LEDs for different zones.Alcohol Sensing: An alcohol sensor is included in the vehicle for sensing whether thedriver has consumed alcohol. If consumed, then vehicle will be stoppedautomatically by controlling the motors.Sleep Detection: Further more we can use an Eye blink Sensor, which can be fixed tothe drivers, Head, to monitor whether the driver has slept, or about to sleep,so that we can alert the driver by vibrating the driver seat using DC Motors.For project Demonstration we have implemented a small model withSensors fixed to it.
Eye Blink Sensor Power Supply SignalConditioning Circuits PIC Microcontroller PIC 16F877 LED1 LED2Alarm DC Motor for Motor Driver Vehicle Motor Alcohol Power Relay Sensor Supply DC Motor for Motor Driver Seat Vibr Motor Power Relay Supply Power Supply:
Uses to generate DC +12V, +5V Power supply from the give 230VAC SupplyEye Blink Sensor: Used to convert the eye blink action into voltage pulses for everyblink.Signal Conditioning Circuits: Used to convert the voltage pulses delivered from the eye blink sensorto ttl level signals which should be given to a microcontroller for processing.Alcohol Sensor: Produces voltage ouput according the alcohol sensing level.Motor Driver: The signal output from the controller is not sufficient to drive a DCMotor. So a current amplification is necessary before giving to the motor. Sothe motor driver board is usedMotor Power Supply: Used to generate the motor power supply of +12V DC from the 230VAC Supply.Relay:Used to switch on/off the power supply of the motor, as decided by thecontroller.LED1 and LED2: Used to indicate the status whether the vehicle has stopped due to theAlcohol sensor, or the driver has slept by monitoring the Eye blink sensorAlarm: Alarm is enabled whenever there is fault condition.PIC 16F877 Microcontroller:Core Features:
• High performance RISC CPU• Only 35 single word instructions to learn• All single cycle instructions except for program Branches which are twocycle• Operating speed: DC - 20 MHz clock input DC - 200 ns instruction cycle• Up to 8K x 14 words of FLASH Program Memory, Up to 368 x 8 bytes of Data Memory (RAM)• Interrupt capability (up to 14 sources)• Direct, indirect and relative addressing modes• Power-on Reset (POR)• Power-up Timer (PWRT) and Oscillator Start-up Timer (OST)• Processor read/write access to program memory• Wide operating voltage range: 2.0V to 5.5V• Low-power consumption: - < 0.6 mA typical @ 3V, 4 MHz - < 1 µA typical standby currentPeripheral Features:• Timer0: 8-bit timer/counter with 8-bit prescaler• Timer1: 16-bit timer/counter with prescaler, can be incremented duringSLEEP• Timer2: 8-bit timer/counter with 8-bit period register, prescaler andpostscaler
• 10-bit multi-channel Analog-to-Digital converter• Synchronous Serial Port (SSP) with SPI (Master mode) and12C(Master/Slave)• Universal Synchronous Asynchronous Receiver Transmitter (USART/SCI)with 9-bit address detection• Parallel Slave Port (PSP) 8-bits wide, with external RD, WR and CScontrols (40/44-pin only)