This is a fun device that's very simple to make.

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

Items needed:

- 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

Take the cap off the Silly String. Measure and mark the cutout locations.

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

Bend your coathanger to resemble the image below. This will act as the trigger.

Step 4: Mount Servo

Run the zip tie through the top holes, and attach the 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

This code is pretty stupid, but it will give you an idea of how to start.

** 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!
<p>Quite tricky to get the wire to press the spray button in the center. My spray won't shoot a string if you hit it off center, the stuff will just flow out but not shoot. <br>So the wire must be mounted slightly off the cap's diagonal to get it to press the button's center. Alternatively it should also work if it is on the diagonal but high enough above the button so that by the time the V-part rotates onto the spray button it's centered on the button.</p><p>This setup should also alleviate the problem of the cap coming off that a previous commenter mentioned.</p>
dude u need to give credit where credit is due! <br> <br>http://cse.unl.edu/~djin/wp-content/uploads/2012/08/project1_report.pdf <br>
Wow, I hope he got a good grade! I also hope you're referring to the individual who wrote that report and not me. Look at the dates. I did this project in 2009 and he did his in 2011. That's a bummer he didn't add this instructable as a reference :(
<p>Looks like they borrowed heavily from your instructable there.</p>
You're right! Foot in mouth syndrome! My sincerest apologies. Excellent instructable!
Can u provide an explanation of the pinouts to the arduino? (which pins r used for what)? <br>Thanks
Great project. I'm a noob at arduino and when trying to load the sketch (shooter2 as I don't want to tweet, etc), I get all sorts of compilation errors and others errors such as 'digitalWrite was not declared, etc? I have the software servo and virtual wire libraries installed. Sorry to bother but can't figure out problem?
Great instructable! for those interested, tried the ssscat to shoot silly string, clogged on the first shot. gonna see if I can mod the solenoid valve and nozzle in it to get it to work - I'll post an instructable if so.
Can I use a Parallax Ping Sensor instead of an IR sensor?
I really want to do this but I'm a total noob and having trouble figuring out how to connect the ir sensor and the servo to the arduino, Help please.
How do you keep it from pushing the cap off when you have it press the spray nozzle? Getting the shape of the hangar just right to even turn correctly is quite the art, how many attempts on the hangar did it take you?
The cap i used had a really snug fit, so i never had a problem with it popping off. I would try to add some paper or something as a shim if the cap is too loose. As for achieving the correct bend in the hanger - it only took minor tweeking. The primary issue I had was simply trying to find a good angle which allowed the arm of the servo to operate the lever correctly. Keep at it, you'll get it!
Great idea!<br /> <br /> Hope you don't mind some suggestions though.<br /> <br /> You should use the side view showing the mounted servo in a lower-down step, not just in the intro.<br /> <br /> You could also give a brief description of how the arduino is all set up. Which of the three sketches is used in the finished project?<br />
Thanks for the input. <br /> <br /> I added the picture of the mounted servo to the final step, and&nbsp;the sketches&nbsp;were described in the code step.<br /> <br /> I'll have to take a snapshot of my Arduino setup. That would be the easiest way to see the configuration.<br /> <br /> Thanks,<br /> Eric
Just curious if you ever got that shot of your arduino setup together. Very cool project.
<br> WARNING: Silly string is highly combustible and can be ignited by a lit cigarette.
Not the stuff i was using, but thanks for the warning.
How would I integrate wifi?<br>&quot;&gt;
There are two levels of wireless connectivity for this project. Notice the stack of components to the left of the pumpkin? Within that stack is a wifi shield from asynclabs.com. There are also two very inexpensive RF modules that you can't see. One is inside the pumpkin, and the other is connected to the stack of components on the left. I set it up this way so to avoid ruining my wifi shield with pumpkin goo. Wifi shield costs about $65, and the RF modules only cost $6 combined. So, to answer your question, it's already integrated! Just download the sketch that involves sending tweets, and you can run from there. Have fun!
Great project and outstanding photo's!<br><br>How did you get your photos so nice :)<br><br>Rated 5* and will vote when the time comes! :)
He must of used one of <a href="https://www.instructables.com/id/Do-It-Yourself-Photography-Light-Box-for-Under-40/">these</a>
Nope, just a big piece of paper and lots of light!
close enough... =P
Hi :)
Awesome project. Can this be combined with other projects?<br><br>As in, can this thing tweet, take a webcam photo, and fire the silly string all at once when the sensor is tripped?
Absolutely... Sky is the limit my friend!
Is there any way of doing this without using an Ardunio? I'm kindof interested in crapflinger's idea but I'm not sure if I want to spend the money...
Sure, just look for silly string shooting toys. You should be able to easily &quot;hack&quot; into them, and hook them up to a cheap motion sensor.
i've got one of <a href="http://www.petsmart.com/product/index.jsp?productId=2751025">These</a>, it's an automated cat scare-the-crap-out-of-er (really effective by the way)....i found that if i take the nozzel off of a can of silly string (or spray paint, or hairspray)...and replace it with this thing...that it actually works pretty well (the silly string doesn't go quite as far because of the nozzel shape)....really great for scaring people
Was it the new or the old Ssscat that you have because I'm interested in buying one for this very reason. Is the distance of shooting greatly decreased or is it just by a little bit? I am just wondering if I will have to mod the nossle...<br> <br> -Jake
Very nice guide. Will definite try this when Halloween comes.
Cool and thanx... Can not wait to adapt that idea for my pc. Already control servos from the parallel port.
What did you use for the IR motion sensor?&nbsp; That's the once piece&nbsp;I wanted to see but there is no mention of it.&nbsp; Please add a little more detail!<br />
I used the Sharp IR proximity sensor from adafruit.com<br /> <a href="http://www.adafruit.com/index.php?main_page=product_info&amp;cPath=35&amp;products_id=164">http://www.adafruit.com/index.php?main_page=product_info&amp;cPath=35&amp;products_id=164</a><br /> <br /> I plan on upgrading to the long range version from sparkfun.com<br /> <a href="http://www.sparkfun.com/commerce/product_info.php?products_id=8958">http://www.sparkfun.com/commerce/product_info.php?products_id=8958</a>
&nbsp;With this PIR sensor at about 1/3 the cost you have an adjustable range of up to about 16-1/2ft. &nbsp;I'm sure you could rig something up get around the 60 deg beam angle. &nbsp;I'm giving it a try anyway :) If I'm wrong I'll find another use for it.&nbsp;<br /> <br /> Zilog<br /> Digi-Key part #269-4710-nd<br /> <br /> Apparently I now have to pay to post a link or I would have, &nbsp;and FYI thats ridiculous. &nbsp;I could see paying for some features but to post a link?<br />
Hey personman,<br /> <br /> That's a nice find - I like the price. Take a peek at my post below, and you'll see a link on how to narrow a PIR's detection angle. I picked one up at Radioshack for $10, so I figure the price is about the same as the one you mention after you add shipping. <br /> <br /> The part I like about using proximity sensors, is that&nbsp;you can adjust the trigger distance. It's nice, because I can limit the range, letting it only shoot when an object is at a specified distance. So, in this case, we could say only activate when an object is at least&nbsp;3 feet away, but not more than 8 feet away. Just a little extra control.
Excellent! Thank you! I didn't even know that one existed (and it is very reasonable).<br /> <br /> -&nbsp;John<br />
There is one other option, and it's even less expensive. You can use a PIR motion sensor (check your local Radioshack) pointed through a short piece of tubing to make it unidirectional,&nbsp;such as Jonathan did in this instructable: <a href="https://www.instructables.com/id/S3QN9YEFRD805LC/">https://www.instructables.com/id/S3QN9YEFRD805LC/</a><br /> <br /> Whatcha building anyway?<br /> Eric
i just thought of something - you could widen the hole in the nozzle of the can with a drill to get a shotgun effect.&nbsp; you know, hit more people.&nbsp; <br />
dude...I'm mad this thing is so cool and NOW I&nbsp;see it...on halloween day... : /<br /> <br /> Sweet instructable! I&nbsp;just wish I&nbsp;had seen it about two weeks ago though lol.<br /> <br /> 5 stars<br />
This is too funny--great job! 5 big ones for the rating...<br /> <br /> (warning to anyone who's entered in the Halloween contest, and then down-rates someone else's projects--the staff eliminates your negative votes to keep it honest...)<br />
Although I gotta say you should document this in greater detail...<br />
Very cool, I&nbsp;like how modular the solution is with the spray cap, you can keep changing the can without making new caps. Also this could be used for many other spray automation projects. Plus the pictures are absolutely professional.<br />

About This Instructable




More by erickingston:Arduino controlled Silly String shooter 
Add instructable to: