Close
0%
0%

Arduino Game By LCD

How to create a simple LCD video game with Arduino.

Similar projects worth following

Building game device by arduino and push button and LCD

  • 1 × Arduino UNO & Genuino UNO
  • 1 × RGB Backlight LCD - 16x2
  • 1 × Breadboard (generic)
  • 1 × resistor 220 Ω
  • 1 × Tactile Button Switch (6mm) Single

View all 7 components

  • 1
    Step 1

    The parts needed are shown in the picture above. Start off with the Arduino unpowered. Do NOT plug in the USB cable. That will happen in a later step when it is time to program it and try the game out.

    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.

View all instructions

Enjoy this project?

Share

Discussions

Giulio Pons wrote 05/15/2020 at 16:39 point

Which game is it? How do you play?

  Are you sure? yes | no

Similar Projects

Does this project spark your interest?

Become a member to follow this project and never miss any updates