There are eight angled inbound
ball routines along with six angled
and two vertical outbound returns
as shown in Figure 11. The game
seems very intelligent and
complicated when playing, but
literally only took about an hour to
Deflecting the inbound balls by
moving your paddle position to
intersect the incoming ball, the
rebounded balls should strike all
eight upper tiles eventually after
successfully returning all eight
volleys. Depending on the exact
paddle location, the ball returns in
a corresponding manner. For
example, if the inbound ball IR5
meets a paddle in XPOS = 4, the
ball returns vertically.
If the paddle is at XPOS = 5,
the ball is returned at an angle.
Whenever a deflected ball strikes
the top boundary, the individual
top LED becomes lit. The game
is won after all eight positions
have been hit.
The program contains all of the elements
you will need to write your own games,
including sound routines, button action routines,
position tracking, and more.
Game Over ...
Substitutions can be made for
most all of the parts in this project.
You may have to abandon the
exact design if there are great
enough differences in size, shape,
and lead spacing of the substituted
Also, any 24-pin display will
work along with any 16-pin models
with the appropriate modifications.
I hope that any readers that
build this project share their
programming efforts through the
Nuts & Volts forums or at the
specific article link. I have several
other game ideas that I am willing
to share with anyone interested
and will make them available as
soon as they are finished.
I am working on a printed
circuit board for this design and I
will make it available to anyone
42 October 2013
■ FIGURE 11. Lighting the top eight
LEDs with the eight outbound balls.
■ FIGURE 10. Example paddle positions.
PICBASIC PRO™ Compiler
PBP Experimenter - $49.95 Silver Edition - $119.95
Gold Edition - $269.95
Download a FREE trial version now.
www.melabs.com microEngineering Labs, Inc. 888-316-1753
The industry-standard BASIC compiler for Microchip PIC® microcontrollers.
PICBASIC and PICBASIC PRO are trademarks of Microchip Technology Inc. in the USA and other countries. PIC is a registered trademark of Microchip Technology Inc. in the USA and other countries.
for Educational Institutions
PICBASIC™ Compiler (PBC)