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

[Question] PWM switching frequency is HALF of what is set #391

Closed
ironman223 opened this issue Dec 28, 2021 · 2 comments
Closed

[Question] PWM switching frequency is HALF of what is set #391

ironman223 opened this issue Dec 28, 2021 · 2 comments

Comments

@ironman223
Copy link

I was testing my motor on my hardware. while watching PWM pulses on my oscilloscope I found that the frequency of the
pulses are exactly half of the value that was set.

I tried to adjust it by changing the timer ARR in the foc initialization and measurement of resistance, inductance and where new values are fed into ARR of TIM1. also changed the calculation of "dt".

Now the motor doesn't run, the measured resistance and inductance value are also incorrect.

What I have to test or change to workout this correctly?

@ElwinBoots
Copy link
Contributor

Your observation is correct, you get half the frequency you set. I am trying to get this fixed as incorrect things do a lot of harm to the confidence in a product.

Please see:
https://vesc-project.com/node/3278

Can you also comment there?

@kubark42
Copy link
Contributor

@ironman223 this has now been resolved, see #397 (comment).

@vedderb vedderb closed this as completed Mar 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants