Hi, i have modified my SG5010 servo by cutting of the stopping pin inside of it and making that the potenciometer couldn't connect to the gears inside of it. But now I dont know if I made a mistake in modifying it or I cant write a suitable program for arduino... Can someone suggest a proper program? The way I do it now I make the servo rotate to 180 degrees and if I get it correctly it doesnt know know where the 180 degrees is so it shouldn't stop sppinning but that dont works the only thing that works if I set a servo to rotate to 0 degrees it moves to that fast and then slowly moves in that direction but that is very slow....
Where have you left the pot? It needs to be in the middle of it's travel.
Below is some servo test code using the serial monitor. You need to send the servo a 1500us command (the defalt in the below code), then carefully adjust the servo pot such that it stops rotating. Bottom is how I make my continious rotation servos.
// zoomkat 3-28-14 serial servo incremental test code
// using serial monitor type a character (s to increase or a
// to decrease) and enter to change servo position
// (two hands required, one for letter entry and one for enter key)
// use strings like 90x or 1500x for new servo position
// for IDE 1.0.5 and later
// Powering a servo from the arduino usually *DOES NOT WORK*.
#include<Servo.h>
String readString;
Servo myservo;
int pos=1500; //~neutral value for continous rotation servo
//int pos=90;
void setup()
{
myservo.attach(7, 400, 2600); //servo control pin, and range if desired
Serial.begin(9600);
Serial.println("serial servo incremental test code");
Serial.println("type a character (s to increase or a to decrease)");
Serial.println("and enter to change servo position");
Serial.println("use strings like 90x or 1500x for new servo position");
Serial.println();
}
void loop()
{
while (Serial.available()) {
char c = Serial.read(); //gets one byte from serial buffer
readString += c; //makes the string readString
delay(2); //slow looping to allow buffer to fill with next character
}
if (readString.length() >0) {
if(readString.indexOf('x') >0) {
pos = readString.toInt();
}
if(readString =="a"){
(pos=pos-1); //use larger numbers for larger increments
if(pos<0) (pos=0); //prevent negative number
}
if (readString =="s"){
(pos=pos+1);
}
if(pos >= 400) //determine servo write method
{
Serial.println(pos);
myservo.writeMicroseconds(pos);
}
else
{
Serial.println(pos);
myservo.write(pos);
}
}
readString=""; //empty for next input
}

Ok i think i fixed main problem but now there's one more question left...Dropbox - Error
I added a video of servo now. Is it ok that it turns for about 180 degrees (i dont know exactly) and then slow down a little bit and keeps rotating again?
I added a video of servo now. Is it ok that it turns for about 180 degrees (i dont know exactly) and then slow down a little bit and keeps rotating again?
That is not how my modified servos behave. How are you powering your servo? Couldn't make much out of that video. Adjusting the pot is very touchy. Below is an adjustment tool I made for a continuous rotation servo to make adjustment easier.

Rather than fiddle with a potentiometer in the servo it is probably easier to change the value in the code a little either side of 1500usecs.
When I converted a couple of servos I removed the pot altogether and replaced it with a pair of fixed resistors.
...R
I got the servo working. It rotates good now. Thanks for help, my servo was stopping because there was some impurity in one gear...