2
Arduino towerpro sg90 9g servo From http://www.dx.com/p/towerprosg909gminiservowithaccessories12859 Contents 1 Introduction 2 Product 3 Connecting 4 Example Code Introduction Servo to control movement 0180 degrees Product Universal for JR and FP connector Cable length : 25cm No load; Operating speed: 0.12 sec / 60 degree (4.8V), 0.10 sec / 60 degree (6.0V) Stall torque (4.8V): 1.6kg/cm Temperature : 30~60'C Dead band width: 5us Working voltage: 3.5~6V Dimension : 1.26 in x 1.18 in x 0.47 in (3.2 cm x 3 cm x 1.2 cm)

Arduino Towerpro Sg90 9g Servo - TkkrLab

Embed Size (px)

DESCRIPTION

Arduino Towerpro Sg90 9g Servo

Citation preview

  • Arduinotowerprosg909gservoFrom

    http://www.dx.com/p/towerprosg909gminiservowithaccessories12859

    Contents1Introduction2Product3Connecting4ExampleCode

    IntroductionServotocontrolmovement0180degrees

    ProductUniversalforJRandFPconnectorCablelength:25cmNoloadOperatingspeed:0.12sec/60degree(4.8V),0.10sec/60degree(6.0V)Stalltorque(4.8V):1.6kg/cmTemperature:30~60'CDeadbandwidth:5usWorkingvoltage:3.5~6VDimension:1.26inx1.18inx0.47in(3.2cmx3cmx1.2cm)

  • Weight:4.73oz(134g)

    ConnectingPinBrown=connecttoArduino/GNDPinOrange=connecttoarduino+5VPinYellow=inthisexampleconnecttoArduinoDigitalport9

    ExampleCode#includeServomyservo;//createservoobjecttocontrolaservo//amaximumofeightservoobjectscanbecreatedintpos=0;//variabletostoretheservopositionvoidsetup(){myservo.attach(9);//attachestheservoonpin9totheservoobject}voidloop(){for(pos=0;pos=1;pos=1)//goesfrom180degreesto0degrees{myservo.write(pos);//tellservotogotopositioninvariable'pos'delay(15);//waits15msfortheservotoreachtheposition}}

    Thispagewaslastmodifiedon25November2014,at22:57.