
TowerPro SG90 SG 90 180 Degree Degree Servo Motor
SKU: B 175,,D171,IMP100,TH100,KRT05,N100
The TowerPro SG90 mini servo motor is lightweight, high-quality and lightning-fast. The servo is designed to work with almost all the radio control systems. It is with excellent performance brings you to another horizon of flight. The SG90 mini servo with accessories is perfect for R/C helicopter,plane,car,boat and truck use.
Specification
1.Operating Voltage: 4.8~6.0V
Operating Speed : 0.12sec/60 degree(4.8V)~0.1sec/60 degree(6.0V) Torque : 1.6kg/cm(4.8V) Dead Band Width : 5usec Temperature Range : -30-60? Cable Length : 25cm Servo Type : Analog Servo Brand Model : Tower Pro SG90Testing Code:Automatic
nothin#include
Servo myservo; // create servo object to control a servo
//twelve servo objects can be created on most boards
void setup(){
myservo.attach(9);//attaches the servo on pin 9 to the servo object
}
void loop() {
myservo.write(0);
delay(1000);
myservo.write(180);
delay(1000);
}
Testing Code:Without Knobe
#include
Servo servo; int angle = 10;
void setup() { servo.attach(8); servo.write(angle); }
void loop()
{
// scan from 0 to 180 degrees
for(angle = 10; angle < 180; angle++)
{
servo.write(angle);
delay(15);
}
//now scan back from 0 to 180 degrees
for(angle = 180; angle > 10; angle--)
{
servo.write(angle);
delay(15);
}
}