Documente Academic
Documente Profesional
Documente Cultură
GUIDED BY:
Mrs. MEGHANA DESHPANDE.
INTRODUCTION:
COMPONENTS SPECIFICATIONS
1.PIC18F4520 8K*14 words of FLASH Memory,368*8 bytes RAM,
Interrupt capability(up to 14 source),operating
voltage 2 to 5.5V
2.LED Green, Red, Yellow
3.RESISTORS 220Ω,33kΩ,10kΩ,100Ω
4.W10M BRIDGE Bridge rectifier
5.QRD1114 Operating dist=1.27mm,operating temp. -40 to
85ºC,cont. forward current=50mA
6.CAPACITOR 1000µf,100µf,22pf(2)
7.BUZZER D=12mm,12mm L x 12mm W x 9.5mm H,current
rating 30mA,sound pressure level 85dB
8.VIBRATOR D=10mm,rated voltage=10V,L=3mm,output current
MOTAR rated frequency=58mA
Block Diagram :
HUMAN EYE
EYE BLINKING
POWER
SENSOR SUPPLY
PIC18F4520 BUZZER
RESET MICROCONTROLLER
LED’S(GREEN,
YELLOW,RED)
VIBRATOR
MOTOR
HARDWARE DESIGN :
SOFTWARE DESIGN:
FLOWCHART
ALGORITHM:
STEP 1:START
STEP 2:Declare port B as output port.
STEP3: Declare port A as a input port.
STEP4: Initialize ADC
STEP5: Set GO/DONE bit of ADCON0 to start the
conversion.
STEP6: Monitor GO/DONE bit continuously, check if
GO/DONE bit is 0 then analog to digital
conversion done.
STEP7: Compare content of register ADRESH each
time.
STEP8: If (ADRESH>300)
Till 0.5 sec glow GREEN LED if greater
then 0.5 sec then glow YELLOW LED and
turn on the BUZZER.
STEP9: If (ADRESH>300)
Till 1.5 sec glow YELLOW LED and turn on
the BUZZER. If greater then1.5sec then glow
RED LED and turns on the VIBRATOR
MOTOR
STEP10: Repeat steps 6,7,8 and 9 continuously.
APPLICATION: