If your wife isn’t close to and you get to make the Space Cadet from your girl costume, likely that you leave a little bit of mold. In my case it was simple; Arduino, a motion sensor, led and Visual Studio 2013.
Note: I never tire of repeating how useful that is Visual Micro for creating projects.
Here’s a video of the final result, as the motion sensor “moves” being sent different values for the brightness of the led Strip. This with a 9V battery and then you have to put it in the guise of Space Cadet.
The source code is as follows:
Iimportant: only 32 lines of code!
- Grove System
- Grove 3 axis accelerometer
http://www.seeedstudio.com/wiki/Grove_-_3-Axis_Digital_Accelerometer (% C2%B11.5g)
- Grove Led String
Saludos @ Home