Jumpman LCD Arduino Game
This is an istrutable to help make an interactive and entertaining game using an Arduino UNO and also an LCD screen. We will be combining hardware and software components to build a very simple yet fun and engaging game that users can play using a push button. The LCD screen will display the game and provide feedback to the player. To play Jumpman you must use the button to move the character up or make it jump while avoiding the obstacles. However, if there are consecutive blocks, the Jumpman can walk on them. The score will be displayed in the top right corner of the LCD.
Downloads
Supplies
Components needed:
- Arduino UNO
- LCD 16x2
- Push-button
- Resistor 220ohm
- Breadboard 830 contacts
- Jumper wires/wires
Schematic
Schematic on TinkerCAD for the Jumpman game.
Set-up
In step one, we will simply get the breadboard and place our LCD (16x2) in the slots.
Connecting Ground and Power Wires
The second step requires providing power and grounding certain pins. We will also place our push button on the breadboard and ground it.
Connecting LCD Pins to Arduino
The last step is to connect the LCD pins to the pins on the Arduino. We will also need to power the push button using a pin on the Arduino.
Download Package
Using this link LiquidCrystal - Arduino Reference, make sure to download the latest version. This package enables us to use the alphanumeric liquid crystal display (LCD) connectivity.
NOTE: You must have Arduino IDE installed for this package to work. Use this link Software | Arduino to download the Arduino IDE if you haven't already.
Code
Check the attachments for the game code.
Downloads
Upload Code
Upload the code from the IDE to the Arduino and have fun playing the game!