Summary of Running LED's using ATTiny2313
This beginner-friendly running LED project uses an ATTiny2313 microcontroller to create 15 red LEDs that chase in various patterns. Users can select between three standard modes (1, 3, or 5 LEDs) and four fading effects via a push button. The design supports assembler programming for customization, utilizes ports B and D, and requires a 5V DC power source with optional external resonator depending on the chip variant.
Parts used in the Running LED Project:
- ATTiny2313 microcontroller
- 15 red 3mm LEDs
- Push button
- Ceramic resonator of 10Mhz
- Resistors for current limiting
- 5V DC regulated power supply
This running LED or LED chaser is a good project for beginners in the microcontroller technology. It is easy to build, and the assembler program code can be easily adapted. This running LED light has 15 red 3mm LED’s.
The 15 outputs of ports B and D are used to drive the leds. The LED’s light up in a pattern that can be made in the program code, the LEDs run back and forth. With a push button you can select another pattern at which the LEDs runs. There are three running LED patterns which you can run: with one led, three leds and five leds.
There are also 4 patterns with fading LEDs:
- Fading out from the center to the side
- Fading out from the side to the center
- Fading out from left ot right
- Fading out from right to left
If you can program in assembler you can extend the progam with more patterns. At the current program 300 bytes of the flash memory are used.
Circuit and PCB Layout
The project uses the ATTiny2313 micrcontroller but the ATTiny2313 can also be used.The AVR port can draw 20mA current so you only have to place a resitor at the port of the AVR to limit the current to 20mA.
The LEDs are connected to ground so when the output of the port is high the LED will go on. The circuit uses a ceramic resonator of 10Mhz as oscillator. When you use ATTiny2313 you can discard the resonator because they have an on chip clock source. The fuse bits can be programmed to run the chip at 8Mhz.The circuit has to be powered with 5V DC regulated.
For more detail: Running LED’s
- Is this project suitable for beginners?
Yes, it is a good project for beginners in microcontroller technology because it is easy to build. - How many LEDs are used in the circuit?
The project uses 15 red 3mm LEDs. - Can users change the lighting patterns?
Yes, a push button allows selection among three running patterns and four fading patterns. - What is the function of the ceramic resonator?
The circuit uses a 10Mhz ceramic resonator as an oscillator if not using the internal clock. - Does the ATTiny2313 require an external resonator?
No, you can discard the resonator when using the ATTiny2313 because it has an on-chip clock source. - What voltage powers the circuit?
The circuit must be powered with 5V DC regulated. - How much flash memory does the program use?
The current program uses 300 bytes of flash memory. - Can the code be extended?
Yes, if you can program in assembler, you can extend the program with more patterns.


