Pantilt is a project mainly written in C++ and C, it's free.
Code to operate a pan and tilt web camera using a Phidget motor controller.