Article
Microprocessor Controlled Light Dimmer
with pushbutton control
This easy to construct light dimmer is controlled by a PIC controller and can handle a maximum current of 6 A. Three pushbuttons ensure extremely user-friendly operation.The light dimmer described here can be split into two parts. The light dimmer proper follows the familiar recipe. It is an analogue circuit, which uses a triac for phase control of the mains voltage. This is hardly a surprise. A little more striking is the fact that this dimmer circuit is not controlled with a simple potentiometer but with a programmed PIC16F84 processor. The processor is operated with the aid of three pushbuttons: a combined on/off button, an up and a down button.
Materials
Gerber file
CAM/CAD data for the PCB referred to in this article is available as a Gerber file. Elektor GREEN and GOLD members can exclusively download these files for free as part of their membership. Gerber files allow a PCB to be produced on an appropriate device available locally, or through an online PCB manufacturing service.
Elektor recommends the Elektor PCB Service service from its business partner Eurocircuits or AISLER as the best services for its own prototypes and volume production.
The use of our Gerber files is provided under a modified Creative Commons license. Creative Commons offers authors, scientists, educators and other creatives the freedom to handle their copyright in a more free way without losing their ownership.
PCB
Component list
Resistors:
R1,R2,R12 = 33 k-ohm
R3 = 120 ohm
R4 = 2.7 k-ohm
R5,R13 = 470 k-ohm
R6 = 47 ohm
R7 = 330 ohm
R8 = 470 ohm
R9 = 39 ohm
R10 = 100 k-ohm 1 W
R11 = 10 k-ohm
Capacitors:
C1,C2 = 27 pF
C3 = 0.47µ F 400 V (Class X2)
C4 = 47 nF 400 V (Class X2)
C5 =10 nF 400 V (Class X2)
C6,C7= 100 nF
C8 = 22µ F 16 V radial
Semiconductors:
D1 = zener diode 9.1V 500mW
D2-D9 = 1N4007
T1,T2 = BC337
Tri1 = TIC226D
IC1 = PIC16F84-04, programmed, order code 000117-41
IC2 = MOC3021
IC3 = 7805
IC4 = 74HCT14
IC5 = 4N25
Miscellaneous:
S1,S2,S3 = pushbutton with make contact, safety Class 2
X1 =4 MHz quartz crystal
K1,K2 = 2-way PCB terminal block, lead pitch 7.5 mm
Case: e.g. Bopla (Conrad-Electronics order code 52 22 52-11)
PCB, order code 000117-1
Project disk (PIC source code files), order code 000117-11
R1,R2,R12 = 33 k-ohm
R3 = 120 ohm
R4 = 2.7 k-ohm
R5,R13 = 470 k-ohm
R6 = 47 ohm
R7 = 330 ohm
R8 = 470 ohm
R9 = 39 ohm
R10 = 100 k-ohm 1 W
R11 = 10 k-ohm
Capacitors:
C1,C2 = 27 pF
C3 = 0.47µ F 400 V (Class X2)
C4 = 47 nF 400 V (Class X2)
C5 =10 nF 400 V (Class X2)
C6,C7= 100 nF
C8 = 22µ F 16 V radial
Semiconductors:
D1 = zener diode 9.1V 500mW
D2-D9 = 1N4007
T1,T2 = BC337
Tri1 = TIC226D
IC1 = PIC16F84-04, programmed, order code 000117-41
IC2 = MOC3021
IC3 = 7805
IC4 = 74HCT14
IC5 = 4N25
Miscellaneous:
S1,S2,S3 = pushbutton with make contact, safety Class 2
X1 =4 MHz quartz crystal
K1,K2 = 2-way PCB terminal block, lead pitch 7.5 mm
Case: e.g. Bopla (Conrad-Electronics order code 52 22 52-11)
PCB, order code 000117-1
Project disk (PIC source code files), order code 000117-11
Discussion (0 comments)