|
||
| Description: | |||||||||||||||||||||||||||||||||||||||||||||||||||
The oServoX Object is capable of positioning an RC Servo anywhere within its 180 degree rotational span. The position within the 180 degree span is specified by a value with a range of -64 to 63 were 0 is the center position. Once the servo has reached the specified position, it is held in place until the specified position changes or the oServoX Object is turned off. The maximum number of oServoX Objects that can be dimensioned in a single application program is 14, limited only by the amount of Object RAM. At best case, it is possible to control all 14 oServoX servos at the same time with a high torque setting of 70 Pulses Per Second. At worse case, All 14 possible oServoX servos at full swing can be controlled at the same time while maintaining a 20 Pulses Per Second refresh rate. All servo Objects use a default refresh rate of 35 Control Pulses Per Second. This refresh rate can be doubled to 70 Control Pulses Per Second to provide a higher torque output from the servos. Up to 12 servos positioned at full swing swing can be controlled at the same time while maintaining a 35 Pulses Per Second refresh rate and up to 6 servos positioned at full swing can be controlled at the same time while maintaining a 70 Pulses Per Second refresh rate. |
|||||||||||||||||||||||||||||||||||||||||||||||||||
| Operation: | |||||||||||||||||||||||||||||||||||||||||||||||||||
An oServoX Object positions a RC servo motor connected to the I/O Line specified by the IOLine property to a position specified by the Value, Center, Offset and InvertOut properties by outputting a PWM servo control pulse. The IOLine property specifies which one of the OOPic's 31 digital I/O Lines is to be used. When all 4 of the positioning values are set to 0, the servo will move to the middle position. As the Value property increases, the servo will move to one direction. And as the servo decreases, the servo will move to the other direction. The Value property is a full 8-bit URCP Heading value, but since the servo can only rotate 180 degrees, one half of the range is not used. When the Operate property is set to 1, the oServo Object will continuously output a PWM servo control pulse to the I/O Line specified by the IOLine property. This results in the RC Servo holding at the position specified by the Value property. When the Operate property is cleared to 0, the oServo Object sets the specified I/O line to 0 volts. The Center property is used to adjust the mechanical center of the servo. The InvertOut property causes the servo to move in the opposite direction. The Offset indicates which one-half section of the URCP Heading value to use and the Mode property specifies how the servo responds to values on the other half of the URCP Heading. The refresh rate defaults to 35 Pulses Per Second and can be set to a high torque setting of 70 Pulses Per Second. More information on the refresh rate can be found in the description of the oServo Object |
|||||||||||||||||||||||||||||||||||||||||||||||||||
| Storage size & Availability: | |||||||||||||||||||||||||||||||||||||||||||||||||||
The following table lists the size and availability of the oServoX Object:
|
|||||||||||||||||||||||||||||||||||||||||||||||||||
| Properties: | |||||||||||||||||||||||||||||||||||||||||||||||||||
The following table lists the Properties of the oServoX Object:
|
|||||||||||||||||||||||||||||||||||||||||||||||||||
| Example: | |||||||||||||||||||||||||||||||||||||||||||||||||||
In the following example, a Servo is moved back and forth.
|
|||||||||||||||||||||||||||||||||||||||||||||||||||
| Connections: | |||||||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||||||||||||||||||||
| See Also: | |||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| oServo - Another Object that drives a servo that is less sophisticated and uses less memory. oServoSP - An Object that uses URCP Speed values to control a modified RC Servo. oServoSE - An Object that controls a Scott Edwards mini ssc II servo controller module. OOPic.SrvRefresh - A property that selects a 70 Pulses Per Second refresh rate for all servos. |
|||||||||||||||||||||||||||||||||||||||||||||||||||