Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Standard PWM of 32 KHz to high for VNH2SP30 #97

Closed
Theexternaldisk opened this issue Jun 29, 2021 · 2 comments
Closed

Standard PWM of 32 KHz to high for VNH2SP30 #97

Theexternaldisk opened this issue Jun 29, 2021 · 2 comments
Labels
enhancement New feature or request

Comments

@Theexternaldisk
Copy link

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

@askuric
Copy link
Member

askuric commented Jul 20, 2021

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 askuric added the enhancement New feature or request label Jul 20, 2021
askuric added a commit that referenced this issue Dec 22, 2022
…raible frequency either 4kHz or 32kHz #97 328/2560
@askuric
Copy link
Member

askuric commented Dec 22, 2022

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 askuric closed this as completed Dec 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants