I put mine in a pumpkin for Halloween. I also added an IR motion sensor, sound, and Twitter.
You can follow the victim count on Twitter by following: hackolantern
Step 1: Materials Checklist
- Arduino microcontroller
- A couple cans of Silly String (it's no fun with just one can!)
- Wire coathanger
- Standard sized servo (I used a 39g servo)
- Zip ties
- Basic tools (I'm not going to list everything. You're smart, surely you'll figure it out.)
Step 2: Mark, Measure, and Cut
You might be able to use my measurements in the images below, but your brand of Silly String may have different dimensions. Good luck.
Step 3: Bendy / Twisty
Step 4: Mount Servo
The trigger should be adjusted to fit YOUR can of Silly String. With my setup, the internal bend is horizontal when the outside lever rests all the way against the servo. This allows for the servo to make a full 90 degree rotation without applying any stress to the other components.
Step 5: Example Code
** I used the SoftwareServo.h library only because the standard servo.h library and the VirtualWire.h library don't get along. If you want to use the standard servo library, it works just fine, but you'll have to whip up your own code (it shouldn't be too hard).
Download the sketch anyway, and take a look.
The other sketches on here, SillStringShooter2.pde and Hackolantern_Tweet.pde, is the actual code I used for my pumpkin. Enjoy!