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.

centre for servos is usually 1500us

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 ...


Either attach it as a file or post it in the responses.

servo 0,150 wait 2( for center)

servo 0,15 wait 2(to turn left)

servo 0,225 wait 2(to turn right)

servo 0,150 wait 2( for center)

by using this code it rotate left side, and stop to right side....

but by using below code it does not rotate to left side...

servo 0,150 wait 2

servo 0,75 wait 2 (turns right)

servo 0,225 wait 2

servo 0,150 wait 2

wht can i do? plzz help me...

is servo defect piece.. or im not using correct code..!




to download and check the servo and servopos commands in the PICAXE manual 2. In the copy I have, those two commands start on page 204. The manual even includes sample code that 'should' work.

OK ... i will try it...THNX!

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?