Upload
nawfal-el-khadiri
View
7
Download
1
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.