Servo Motor#
Introduction#
The VEX 3-Wire Servo Motor is a 3-wire device that rotates to a specific position based on a control signal from the V5 Brain.
A Servo Motor moves to a position from 0 to 100 degrees and holds that position. Unlike a Smart Motor, a Servo Motor is used for position control, not continuous spinning.

Below is a list of available Servo Motor blocks:
Actions — Move a Servo Motor to a position.
spin Servo to position – Moves a Servo Motor to a specified position between 0 and 100 degrees.
spin Servo to position#
The spin Servo to position stack block moves a Servo Motor to a specified position between 0 and 100 degrees. The Servo Motor will hold that position until it is given another position.
Note: A Servo Motor begins each project by automatically centering itself at 50 degrees before completing any movements.

spin [ServoA v] to position [50] degrees
Parameters |
Description |
|---|---|
device |
The Servo Motor to move. Choose from the Servo Motors configured in the Devices window. |
position |
The position to move the Servo Motor to, from 0 to 100 degrees. This uses whole numbers. |
Example
when started
[Move the Servo Motor to three different positions.]
spin [ServoA v] to position [0] degrees
wait (1) seconds
spin [ServoA v] to position [50] degrees
wait (1) seconds
spin [ServoA v] to position [100] degrees