Anda di halaman 1dari 7

ServoControllerInstructionsforUse

Power Supply
Theservocontrollerneedstwopowersupplies:servopowersupplyandchippowersupply.

Servopowersupply(+):VS(leftoftheblueconnectingterminalatPosition3inthefigure) Servopowersupply():GND(middleoftheblueconnectingterminalatPosition3inthefigure) Servopowersupplysparametersdependontheparametersoftheattachedservo.Forexample,iftheTR213 servohasapowersupplyof4.87.2V,theservopowersupplycanusethepowersourceof4.87.2V. Chippowersupply(+):VSS(rightoftheblueconnectingterminalatPosition3inthefigure) Chippowersupply():GND(middleoftheblueconnectingterminalatPosition3inthefigure) ThereisaVSSrequirementof6.512V.IfthechippowerisinputthroughtheVSSport,thepowersupplyhasto rangefrom6.5to12V. Notes: 1. TheUSBportatPosition2inthefigurecansupplypowertothechip.SoitisadequatetochoosetheUSB portoralternativelytheVSSport. Position1inthefigurecansupplypowertothechipaswell,marked5VandGND,where5Vistheanodeand GNDisthecathode.Thepowersupplyhastobe5V. Positions1,2and3cansupplypowertothechip.Itisadequatetochooseanyofthem. ThegreenLEDlightatPosition4inthefigureisthechippowerindicator.Ifthegreenlightison,itindicates thechippowerworkscorrectly;ifthelightisoff,itindicatesthechippowermalfunctions. ThegreenLEDlightatPosition5inthefigureistheservopowerindicator.Ifthegreenlightison,itindicates theservopowerworkscorrectly;ifthelightisoff,itindicatestheservopowermalfunctions.

2.

3. 4.

5.

ItisnecessaryforbothgreenLEDlightstobeontocontroltheservo.

Install the Driver


Thedriverisavailableathttp://www.torobot.com/down/usc_driver.exe (casesensitive) DirectlydoubleclickonUSC_driver.exe;clickonNextandthedriverwillbeinstalledautomatically. Ifthepromptbelowoccursduringinstallation,pleasechoosealwaysinstallthisdriver.

Ifthepromptbelowoccursduringinstallation,pleasechoosecontinue.

Afterthedriverisinstalledsuccessfully,enterthecomputersdevicemanagerandyouwillseethehardware deviceoftheservocontroller.Forexample,theminiUSBservocontrolinthefigurebelowisthedevicename,and theCOM472istheportnumber.Thedevicesportnumberisneededwhenthecomputersoftwarecontrolis exercisedontheservo.

Connect the servo to the servo controller

Whatismarkedredinthefigurearetheservosconnectorsforsignalwires(becarefulaboutthedirectionwhen connectingtotheservo). Whatismarkedyellowinthefigurearenottheservosconnectors. Payattentiontothewhitetextualsymbolsasidewhenconnectingtotheservo.Forexample,S1,S2,,S32refers totheservochannelsthatcorrespondtothecomputersoftware.

Download the Software


Thesoftwarecanbedownloadedat http://www.torobot.com/down/rios_usc.exe (casesensitive).

Control one single servo


RunRIOS_USC.exe,choosetherightportnumber,andthenclickthebuttonopen.

Usethemousetodragthesliderintheservopanel(dragtheservopanelcorrespondingtothechannelwithwhich theservoisconnected;attheupperpartofthepanelistheserialnumber,suchastheS1inthefigurebelow).

Control Multiple Servos Simultaneously


Aftermultipleservosarecontrolledinsequencebyfollowingthestepsabove,setthetime(e.g.inthefigurebelow, the setting, referred to as the rotary speed, is 1000ms; it has to fall in the range 1009999; the higher the value, theslowerthespeed).Thenclickonthebuttonaddatthelowerpartofthesoftware.Thesoftwarewillproduce a command at the lower part of the software which can exercise simultaneous control over all the servos that are controlledearlier(if10servosarecontrolledearlier,thecommandcancontrolthese10servossimultaneously).

Download the Action Group


If several or dozens of commands are produced by following the steps above, you can click on the button run at therightofthesoftwaretotestthesecommands. If the test result is acceptable, you can click on the button download at the right of the software to download theactiongroup. On completion of the download, the software will prompt download is complete! No.=1, where the number referstotheserialnumberofthisactiongroup. Afterwards,allcommandsinthegroupcanbeexecutedbyexecutingtheactiongroup.

Run the Action Group


First click on the button read to get all serial numbers of groups, then input the number of times of executions, clickthebuttonrun,andtheselectedactiongroupwillbeexecuted.

Use the OffLine Working


First click on the button read to get all serial numbers of groups, input the number of times of executions, click thebuttonoffline,andthentheselectedactiongroupwillbeexecutedoffline(offlinemeansthatthegroupof actionswillnotbeexecuteduntilthecontrollerpoweristurnedon).

Ifofflineworkingofthecontrollerisnolongerneeded,youcanclickthebuttondisabletoturnoffthefunction.

Erase Flash
Eraseallactiongroupalreadydownloadedtothecontroller.

Secondarydevelopment
Theservocontrollerisaslavedevice,meaningthatitcaneitheracceptcommandsorexecutepresetcommands.It cannotthinkatall. Communicationprotocol:serialcommunication(TTLlevel),baudrate9600,nocheckbit,8databits,1stopbit To control the servo through the servo controller, users can selfdevelop computer software or use the MCU to sendcommandstotheservocontroller. Commandformat: Name Command Description Data1referstotheservoschannel Data1500referstotheservolocation,intherange 5002500 Data100referstothetimeofexecutionand representsthespeed,intherange1009999 Data1,2,and8refertotheservoschannels Data600,900,and2500refertothelocationsofthe servosthatcorrespondtothreechannels Data100referstothetimeofexecutionand representsthespeedofthreeservos.Regardlessof thenumberofservos,thereisonlyonetime,orone T. Thecommandisexecutedatthesametime;thatis, allservosoperatesimultaneously. Data1referstotheserialnumberoftheaction group Data2referstothenumberofcycles Executethefirst,thirdandfirstactiongroup,The numberofcyclesis2. Oneparticulargroupofactioncanappear repeatedly. TherecanbeonlyonenumberofcyclesorC. Thecommandisexecutedinsequence;thatis,the actiongroupsareexecutedinsequence.

Controlonesingle servo

#1P1500T100\r\n

Controlmultiple servos

#1P600#2P900#8P2500T100\r\n

Executeonesingle actiongroup

#1GC2\r\n

Executemultiple actiongroups

#1G#3G#1GC2\r\n

Allcommandsabovecontain\r\n.Itistheendmarkofthecommandandismandatory. Allcommandsarenospaces. \r\n represents two characters of carrier return and linefeed, and are the hexadecimal 0x0D and 0x0A, or Chr(13) andChr(10).

ConnecttotheMCU