Nevermind, my bad, I didn't realize the servo only had 120 degrees of motion!!I purchased 5 Batan B2122 feedback servos. I am starting out with them, just calibrating and I am finding that they (I have tried 2 so far) are starting at 25-30 degrees then continuing to 180 degrees. They are not starting at 0 degrees no matter what I have tried. I did the same very simple sketch with a non-feedback servo and it goes from 0 degrees to 180 degrees no problem. I cannot attach the video I made, below is the simple code I am using:
#include <Servo.h>
Servo servo1;
int servoPin = 9;
void setup(){
servo1.attach(servoPin);
}
void loop(){
servo1.write(0);
delay(1000);
servo1.write(90);
delay(1000);
servo1.write(180);
delay(1000);
}
SOLVED-Feedback Servo not starting at zero
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- EBCrp
- Posts: 16
- Joined: Fri Nov 11, 2022 6:19 pm
SOLVED-Feedback Servo not starting at zero
Last edited by EBCrp on Mon Feb 06, 2023 3:49 pm, edited 1 time in total.
- adafruit_support_bill
- Posts: 88093
- Joined: Sat Feb 07, 2009 10:11 am
Re: Feedback Servo not starting at zero
Try altering the optional min and max microsecond values in your call to attach().
https://www.arduino.cc/reference/en/lib ... vo/attach/
https://www.arduino.cc/reference/en/lib ... vo/attach/
Please be positive and constructive with your questions and comments.