| Description: |
| | A Hardware Object that controls a Scott Edwards mini ssc II servo controller module. |
| Operation: |
| | When the oServoSE Object's Value property is set to a value, that value is sent to the mini ssc II servo controller. The ssc II servo controller is expecting to see a sync byte of 255 followed by a servo select byte of 0 - 15 followed by a position byte of 0 - 254. A Position method is provided to automate the communications with the ssc II. To use the Position method, two numbers are specified as arguments; the servo number and the position. When the Position method is encountered in code, it will format and send the 3 required bytes to the ssc II. See example below. |
| Storage size & Availability: |
| | The following table lists the size and availability of the oServoSE Object and its variations:
| Object | Size | Firmware Version | Compiler Version |
|---|
 | oServoSE | 5 Bytes | B.1.0 | 4.0 |
|
| Properties: |
| | The following table lists the Properties of the oServoSE Object:
| Property | Description |
|---|
| Address | Returns a pointer to the address of the oServoSE Object instance. Data-Type: Address, Read-Only Data-Range: 0 - 127 | | IOLine | A value that specifies the physical I/O Line to use for serial communications. Data-Type: Byte Data-Range: 0 - 31 | | Value | A value that is used to control the mini ssc II. Data-Type: Byte, Default Data-Range: 0 - 255 |
|
| Methods: |
| | The following table lists the methods of the oServoSE Object:
| Method | Description | Arguments | | Position | Automates the communications with the ssc II | 2; The servo number and the position. |
|
| Example: |
| | In the following example, the oServoSE Object is used.
'This program creates a oServoSE
'Object which communicates with
'a Scott Edwards SSCII servo
'module via I/O line 24 and
'moves servo number 7 back
'and forth
Dim A As New oServoSE
Sub Main()
A.ioline = 24
Do
A.Position(7,0)
OOPic.Delay = 100
A.Position(7,254)
OOPic.Delay = 100
Loop
End Sub
|
|
| Connections: |
| | The oServoSE Object requires only one I/O line connected to the ssc II to operate and any of the OOPic's 31 I/O lines can be used. Be sure to select an I/O line that is not being used for any other purpose. Locate the top 2 pins of the 10-Pin header on the ssc II. The selected I/O line will need to be connected to the 'S' Pin and the Ground line will need to be connected to the 'G' pin on this connector. The oSerialSE communicates with the ssc II at 2400 baud, so be sure to NOT jumper the baud rate selector on the ssc II.
 | Top of the 10-Pin header on the ssc II. |
|
| See Also: |
| | oServo - Another Object that drives a servo that is less sophisticated and uses less memory. oServoX - An Object that uses URCP Heading values to control an RC Servo. oServoSP - An Object that uses URCP Speed values to control a modified RC Servo. |