Article
Two-Colour Running Light
with microprocessor control
Lighting effects are always popular and we frequently publish such projects in the pages of Elektor Electronics. Here is a circuit that uses a microcontroller to drive up to 96 bicolour LEDs in a wide range of patterns. A particular feature of the design is the way it exploits the persistence of human vision.Instead of `regular’ LEDs this running light uses so-called bicolour LEDs which can emit two different colours, usually red and green. These are available in versions with three connections (a common cathode and separate anodes) or with two connections. We use the second type in this circuit, where the two LEDs are connected in antiparallel so that one LED or the other lights according to the direction of current flow.
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
Controller board
Resistors:
R1 = 4-way10k? SIL array
R2 = 2k?2
R3 = 22k?
R4 = 10k?
R5,R6 = 1k?
Capacitors:
C1,C2 = 33pF
C3 = 10µF 16V radial
C4 = 470µF 16V radial
C5 = 100µF 16V radial
C6 = 100nF
Semiconductors:
D1 = 1N4148
T1 = BC547B
IC1 = AT89C2051-12PC, programmed, order code 010134-41
IC2 = 7805
Miscellaneous:
K1 = 9-way sub-D socket, angled pins, PCB mount
K2-K5 = 5-way SIL pinheader
K6 = mains adaptor socket, PCB mount
PCB, order code 010134-1
Disk, order code 010134-11
LED board
Resistors:
R1-R24 = 390?
Capacitors:
C1,C2,C3 = 100nF
Semiconductors:
D1-D24 = bicolour LED, 2 pins, 3mm dia.
IC1-IC6 = 74HC164
Miscellaneous:
K1 = 5-way SIL pinheader
PCB, order code 010134-2
Resistors:
R1 = 4-way10k? SIL array
R2 = 2k?2
R3 = 22k?
R4 = 10k?
R5,R6 = 1k?
Capacitors:
C1,C2 = 33pF
C3 = 10µF 16V radial
C4 = 470µF 16V radial
C5 = 100µF 16V radial
C6 = 100nF
Semiconductors:
D1 = 1N4148
T1 = BC547B
IC1 = AT89C2051-12PC, programmed, order code 010134-41
IC2 = 7805
Miscellaneous:
K1 = 9-way sub-D socket, angled pins, PCB mount
K2-K5 = 5-way SIL pinheader
K6 = mains adaptor socket, PCB mount
PCB, order code 010134-1
Disk, order code 010134-11
LED board
Resistors:
R1-R24 = 390?
Capacitors:
C1,C2,C3 = 100nF
Semiconductors:
D1-D24 = bicolour LED, 2 pins, 3mm dia.
IC1-IC6 = 74HC164
Miscellaneous:
K1 = 5-way SIL pinheader
PCB, order code 010134-2
Discussion (0 comments)