Light controllerIn this circuit, the following features of PIC16F873 are used. A/D converter The voltage controlled by the variable resistor (Analog) is converted to the digital signal.This signal is used to control the pulse duration (the duty) of PWM.Compare A/D converting is executed every 1-millisecond period using this function.PWM The electric current which flows through the lamp is controlled by the PWM pulse signal.In this circuit, the pulse of about 610 Hz is used.

Light controller
at www.interq.or.jp
Website

Light controller