You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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
The text was updated successfully, but these errors were encountered: