Introduction: Arduino LCD Ball Game

Hello there, this is an Arduino LCD Ball Game that I have created during quarantine, i have a small video about how this game works and you can find that video at (https://youtu.be/ccc4AkOJKhM)

Supplies

supplies that will need

  • 1 Arduino UNO board
  • Lots of jumper wires (All types)
  • LCD Screen
  • Buzzer
  • 1 RGB LED
  • 1 1k Ohm resistor
  • 3 330 Ohm resistors
  • 1 Push Button
  • Photo Resistor
  • SlideSwitch

Step 1: HardWare (Wiring the Circuit)

Although wiring the Circuit may seem Difficult you can follow the photo above to help you wire the circuit.

Here is a description of how to wire this circuit.

  • First off Connect the Power and Ground Rails on the Bread Board

  • Connect Pin 1 to DB7 on the LCD

  • Connect Pin 4 to DB6 on the LCD

  • Connect Pin 5 to DB5 to the LCD

  • Connect Pin 7 to DB4 on the LCD

  • Connect Pin 8 to the ENABLE pin on the LCD

  • Connect Pin 10 to the read/write pin on the LCD

  • Connect Pin 12 to the CONTRAST pin on the LCD

  • Connect Pin 13 to the Register Connect pin on the LCD

  • Connect the GROUND and LED Cathode Pins BOTH to ground

  • Connect the POWER from the Power rail to Terminal 1 on the photo resistor

  • Connect the POWER pin from the LCD to terminal 1 on the Photo resistor

  • Connect Terminal 2 of the Photo resistor to terminal 1 of the slide switch

  • Connect Common from the Switch to the LED Anode on the LCD

  • Connect 1 End of the Button to Pin 2 and the other end to Ground

  • Connect the Positive end of the Buzzer to Pin 2 with a 1k Ohm resistor in the middle

  • Connect the negative end of the Buzzer to the ground rail

  • Connect the Red Pin of the RGB LED to a 330 ohm resistor connected to Pin 6

  • Connect the Blue Pin on the RGB LED to a 330 ohm resistor connected to Pin 9

  • Connect the Green Pin on the RGB LED to a 330 ohm resistor connected to pin 11 on the Arduino.

This Will seem intriguing at first but once you get the hang of it get much easier.

Step 2: THE CODE

if you followed the previous steps of the hardware and copied the same digital pin numbers then you can use the code attached and you will be fine. BUT if you used different pins then you might have to change the inputs and outputs.

Step 3: COMPLETION

you have now sucessfully made your ARDUINO LCD GAMEE. enjoy!