File Exchange

image thumbnail

Whac-a-Mole with Arduino

version (17.4 MB) by Sophia Hubscher
MATLAB and Arduino are used to build a fun Whac-a-Mole game

1 Download

Updated 28 Aug 2016

View License

Editor's Note: This file was selected as MATLAB Central Pick of the Week

This project shows how MATLAB and Arduino can be used to build a basic Whac-a-Mole game. It can be used with middle- and high-school students to explore electrical engineering and programming concepts. It demonstrates how to use switches, LEDs, and MATLAB to create a game for others to play. You will need a SparkFun Redboard (or an Arduino Uno), a BreadBoard, 27 jumper wires, 9 330 Ohm resistors, 4 10K Ohm resistors, aluminum foil, and 4 RGB LEDs. For a description, you can see this video:

Cite As

Sophia Hubscher (2020). Whac-a-Mole with Arduino (, MATLAB Central File Exchange. Retrieved .

Comments and Ratings (10)

Greg Drayer

This is great! That's a fun video-description! Thanks for sharing the project.


Love the video!

Devdatt Lad


Added link to YouTube video

MATLAB Release Compatibility
Created with R2016a
Compatible with any release
Platform Compatibility
Windows macOS Linux