Whack a Button Multiplayer

by ssasha in Circuits > Arduino

1036 Views, 5 Favorites, 0 Comments

Whack a Button Multiplayer

27783333_1767423049945337_404877842_n.jpg
27747111_1767470399940602_2048739539_o.jpg

A game like a Whack-a-Mole.

Using LEDs and buttons.
There are 2 modes:
-Single player
-Multiplayer

in single player mode, there are 3 levels:
LEVEL_1: 1 diode for 1 second

LEVEL_2: 2 diodes for 1 second

LEVEL_3: 2 diodes for 0.7 seconds

And for the multiplayer part it's very simple
1 player is giving targets and the other one is hitting them


Connect the Arduino, open the serial monitor, follow the steps and enjoy

Step 1: Getting the Materials

27783531_1767423126611996_821887149_n.jpg

For this project you will need:
1. Arduino Uno

2. Leds

3. Wires

4. Soldering PCB boards

5. Buttons

6. Resistors

Making the Board for the First Player

Player1Board.png
27783765_1767423053278670_706717116_n.jpg
27785715_1767422989945343_1539992682_o.jpg

Using the components, solder everything (or use a prototype board) like on the pictures.
Connections:
Led1-> Arduino pin 13

Led2-> Arduino pin 12

Led3-> Arduino pin 11

Led4-> Arduino pin 10

Led5-> Arduino pin 9

Led6-> Arduino pin 8

Button1-> Arduino pin 7

Button1-> Arduino pin 6

Button1-> Arduino pin 5

Button1-> Arduino pin 4

Button1-> Arduino pin 3

Button1-> Arduino pin 2

Making the 2nd Board

Smashing Krunk-Leelo.png

The connections for the 2nd board are:
Button1-> Arduino pin 14(A0)

Button1-> Arduino pin 15(A1)

Button1-> Arduino pin 16(A2)

Button1-> Arduino pin 17(A3)

Button1-> Arduino pin 18(A4)

Button1-> Arduino pin 19(A5)

Step 4: Upload the Code, Set It and Play

27783333_1767423049945337_404877842_n.jpg
Screenshot_1.png
27746575_1767473259940316_1576695127_o.jpg
27785246_1767473013273674_1105837865_o.jpg
27747111_1767470399940602_2048739539_o (1).jpg
Whack-A-Button Multiplayer
Whack-A-Button Single player

Choose mode.
Choose level.
Wait the countdown and whack-a-button!!!
Every round last for 45 seconds.

Rules

Level 1:
Correct button hit = +10 points

Wrong button hit = -5 points

Button miss = -1 point

Level 2, Level 3

1 correct button hit = +15 points

2 correct buttons hit = +30 points

Wrong button hit = -10 points

1 button miss = -1 point