MG995

ARDUINO SERVO MOTOR

The servomotor is a rotary actuator or linear actuator that allows for precise control of angular or linear position, velocity and acceleration. It consists of a suitable motor coupled to a sensor for position feedback. It also requires a relatively sophisticated controller, often a dedicated module designed specifically for use with servomotors.
Categories: , Tags: , ,
  • Product Size: 40.7 * 19.7 * 42.9mm.
  • Product weight: 55g.
  • Operating torque: 13KG/cm.
  • Reaction speed: 53-62R / M.
  • Operating Temperature:-30 ~ +60 °.
  • Deadband settings: 4 microseconds.
  • Plug Type: JR, FUTABA General.
  • Rotation angle: A maximum of 180 degrees.
  • Servo: Servo.
  • Operating current: 100mA.
  • Using the voltage: 3-7.2V.
  • 13 kg torque servos.
  • Coreless motor.
  • Metal Gear structure.
  • Double ball bearing.

 

Arduino Code Example:

/*
Arduino Servo Test sketch
*/
#include <Servo.h>
Servo servoMain; // Define our Servo

void setup()
{
   servoMain.attach(10); // servo on digital pin 10
}

void loop()
{
   servoMain.write(45);  // Turn Servo Left to 45 degrees
   delay(1000);          // Wait 1 second
   servoMain.write(0);   // Turn Servo Left to 0 degrees
   delay(1000);          // Wait 1 second
   servoMain.write(90);  // Turn Servo back to center position (90 degrees)
   delay(1000);          // Wait 1 second
   servoMain.write(135); // Turn Servo Right to 135 degrees
   delay(1000);          // Wait 1 second
   servoMain.write(180); // Turn Servo Right to 180 degrees
   delay(1000);          // Wait 1 second
   servoMain.write(90);  // Turn Servo back to center position (90 degrees)
   delay(1000);          // Wait 1 second   
}




On your servo you will have 3 wires. Normally black, red (center) and either orange or white:

Using some single strand hook up wire, connect the black wire to one of the Arduino 0V pins. Connect the red wire (center wire) to the Arduino 5V pin. And finally connect the orange/white wire to pin 10.