Skip to content

PRO TIP Block youtube.com at the DNS level — Pi-hole, NextDNS or your hosts file — but allow youtube-nocookie.com and i.ytimg.com. These tutorials keep playing; the rabbit hole does not.

Learning without distractions

LED Pulse (PWM and Timer) – STM32 Tutorial #10

3.5K views on YouTube

In this video we use a timer channel to generate PWM which in turn pulses a LED. I left the video of the scope on for the last bit, which is a bit annoying. Sorry about that.

STM32World Site: https://stm32world.com/wiki

Project Files: https://github.com/STM32World/stm32fun

#stm32 #stm32cubeide #stm32cubemx #timer #pwm #led #stm32world

00:00 Intro and recap of last video
00:38 The new project (pwm1)
01:40 Configuring a timer – calculating the frequency
03:20 The code – starting the timer
03:53 Running the code
05:50 Changing duty cycle in code
07:20 Making the duty cycle dynamic
12:20 Mission accomplished – Outro