Electronic Components
Make a Snake Maze Game Using 16*2 LCD and Joystick Module Interfacing with Arduino Nano - KT877
Shopping information
INTRODUCTION
In todays tutorial, we will make a Snake maze game using a 16*2 LCD and PS2 Joystick module with Arduino Nano. This is one of the most popular games of our childhood. This project is based on a 16*2 LCD, which gives a little room for a snake.
HARDWARE REQUIRED
- Arduino Nano-1pc
- USB Cable – 1pc
- LCD 16*2 Display – 1pc (yellow)
- Joystick Module – 1pc
- Jumper Wire (Male to Male) – 40pcs
- Jumper Wire (Male to Female) – 40pcs
- Potentiometer 10k – 1pc
- Breadboard 400 Points – 1pc
SOFTWARE REQUIRED
Arduino IDE 1.8.10 (programmable platform for Arduino)
Click here to download the software
SPECIFICATIONS
Joystick Module:
- 5V/3.3V Compatible
- Analog Output
Arduino Nano:
- DCCurrent Per I/O Pin: 40 mA
- Digital I/O Pins: 22
- Operating Voltage: 5VDC
16*2 LCD Display:
- 5V power supply ( Also available for +3V)
- Negative voltage optional for +3V power supply
CIRCUIT CONNECTION
Arduino Nano to Joystick:
|
Arduino Nano |
Joystick |
|
A0 |
VRx |
|
A1 |
VRy |
|
A2 |
SW |
|
5v |
5v |
|
Gnd |
Gnd |
Arduino Nano to LCD:
|
Arduino Nano |
LCD |
|
Gnd |
Vss |
|
5v |
Vdd |
|
Middle pin of 10k potentiometer (Connect First pin of pot with Gnd and 3rd pin to VCC) |
V0 |
|
Digital Pin 12 |
RS |
|
GND |
R/W |
|
Digital Pin 11 |
E |
|
Digital Pin 5 |
DB4 |
|
Digital Pin 4 |
DB5 |
|
Digital Pin 3 |
DB6 |
|
Digital Pin 2 |
DB7 |
|
5v |
LED+ |
|
GND |
LED- |
To connect multiple GND and 5V wires soldering may be required or you can use a breadboard.
CODE
Run the code given below and play the game.
Click to open in Drive
WORKING AND OUTPUT
Welcome to the Arduino-based project.
After uploading the code, you will see a Level 1 Python Content. Now start to play. It has 4 levels in the code you can change the level of the game, and if the tail and the mouth of the snake touch, then the game will be over, but if you complete the level, then you will be automatically redirected to the next level.
DOCUMENTS
KT877 – Click to open
Only logged in customers who have purchased this product may leave a review.
Keep exploring
You may also like
More pieces selected to complement what you are viewing.
-
Sale
Yamaha MY16AT
Original price was: $589.99.$147.00Current price is: $147.00. -
Sale
Audinate Dante AVIO USB-C Adapter
Original price was: $159.00.$79.50Current price is: $79.50. -
Sale
Angry Audio C3
Original price was: $949.00.$148.00Current price is: $148.00. -
Sale
SSL UF8
Original price was: $1,299.99.$150.00Current price is: $150.00.