2021-11-03 12:00 AM
When motor is running at fixed frequency (30kHz), there is a slight noise. Hence, I want to see the varying PWM in runtime in order to minimize the noise
2021-11-03 01:04 AM
What type of motor is it, brushed DC?
>fixed frequency (30kHz)
i suppose thats the PWM frequency?
>there is a slight noise.
What type: electromagnetic noise... instrumentation noise, actual sound?
If you want to introduce jitter in order to flatten the freq profile peak, you just need to change the ARR of your timer at runtime, i have never done this.
And in order to archieve this the "noise" doesnt need to be random, just needs to be evenly distributed around your main freq.
Noise comes from poor choices at the designing stage of your electronics(PCB), i would start looking there.
2021-11-03 02:14 AM
hi @Javier Muñoz ,
Yes, it is brushed DC motor. According to the motor parameters, motor control workbench suggests best operating conditions at 30kHz. i want to use random PWM rather than fixed PWM frequency in order to spread the frequency spectrum of the generated PWM.
Yeah i tried to update ARR of the timer using a function but its not working. Can you suggest any idea to update ARR in runtime?
2021-11-03 02:16 AM
TIM1->ARR=89;
Maybe have some DMA loading the TIM ARR register constantly? from a lookuptable of values.
2021-11-03 02:18 AM
Ok thank you for your suggestion
2021-11-12 07:59 AM
Hello @Community member ,
Could you describe your setup, Power board, motor and Software ?
If I understand correctly you use a Brushed DC motor, and the motor control workbench ??
The motor control workbench provides FOC algorithm for brush less PMSM motor (three phases Brush less DC Motor can work too).
Regards
Cedric