top of page

Forum Comments

BallTracking
In General Discussions
Servo Jitter
In Clinic
Chris Gomersall
Oct 12, 2019
@Rongzhong Li @eric.chanussot Ok Good news I have found Pulse width range for new servos. Shouldder servos K-Power DMC809 = 1000 - 1500 replaces MG92B Knee Servos Power-HD HD-1810MG = 750 - 2250 replaces MG90D Am I on the right track? what is KUDO what does it refer to? These are the changes I have made to the code in OpenCat.h my changes are underlined //servo constants #define DOF 16 #define PWM_FACTOR 4 #define MG92B_MIN 250*PWM_FACTOR // changed from 170 to 250 to give min of 1000 #define MG92B_MAX 375*PWM_FACTOR // changed from 550 to 375 to give max of 1500 #define MG92B_RANGE 150 #define MG90D_MIN 188*PWM_FACTOR //changed from 158 to 188 to give min of 752 #define MG90D_MAX 562*PWM_FACTOR // changed from 515 to 562 to give max 2248 #define MG90D_RANGE 150 #define KUDO_MIN 115*PWM_FACTOR // I'm not sure what KUDO refers to ? #define KUDO_MAX 621*PWM_FACTOR #define KUDO_RANGE 220 // called this way, it uses the default address 0x40 Adafruit_PWMServoDriver pwm = Adafruit_PWMServoDriver(); // you can also call it with a different address you want //Adafruit_PWMServoDriver pwm = Adafruit_PWMServoDriver(0x41); // Depending on your servo make, the pulse width min and max may vary, you // want these to be as small/large as possible without hitting the hard stop // for max range. You'll have to tweak them as necessary to match the servos you // have! #ifndef KUDO #define SERVOMIN MG92B_MIN // this is the 'minimum' pulse length count (out of 4096) #define SERVOMAX MG92B_MAX // this is the 'maximum' pulse length count (out of 4096) #define SERVO_ANG_RANGE MG92B_RANGE #else #define SERVOMIN KUDO_MIN // this is the 'minimum' pulse length count (out of 4096) #define SERVOMAX KUDO_MAX // this is the 'maximum' pulse length count (out of 4096) #define SERVO_ANG_RANGE KUDO_RANGE #endif Kind Regards Chris G
1
0
Servo Jitter
In Clinic

Chris Gomersall

更多動作
bottom of page