Str1ker / Planetary gear drive working

4 
years ago
  by Valeriy Novytskyy  at ^H Hackerspace/ 1 min
to read

Actuating robot torso rotation

My next goal was learning to control the planetary gear drive with a ClearPath servo hooked up. I got it working this week - using the Velocity Command mode with PWM. The control pinout is Enable, Stop, Velocity, and Velocity Feedback.

If you set Enable HIGH, Stop LOW, then PWM Velocity is < 50% duty cycle reverse and >= 50% duty cycle forward. You set the duty cycle constant by connecting that servo to USB and launching a Windows application that configures it. In this case I set 100 Hz as 100% duty cycle, so 50 Hz is half. On Raspberri Pi, I am using pigpio do send PWM with 255 passed for duty cycle to go forward max speed.

Loading comments...