[Menu]>[Circuits Gallery]


PIC Circuits Gallery
Light controller

On this page, I will introduce the Light controller with PIC16F873.

This circuit is usable only in the direct electric current.
It isn't possible to use for alternating current.

In 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.
CompareA/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.

Hardware Software
Circuit drawing

Pattern drawing

Circuit explanation

Parts explanation
List

Processing explanation

Improvement