uArm-Developer / UArmForArduino

Arduino uArm Metal Library (uArm Metal only)
http://uarm-developer.github.io/UArmForArduino
82 stars 56 forks source link

Wrist Servo Timing #17

Open ProbablePrime opened 8 years ago

ProbablePrime commented 8 years ago

Looks like there's an incorrect pulse width timing for the wrist servo in the library.

My sketches cause the servo to make whiny noises. All other servos are fine.

The wrist servo is a different servo. Thus these settings are probably different for it?

#define MIN_PULSE_WIDTH       500     // the shortest pulse sent to a servo  
#define MAX_PULSE_WIDTH      2500     // the longest pulse sent to a servo 
#define DEFAULT_PULSE_WIDTH  1500     // default pulse width when servo is attached
#define REFRESH_INTERVAL    20000     // minumim time to refresh servos in microseconds 

Do you have the model numbers for the servos. Particularly the smaller one. I can get the details I need from there.

TonyLeheng commented 8 years ago

The pulse width should be 600~2400 for the 9G servo. Make sure the big servos are 500~2500. Thanks