Académique Documents
Professionnel Documents
Culture Documents
SEVEN-ELEVEN
10 points. The 'probability' column indi-
cates the percentage chance that a parneu-
lar spin combination will be seen. The
probability of getting any winning spin is
47.1%, so just as with a real slot maehine
the odds are against you! The game ends
when your score is zero (after a spin with-
out a pay off),
Theory of operation
The power of the microcontroller lies in its
ability to eastly coordinate hardware to
software with a minimum of support com-
ponents. In this project. an 8748 controls
the operation of the entire game, such as
debouncing the switch signal, keeping
track of the player's score, and controlling
the spinning wheel displays with a mini-
mum of support circuitry. Two 74LS48's
Seven-Eleven is an electronic
LDI LD' LD'
slot machine. The object of
the game is to 'break the
bank' by accumulating 99+
points. The player starts with
ra
20 points and wins points 14
By Larry L. Cameron
19 18 17 16 15 14 13 12
.... <tI '" ... '" N ... Q o
III III III III III III III III
cccoccoo • •
S EVEN-ELEVEN is a simple electronic
game project based on the 8748/8749
C'874x') series of microcontroJlers manu-
24 P23
ICI
8748
Spin
single 1 or 7
Payoff Prob. Note
.,
eu
o
IC4
7805
0:00
1710r117 25 0.8%
920106-11
711 in order 50 0.4% jackpot!
being continually forward biased while if necessary. You may have to hunt around
the wheel spins, and turned off for the fest
COMPONENTS LIST
for switches that fit in the PCB layout
of the game' 5 functions. holes, or simply modify the board by
drilling holes and adding jumpers to fit Resistors:
your switch. All resistors are X watt, 5%
Construction hints
1 recommend the use of sockets for the
The introductory photograph shows the fCs, and 7-segment displays. I used five 4 10kQ Rl-R4
author's prototype of the game. For those Radio Shack 7-segment common cathode 15 3300 R5-R19
unwilling to program their own 8748 with displays, but any other display could be
the aid of the hexdump given in Fig. 2, the substituted as lang as it conforms to the Capacitors:
author can supply ready-progranuned same pinout as the Radio Shack ones (see 2 33pF cerarme Cl ;C2
controllers at $12.00 each. Also available at circuit diagram). A piece of red cellophane 3 1OOnFceramic disc C3;C4;C5
$4.00 is a disk formatted in IBM 360 KByte taped over the displays provides for good 1 l~F 16V electrolytic C6
formet containing both a binary file and an contrast, and allows you to see the lit seg- 1 1O~F 16V electrolytic C7
Intel hex file of the object code, ready to be ments very weil in daylight.
loaded into most IBM pe controlled pro- You may substitute 7448's or 74C48's, Semiconductors:
grammers. If you wouJd Iike to purehase but 1 found the 74LS48's to be the cheapest 1 8748H, preprogrammed
any of these items frorn the author, please variety. lf constructing the project on to a (see text) lCl
make your cheque payable to Larry printed circuit board produced from the 2 74LS48 IC2;IC3
,Cameron, and mail to my address. Call author's layout, please note that the 1 7805 IC4
(512)-467-7983 before 5 p.m. central stan- 74LS48'sare oppositely aJigned versus the 4 2N3904 Tl-T4
dard time, for more information. controller, i.e., pin 1 of the 74LS48's is in 1 LEO
For a professional looking project, it is the lower left corner of the socket, but S 0.3" 7-segment common cathode
best to produce a printed circuit board, pin 1 of the controller is on the upper right LEO display, Radio Shack
which you may want to design yourself. side. This was done to facilitate design of a #276-0758 LOl-LOS
Advanced constructors mayaiso consider single-sided pes with a minimurn number
building the project on veroboard or strip- of jumpers on the component side. Be MlsceUaneous:
bcard, as the component layout is not par- careful to correctly orient pin 1 '5, e-b-c 1 SPOT switch, on-on Sl
ticularly critical. Alternatively, contact the transistor orientation, anodes, cathodes of 1 SPOT switch, on-none-(on)
author for a suggested peB layout (not polarized parts, etc., as you fit compo- momentary S2
given here). Unfortunately I can not pro- nents. 7 Wire link 22AWG Jl-J7
vide for sale a pre-etched, pre-drilled The author's game is powered by a 9-V 1 3.579MHz crystal XTAL
board, but a simple method I use fre- d.c. wall adaptor transformer, but it can be 1 5-V buzzer, Radio Shack
quently to make boards is the 'TEK-200' powered from a 9-V PP3 battery. The cir- #273-074 8z
film method (also goes by other names). cuit draws rather a lot of current (approx. 1 40-pin IC socket (optional)
which involves photocopying the peB lay- 130 mA), so for long perlods of operation 5 14-pin IC socket (optional)
out to be etched on to a special sheet of an adaptor is really the only option. • 2 l6-pin IC sockets (optional)
mylar film, ironing the subsequent film on 1 9-V battery with clip (optional)
to a copper-cled board, and etching. Author address Information: 1 9-VOC mains adaptor
Most of the parts for 7-11 can be bought Larry L. Cameron 1 Printed eircuit board (see text)
at Radio Shack (Tandy), or at any other 7020 Grand Canyon #243 1 Enclosure
well-stocked electronic parts store. If you Austin, Texas 78752
can not find an SPDT momentary switch, US.A.
you may substitute an SPDT toggle switch Telephone: (512) 467-9532.