Article
PIC PWM Controller
-
An efficient and economical method to control the power into a load (for example the speed of a motor or the temperature of a heating element) is to use PWM (Pulse Width Modulation). But things are a little bit more involved of we want an accurate adjustment from 0 to 100 % and an indication of the power.
A little 8-pin microcontroller can do these tasks easily: generating a PWM signal and indicating the power via a 4017.
A little 8-pin microcontroller can do these tasks easily: generating a PWM signal and indicating the power via a 4017.
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 = 100k
R2,R3 = 4k7
R4 = 220
Capacitors:
C1 = 2200µF 25V
C2 = 10µF 25V
C3-C6 = 100nF
Semiconductors:
D1 = 1N5408
D2 = 1N4148
D3-D7 = LED, 3mm, green
D8-D12 = LED, 3mm, red
T1 = IRFZ34N
T2 = BS170
IC1 = 78L05
IC2 = PIC 12C508-I/P
IC3 = CD 4017
Miscellaneous:
K1,K2 = 2-way PCB terminal block, lead pitch 5mm
S1,S2 = pushbutton, 1 make contact, DTS6
F1 = 2 AT (time lag) fuse with PCB mount holder
Heatsink type SK104 (Fischer)
PCB, ref. 050056-1
PIC source and hex code, ref. 050056-11
R1 = 100k
R2,R3 = 4k7
R4 = 220
Capacitors:
C1 = 2200µF 25V
C2 = 10µF 25V
C3-C6 = 100nF
Semiconductors:
D1 = 1N5408
D2 = 1N4148
D3-D7 = LED, 3mm, green
D8-D12 = LED, 3mm, red
T1 = IRFZ34N
T2 = BS170
IC1 = 78L05
IC2 = PIC 12C508-I/P
IC3 = CD 4017
Miscellaneous:
K1,K2 = 2-way PCB terminal block, lead pitch 5mm
S1,S2 = pushbutton, 1 make contact, DTS6
F1 = 2 AT (time lag) fuse with PCB mount holder
Heatsink type SK104 (Fischer)
PCB, ref. 050056-1
PIC source and hex code, ref. 050056-11
Discussion (0 comments)