-1
$\begingroup$

I bought the following servo: D DOLITY High Speed 360 Degree Continuous Rotation Servo for Robotic(15kg/cm) Metal Gears Servo

I'm trying to get it to spin in one direction continuously, but it looks like it can only go 180 degrees and then stops.

Is there something wrong with my code that is making it stop at 180 degrees or is the product falsely advertised as a 360° continuous rotation servo?

This is the Arduino code I'm using:

Servo myservo;  //Servo name is myservo

void setup() {
  Serial.begin(9600);
  myservo.attach(9);  // attaches the servo signal pin on pin D6
}

void loop() {
  Serial.println("0");// You can display on the serial the signal value
  myservo.write(0); //Turn clockwise at high speed
}
$\endgroup$
  • 2
    $\begingroup$ run code for normal servo and see what happens ... set to 30 degrees, wait a second, set to 90 degrees, wait a second ... repeat .... you should have done that before posting your question ... it is a part of debugging $\endgroup$ – jsotola Sep 1 '19 at 4:47
  • $\begingroup$ I did do that. That works fine. The issue I'm having is it won't continuously spin in a direction. Eg. It won't go beyond 180 degrees. $\endgroup$ – Yousuf Sep 1 '19 at 21:24
  • $\begingroup$ Because i'm new at this, i want to make sure that i'm not doing something wrong in my code. It would help if someone verified. On Amazon, its advertised as a 360 degrees continuous servo motor. So is it advertised or am i doing something wrong? $\endgroup$ – Yousuf Sep 1 '19 at 21:55
0
$\begingroup$

Since you already determined that the servo acts as a positional servo, and not as a continuous rotation servo, then it is not a continuous rotation servo.

| improve this answer | |
$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.