adafruit / Adafruit_CircuitPython_ServoKit

CircuitPython helper library for the PWM/Servo FeatherWing, Shield and Pi HAT kits.
MIT License
69 stars 29 forks source link

continuous never stops #27

Closed rchadgray closed 3 years ago

rchadgray commented 3 years ago

Hello,

so far my servo that is labeled continuous never stops.

This makes it turn CCW:
kit.continuous_servo[1].throttle = 1

This turns it CW kit.continuous_servo[1].throttle = -1

This slows the CW spinning kit.continuous_servo[1].throttle = 0

the python exits and the servo keeps running.

ladyada commented 3 years ago

you have to 'center' the servo - contact the servo seller for how to do that! :)

rchadgray commented 3 years ago

Ah!!! never knew that. Makes sense.

Thanks!

On Thu, Mar 25, 2021 at 3:57 PM ladyada @.***> wrote:

you have to 'center' the servo - contact the servo seller for how to do that! :)

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/adafruit/Adafruit_CircuitPython_ServoKit/issues/27#issuecomment-807379048, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAOQZWWILWNUDCFLGFVR4VLTFOITLANCNFSM4Z2AOYJA .

rchadgray commented 3 years ago

Found it for my servo. https://www.pololu.com/product/2820

The FS90R continuous rotation servo converts standard RC servo position pulses into continuous rotation speed. The default rest point is 1.5 ms, but this can be adjusted by using a small screwdriver to turn the middle-point adjustment potentiometer. Pulse widths above the rest point result in counterclockwise rotation, with speed increasing as the pulse width increases; pulse widths below the rest point result in clockwise rotation, with speed increasing as the pulse width decreases.

Now i think the adafruit tutorial talks about converting ms to frequency... so i will go back and read that.

Thanks again! Chad

zainmehdi commented 3 years ago

how about the Parallex Feedback 360 Degree Servos (https://www.adafruit.com/product/3614) . It says it doesnt need any centering but when I push the throttle to 0 it never stops

Thanks