Manual

LynxmotionSSC32UServoControllerBoard
ElectronicsGuide
AnalogInputs
VAVBVCVDVEVFVGVH<cr>
PinslabelledAtoHareanaloginput/outputpinswhichcanbeusedtoreadsensors,todrive
lowpowerLEDsetc.
Example:"VAVBVCVD<cr>"
VA,VB,VC,andVDreadthevalueontheinputasanalog.Itreturnsasinglebytewiththe8bit
(binary)valueforthevoltageonthepin.
WhentheABCDinputsareusedasanaloginputstheinternalpullupisdisabled.Theinputsare
digitallyfilteredtoreducetheeffectofnoise.Thefilteredvalueswillsettletotheirfinalvalues
within8mSofachange.Areturnvalueof0represents0vdc.Areturnvalueof255represents
+4.98vdc.Toconvertthereturnvaluetoavoltage,multiplyby5/256.AtpoweruptheABCD
inputsareconfiguredfordigitalinputwithpullup.ThefirsttimeaV*commandisused,thepin
willbeconvertedtoanalogwithoutpullup.Theresultofthisfirstreadwillnotreturnvaliddata.
ReadAnalogInputExample:"VAVB<cr>"
Thisexamplewillreturn2byteswiththeanalogvaluesofAandB.Forexampleisthevoltage
onPinAis2vdcandPinBis3.5vdc,thereturnvaluewillbethebytes102(binary)and179
(binary).
Baud
TheSSC32UisshippedwithadefaultBaudrateof9600.ItalsosupportssettingBaudrate
usingtheonboardpushbutton.TosettheBaudrate:
1. Pressandholdthebutton.AtfirsttheLEDswillglowtoindicatethecurrentBaudrate.
a. 9600(green)
b. 38400(red)
c. 115200(bothgreenandred)
d. NonstandardBaudrate(noLEDs)
2. After2secondstheLEDswillstarttoalternate,indicatingyoucanchangetheBaudrate.
3. Releasethebutton.
4. Pressthebuttontocyclethroughbaudratesoutlinedinstep1.
5. OnceyouhaveselectedtheBaudrateyouwant,donothing;after5secondstheLEDs
willreturntonormalmodeandthenewbaudratewillbewrittentoEEPROM.
RegisterR4nowholdstheBaudrate.InadditiontothisphysicalwayofsettingtheBaudrate,it
canbewrittenviathecomputerusingthecommandbelow.
TheBaudratecanbesettononstandardvaluesifdesiredbywritingtoR4.Inordertofitthe
Baudratesintoa16bitvalue,itstoresthevaluedividedby10;soarateof9600Baudwouldbe
34