Introduction: Jumping Man Game Using Arduino

Hello everyone!!! Welcome to my first Instructable. I have been a huge fan of the Jumping Dinosaur game so i tried to build a similar game with help of an Arduino UNO and an LCD screen . This is an interesting project and only requires an effort of about 2-3 hours.

Step 1: COMPONENTS REQUIRED

  1. Arduino UNO
  2. ARDUINO IDE (https://www.arduino.cc/en/main/software)
  3. LCD 16*2
  4. Breadboard
  5. Resistor 220 ohm
  6. Push Button (12mm)(Pull Down Configuration)
  7. Male to Male Jumper wires
  8. Potentiometer

Step 2: CONNECTIONS

Use a long hookup wire to connect the 5V signal on the Arduino to the far left of the red row at the top of the breadboard.

  • Use a long hookup wire to connect the GND signal to the far left of the black (or blue on some breadboards) row at the top of the breadboard.
  • The LCD (Liquid Crystal Display) module has a 16-pin male header on the underside. Plug this into the breadboard as shown in the picture. All of the electronic signals that power and control the LCD go through this header.
  • These pins are (from left to right):
  • GND - power ground signal
  • VCC - positive power signal
  • V0 - contrast adjust
  • RS - register select
  • R/W - read/write select
  • E - operation enable signal
  • DB0 - data bit 0 (not used here)
  • DB1 - data bit 1 (not used here)
  • DB2 - data bit 2 (not used here)
  • DB3 - data bit 3 (not used here)
  • DB4 - data bit 4
  • DB5 - data bit 5
  • DB6 - data bit 6
  • DB7 - data bit 7
  • LED+ - backlight LED positive
  • LED- - backlight LED negative
  • Using short hookup wires, connect GND and LED- (pins 1 and 16) to the black row at the top.
  • Similarly, connect VCC (pin 2) to the red row at the top with a short hookup wire.
  • Bend the wire leads of the 220 Ω resistor (red-red-brown colored bands) and connect it between LED+ and the red row at the top of the breadboard.
  • Use longer hookup wires to make the remainder of the connections:
  • Connect DB7 to Arduino pin 3
  • Connect DB6 to Arduino pin 4
  • Connect DB5 to Arduino pin 5
  • Connect DB4 to Arduino pin 6
  • Connect E to Arduino pin 9
  • Connect R/W to Arduino pin 10 (or to black row at top of breadboard)
  • Connect RS to Arduino pin 11
  • Connect V0 to Arduino pin 12 (or to black row at top of breadboard)
  • Plug the push button somewhere to the left of the LCD screen, straddling the channel running along the center of the breadboard (see picture above).
  • Connect one of the top two pins of the button to the black row at the top of the breadboard using a short hookup wire.
  • Connect the other pin at the top of the button to pin 2 of the Arduino.

Step 3: CODE