TowerPro SG5010 Micro Servo (SG5010) [D032]



https://www.youtube.com/watch?v=xRpws0Ecrfc


* GitHubhttps://github.com/rdiot/rdiot-d032.git


* Specs

owerPro SG5010 Micro Servo.

Small and exquisite appearance, it is convenient to carry.

Coreless motor and double ball bearing.

Less noise, light weight.

Used for model airplane accessories.

Stable performance and shock proof.

Color: Black

Connector wire length: 28.3cm

Operating speed (4.8V no load): 0.14sec/60 degrees

Operating speed (6.0V no load): 0.11sec/60 degrees

Stall torque(4.8V): (8kg/cm) (110oz/in.)

Stall torque(6.0V): (11kg/cm) (156oz/in.)

Temperature range: -30 to 60°

Dead band width: 4usec

Operation Voltage: 3.5-8.4V

Item weight: 55g

Package including:1 * Torque servo

4 * Rubber grommets

4 * Brass eyelets

5 * Screws

5 * Servo horn set


* Contents

- Key Code

#include <Servo.h>

Servo towerprosg5010; 

 

int pos = 0; 

 

void setup()

{

  towerprosg5010.attach(9); 

}

 

void loop()

{

  for(pos = 0; pos < 180; pos += 1)  // 0 to 180 degrees with 1 degree step

  {                                  

    towerprosg5010.write(pos);  

    delay(120);                       // time set 120 ms 

  }

}

Posted by RD IoT RDIoT

댓글을 달아 주세요