ElectroFried is developed for the Global Game Jam 2011 in Antwerp in design center the winkelhaak.
The Team Jekkos/ Cinezaster decided to make a simple game based on colliding electrons.
With a nasty side effect, a electro shock.
As a input devised I hacked a old computer mouse to control the electron and bring it to the proton without colliding with the other free spinning electrons.
A transformator of a disposable camera is used to generate high voltages on the input mouse.
5 leds are used to show witch level you are and show animations in between.
A arduino controls everything.
Step 1: The controller
On the arduino side there are pull-down resistors to keep the input level LOW when no switch is triggered.
Step 2: The shocking device
The transformer is a step up transformer.
I used a power NPN BD139 to generate some kind of alternating current through the transformer. After messing around with the components that came from the camera. I switched to a more software generated alternation.
I used the tone function of arduino to generate a 50000 Hrz signal, this delivers about 1000 Volts.
I used batteries to power because the frequencies could interfere with the arduino.
Step 4: Arduino Code
The zip file contains the java game.