FS5109R with arduino

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?

http://www.ebay.com/itm/310720308532?ssPageName=STRK:MEWNX:IT&_trksid=p3984.m1439.l2649

Thanks for help!

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.

Here is one of my codes, which I tried to use:

// 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?

...R

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.

It sounds like a power problem. What is your source of power for the servos?

Can you draw a diagram of how everything is connected and post a photo of the drawing.

...R

Yes I can. But what means that the servo is analog servo? Is it compatible with arduino at all?

eliasojala1234:
Yes I can. But what means that the servo is analog servo? Is it compatible with arduino at all?

Yes it is. They all work with the same signals. Digital servos have internal digital electronics.

...R

Here is my wiring diagram.

You don't show how the Arduino is powered.

Also, how many amps are available from the servo power supply?
What size is that servo?

Is that the only servo you have, or could you try another one in case the servo is faulty.

...R

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?

Is it too small current?

Yes, it is.