01-02-2012, 01:15 PM
NUMBER GUESSING GAME
[attachment=16974]
This number guessing game is quite
simple. In this game the player
thinks of any number between
1 and 99. Then he scans the eight groups
of numbers given in the eight boxes in the
table. Each group corresponds to a specific
switch (indicated on the top of each
group) on an 8-way DIP switch. The person
scans the numbers in each box and
slides the switch corresponding to a box
to ‘on’ position if he finds his number in
that box. After having scanned all the eight
boxes and switching on the relevant DIP
switches, he is required to press switch S9
and the number thought of by the person
is displayed on the 7-segment displays. After
this, all switches on the 8-way DIP
switch need to be turned off to try display
of another number in a similar fashion.
The circuit (Fig. 1) comprises two BCDto-
7-segment decoder/driver CD4511 ICs
(IC1 and IC2). IC1 generates the number
for tens position and IC2 generates the number
for units position. Input pins 7, 1, 2,
and 6 of both the ICs are connected to ground
through 1-kilo-ohm resistors. The commoncathode
terminals of both the displays are
connected to push-to-on switch S9.