Hi all,
i'm working on a "little" project with an Arduino Mini Pro. I've put a new 9v Battery as external source and a common ground, but nothing to do, the servo sometimes goes right, but almost of the time goes where it wants.
The model is a SKY3025 (Amazon.com), someone has never used it?
Thanks!
Hi
this is my schema
https://drive.google.com/file/d/0B_rJk7aq5E5XRkVMZDB6LWZZX2s/edit?usp=sharing
while this is the code
#include <Servo.h>
int servoPin = 9;
Servo servo;
int angle = 0; // servo position in degrees
void setup()
{
servo.attach(servoPin);
}
void loop()
{
// scan from 0 to 180 degrees
for(angle = 0; angle < 180; angle++)
{
servo.write(angle);
delay(15);
}
// now scan back from 180 to 0 degrees
for(angle = 180; angle > 0; angle--)
{
servo.write(angle);
delay(15);
}
}