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 #11 – MANY LEDs (multiple timer channels)

2.3K views on YouTube

In this video we will add more timer channels, so run PWM on 4 different LEDs simultaneously. Apologies that this video got a bit short and perhaps a bit boring.

In order to show this in action, we wired up 4 LEDs to our STM32MCU405 board, like this:

https://stm32world.com/wiki/4_LEDs_Hooked_up_to_GPIO

Github repository: https://github.com/lbthomsen/stm32fun
Development board: https://stm32world.com/wiki/MCUSTM32F405
STM32World Wiki: https://stm32world.com/wiki

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

00:00 Intro and recap
01:07 Wiring up more LEDs
02:00 Running the unmodified code
02:45 Enabling more timer channels
04:00 Modifying the code
05:00 Running four channels
07:35 Committing and pushing to Github