cancel
Showing results for 
Search instead for 
Did you mean: 

How to control a servo motor using STM32L475

Posted on April 27, 2018 at 15:48

Dear all,

would you mind to help me how to control a servo motor using STM32L475 (in a circuit and mbed program).

Thank you very much.

warmest regards,

suryadi

#servo-motor #stm32l475-discovery-board
1 REPLY 1
Posted on April 27, 2018 at 16:33

You want to set up one of the TIM attached pins in PWM mode, set the frequency as 50 Hz (20 ms), and have the duty set to 1.5 ms, and then have code to sweep that slowly between 1ms and 2ms

Sure there are probably mbed Servo examples, generically, search a little.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..