Medium sized servo is not responding to Arduino

Hello,

I am trying to control a ECP 100 servo with my Arduino. The servo will spin continuously when connected to the Arduino. I would like it to move to certain positions like a typical SG90 servo does.

The servo is linked below. My code is code-tagged below. A photo of my schematic is below.

This is my first post so please pardon any formatting mistakes. Thank you community!


Servo myServo;
int servoPin = 9;


void setup() {
}

void loop() {

  myServo.attach(servoPin);

  myServo.write(180);
  delay(1000);
  myServo.write(90);
  delay(1000);
}```

![IMG_1932|666x500](upload://2Xs4FKAxDcBFKVpxMlw3KgSl6ys.jpeg)

[Servo Motor](https://www.amainhobbies.com/ecopower-100-light-duty-surface-air-servo-ecp-100/p1382885)

Neither your link nor photo worked.

On reading "it spins continuously", my initial suspicion is that you've been sold a continuous rotation servo, and that's what it does. You can change the speed, but you can't move it to a particular position and hold it there. You need a standard servo for that.

Hi,

I saw that and after reading the forums I still do not know how to upload a photo.

I expected the servo to change speeds every second from my code. I tried writing a value of 0 to the servo as well and it does not respond.

Assuming I have a continuous rotation servo, which I think I do, it's still not responding correctly, right?

Are you using a separate power supply to power the servo?
(Arduino is not a power supply)!!
And did you connect the GND of this power supply to the GND of the Arduino?

To be sure, is it rotating continuously in same direction?

Hi,

Yes I am using an external power supply and the arduino, power supply, and servo all share a common ground.

Hi, yes it only spins one direction.

Just return it for refund or use it as normal gearmotor.
You can control the speed and direction, but can't control the angular position.

Okay. Thank you. If I find one on Amazon that lists a 180° range of motion then it should respond to my attached code correctly?

Yes
Anyway, that should be the standard movement even if not mentioned.

Okay. Thank you all very much!