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

Dynamic switching frequency (FOC) #172

Open
javmarina opened this issue May 17, 2020 · 2 comments
Open

Dynamic switching frequency (FOC) #172

javmarina opened this issue May 17, 2020 · 2 comments

Comments

@javmarina
Copy link

I've seen in the source code that in BLDC mode the switching frequency is dynamically changed according to speed. However, in FOC, when motor configuration changes and those changes include the switching frequency (foc_sw), the timers are reset. What could happen if we directly modified the ARR register in the timer? I want to change the switching frequency based on current speed but I'm not sure how it can be achieved.

Thanks in advance.

@TechAUmNu
Copy link
Contributor

I found that changing the switching speed on FOC can significantly change the detected motor parameters. So the parameters would need to be measured over the full range of switching and accounted for.

@nitrousnrg
Copy link
Contributor

I found that changing the switching speed on FOC can significantly change the detected motor parameters. So the parameters would need to be measured over the full range of switching and accounted for.

This would deserve opening an issue on its own. Parameter detection results vary wildly with different switching frequencies and different powerstage turn on/off times.

About dynamic frequency... I guess its doable. Maybe the current controller PID expects a fixed frequency, idk. I see the benefit on lower switching losses so let us know if you get to try it.

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

3 participants