You might have seen numerous types of light controllers in your daily life, but how about building your very own light controller with PIC16F873?
There are several reasons why you should use the PIC16F873 as the main circuit for this light controller project:
- The voltage that controlled by the variable resistor is converted to the digital signal. After it, the signal will be used to control the pulse duration of Pulse Width Modulation (PWM).
- A/D converting is fully executed every 1-milisecond period using this function.
- The electric current, where flows through the lamp is controlled by the PWM pulse signal. The pulse of about 610Hz is being used in this circuit!
Control voltage input circuit is needed to change the voltage from 0V to 5V by variable resistor. The voltage is inputted to the analog port of PIC. The value of the variable resistor can be decided as you want here.
Beside that, the lamp control circuit is going to use for controlled the electric current by switching MOSFET. Furthermore, you will need the clock generator circuit and power supply circuit for this project as well!