Professional Documents
Culture Documents
Project Report
Project Report
TECHNOLOGY, LAHORE
(NAROWAL CAMPUS)
Submitted By:
Muhammad Abdullah(2023-CS-522)
Husnain Ali(2023-CS-R-545)
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
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.
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: