4

Connected servo motor (180°) to Arduino Uno R3.

Currently I am using a servo motor which have rotation angle specified as 180°, but I have a requirement to rotate to certain angles greater that 180°.

So do I need to go for a continuous rotation servo motor (360°), so that I can stop the motor at different angles greater than 180°, was my assumption true, will continuous rotation servo motor satisfy this requirement?

I am referring to Servo - Generic High Torque Continuous Rotation (Standard Size)

Current code, which I am using 180° servo motor.

Servo myservo;
int pos = 0;   
void setup() {
  myservo.attach(9);  
}

void loop() {
   { 
    myservo.write(180);              
    delay(15);                       
  }
}
4
  • Indeed, you need a continuous servo or to hack away the blockade. These servos are limited to angles < 360 degree. Also keep your 8 bit limit in mind - 360 degree / 256 steps is your maximum resolution.
    – moestly
    Mar 30, 2016 at 14:50
  • 2
    continuos rotation servo motors aren't 360 degrees. They are "infinite degrees". They are more like a motor, than a servo. See this video
    – Gerben
    Mar 30, 2016 at 16:07
  • The drawback of a continuous rotation servo is you don't know where it is; you code only tells it how fast to move, not where to move to.
    – BrettAM
    Mar 30, 2016 at 17:32
  • Welcome to Arduino SE. Be sure to take the tour at arduino.stackexchange.com/Tour
    – SDsolar
    Apr 17, 2017 at 4:47

1 Answer 1

5

No. The continuous rotation servo rotates continuously and you can not control where to stop. You can control the rotation direction and the speed at a little.

What you need is either a special 270 degree servo, or you can use some mechanic, e.g. gears to transform the 0..180 rotation to 0..whateverrotation you prefer, depending on the gearbox ratio.

Alternatively, you can use stepper motors, where you can control steps in 1.8 degrees, and at the same time free to move as many turns as you prefer. Note though that steppers have two disadvantages compared to servos:

  • steppers require electrical current to hold their current position - for servo, the gearbox works ok for this
  • steppers don't know their initial position. So you need an optointerrupter or other means to learn the initial position first, then drive the steps to get to any position.
  • steppers require a more serious driving circuit, as well as a good power supply. Not for DIY robot running on batteries.

In industrial solutions, the stepper motor + some gearbox + an absolute rotation encoder is used to compose an industrial servo drive. (Similarly as a DC motor + some gearbox + an inexpensive potentiometer works in a model servo.)

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