KIT INCLUDES:
- Arduino Nano with USB Cable – 1
- LCD 16*2 Display - 1 (yellow)
- Arduino Joystick module - 1
- Jumper Wire (Male to Male) - 40 pieces
- Jumper Wire (Male to Female) – 40 pieces
- Potentiometer 10k – 1
- Breadboard 400 points – 1
Introduction
In today’s tutorial, we will make a Snake maze game using a 16*2 LCD display and Ps2 Joystick module with Arduino Nano. This is one of the most popular game of our childhood. This project is based on 16*2 LCD which gives a little room for a snake.
HARDWARE REQUIRED
- Arduino Nano with USB Cable – 1
- LCD 16*2 Display - 1 (yellow)
- Arduino Joystick module - 1
- Jumper Wire (Male to Male) - 40 pieces
- Jumper Wire (Male to Female) – 40 pieces
- Potentiometer 10k – 1
- Breadboard 400 points – 1
SOFTWARE REQUIRED
Arduino IDE 1.8.5 (programmable platform for Arduino)
Click To Download: https://www.arduino.cc/en/Main/Software
SPECIFICATIONS
Joystick Module
- 5V/3.3V Compatible
- Analog Output
Arduino Nano
16*2 LCD Display
- 5V power supply ( Also available for +3V)
- Negative voltage optional for +3V power supply
CIRCUIT CONNECTION
***ARDUINO to JOYSTICK***
ARDUINO Nano |
JOYSTICK |
A0 |
VRx |
A1 |
VRy |
A2 |
SW |
5v |
5v |
Gnd |
Gnd |
***ARDUINO 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.
https://drive.google.com/open?id=1k-uWJC3eXr3v3cIpWMKx0mhjfi8y-rfG
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 moth of the snake will touch then the game will be over but if you complete the level then you will be automatically redirected to the next level.
Click to watch the tutorial
For more tutorials subscribe our channel REES52 on YouTube