Author: Tobias Flöry
This circuit is a good example of a microcontroller design using the absolute minimum of external components. The ATTiny15L microcontroller from Atmel has three of its outputs connected to an RGB LED (or three individual red green and blue LEDs) and produces changing colour patterns. There are of course multicolour LEDs with a controller already built-in on the market but where would be the fun in the ready-built version? You will certainly learn much more by building and programming the design yourself.
The brightness of each LED is controlled using Pulse Width Modulation (PWM). This is accomplished in software and the source code is available to download from www.elektor-electronics.co.uk free of charge as file no. 050027-11.zip. A pre-programmed controller (part no. 050027-41) can also be ordered from the online shop at the same address.
The Kingbright RGB LED used in this circuit actually contains one red, one green and two blue LEDs. This helps compensate for the poorer output from the blue LEDs and for the relative insensitivity of our eye to the blue end of the spectrum. The light output thus can produce a better white colour balance. The forward voltage drop of the blue LEDs (4.5 V) is also quite a bit higher than green (2.2 V) or red (2.0 V) so the value of the series resistor (R4) needs to be almost ten times smaller than the series resistors R2 and R3 used for the other LEDs to maintain a similar drive current.
Maximum current consumption of the circuit is approximately 35 mA but the average will be around 25 mA. More information on this design together with some other interesting designs can be found on the author’s website at www.floery.net and look for ‘tobi’s corner’.
(Elektor Electronics Magazine – 07/2006)
Download this article (#050027.pdf) 050027-11.zip >> or direct link |
Labels
- * Elektor 2005 (9)
- * Elektor 2006 (72)
- Adapters (1)
- ADC / DAC (1)
- AM / FM (2)
- Amplifiers (3)
- Antennae (2)
- Articles List (1)
- Audio (1)
- Automatic (2)
- Batteries (3)
- Bluetooth (1)
- Breakers / Contacts (1)
- Buzzers / Sirens (1)
- Clocks / Timers (2)
- Computer (2)
- Converters (2)
- Coolers / Fans (1)
- Counters (1)
- Datasheets (7)
- E-blocks (1)
- Energy (2)
- Flash / Light (8)
- Frequency (1)
- Fuse (1)
- Generators (2)
- High-voltage (1)
- Indicators (2)
- Infrared (IR) (4)
- LCDs (1)
- LEDs (7)
- Magazines (1)
- Meters (5)
- Microcontroller (9)
- Mobile Phone (1)
- Motors (1)
- OPAMP (3)
- PCB (1)
- Photosensors (1)
- Power Supply (2)
- Preamplifiers (1)
- Programming (3)
- Radio (1)
- Rectifiers (1)
- Regulators (1)
- Relays / Switches (10)
- Remote Control (7)
- RS232 (3)
- Security (4)
- Sensors (2)
- Servo (2)
- Simulators (1)
- Small Circuits (46)
- Telephones (2)
- TENS (1)
- Testers (3)
- Timebase (1)
- Tools (1)
- Transmitters (1)
- Trigger (1)
- USB (2)
0 comments: