cancel
Showing results for 
Search instead for 
Did you mean: 

Motor load calculation on STM32G030K6

Stastny.Petr
Associate III

Hello,

I need to calculate motor load (triac controlled 1-phase universal motor on drilling machine) on ADC input of STM32G030. This is output from Hall sensor TMCS1101A2BQDR and the main frequency is 50 Hz. Triac speed control makes the pulse current on input with offset of half of 3.3V. (picture attached)

Can you recommend me how to calculate the load effectively?

My idea is to use sample frequency of 2 kHz (40 samples per period) and put the results to an integer array with length of 200 samples. Better to have 2 arrays and when the array is filled with samples, switch to other array and find maximum value of the first array.

Do you know if there is better calculation possible with STM32G030?

Thank you

0 REPLIES 0