Hi, I’m Mike and I’m Chris To day we are gonna build a whack-a-mole inspired game with an Arduino and just a few other parts This is a cheap and easy build and you’ll find links to all the parts and the code in the description All you need to build this game is a box a few buttons and LED matrix and an Arduino Nano The idea of the game is to push the buttons as they light up to score points The first player to reach a score of 100 wins the game. To save time we bought ready made wooden box the first thing we did was replace the weak plywood at the bottom of the box as This is gonna be the top of the game. It has to be solid. So it will not break when the buttons are pressed We used an oscillating tool to cut out the bottom and then we clean up the edges When the bottom was out we measured and cut a half an inch thick wood plate This will act as a top of the game. We sanded the edges and used both glue and screws to secure it to the box Then we decide to cut out legs on the box to make it look better We also strengthen the legs by adding a triangle piece of wood Finally we spackled and sanded the box before we spray-painted it in In hindsight, we would just use ordinary paint and not spray paint Whenever stone we chose a pattern for buttons and drilled holes We also made room for the LED matrix that will keep the score Since the buttons extends a bit beyond the holes we were safe drilling after it was painted But it will be a better idea to do the drilling and cutting before you paint Now the box is done so let’s do the electronics The LED on the buttons are all 12 volts compatible But since we want to run everything using an Arduino Nano we needed to be 5 volts Luckily, there’s an easy fix. We just replace the current resistor with a lower ohm resistor and repeat that for all the buttons The buttons are easy to use the two terminals are just extensions of the led legs The three terminals in the middle are for the switch. We’re only going to use the common terminal and the normal open terminal Before we wire it up, let us show you a little trick Since we’re gonna connect five buttons For each player and each button requires one pin for the LED and one pin for the push button We’re going to need 20 pins on the Arduino Additionally, we need one start button that requires one pin for the LED and one pin for the button And finally, we need to connect the LED matrix display which requires three pins In total that means that we need 25 pins from the Arduino If we do not use the Rx and TX pin the Nano has 12 digital pins Additionally we can use the 8 analog pins that gives us a total of 20 pins So we’re still missing 5 pins Instead of using a shift register or do manual multiplexing We’re simply going to use a voltage divider. A voltage divider is two or more resistors connected in series that will output different voltage between the resistors This is an example where we input 5 volts and simply by connecting one 10 K resistor and 20 K resistor We get 3.3 volt in between them We’re going to use even more resistors so that we can connect all the player buttons for one player And this can be read by the Arduino on one single analog pin So instead of needing five pins for each player’s buttons, we now simply need one analog pin for each player That saves a total eight pins Here’s an example built in Tinkercad There’s a link to the schematics in the description To tidy it up we made a motherboard with screw terminals to connect to the LEDs and the buttons All you need to finish up your own game is to download the code as you will find a link to in the description They also find the links to the schematics of all the products used to this video And that’s all you need to build your own game. I hope you enjoyed this video. Remember to Like and subscribe See you next time!