Shadycrisp
Member
Hi!
I am currently using a teensy 4.1 and I am trying to control two servos. Since the voltage requirement for the servos(Tower Pro GM90S) are 4-6v, I am using a voltage step up to power them. This of course increases the current as well. I am having problems controlling the servos, using the sweep example program with both the Arduino Servo Library and PWMServo library. The Servos preform extra rotations before changing direction. Could this be because of the current, or could it be a software issue?
I am currently using a teensy 4.1 and I am trying to control two servos. Since the voltage requirement for the servos(Tower Pro GM90S) are 4-6v, I am using a voltage step up to power them. This of course increases the current as well. I am having problems controlling the servos, using the sweep example program with both the Arduino Servo Library and PWMServo library. The Servos preform extra rotations before changing direction. Could this be because of the current, or could it be a software issue?
C++:
#include <PWMServo.h>
PWMServo servo1;
int pos = 0;
void setup(){
servo1.attach(14, 500, 2400);
}
void loop() {
for(pos = 0; pos < 180; pos += 1) {
servo1.write(pos);
delay(15);
}
for(pos = 180; pos>=1; pos-=1) {
servo1.write(pos);
delay(15);
}
}