SG90 Mini-Servo (1.6 Kgs.cm)

55.00 EGP

Although this is a small servo motor but it has a great power compared to its size, in addition to a small size that makes it ideal for space-sensitive projects.

In stock

Description

SG90 Mini-Servo Specifications

  • 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)

Connecting

  • Brown = connect to Arduino – / GND
  • Orange = connect to arduino +5V
  • Yellow = in this example connect to Arduino Digital port 9

Code

#include <Servo.h> 
 
Servo myservo; // create servo object to control a servo 
// a maximum of eight servo objects can be created 
 
int pos = 0; // variable to store the servo position 
 
void setup() 
{ 
  myservo.attach(9); // attaches the servo on pin 9 to the servo object 
} 
 
void loop() 
{ 
  for(pos = 0; pos < 180; pos += 1) // goes from 0 degrees to 180 degrees 
  { // in steps of 1 degree 
    myservo.write(pos); // tell servo to go to position in variable 'pos' 
    delay(15); // waits 15ms for the servo to reach the position 
  } 
  for(pos = 180; pos>=1; pos-=1) // goes from 180 degrees to 0 degrees 
  { 
    myservo.write(pos); // tell servo to go to position in variable 'pos' 
    delay(15); // waits 15ms for the servo to reach the position 
  } 
}

Additional information

Weight134 g