STM32 Tutorial #60 - Timer Input Capture

Published: 15 June 2025
on channel: STM32World
1,536
37

In this video we'll be revisiting timers. In a much earlier video we were using Timer Input Capture to decode rotary encoders. In this video we will be using input capture mode to measure frequency and duty cycle of a pulse width moduleated input.

STM32World Wiki: https://stm32world.com/wiki
STM32World Article on Input Capture: https://stm32world.com/wiki/STM32_Tim...

Earlier video on Encoder Mode input capture:    • STM32 Tutorial #18 - SURPRISING Timer feat...  

#STM32 #GettingStarted #Tutorial #STM32CubeIDE #STM32CubeMX #PWM #Timer #InputCapture #STM32World

00:00 Intro and recap
01:50 The setup
02:25 The new project
03:50 Running the "base" project on the Black Pill
04:15 Generating frequencies using tim4 channel 4 - timer setup
06:45 Creating the code to generate PWM output
09:30 Explaining the frequency/duty cycle changes
10:30 Running the code
11:00 Fixing prime example of why I hate jumper leads and never use breadboards
13:00 Using STM32CubeMX to configure TIM2 Input Capture
15:15 The input capture mode
20:25 Running the code
26:05 Pushing the limits of my toy scope
29:00 Recap and conclusion


On this page of the site you can watch the video online STM32 Tutorial #60 - Timer Input Capture with a duration of hours minute second in good quality, which was uploaded by the user STM32World 15 June 2025, share the link with friends and acquaintances, this video has already been watched 1,536 times on youtube and it was liked by 37 viewers. Enjoy your viewing!