Play Solitaire
... packed in an AT90S micro
Published in issue 341, March 2005
This version of Solitaire is played with an array of LEDs instead of pegs, with a microcontroller behind the scenes to check if you’re any good at playing. As you’ll soon find, the game is challenging and addictive! This project is a fine instance of a microcontroller and its resident software slashing component count when implementing a logic circuit, as well as providing yet an another answer to the perennial “great-but-what-do-you-do with-it?” question from outsiders and newbies when discussing those multi-legged beasts commonly known as microcontrollers. The design is based on the Atmel AT90S2313 microcontroller which was selected for its low cost, speed, number of I/O lines and ease of programming in assembly code using free tools.
Resistors:
R1 = 1kΩ5
R2-R8 = 220Ω
R9 = 10kΩ
R10,R11 = 1kΩ
Capacitors:
C1 = 1µF 16V, radial
C2,C3 = 22pF
C4 = 100nF
Semiconductors:
D1-D34 = LED, 3mm, low current, red
T1 = BC547
IC1 = ULN2803
IC2 = 4023
IC3 = AT90S2313-10PC, programmed, order code 030410-41
Miscellaneous:
S1 = on/off switch, one contact
S2-S8 = pushbutton, PCB mount, 1 contact, 5mm, e.g., T60 (Conrad Electronics # 700479)
X1 = 4MHz quartz crystal
BZ1 = 5VDC (active) buzzer
BT1 = 2 x penlight (AA) battery with holder
Enclosure, e.g., Hammond type 1591DTRD (150 x 46 x 84mm)
PCB, ref. 030410-1, from The PCBShop
|
Click below to download a PDF copy of this article from Elektor magazine.
Please note. In view of the complexity of international markets, Elektor cannot guarantee the availability of components for this project.
|