You are on page 1of 3

Space Impact using Sequential Circuits

Neri, Emmanuel Rein G., Reyes, Luli Llyle R.,


Santos, Joseph Gabby P.
Computer Engineering Department
College of Engineering
Adamson University, Philippines
emmanuel_sf_dota@yahoo.com
doraemon04.luli@gmail.com
santosjoseph13@yahoo.com

a shift register. This will also serve as a trigger for the Life Bar
I. PROBLEM DEFINITION of the enemy.
3. LIFE BAR. A series of LEDs are lined up to form a life bar.
Whenever a bullet reaches the enemy, the life bar will
Space Impact was Shoot them up type video game developed and
decrease its light.
published for use on Nokia phones including Nokia 3310, Nokia 3320,
4. RESET button. A button that will reset the life bar back to full
Nokia 3330, Nokia 3350, Nokia 3360, Nokia 3390, Nokia 3410, Nokia
status.
3610.
5. MISSION COMPLETE message. A group of LEDs that will
In the traditional space impact as each level is played, various
light up when the
enemy ships confront the player, some of them following strict paths,
others following the ship itself and others shooting it.
In this example, we will be designing a similar electronic game IV. BLOCK DIAGRAM
which also shoots the enemy with the use of a START button, RESET
button, two FIRE BUTTONS that will serve as a gun-like attack that is
aimed to the enemy’s side. Once the enemy has been hit, its LIFE BAR
will decrease until it reaches 0. Once the life bar of the enemy reaches 0,
a MISSION COMPLETE message will be shown.

II. OBJECTIVES

The Objectives of the study includes the responses to solve the main
or overall problem presented. It must be broad enough to include all
aspects of the subject matter to be suited or investigated; yet it must be
brief and concise as possible.

Example:
1. To design a synchronous sequential circuit that enables to
perform a Shoot and Kill game like Space impact.
2. To use shift registers for the operation of the circuit. Figure 1 Block Diagram

III. SYSTEM REQUIREMENTS V. PHYSICAL DESIGN


This part provides the actual design of the project. Explain the
We begin the project by determining the requirements for the functionalities of each part of the project.
system and developing a plan to address these requirements. From the
description of the game, several major subsystems are needed: a
START/RESET button which will reset the status of the game, two
FIRE buttons which will be used to shoot the enemy, a LIFE BAR
which will indicate the remaining life of the enemy and a MISSION
COMPLETE message which will show when the status of the life bar is
0. These subsystems are described briefly as follows:

1. START button. A push-button switch will be used to start the


game.
2. FIRE buttons. Two push-button switches will be used to shoot Figure 2 Space Impact
at the enemy. The bullets are LEDs which are triggered though
VI. LOGIC DESIGN 0 1 1 0 1 0 0 x x x x x x x x
0 1 1 0 0 1 0 x x x x x x x x
0 1 1 0 0 0 0 x x x x x x x x
0 1 0 1 1 1 0 x x x x x x x x
0 1 0 1 1 0 0 x x x x x x x x
0 1 0 1 0 1 0 x x x x x x x x
0 1 0 1 0 0 0 x x x x x x x x
0 1 0 0 1 1 0 x x x x x x x x
Figure 3 State Diagram 0 1 0 0 1 0 0 x x x x x x x x
0 1 0 0 0 1 0 x x x x x x x x
PRESENT INPUT X NEXT EXCITATION 0 1 0 0 0 0 0 x x x x x x x x
1 1 1 1 1 1 0 1 1 1 1 1 1 1 1 0 0 1 1 1 1 0 x x x x x x x x
1 1 1 1 1 0 0 1 1 1 0 1 1 1 0 0 0 1 1 1 0 0 x x x x x x x x
1 1 1 1 0 1 0 1 1 1 0 1 1 1 0 0 0 1 1 0 1 0 x x x x x x x x
1 1 1 1 0 0 0 1 1 1 1 1 1 1 1 0 0 1 1 0 0 0 x x x x x x x x
1 1 1 0 1 1 0 1 1 1 0 1 1 1 0 0 0 1 0 1 1 0 x x x x x x x x
1 1 1 0 1 0 0 1 1 0 0 1 1 0 0 0 0 1 0 1 0 0 x x x x x x x x
1 1 1 0 0 1 0 1 1 0 0 1 1 0 0 0 0 1 0 0 1 0 x x x x x x x x
1 1 1 0 0 0 0 1 1 1 0 1 1 1 0 0 0 1 0 0 0 0 x x x x x x x x
1 1 0 1 1 1 0 x x x x x x x x 0 0 0 1 1 1 0 x x x x x x x x
1 1 0 1 1 0 0 x x x x x x x x 0 0 0 1 1 0 0 x x x x x x x x
1 1 0 1 0 1 0 x x x x x x x x 0 0 0 1 0 1 0 x x x x x x x x
1 1 0 1 0 0 0 x x x x x x x x 0 0 0 1 0 0 0 x x x x x x x x
1 1 0 0 1 1 0 1 1 0 0 1 1 0 0 0 0 0 0 1 1 1 0 0 0 0 0 0 0 0
1 1 0 0 1 0 0 1 0 0 0 1 0 0 0 0 0 0 0 1 0 1 0 0 0 0 0 0 0 0
1 1 0 0 0 1 0 1 0 0 0 1 0 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 0 0
1 1 0 0 0 0 0 1 1 0 0 1 1 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0
1 0 1 1 1 1 0 x x x x x x x x
1 0 1 1 1 0 0 x x x x x x x x Table 1 Truth Table
1 0 1 1 0 1 0 x x x x x x x x
START Button
1 0 1 1 0 0 0 x x x x x x x x A toggle switch that is connected to the clock circuit. When
1 0 1 0 1 1 0 x x x x x x x x the toggle switch sends a logic 1, the clock will start counting which
1 0 1 0 1 0 0 x x x x x x x x now means that the system has started its operation. When the toggle
switch sends a logic 0, the clock will then stop and the system with stop
1 0 1 0 0 1 0 x x x x x x x x its operation.
1 0 1 0 0 0 0 x x x x x x x x FIRE Button
1 0 0 1 1 1 0 x x x x x x x x A SPST switch which will be used as a trigger to the shift
register which is shown through LEDs. These LEDs will act as moving
1 0 0 1 1 0 0 x x x x x x x x bullets in the game.
1 0 0 1 0 1 0 x x x x x x x x LIFE BAR
1 0 0 1 0 0 0 x x x x x x x x A set of flipflops that represents the life of the enemy which
is also shown through LEDs. When the two shift register sends a
1 0 0 0 1 1 0 1 0 0 0 1 0 0 0 combined input of 10 or 01 and it reaches the circuit connected to the
1 0 0 0 1 0 0 0 0 0 0 0 0 0 0 life bar, this will trigger the state of the flipflop resulting to show the
1 0 0 0 0 1 0 0 0 0 0 0 0 0 0 decrease in the life bar.
RESET Button
1 0 0 0 0 0 0 1 0 0 0 1 0 0 0
A SPST switch which momentarily sends a logic 1 to the
0 1 1 1 1 1 0 x x x x x x x x clear or preset of the flipflops. This will result to the resetting of the
0 1 1 1 1 0 0 x x x x x x x x whole circuit back to its original or starting state.
MISSION COMPLETE
0 1 1 1 0 1 0 x x x x x x x x
A set of LEDs which will serve as an output of the whole
0 1 1 1 0 0 0 x x x x x x x x circuit after the life bar reaches 0.
0 1 1 0 1 1 0 x x x x x x x x
Figure 4 Schematic diagram
Figure 4 shows the proposed schematic diagram for the space impact
game, it shows 8 D flip flops for the two shift registers that will be used for
the guns of the player. The other 4 D flip flop will serve as the life bar of
the enemy. There is also a combination of different logic gates within the
circuit.