It really works! That's the best part!!!
Instructables user [Bruno] recently constructed a fun little toy that brings a bit of the Mario nostalgia out of the video game universe and into ours. His Super Mario coin block is instantly recognizable from the first Mario game and performs just as you would expect it to. Punching or tapping the bottom of the block releases coins one at a time, complete with sounds straight from the game.
The coin block is constructed from thick cardboard and wrapped in color mock ups of the in-game block. Inside, a spring-loaded tube of coins is placed above a launch arm which is also connected to a spring. A servo actuated arm pulls the launch arm down, dropping a coin from its tube on to the launch arm which is then flung from the top of the box once the servo arm rotates far enough. When this occurs, the built-in MP3 player is triggered to play the “coin sound” from the game. A 555 timer is used to ensure the servo actuated arm rotates once per activation, and a LM386-based amplifier is used to increase the output volume of the MP3 player, both of which operate using rechargeable batteries.
See the instructions HERE