Home › Magazines › 2005 › January › Playful Lights

Playful Lights

Just three LEDs...

Published in issue 340, January 2005

Playful Lights

Here’s a recipe to make LEDs produce slow, continuous light effects rather than abrupt changes normally obtained from square-wave drive signals.
If you are after really accurate control of one or more LEDs, the best option by far is pulsewidth modulation (PWM) which is usually obtained from a dedicated PWM chip or a suitably programmed microcontroller. On the other hand, if the blink frequency not terriblyimportant, other, much simpler methods are available. For example, get out two square-wave oscillators running at slightly different frequencies and mix their outputs together in an XOR exclusive-OR) logic gate. That’s all it takes to build a beat-frequency oscillator whose low-frequency output signal may be pulse-width modulated in
triangular(-ish) fashion.

Components

Resistors:

R1,R8,R9,R10 = 1kO
R5,R6,R7 = 2k2
R2,R3,R4 = 976 1%
P1,P2,P3 = 50 preset
Capacitors:
C1-C4 = 22µF 16V radial
C5-C8 = 100nF
Semiconductors:
D1 = LED, green, low current
D2 = LED, yellow, low current
D3 = LED, red, low current
or:
D1,D2,D3 = RGB LED (e.g., Conrad Electronics # 185388 - 8B)
D4 = 1N4148
T1,T2,T3 = BC547
IC1 = 74HCT132
IC2 = 74HCT86
IC3 = 7805
Miscellaneous:
K1 = 9-V PP3 battery with clip-on leads

Click below to download a PDF copy of this article from Elektor magazine.

 

Downloads 

PDF Article (U050176.pdf)
10 Elektor Credits
PCB layout (030372-PCB.pdf)
Free download
Please note. In view of the complexity of international markets, Elektor cannot guarantee the availability of components for this project.

Subscribe now

Subscribe to our free
E-weekly Newsletter!

Enter your Email address:

Follow Elektor

      

Act now!

FAQ

Before submitting questions, review our FAQ section!

Bestseller

Microprocessor Design using Verilog HDL

This book is a practical guide to processor design in the real world. It presents the Verilog HDL in an easily digestible fashion and serves as a thorough introduction about reducing a computer architecture and instruction set to practice. 

Package Deals

Elektor Bundles

Check our Package Deals and save money! Discounts up to 19% now available!

Price Slashed

Elektor OSPV

This Open Source People Vehicle is perfect for factory halls, warehouses, hospitals, colleges, schools etc.

Elektor PCBs at 25% OFF