Pan / tilt mount controlled with a joystickTue, Sep 1 2009Posted by Jonathan Oxer Gluing together a mount for a touchscreen today I had a bit of time waiting for the epoxy to cure, and since I received a pan/tilt kit from Seeed Studio last week I took the opportunity to stick it together and connect it to an Arduino Mega. Not that it needs a Mega, but it happened to be sitting right in front of me and I couldn't be bothered moving! The two servos are controlled using PWM outputs, and an analog joystick from Sparkfun is fed to two analog inputs. The result: pan/tilt control from a joystick. It was trivially easy and took all of about 5 minutes to get going including plugging in all the jumpers for the joystick. The code is up now on github to show how easy it is: github.com/practicalarduino/PanTiltControl/ |
||
