Game Jam
This project will teach you how to make your Arduino play Rock Paper Scissors as well as a reactionary game. The idea for the reaction game came from this Youtube video so go ahead and watch it and drop a like for the user https://www.youtube.com/watch?v=hdnZRcZ51ck.
Things You Will Need
- 220 ohm resistors(4)
- push buttons(4)
- potentiometer
- lcd screen
- Arduino Uno
- Breadboard
- Jumper Wires(~30)
Hooking Up the LCD Screen
- connect to the ground rail
- connect to the hot rail
- connect to slot 12
- connect to slot 11
- connect to slot 10
- connect to slot 9
- do not connect
- do not connect
- do not connect
- do not connect
- connect to slot 8
- connect to the ground rail
- connect to slot 7
- connect to potentiometer (we'll add this later. Just leave the other end of the wire open for now)
- connect to the hot rail
- connect to ground rail
Adding the Potentiomenter
Now we need to add the potentiometer to regulate the amount of electricity supplied to the LCD screen. Hook the open wire we left from the LCD screen to the single diode on one end of the potentiometer. Next, hook the two diodes on the other side to the ground and hot rails. It doesn't matter which goes to which, just make sure they are each in a different rail.
The Buttons
Now we need to connect the buttons. Choose one side of the button and connect one of the diodes to the hot rail and the other on the same side to the ground rail. Make sure to use a resistor to connect the diode to the ground rail. Now, on the other side, connect the diode on the same level as the ground rail and connect that to pin 3. We are actually going to do something weird with this first button but for now, connect the other three buttons the same way to pins 4, 5, and 6.
The Special Button
See that first button all the way at the bottom there? We're gonna also connect that to pin 2 so we conserve space and have an interrupt button for the reaction game. Go ahead and connect another slot on your breadboard to pin 2 on your Arduino. I have outlined this wire in green on the diagram.
The Finishing Touches
All that's left to do now, is to connect the two ground rails to each other and finally to the ground pin in the Arduino. Now repeat with the hot rail but connect it to the 5V pin on the Arduino. Now just upload this code and have fun!