Program a Servo?

Hello, i was wondering if we have a servo that is used as a shifter, how would it be programmed. Is it a value like 0 - 255 or is it either a 0 or 1 like in a relay?

It plugs into the PWM ports, and its values can range from 0 to 255.

ok, thank you very much

in addition,
as opposed to motors,
the pwm signal the servo gets is translated to a location, not to speed.
though, there are servos, or modified servos that translate pwm into speed.

hope that helps.
Ran.

Also, remember that the servo gets its power from the backup battery through the robot interface module. So if you want it to move, you have to plug in the backup battery.

Also, remember that since the value your sending out the pwm port (0-255) is a location, if the servo cant reach that location because something is blocking it, it will still work to reach that location, draining your backup battery very fast and makes the servo very hot.

We had this problem with the 2 speed gearboxes we are using. The servo only had a short range of movement because of the sifter rod, and was killing our backup battery.