Reply to topic  [ 1 post ] 
MG90S Metal Gear Servo (HCROBO0057) 
Author Message
Site Admin

Joined: Sun Aug 05, 2012 4:02 pm
Posts: 708
Post MG90S Metal Gear Servo (HCROBO0057)
Image



MG90S is a metal geared version of the extremely popular MG90 9g servo. The servo has a universal “S” type connector, which fits most receivers/development boards etc. Weighing in at only 13.4g with dimensions of only 22.8 x 12.2 x 28.5 this servo is of a very small form factor, but it can pack a punch.

Specification
Weight: 13.4g
Dimension: 22.8×12.2×28.5mm
Stall torque: 1.8kg/cm (4.8V); 2.2kg/cm (6.6V)
Operating speed: 0.10sec/60degree (4.8V); 0.08sec/60degree (6.0V)
Operating voltage: 4.8V~ 6.6V
Temperature range: 0℃ - 55℃
Dead band width: 1us
Power Supply: Through External Adapter
Servo wire length: 25 cm

Includes servo arms and screws pictured.

Pinout
Image

Dimensions
Image

A 32.5mm
B 22.8mm
C 28.4mm
D 12.4mm
E 32.1mm
F 18.5mm


Example Connection Diagram
Image

Example Arduino Sketch
Code:
/* FILE:    HC_MG90S_Servo_Example
   DATE:    25/08/16
   VERSION: 0.1
   
REVISIONS:

25/08/16 Created version 0.1

This is an example of how to use the Hobby Components MG90S Metal Gear Servo (HCROBO0057).
This example sketch program will read the position of a potentiometer and then set the
position of the servo to match it.

NOTE: When controlling a servo never try to drive it beyond its endstop position.
This will cause the servo motor to stall and draw a large amount of current. If when
using this example you find that the servo is hitting one of its endstops then either
increase the Servo_Min or decrease the Servo_Max values.

CONNECTIONS:

POTENTIOMETER    ARDUINO
1                GND
2                A0
3                5V

SERVO            ARDUINO
Brown            GND
Red              5V
Yellow           D9


You may copy, alter and reuse this code in any way you like, but please leave
reference to HobbyComponents.com in your comments if you redistribute this code.
This software may not be used for the purpose of promoting or selling products
that directly compete with Hobby Components Ltd's own range of products.

THIS SOFTWARE IS PROVIDED "AS IS". HOBBY COMPONENTS MAKES NO WARRANTIES, WHETHER
EXPRESS, IMPLIED OR STATUTORY, INCLUDING, BUT NOT LIMITED TO, IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE, ACCURACY OR LACK OF NEGLIGENCE.
HOBBY COMPONENTS SHALL NOT, IN ANY CIRCUMSTANCES, BE LIABLE FOR ANY DAMAGES,
INCLUDING, BUT NOT LIMITED TO, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES FOR ANY
REASON WHATSOEVER. */

/* Includes the standard Arduino servo library */
#include <Servo.h>

/* Defines the analogue pin used to read the potentiometer position */
#define Potentiometer_DIO A0

/* Defines the digital pin used to control the servo (must be a PWM pin) */
#define Servo_Min 12

/* Defines the minimum and maximum positions of the servo. Adjust these values if the servo is hitting its end stop */
#define Servo_Max 170
#define Servo_DIO 9

/* Creates an instance of the servo function */
Servo Servo_1;


void setup()
{
  /* Enables outputs to the serial port */
  Serial.begin(9600);
  /* Tells the servo library that the servo will be connected to D9 */
  Servo_1.attach(Servo_DIO);
}

/* Main program */
void loop()
{
  /* Holds the current potentiometer position */
  int Potentiometer_Position;
  /* Holds the current Servo position */
  byte Servo_Position;
 
  /* Reads the current potentiometer position from the analogue pin */
  Potentiometer_Position = analogRead(Potentiometer_DIO);

  /* The servo function requires a value beteen 0 and 255, but the
     analogue pin reads values between 0 and 1024 so we must remap this */
  Servo_Position = map(Potentiometer_Position, 0, 1023, Servo_Min, Servo_Max);
 
  /* Sets the new position of the servo according to the potentiometer position */
  Servo_1.write(Servo_Position); 
  /* And outputs it to the serial port */
  Serial.println(Servo_Position);
}



Disclaimer: Libraries, example code, and diagrams are provided as an additional free service by Hobby Components and are not sold as part of this product. We do no provide any guarantees or warranties as to their accuracy or fitness for purpose.

Descriptions and diagrams on this page are copyright Hobby Components Ltd and may not be reproduced without permission.


Thu Aug 25, 2016 12:48 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 1 post ] 

Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Thank you to phpBB.com & phpBB.ro.
Design created by Florea Cosmin Ionut.
© 2011 All contents of this site are © Hobby Components LTD