This video covers the basics of PWM, and how to implement it with STM32.
STM32 gives you a bit more control than Arduino, but all these extra parameters might be a bit overwhelming at first. This video describes Duty Cycle, Resolution, Frequency, and other things that will help you get started with PWM.
Part 2 will be released eventually.
0:00 Review
1:14 Essential Functionality for Microcontrollers
2:47 Analog Write (Arduino)
3:38 PWM vs DAC
4:23 PWM Duty Cycle
5:25 Counters (Timers)
6:07 PWM Resolution
7:57 Review + Math Problem
9:56 Blue Pill PWM implementation
20:07 Cat