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

"STM32-DRV: no workable combination found on these pins" #9

Open
hamyyy opened this issue Mar 5, 2024 · 0 comments
Open

"STM32-DRV: no workable combination found on these pins" #9

hamyyy opened this issue Mar 5, 2024 · 0 comments

Comments

@hamyyy
Copy link

hamyyy commented Mar 5, 2024

Hi,
I seem to be getting an odd error when using this library. I'm using a b-g431b-esc1 Discovery board which is designed for BLDC motors. I've used simpleFOC on it and it works with no issues.

as part of my project, I want to be able to control DC (brushed) motors using the same board as it provides a few conveniences such as CAN and familiar form-factor, etc. In theory it should be possible since the the phases are controlled by a high and low mosfet each. So I'm only using two phases to create an H bridge.

For reference I'm using Phase U and V, which are pins A_PHASE_UH, A_PHASE_UL, A_PHASE_VH, A_PHASE_VL passed through to DCDriver4PWM.

Upon calling driver.init() it tries to find the best timers to use for pwm... and fails. which is odd to me since it should be a very similar process to the 6PWM class used in FOC. that's what it seems like to me anyway, perhaps my understanding is wrong. would anyone be able to shed some light on this matter? perhaps software PWM is an option (I'm not looking for peak performance for now) but it doesn't seem to be implemented.

Thank you.

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

1 participant