| Posted: 03:24am 21 Sep 2020 |
|
|
|
larny - Sorry about not getting back to you sooner! I didn't turn notifications on for the post (or your response) :-(
Typically these servos need to be "calibrated". You set the PWM duty cycle to 50%, and adjust the trimpot so that the servo doesn't rotate either way. Lower duty cycles make the servo turn in one direction / higher duty cycles make the servo turn in the other direction:
PWM Duty Cycle Servo Speed ============== ================= 0 (0%) Full speed in one direction (call it "Forward") 31 (~12%) Three quarter speed Forward 63 (25%) Half speed Forward 95 (~38%) Quarter speed Forward 127 (50%) Stopped (at least, after calibration) 159 (~62%) Quarter speed in the other direction (call it "Reverse") 191 (75%) Half speed Reverse 223 (~87%) Three quarter speed Reverse 255 (100%) Full speed Reverse Your conclusion regarding driving the wheels was correct! |