STM32F405RGT6 servo motor help #14138
Unanswered
GoesWithoutSaying
asked this question in
STM32 / Pyboard
Replies: 2 comments 1 reply
-
|
new issue. `usb_vcp = USB_VCP() while True : LED(3)will keep light untill next data received, this happens often, but sometimes it is normal, LED(3) will toggle |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
First of all, A SG90 is not a servo motor, it's a servo. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm new to pyboard, during the fist attempt to control sg90 servo motor, i found that the pulse_width is extremely large at pin X1 and it's different if i swith the timer, it's about 35000-216000 for the motor to move 180 degree. after some reserch, i understand that is Timer's prescaler and period issue.
so the question is: what to do to make pulse width normally like the SG90's doc tells(freq=50hz, pulse_width=0.5ms-2.5ms for 0-180),
control sg90 is only a small experiment, further i will try to control some big servo motors(to build a motion controller), what should i learn, any guiance?
here is the code
Beta Was this translation helpful? Give feedback.
All reactions