Rotation mor than 180 with Servo 270

Hi everybody
New with Arduino and this forum.
I bought a 270 servo (I'm not quite sure it is a 270 or not).
I try to get rotation more than 180 with this 270 servo, but I couldn't.
While I searched I found,with "write" I can't get rotation more than 180 and I have to use "writeMicroseconds"
Here it is my try:

#include <Servo.h>
Servo servo;  
int angle = 0; 

void setup()
{
  servo.attach(3);  
}
void test_angle(void){
  
  for (angle = 500; angle <= 2500; angle += 1) { 
    servo.writeMicroseconds(angle);             
    delay(10);                       
  }
 
}
void loop()
{
test_angle();
} 

What's wrong with the code, Or the Servo is not a 270Servo
Thanks in advance.

We can not know which of the hundreds of servos that you have. Does it have a part number? Or can you link to where you got it?

With that code, if it were a true 270 degree servo you would surely get more than 180 degrees rotation angle.

Be careful with running a servo against its end stops. I have killed servos by stalling them on the end stops.

1 Like

Thanks for your reply.
About this part of your reply

you mean If I run a 270_servo code on a 180_servo It will kill the 180_servo?
How would this happen?
You mean, for example a servo with plastic gear , by this code may crash the gear?

It may kill the servo if you stall the motor for too long. Stalling the motor means holding the motor so that it cannot rotate like running it against an end stop. A stalled motor pulls a lot more current than a running motor. If a motor is not built to withstand that high current it can get hot enough to be damaged. Most motors are not built to be stalled.

Stripping gears is also a possibility. It is wise to avoid the end stops.

1 Like

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.