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

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

Open hamyyy opened this issue 11 months ago • 0 comments

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.

hamyyy avatar Mar 05 '24 06:03 hamyyy