Jumpman LCD Arduino Game

by hr_5534 in Circuits > Arduino

430 Views, 0 Favorites, 0 Comments

Jumpman LCD Arduino Game

IMG_4689.jpg

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.


Credits: jumpman lcd game | Arduino Project Hub

Supplies

Resistor 220ohm.png

Components needed:

  • Arduino UNO
  • LCD 16x2
  • Push-button
  • Resistor 220ohm
  • Breadboard 830 contacts
  • Jumper wires/wires

Schematic

Screenshot 2024-06-18 211651.png

Schematic on TinkerCAD for the Jumpman game.

Set-up

IMG_4687.JPG

In step one, we will simply get the breadboard and place our LCD (16x2) in the slots.

Connecting Ground and Power Wires

IMG_4686.JPG

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

IMG_4685.JPG

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

Screenshot 2024-06-18 214938.png

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

Screenshot 2024-06-18 220400.png

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!