Arduino-FOC icon indicating copy to clipboard operation
Arduino-FOC copied to clipboard

Standard PWM of 32 KHz to high for VNH2SP30

Open Theexternaldisk opened this issue 4 years ago • 1 comments

standard pwm frequency of 32khz is to high for the VNH2SP30 (max 20khz). Fixed this by changing the prescaler in the library to set the pwm frequency to 4khz

Theexternaldisk avatar Jun 29 '21 12:06 Theexternaldisk

We will attack this at the same time as #71 The reason because it is fixed is die to the fact that you can only change the frequency with the prescaler which makes the granularity pretty high. So you can set either 32k, 16k, 8k,... And 16kHz is already audible, so we've decided to fix it to 32kHz for start.
But it is true that we can let the user at least to decide if the prescaler if he wants. We will try to incorporate this in the next release.

askuric avatar Jul 20 '21 15:07 askuric

Included in the dev branch and will be in the next release. You can set either 32 or 4kHz pwm. Unfortunately the atmega chips do not support anything in the middle.

askuric avatar Dec 22 '22 11:12 askuric