Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 5

UNIVERSITY OF ENGINEERING AND

TECHNOLOGY, LAHORE
(NAROWAL CAMPUS)

Submitted By:
 Muhammad Abdullah(2023-CS-522)
 Husnain Ali(2023-CS-R-545)

Subject: Digital Logic Design (DLD)

Submitted To:
Mr. Asim Naveed

1
PROJECT REPORT
OBJECTIVE
 The player controls a snake represented by a series of interconnected blocks or
segments on the 8x8 matrix display. The snake initially starts with a single segment and
grows longer as it consumes food.
 Randomly positioned on the display, food appears as a distinct block. The objective is to
maneuver the snake to "eat" the food by colliding with it. Upon successful consumption,
the snake grows longer, increasing the difficulty of navigation.
 The Nano Arduino reads input from the joystick, which allows the player to control the
direction of the snake's movement. The joystick typically provides four directional
inputs: up, down, left, and right.
 The game constantly checks for collisions between the snake and various
elements, including its own body. If the snake collides with itself, the game ends.
 The game ends when the snake collides with its own body. The final score achieved by
the player is typically shown on the display, and the game can be restarted for another
round of gameplay.
Overall, the objective of the Snake game using the described hardware setup is to achieve the
highest score possible by skillfully maneuvering the snake, avoiding collisions, and strategically
eating food to grow longer.

COMPONENTS:
Following componenets are used in snake game 8 x 8 matrix display

 Nano Arduino Uno


 Joystick
 8 x 8 Matrix Display With Driver IC MV7129
 Vero Board
 Jumping Wire
 Battery
 Battery Connector
 Diode

Nano Arduino Uno:


The Arduino Nano is a small, complete, and breadboard-friendly board based on the
ATmega328 (Arduino Nano 3.x). It has more or less the same functionality of the Arduino
Duemilanove, but in a different package. It lacks only a DC power jack, and works with a Mini-B
USB cable instead of a standard one.

2
Joystick:
When you hear the word thumb joystick, the first thing that comes to mind is a game
controller. Although they are most commonly used for gaming, you can do a lot of cool things
with them if you’re into DIY electronics, such as controlling a robot or rover or, controlling
camera movement.

8 x 8 Matrix Display With Driver IC MV7129:


The 8x8 Dot Matrix Display module consists of the 8x8 LED matrix display and
the MAX7219 driver IC connected to it. It is very easy to interface with development boards
like Arduino, Raspberry pi as 7219 IC uses only 3 pins to connect with your controller and drives
all 64 LEDs in the module, thus saving the pins needed to connect all 64 LEDs. The LEDs are
driven by 16 output pins of 7219 IC. The maximum number of LEDs light up at the same time is
actually eight. As LEDs are arranged as 8×8 sets of rows and columns, the MAX7219 activates
each column for a very short period of time and at the same time, it also drives each row. So, by
rapidly switching through the columns and rows, the human eye will only notice a continuous
light. This 8x8 LED Matrix module can be used in Outdoor displays, character design, displaying
results, etc.

Vero Board:
Veroboard is a brand of stripboard, a pre-formed circuit board material of copper strips
on an insulating bonded paper board used to make electronic circuits, where some of the
electrical connections are formed by strips of copper on the underside of the board. Veroboard
is a printed circuit board that’s designed with rows of copper tracks with holes drilled in then
for electronic components to be soldered to construct electronic circuits. It is characterized by a
0.1 inch regular grid of holes, with wide parallel strips of copper cladding running in one
direction all the way across one side of the board. In using the board, breaks are made in the
tracks, usually around holes, to divide the strips into multiple electrical nodes. The 0.1 inch
(2.54 mm) spacing allows sockets for ICs. The components are usually placed on the plain side
of the board, with their leads protruding through the holes. The leads are then soldered to the
copper tracks on the other side of the board to make the desired connections, and any excess
wire is cut off. The continuous tracks may be easily and neatly cut as desired to form breaks
between conductors using a 5 mm twist drill, a hand cutter made for the purpose, or a knife.

Jumping Wire:
A jump wire (also known as jumper, jumper wire, DuPont wire) is an electrical wire, or
group of them in a cable, with a connector or pin at each end (or sometimes without them –
simply "tinned"), which is normally used to interconnect the components of a breadboard or
other prototype or test circuit, internally or with other equipment or components, without
soldering.

3
Individual jump wires are fitted by inserting their "end connectors" into the slots provided in a
breadboard, the header connector of a circuit board, or a piece of test equipment.

Battery:
Battery is used to supply the power to given circuit. We use 9V bolt battery.

Battery Connectors:
Battery connector are used to connect the battery to our circuit to supply the power.

Diode:
A diode is a semiconductor device that essentially acts as a one-way switch for current.
It allows current to flow easily in one direction, but severely restricts current from flowing in
the opposite direction.

Circuit Diagram:

4
Result:

You might also like