Mini Wack-A-Mole

by bischoad in Circuits > Raspberry Pi

337 Views, 1 Favorites, 0 Comments

Mini Wack-A-Mole

Circuit Pi Mini Wack-A-Mole Final Project

Have you ever played whack-a-mole at an arcade and thought to yourself, "I wish I had one of these at home?" Well, now you can! With this mini whack-a-mole game with a timer and light-up buttons, you can bring the fun of the arcade right to your living room.

Supplies

Electronics:

Misc:

  • 1/8 in birch wood
  • Packing tape
  • Duct tape
  • Wood Glue
  • Super Glue
  • Parchment paper

Box Creation

Screen Shot 2023-05-01 at 12.09.12 AM.png
Screen Shot 2023-05-01 at 12.09.18 AM.png
  • Make a Console2 box through boxes.py with front height set to 60 mm and angle set to 25 degrees.
  • Laser cut rectangles and desired designs along the side of the box (so the lights can be seen from the inside).
  • Laser cut 4 holes on each side of the top of the box for the mole buttons and one in the middle for the start button.
  • Laser cut a rectangle above the start button for the time LED backpack.
  • Laser cut a small hole in the back for the wiring.
  • Put the box together using wood glue.

Set Up the Box

IMG_2612.jpeg
  • Line the inside of the box with the LED lights using duct tape.
  • Place the buttons and LED backpack in their respective places.
  • Super glue the buttons down and duct tape the backpack from the inside.
  • Daisy chain the Botton board and the LED backpack together. 

Code

  • Copy Code from above
  • Download the corresponding libraries from Adafruit Bundles
  • Use sd card with desired sound effects for the "play_sound", "play_sound_defeat", and "play_sound_high_score" functions
  • Upload code into Mu and save as code.py.

Put It All Together

IMG_2610.jpeg
  • Attach the Pico W to the breakout board and connect the wires of the data cable, STEMMA QT, LED lights, speaker, and start button to their corresponding pin holes.
  • Line the rectangular holes with parchment paper and tape with see through packing tape.
  • Place all components inside the box and have fun!