Description
- Operating voltage: 4.8-6V
- STD direction: Counter clockwise / pulse traveling 1500 to 1900usee
- Stall torque (4.8V): 1.6kgf.cm (21.0 oz.in)
- Operating speed (4.8V): 0.12sec/60°at no load
- Stall torque (6V): 2.0kgf.cm (28.0 oz.in)
- Operating speed (6V): 0.10sec/60°at no load
- Gear material: Metal
Getting started with the ES08MAII Mini Metal Gear 13g Analog Servo 1.6KG 0.12sec
This tutorial will guide you into using analog servo by opening the gate and closing after certain amount of time(for us, it is 1 sec to open and shut the gate).
How servo works:
The circuit board in an analog servo receives a signal form the receiver and then outputs a power signal to the servo motor. It work on 50Hz frequency and for creating the movement the servo arm, the controller apply full voltage to the servo motor.
Hardware required
- Arduino Uno
- Analog servo
- Jumpers
Connecting the Hardware
Respect the pin connections as follow:
servo | Arduino Uno |
Yellow | D3 |
Black | GND |
Red | Vcc |
Uploading the code
#include<Servo.h>
Servo Myservo;
int pos;
void setup(){
Myservo.attach(3);
Serial.begin(9600);}
void loop(){
for(pos=0;pos<=90;pos+=90){
Myservo.write(pos);
Serial.print(“FOWARD: “);
Serial.println(pos);
delay(900);}
delay(1000);
for(pos=90;pos>=0;pos-=90){
Myservo.write(pos);
Serial.print(“REVERSE: “);
Serial.println(pos);
delay(900);}
delay(1000);
}
Results
Open the serial monitor to servo turn between 0 and 90 degrees to open and shut the gate.
Refer to this codes, you can build your own; once you reach at the gate it will be opened for your and after you left it will close the gate automatically.