You are here: Home
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%
i have right down every thing on a paper only i want to know the how pwm is dimming the intensity
please help me in writing the code………..
hi….Harshad,
i m doing this tye of project and i m getting trouble in making code.
i m using atmega32 microcontroller, LDR, IR sensors, and pwm concept for dimming the intensity of leds
please help me…………