Let's Make Robots!

my servo not centered

i have buyed unbranded servo.. my servo is not in center.. if i set it to 150, it turns to one side...that is to 180degree. so i can't rotate it on both side.. can anyone help me to sotout this problem...!

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

Is there any chance the servo was not centered when you first installed the servo horn? Try this:

Remove the servo horn, center the servo at 150 then reinstal the servo horn perfectly centered. Then retry your 75 and 225.

no no i try all, i done evry posible thing...but not solved the problem....

Well, if you don't have any documentation on the servo, you'll have to use trial and error to determine the value range that will give you the rotation range you're looking for. If you're using a library like Arduino, the 0 would be full left, 90 would be center and 180 would be full right. Apparently PicAxe uses .75 to 2.25 milliseconds or 75 to 225 in terms of 10 microsecond pulse width, so if that range is not working you may have some other timer issues. Make sure you're not using any TIMER, PWMOUT, or HPWM functions elsewhere in your code.

nop! im not using any TIMER or any other funtion... it is simple picaxe 28x1 board....

Those numbers are not degrees, they are simply a range of numbers used within the code. Did the servo go from one side to the other when using 75 and 225?

no it do not go one side to other, it only moves to one side..from 150 center...! is the 150 range is middle of servo? 

when i put it to 150, it goes to one side. near were servo locks the rotation.. and when i apply the 75-225 range it only rotate within the servo rotation lock area.. which deos not show much rotation...!

What library are you trying to use?

You really haven't given enough information to do more than make blind guesses.

im using picaxe 28x1... i dont knw much about servo, but i think my servo is not in center... when i set it to center that is 150degree.. it moves totally to one side, near to 180 degree..is this is center position in picaxe board...?

   because i want my servo to move both side so i can install my sensor on it.. which can rotate both side to detect obstacle..!

i have programed my servo(using tutorial ) to rotate 75-225 degree but it only rotate very little from center that is 150.. 

if i change to 15- 35 degree it rotate to other end...! 

What tutorial did you use? You copied the code exactly as it was written, correct?

no sir! i used different variables but its not working..!  i not copied exactly what they given.. i experimented with the ranges..!

but nothing happening it goes to 150..! and 150 is near to servo rotation lock ...