伺服电机#

介绍#

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.

VEX 三线伺服电机

Below is a list of available Servo Motor blocks:

Actions — Move a Servo Motor to a 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.

**注意:**伺服电机在开始每个项目之前,都会自动将自身居中于 50 度,然后再进行任何运动。

伺服电机示意图,显示其旋转角度,从左侧的 100 度到中间的 50 度,再到最右侧的 0 度。

[ServoA v] 转至 [50] 度

参数

描述

设备

The Servo Motor to move. Choose from the Servo Motors configured in the Devices window.

位置

The position to move the Servo Motor to, from 0 to 100 degrees. This uses whole numbers.

Example

当开始
[Move the Servo Motor to three different positions.]
[ServoA v] 转至 [0] 度
等待 (1) 秒
[ServoA v] 转至 [50] 度
等待 (1) 秒
[ServoA v] 转至 [100] 度