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

STM32 Tutorial #14 – Sine Wave PWM LED pulse – 4 channels

3K views on YouTube

In this video we continue our dive into PWM by pulsing the four LEDs from the earlier example with individual frequencies.

Please like and subscribe – and I love your comments.

Description of Sine wave: https://stm32world.com/wiki/Sine_Wave
STM32World Wiki: https://stm32world.com/wiki
Project Files: https://github.com/STM32World/stm32fun

#stm32 #tutorial #stm32cubeide #stm32cubemx #hal #pwm #timer #stm32world #arduino

00:00 Intro and recap
01:35 Introducing and explaining sine waves
04:11 Modifying the code
10:39 Adding global variables
13:15 Adding the calculation
19:56 Running the code
21:42 Moving the main loop code into an interrupt handler callback
24:12 Testing the callback