Servo not responding to position or speed

No matter what code I put, my servo moves always clockwise and at the same speed. Everything is connected properly, it seems that it’s a problem with the code. I tried all the codes in the world still doesn’t respond to it. Is it my servo? What can I do?


Are you saying the servo never starts at the same position whenever you power it up?

it always rotates no matter what input I put. For example if i put 90 it should stop and less than that it should go counter clockwise. It doesnt seem to have a start, it rotates as soon as i plug it in

Keeps on moving continuously (over 90deg)?

yes continous rotation without stoping

Post a diagram drawn by hand showing the connections or a picture that shows entirely all the wires

So you have modified "360" servo.
Either your wiring is incorrect or servo is modified as "normal dc motor".

Post a link to your servo, or it's brand name and exact part number.

its not modified its a 360

its a EMAX ES08MAII ANALOG SERVO

I took 10 posts to write that "small detail"...

The Arduino 5V pin cannot be used to power servos. The Arduino can malfunction, or even be damaged if you try. Use a separate power supply, as shown below.

You may have a modified, continuous rotation servo -- there is no evidence on ES08MAII product pages that the servo is a "360", whatever that might mean to you.