Manual

LynxmotionSSC32UServoControllerBoard
ElectronicsGuide
Commands
Command Types and Groups.
Single Servo Commands
InorderfortheSSC32topositionaservo,itmustreceiveaserialcommandinthefollowing
format.Notethatthelessthanandgreaterthansignsarenotneeded.Valuesinitalicare
optional.
#<ch>P<pw>S
<spd>
T
<time><cr>
● <ch>:pin/channeltowhichtheservoisconnected(0to31)indecimal
● <pw>:desiredpulsewidth(normally500to2500)inmicroseconds
● <spd>
:servomovementspeedinmicrosecondspersecond*
● <time>
:timeinmicrosecondstotravelfromthecurrentpositiontothedesiredposition.
Thisaffectsallservos(65535max)*
● <cr>:carriagereturn(ASCII13)**
Example1:#5P1500S750<cr>
Thiswouldhavetheservoconnectedtopin#5oftheSSC32Umovetoposition1500(0
degrees/centered)atarateof750uSpersecond*.NumericargumentstoallSSC32
commandsmustbeASCIIstringsofdecimalnumbers,e.g."1234".Somecommandsaccept
negativenumbers,e.g."5678".ASCIIformatisnotcasesensitive.Useasmanybytesas
required.Spaces,tabs,andlinefeedsareignored.
*Forabetterunderstandingofthespeedargument,considerthat1000uSoftravelwillresultin
around90°ofrotation.Aspeedvalueof100uSpersecondmeanstheservowilltake10
seconds(divide1000by100)tomove90°.Alternately,aspeedvalueof2000uSpersecond
equatesto500mS(halfasecond)tomove90°(divide1000by2000).Notethatservosdohave
amaximumspeed(indegreespersecond),soalthoughyoumaytryassigningafasterspeed,
theservowillalwaysbephysicallylimited.
**AllSSC32commandsmustendwithacarriagereturncharacter(ASCII13).InArduinothis
canbedonebyusingtheSerial.println();command.Multiplecommandsofthesametypecan
beissuedsimultaneouslyinaCommandGroup
.Allofthecommandsinacommandgroupwill
beexecutedafterthefinalcarriagereturnisreceived.
Example2:#3P1600T1000<cr>
24