Summary of 8 LED Knight Rider using AVR microcontroller
This article describes a project using an AT90S1200 AVR microcontroller to create an 8-LED Knight Rider effect. PORTB is configured as an output to source current, with an EEPROM table controlling the flashing sequence. The design supports compact applications like earrings using SMD components and a 3V battery.
Parts used in 8 LED Knight Rider using AVR microcontroller:
- 8x low-current LEDs
- 1x 1k ohm resistor
- 1x 10k ohm resistor
- 1x AT90S1200 microcontroller
- 2x 1N4007 diodes
- 1x 100n capacitor
- 1x 47uF/16V capacitor
- 1x 78L05 voltage regulator
Another version:
In this version I took PORTB of the AT90S1200 AVR microcontroller as you can see in the diagram, because this makes it simpler to let 8 LEDs flash back and forth. Set the Data Direction Register of port B as an output, the output will source current. What I did is loading an EEPROM-table in the AVR and reading each address into PORTB. There are ofcourse many ways to program this little gadget. If you use a 3 Volt battery and SMD components you can make e.g. an earring, e.g. set the LEDs in a circle, etc., just use your fantasy and something nice will come out of it. Here the complete assembly listing and also the hex-dump:
Part list:
8x low-current LEDs
1x 1k ohm
1x 10k ohm
1x AT90S1200
2x 1N4007
1x 100n
1x 47uF/16V
1x 78L05
For more detail: 8 LED Knight Rider using AVR microcontroller
-
Which port of the AT90S1200 is used for the LEDs?
The article states that PORTB of the AT90S1200 AVR microcontroller is used because it simplifies making 8 LEDs flash back and forth. -
How is the current sourced by the output configured?
The Data Direction Register of port B is set as an output so that the output will source current. -
What method is used to control the LED sequence?
An EEPROM-table is loaded into the AVR, and each address is read into PORTB to control the lights. -
Can this gadget be made smaller for use as jewelry?
Yes, using a 3 Volt battery and SMD components allows you to make it into an earring or other creative shapes. -
What voltage regulator is included in the part list?
The part list includes one 78L05 voltage regulator. -
What type of capacitors are required for the circuit?
The circuit requires one 100n capacitor and one 47uF/16V capacitor. -
Are there alternative ways to program this device?
The article mentions there are many ways to program this little gadget besides the described method.

