Hi everyone! I get some days ago my FS5109R servo from post and now i'm trying to get it work with arduino. I tried to upload basic servo example code to arduino, but servo does nothing. What I have to do to get my servo work?
I tried to upload basic servo example code to arduino
Which one?
What I have to do to get my servo work?
Pay it more? Buy it flowers? Whisper sweet nothings in it's ear? Wire it correctly? Power it correctly? There seems to be dearth of information in your post.
// Controlling a servo position using a potentiometer (variable resistor)
// by Michal Rinott <http://people.interaction-ivrea.it/m.rinott>
#include <Servo.h>
Servo myservo; // create servo object to control a servo
void setup()
{
myservo.attach(6); // attaches the servo on pin 9 to the servo object
}
void loop()
{
myservo.write(180);
}
And wiring is here:
Servo:
Yellow -- Arduino pin 6
Red -- pwr supply 6v +
Black -- pwr supply gnd
Arduino:
pin6 -- Servo
gnd -- pwr supply gnd
usb -- pc
Have you tried the example servo code that comes with the Arduino IDE?
Your code just seems to command the servo to move to 180deg. If it is already at 180deg it won't do anything. How do you know your code is not working?
I tried both of Arduino servo examples and I tried to change that value from 180 to 60 and 100 etc. but nothing good happens. Servo only makes some sound and moves maybe three degrees and then stop again.
Yes that is only servo what I have. Arduino is only connected through USB to pc and gnd is connected to servo gnd. Power supply gives 400 mA to servo. Is it too small current?