View Single Post
  #5   Spotlight this post!  
Unread 14-02-2006, 16:59
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Camera isn't working

A servo is a tiny motor with a built-in position sensor, along with a small circuit that controls the motor in order to make the sensed position match the commanded position. You will need to duplicate that sort of system with a motor from the Kit of Parts and a position-sensing device such as a potentiometer, along with programming that controls the motor in order to make the sensed position match the commanded position. A simple algorithm would be to find the error between the desired and measured positions and drive the motor in the appropriate direction until the error is near zero.

For a fancier and more effective algorithm, search the forums for PID position control.