LED Chase Game Description
The LED Chase game is an engaging activity that randomly illuminates one of eight LEDs arranged in a row. If the LED on the far right or left side lights up and the corresponding button (L or R) is pressed simultaneously, it triggers a sound. Subsequently, the LEDs illuminate one by one in sequence and then start to ‘hop’ at an accelerated pace. Incorrect presses of the Left or Right button result in a low sound being emitted. The ‘wrong’ LED rapidly flashes, and the hopping sequence slows down for a new round. In the absence of any button press for 60 seconds, the LED Chase game will automatically power down. A demonstration of the game in action, along with detailed explanations of the rules by one of the authors, can be viewed on Youtube .
LED Chase Electronic Components
The LED Chase electronics comprise an ATtiny2313 microcontroller, a buzzer, two buttons (L and R), eight LEDs, and a 3 V lithium button cell. K1 serves as the debugWIRE connector, allowing “full debugging on the finished product [in combination with AVR Studio].” To achieve a usable sound level, the buzzer is driven in a bridge configuration. Additionally, diodes D9-D12 are essential to prevent unintended restarts, especially when using a buzzer with significant inductance. Alternatively, a small high impedance (>32 Ω) loudspeaker could replace the buzzer.
LED Chase Functionality and Software Design
LED Chase utilizes the ATtiny’s 16-bit timer to create a timeout mechanism, activating the microcontroller’s ‘sleep’ mode with a quiescent current of only 200 nA. The project’s development involved C programming in AVRstudio4, LabCenter Proteus VSM, and Ares for the PCB layout. The project software is available as a free download from .
PCB Design and Additional Features
The authors designed the single-sided PCB to maintain cost-effectiveness. The PCB design file can be accessed on the Elektor website for the project . To prevent false contacts caused by moist (sweaty) fingers, a cover was created for the board’s underside. This cover can be produced at (www.shapeways.com) using the free Google SketchUp file, also available in archive 110336-1.zip at . As for enhancements, the authors intend to augment the game with a RingTone (RTTTL) interpreter. This feature will enable pleasant tunes to play, such as celebrating a correct button push or increasing the beats-per-minute as the user progresses to higher play levels. However, the expanded software surpasses the 2 K flash capacity of the ATtiny2313, necessitating an upgrade to the ATtiny4313 while retaining the same PCB design.