This video explains how to communicate with the Radio transmitter by reading the input PWM signal on STM32 MCUs.
STM32 Intro Course:
https://www.steppeschool.com/courses/stm32-programming-course
Website:
https://www.steppeschool.com
Source code:
https://www.patreon.com/user?u=80399744
Callback function:
void HAL_TIM_IC_CaptureCallback(TIM_HandleTypeDef *htim)
Starting the Interrupts:
HAL_TIM_IC_Start_IT(&htim2, TIM_CHANNEL_1);
HAL_TIM_IC_Start_IT(&htim2, TIM_CHANNEL_2);
00:00 Introduction
00:35 General principles
03:05 STM32CubeMx Timer configuration for reading PWM Input Signal
05:02 Callback function to get the Stick position of the Radio controller
10:53 Testing the code
13:12 Demo
15:04 Explaining the Timer parameters