How to extract sensor values from PWM signal?
Hi everyone. I connected the SDS011 Dust Sensor with my Nucleo WL55JC1 via UART and I am receiving my sensor data. According to the Sensor data sheet the values can be also provided as output in PWM form on the certain pin.
In order to achieve this I thought to configure a Timer as Input Capture Mode in CubeMX then with the PWM signal read and transfer the data with DMA.
This way I didnt need to use the CPU to compute the particles value as I did with the UART because its in the PWM.
However I am having a bit troubles to implement this successfully, I think I am missing something? Is my idea to use Input Capture Mode correct or the wrong way?
In the User Manual for the Description of STM32WL HAL and low-layer drivers I found the function HAL_TIM_IC_Start_DMA (Starts the TIM Input Capture measurement in DMA mode) and think this suits well for my usecase?
I appreciate any tips in the right direction, thank you.

