2024-11-08 10:51 AM - edited 2024-11-08 10:54 AM
[VERSION]: 6.3.1
[TOOL]: Board Designer, Motor Pilot, MCSDK
[DETAILS]: Created custom board based on IHM16M dev kit, using STM32G431RB + DRV8323. Motor Pilot cannot spin motor, but encoder signals look accurate, Vbus signal is accurate, and current sense signals look correct (albeit very low).
[EXPECTED BEHAVIOR]: All pins of custom board match IHM16M dev kit. I am trying to spin the motor with Motor Pilot but the motor does not spin. I can see pwm on the motor phases but no motor movement
I double checked my pinout vs IHM16M dev kit:
My custom board:
IHM16M pinout with default project:
The motor driver circuit I'm using with the DRV8323 I've been using for over a year now so that circuit must work minimally as expected. As I mention above the encoder seems to be working well. And PWM seems to be happening but the motor is not spinning at all.
I've tried changing gains to be much more aggressive but that doesn't seem to make a difference.
I've attached a zip file with:
- log session titled "motor_pilot-test_4_sensored"
- Board file named "Boards_1182024,10_38_47"
- MCWB file titled "stobake06-4"
Any help would be appreciated. Let me know if you need more data or project files.
2024-11-08 11:44 AM
Here are some plots from trying to spin the motor. The rotor stays stationary the whole time.
Here are some logic analyzer shots of the 6 mosfet PWM pins:
And here is the corresponding scope shot at 16kHz:
I can rotate the motor to get other patterns but it seems like the phases are typically always on together or always off together so no torque is produced.