oServoSE Object

Main Index
Object List
Back to top of pageDescription:
 

A Hardware Object that controls a Scott Edwards mini ssc II servo controller module at 2400 baud only.

 The following table lists the size and availability of the oServoSE Object.
 ObjectSizeDescriptionA1A2B1B2C1
oServoSE5 BytesControls a Scott Edwards Serial Servo controller.xxx
Back to top of pageOperation:
 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.

When created, the oServoSE Object also creates an instance of the oSerialL object which it uses to control the ssc.  The properties of the instance of the oSerialL Object are configured to transmit data at 2400 baud with an inverted serial signal.  Modifying this or any other properties of the oSerialL instance will affect the oServoSE Object's operation in ways that could make the it unable to control the ssc.  See the oSerialL Help for more detail on how the serial port communicates with devices such as the Scott Edwards Serial Servo controller.

Back to top of pageProperties:

The following table lists the properties of the oServoSE Object:

Property

Description

Value
A value that is sent to the Servo Controller.
Object Class: oValue Value Range: 0 - 255
Data Type: Numeric Default Value: 0
IOLine
A value that specifies which I/O Line is used to control the Servo Controller.
Object Class: oIOLine Value Range: 0 - 31
Data Type: Numeric Default Value: 0
Some I/O Lines have special purposes.  Be sure to see oIOLine help file for details.
Serial
The I/O function object used to control the Servo Controller.
Object Class: oSerialL Value Range: 0 - 255
Data Type: Numeric Default Value: 0
Address
Returns a pointer to the address of the oCounter Object instance.
Object Class: oAddress Value Range: 0 - 127
Data Type:Pointer (Read Only) Default Value: Address of Object

Back to top of pageMethods:
 

The following table lists the methods of the oServoSE Object:
MethodDescriptionArguments
PositionAutomates the communications with the ssc II2; The servo number and the position.

Back to top of pageExamples:
 

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	
Back to top of pageConnections:
 

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.

Back to top of page Related Items:

 The following table lists objects with related functions
 ObjectDescriptionA1A2B1B2C1
oRCIN(1-6)An Object that reads a Radio Receiver with up to 6 channels.x
oServoControls an RC Servo-motor.xxxxx
oServoSEControls a Scott Edwards Serial Servo controller.xxx
oServoSPControls an RC Servo modified for continuous rotation.xx
oServoXControls an RC Servo-motor with a signed value.xxx
Back to top of page Version History and Bug List:
 Firmware Ver B1: Introduced.

Bugs: No known bugs.


ooPIC Compiler Ver 6.0 (c) Copyright 1997 - 2007 Savage Innovations, LLC.