Punch Activated Mario Question Block Lamp

3,686

71

11

Introduction: Punch Activated Mario Question Block Lamp

About: I am a sophmore at ASU studying robotics and film production. 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.

Step 1: Materials and Tools

Materials:

  • 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

Tools:

  • 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

    Recommendations

    • Make it Glow Contest

      Make it Glow Contest
    • First Time Author Contest

      First Time Author Contest
    • PCB Challenge

      PCB Challenge

    11 Discussions

    1
    tim-hilt
    tim-hilt

    Question 1 year 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!

    Additional:
    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?

    Update:
    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!

    1
    carlosedeleonm
    carlosedeleonm

    1 year ago

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

    0
    Zachary Goode
    Zachary Goode

    Reply 1 year 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

    1
    JessicaH288
    JessicaH288

    1 year ago

    I love this idea. Do you have anymore on this concept?

    0
    Zachary Goode
    Zachary Goode

    Reply 1 year ago

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

    1
    JessicaH288
    JessicaH288

    Reply 1 year 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.

    0
    Zachary Goode
    Zachary Goode

    Reply 1 year ago

    The only other thing I have from super mario bros currently is a thwomp model I designed a while ago.
    https://www.thingiverse.com/thing:3027333

    Im not sure yet what i'm going to make next, but I am open to suggestions.

    2
    attosa
    attosa

    1 year ago

    How fun is this? Nice work!

    0
    Zachary Goode
    Zachary Goode

    Reply 1 year 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.)

    2
    seamster
    seamster

    1 year ago

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