The device pictured is actually a USB hub. Inside I'll put a Teensy or an Espruino Pico intercepting the signals from the switches and identifying as a USB keyboard.
You flip the two switches, turn the key, lift the lid, push the red button. The red light starts to flash, and once it stops it goes… [enter]
Perfect for deploying code.
Components
1×
Doomsday device
Bought from Japan.
1×
Espruino Pico / Teensy 2.0
I first considered using Teensy 2.0, but Espruino Pico runs JavaScript and is therefore twice as nice.
1×
USB cable
A short USB cable to connect the Espruino Pico to the USB hub of the device, and thus to the computer.
I just couldn't wait and gave Teensy a try. Arduino/C code turned out not to be hard at all, the code ended up as less than 30 lines and pretty simple. And it works!
The code and a quick recap of what I did has been posted to GitHub:
Doomsday device has been bought and sent from Japan. I bought the last one still available in the world, from what I can tell!
I have backed the Espruino Pico on Kickstarter, and it is scheduled to arrive in April.
So I can either wait untill April to get started with the Pico, or start today with my Teensy using C++ code. The Espruino is much more interesting though, as it runs JavaScript directly on the chip without any compilation or mental overhead. It makes for a much easier and fun development process, especially for a microcontroller noob like me.
I already have the older "big" Espruino, but it lacks USB HID support and won't get that before the Pico anyway. So it's either the Teensy or the Pico for me.
We'll see if the urge to get a working doomsday device overcomes my fear of Teensy's C++ compilation, or if I'll hold out for the Pico…
Now I'm working on a node-webkit powered app that will receive a signal when the button is pushed, and react in any way you like. It could play a sound effect, or launch an app, or basically anything. The little USB hub is reaching its potential!
hehe super cool project, made me laugh :)