Microcontroller › 8051 › STREET LIGHT THAT GLOWS ON DETECTING VEHICLE MOVEMENT › i m using atmega32 which
May 20, 2014 at 7:11 am
#11748
ajinkya
Participant
i m using atmega32 which has in built pwm
i m connecting ldr at portA which are adc pin for distinguish between day and night
IR sensors are coneected at portB via LM324 comparator ic
and power leds which are 3v are conneted portD
when LDR distiguish as night the o/p LEDs will glow at 40% intensity and as the IR sensor detects any vehicle the intensity of LEDs will increase at 100% intensity with the help of PWM as soon as the vehicle passes over the IR sensor again the o/p LEDs regain its 40% intensity………
how to generate PWM in atmega32 with inbuild PWM
what to do to regain its intensity to 40%