Find all your DIY electronics in the MakerShed. 3D Printing, Kits, Arduino, Raspberry Pi, Books & more!

Make: Projects

Whack-a-Mole Game

Use 555 timer chips to create a mini version of the popular "Whack-a-Mole" arcade game.

Whack-a-mole opener

Jim Chen designed an excellent electronic "Whack-a-Mole" game using 555 timers, LEDs, and bent-diode touch sensors, that you can build on a solderless breadboard; for a full explanation, check out his website here. This project is a more permanent version of Chen’s game, built on a custom PCB.

Check out more Weekend Projects.

Steps

Step #1: Make the PCB

PrevNext
Whack-a-Mole GameWhack-a-Mole GameWhack-a-Mole GameWhack-a-Mole Game
  • I used EagleCAD to lay out the circuit and PCB design for this project. Download and install the free version of Eagle CAD here: http://www.cadsoft.de/download.htm
  • Download the project design files here: (schematic and PCB). To make a board, you can either send the PCB files out to a fabrication house, or (if you're feeling brave) etch your own board, as follows in this step.
  • Launch EagleCAD and open the project design files, linked above. Print each PCB layout layer onto a transparency sheet. The CAD files are the best guide to component placement and orientation, so you will also refer to them later.
  • For each of the two layers, use the toner transfer method to transfer the etching mask to the copper cladding with an electric iron. Here's a good page on the technique.
  • With the laser toner mask stuck tight onto the copper, etch the rest of the copper away with etching solution. Follow this guide: Cheap, Friendly, and Precise PCB Etching as a quick circuit board etching method, substituting etching solution for the peroxide, vinegar, and salt mixture described.
  • To make your circuit board double-sided, glue the two single-sided boards together back to back, using the two drill holes as an alignment reference. I used 3M #77 spray adhesive to bond the boards and left them in a press overnight.
  • Print out and iron the label layer onto the top of the board, using the toner transfer method. Finally, drill out all the board's through-holes using a 0.75mm drill bit.

Step #2: Add the Components

PrevNext
Whack-a-Mole GameWhack-a-Mole GameWhack-a-Mole GameWhack-a-Mole Game
  • Connect all the vias on your etched board, the through-hole connections between the layers. Locate them by referring to the "vias" layer in EagleCAD. Lace each via hole with bare stripped solid wire, then solder the wire front and back, and trim.
  • Add six 14-pin chip holders. This is an optional step, but I prefer to install chips in sockets, for easy removal later.
  • The 556 chip contains two 555 timers, one on each side of the chip.
  • The EagleCAD files should make it fairly clear where to place all the components. Work slowly and methodically, and you should be fine.
  • Since this board does not have plated through-holes, be sure to place all components high on the board. This lets you solder the top and bottom sides of each.
  • Add the nine 150Ω resistors. (Brown-Green-Brown-Gold).

Step #3:

PrevNext
Whack-a-Mole GameWhack-a-Mole GameWhack-a-Mole Game
  • Add the 10μF capacitors. You can mix and match different capacitor values if needed (as I did) if you do not have 10 identical.
  • Add the nine red LEDs. LEDs are polarity-sensitive, so make sure to place them all with their flat edge facing "up" on the board (toward the top of the board when it's oriented for you to read the printing).
  • Attach the 9 diodes - either 1N4148 or 1N914 diodes will work. These components are polarity-sensitive also, so they must be installed in the orientation shown here. Connect them with one wire lead (the cathode) looping high over the top, as shown — these wires will be our touch sensors.

Step #4:

PrevNext
Whack-a-Mole GameWhack-a-Mole GameWhack-a-Mole Game
  • Now it's time to add the transistors. First up are the NPN type - I've painted these white to differentiate them from the PNP kind.
  • Warning: The PNP transistors I used, from a 15 pack, had a non-standard pinout that is backwards from that of most PNP transistors (check the picture). Be sure to confirm the correct transistor orientation for the circuit.
  • I unfortunately placed all the transistors according the orientation labeled in my CAD layout. This was wrong, so I had to pull them all out later, and reorient them with their flat sides facing opposite the way they are labelled on the PCB.
  • (I kept muttering "backwards, backwards, backwards..." while doing it (along with a few other choice words!! :-))
  • So if your transistors have their emitter and collector pins arranged the opposite way from the ones here, you will need to orient them the other way from these photos.

Step #5:

PrevNext
Whack-a-Mole GameWhack-a-Mole GameWhack-a-Mole Game
  • Add the remaining resistors as follows:
    • 220Ω Red-Red-Brown
    • 4.7kΩ Yellow-Violet-Red
    • 1MΩ Brown-Black-Green
    • 100KΩ Brown-Black-Yellow
    • 10KΩ Brown-Black-Orange
    • 150KΩ Brown-Green-Yellow
    • 220KΩ Red Red Yellow
    • 15KΩ Brown Green Orange
    • 56KΩ Green Blue Orange
    • 22Ω Red Red Black
  • Whew! Then after all of that, we can add the remaining 10μF, 1μF 0.1μF, 100μF capacitors, 2 diodes, battery pack, and the speaker.
  • (I almost forgot - pop the 556 chips into the sockets, too!)
  • Done! Give yourself a pat on the back if you've gotten this far; you deserve it!

Step #6: Test Everything

PrevNext
Whack-a-Mole Game
  • "Testing, testing, 1, 2, 3..." You should now be able to connect the 5V power and switch it on.
  • All the lights should come on, and you should hear a "BUUUZZZZ!" sound, indicating the end of a game, from the speaker.
  • To start a new game, touch the touch sensors to clear all the LEDs. Try to turn off the LEDs as they randomly light up for as long as you can. If you take too long, the buzzer will sound and all of the lights will come on at once.
  • If things are not working correctly, check all the connections. Use a multimeter with a continuity function to confirm that all of the solder joints are healthy, and the connections are sound.
  • Note - in this picture the PNP transistors are oriented correctly.
  • Check out the YouTube video of our 555-Based Whack-A-Mole game in action.

Conclusion

In this age of the microprocessor, it's refreshing to see how one can implement a complex "program" using traditional analog circuits. Although this is not a beginner's project, it teaches some great fundamental circuit theory to those brave enough to take up the challenge of building it! In the process, you can also learn a handy electronics skill: etching your own circuit boards! If you do build it, we'd love to hear from you. Leave a comment!

Steve Hobley

This week, I have been mostly working on...

I've been tinkering around with bits of technology since I was five years old. I used to take the telephone apart at home, just to see how it worked.

After a couple of years I could even put it back together again - and sometimes it would continue to work.


blog comments powered by Disqus