This is not directly electrical, but I am working on making a real life version of a coin block from Mario. Basically I use an LDR and to detect if someone punches the block and then use a transistor to turn on a DC motor.
The problem is that I want to be able to 'shoot' a coin up from the box using the motor, but I am not sure how I could achieve this. I have tried attaching some objects to the motor, which then hits a stationary coin, but that isn't very effective.
In summary, I want to be able to use a motor to shoot a coin up against gravity,