This circuit is a light controller with PIC 16F873. On this circuit, the control voltage is controlled by the variable resistor, and then by ADC on PIC16F873 converted to digital signals. To set the duration of the PWM pulse. This is the figure of the circuit;
This circuit is used to control the range of 100W. Because the operating voltage of the PIC is 5 V, the transistor is used to control the 12V MOS FET.