Punch Activated Mario Question Block Lamp




About: I am an incoming freshman at ASU studying robotics. I love to make things and perform music. I am always working on several projects at a given time.

The Super Mario games were my childhood. I've always wanted to have some of the props in the games, and now that I have the tools to do it, I decided to start making them. The first up of that on my list is the Question Block. I managed to make the question block so that when you punch it, it either turns on or off. When it is triggered on or off it plays one of four sound effects from Super Mario Bros. It is designed to screw into a lightbulb socket and hang from the ceiling. If you wanted to hang it differently that can be done easily, all that has to be done is that it needs a 12V power supply routed to wherever you mount it.

Teacher Notes

Teachers! Did you use this instructable in your classroom?
Add a Teacher Note to share how you incorporated it into your lesson.

Step 1: Materials and Tools


  • Yellow PLA filament
  • White PLA filament
  • 12V White LED Strip (5m roll)
  • Arduino Pro Mini (ATMEGA328P 5V 16Mhz variant)
  • SW420 Vibration Sensor
  • 2N2222 tranistors
  • TIP120 Darlington Transistor
  • DC-DC Step-down converter (for the 12V to the 5V the arduino requires)
  • 0.5W 8-Ohm speaker
  • 12V 1A Power Supply
  • 2 Core Sheathed Wire
  • Misc. Wire
  • M3 screws and nuts


  • 3D printer (preferably dual color, but single color will work it's just harder)
  • Wire Cutters
  • Wire Strippers
  • Super Glue
  • Philips Screwdriver
  • Utility Knife
  • Soldering Iron
  • 60/40 Lead Solder Rosin Cored
  • FTDI Programmer and Mini-B USB Cable
  • Hot Glue Gun

Step 2: Printing the Enclosure (If You Have a Dual Color Printer)

If you have a dual color printer this step is pretty straightforward. Print four of the side pieces, which uses yellow for the base piece and white for the other inner pieces (the pieces for this are called yellow and white). Then print the bottom base, four braces, and the top using yellow only. Don't glue the side panels on yet because this will make installing the LED strip more difficult.

Step 3: Printing the Enclosure (If You Have a Single Color Printer)

If you are running a single color printer, while this is possible, it is much more difficult to print the side panels. All of the other pieces print exactly the same as they are single color. When printing the single color pieces print the bottom base, top, and four of the support pieces.

For the two color pieces print out four of the bases for the sides at normal settings in yellow PLA. Print out four sets of the inner pieces in white. Print out four sets of these pieces and super glue them into the holes cut out in the side panels.

Step 4: Wiring the Light

Super glue the brackets as shown in the first image stabilizing and finishing the frame of the cube. Cut pieces 12 pieces of the LED strip, each with 6 LEDS. Glue them onto the edges of the cube and wire them together. After finishing the LED's glue the side pieces on as shown in the last pictures.

Step 5: Making the Plug

Print out the parts for the plug (2xclips and 1xbody). Connect the live and neutral wires of the light socket to your power supply. Connect the 5V and GND to the red and black wires respectively (of the wire leaving the "light bulb"). Put the power supply in the body of the bulb, and then attach the clips to the bulb and housing; tightening them with M3 nuts and bolts.

Step 6: Setting Up the Arduino

Solder all of the devices as shown in the parts layout up above. Connect D11 to the speaker transistor; D10 to the vibration sensor; and D8 to the Darlington transistor. Make sure to keep the 12V and 5V lines separate, this can kill your arduino if you mix these lines up. Also before you proceed to final assembly make sure to test the electronics, because once it is finished it is hard to take it apart without breaking it.

Step 7: Programming

For the Arduino code you will need to install the PCM library. I have included the library zip inside of the zip file with the code. To install the navigate to the sketch tab, highlight the add library button, and click on add zip library. Select the zip file that I have included with this step and install it.

Plug in the Arduino Pro Mini to the FTDI programmer and plug it into the computer. Open the code in the Arduino environment, select Arduino Pro Mini 5V 16Mhz, and press upload.

Step 8: Final Assembly

Thread the wire through the hole in the top piece, connect it to the screw terminal on the board, making sure that the positive and negative wires are connected to the right terminals. Hot glue the wires of the speaker to the top so that the speaker is right beneath the slots in the top. Hot glue the power wire into the slot that it is in to keep it secure. Close up the Block by super gluing the top on. Hang it somewhere, and you're done.

Toys Contest

Participated in the
Toys Contest

Be the First to Share


    • Made with Math Contest

      Made with Math Contest
    • Multi-Discipline Contest

      Multi-Discipline Contest
    • Robotics Contest

      Robotics Contest

    11 Discussions


    Question 3 months ago on Step 8

    First, this was an excellent project! I'm building it for my nephew's birthday, and he's really into Mario so it should be a solid win. I've got a bit of an issue though, I have all of the electronics assembled and it works to turn the light on / off when tapped. The sound is there but it can only be faintly heard when holding the speaker up to my ear. What controls the volume / is there a way to make it louder?

    Thanks again for this one, it's going to make a perfect present!

    After leaving it plugged in for a while and playing with the lights...I noted that both the speaker and the 2N2222 transistor get quite hot. I tested the voltage regulator and am sure that it is putting out 5V (and haven't crossed my power wires). Do you think this is connected to the sound problem?

    Did a bit of research into the 2N2222 and apparently they have a history of not conforming to a standard layout. Tried the "diode" test to see which leg was which and that didn't help. Trial and error with a test board and alligator clips solved it. The wiring on the transistor needed changing. It works GREAT now!
    Thanks again for this one, can't wait to see what else you have in store!


    8 months ago

    Great Job!!!!!!! You can powered by inner battery, voltage regulator lm7805, battery 3.7v 1200mAh etc,

    1 reply
    Zachary Goodecarlosedeleonm

    Reply 8 months ago

    I was tempted to do that but I didnt want to have to deal with recharging the lamp all the time and taking it down to plug it in. But you're right it could have been easily done

    Zachary GoodeJessicaH288

    Reply 8 months ago

    I'm not entirely sure as to what you are asking. Would you mind clarifying what you mean by more on this concept?

    JessicaH288Zachary Goode

    Reply 8 months ago

    Sorry I meant more Super Mario Bros. Concepts.
    Though I don't know how it could be done but I always like the stairs at the end of the levels.

    Zachary Goodeattosa

    Reply 8 months ago

    It's really fun to just walk and punch it. It's really satisfying to hit it and get the coin sound effect. I have it in the hallway probably about half a foot above my head (so about 6 - 6 1/2 feet.)


    8 months ago

    I really like this! Great job, all around : )