I am working on building a working Sentry Gun from the video game Team Fortress 2.
What I am looking to do is have the head pan left to right tracking motion. When motion is sensed then the head would track the motion while firing (a nerf dart) and playing a sound effect.
Ideally I am looking to use an Arduino as the main control unit with 2 motor controller boards. One board would control left to right motion while the second would control the dart firing.
I have looked around on the forums before making this post and I found some information on using a CMUCAM but it seems that this is good for tracking motion in video or tracking colors. Similarly some sentry type nerf guns have been made using Parallax Ping sensors. The Ping sensors that have been used in the Nerf Vulcan sentry guns only stop when motion is sensed, fire, and when no motion is detected they begin panning left to right again. Because my sentry gun is going to be a working replica it will have its own stand which will make the sentry rather short. Because of this I would like to be able to track motion left to right but also up and down.
My question is, is there is a way to detect and follow motion using an Arduino? Perhaps using an IR light and camera?