With exams behind him [Adam Greig] had time to make a Nerf sentry gun. It’s actually quite easy to pull everything together. He’s got a netbook running Motion, an open source motion sensing program for use with a webcam. When movement is detected an Arduino, connected via a USB cable, actuates a servo to pull the trigger of the gun. The turret itself has seen a battery upgrade that increases the firing speed. It’s fun to see hardware prototyping done with a few pencils and a fist full of cable ties. Check it out after the break.
This particular toy, the Nerf N-Strike Vulcan, has become quite a popular starting point for turrent projects. We’ve seen one that uses a motorized base, and another that was part of a final project at Cornell.