Step 5Example 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!
| « Previous Step | Download PDFView All Steps | Next Step » |









































http://www.adafruit.com/index.php?main_page=product_info&cPath=35&products_id=164
I plan on upgrading to the long range version from sparkfun.com
http://www.sparkfun.com/commerce/product_info.php?products_id=8958
Zilog
Digi-Key part #269-4710-nd
Apparently I now have to pay to post a link or I would have, and FYI thats ridiculous. I could see paying for some features but to post a link?
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.
The part I like about using proximity sensors, is that 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 3 feet away, but not more than 8 feet away. Just a little extra control.
- John
Whatcha building anyway?
Eric