Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The frequency of Servo SG90 is 50Hz! #43

Open
lqh929289158 opened this issue Jul 13, 2019 · 0 comments
Open

The frequency of Servo SG90 is 50Hz! #43

lqh929289158 opened this issue Jul 13, 2019 · 0 comments

Comments

@lqh929289158
Copy link

The SG90 Data Sheet shows that the work frequency is 50 Hz. So the frequency of PWM should be set to 50Hz.
import PCA9685 as servo
pwm = servo.PWM()
pwm.frequency = 50
pwm.write(0, 0, 509) # Left 90 degree
pwm.write(0, 0, 300) # 0 degree(middle)
pwm.write(0, 0, 109) # Right 90 degree

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant