2023-01-15 03:52 AM
Hey guys,:eyes:
I'm trying to drive a 3kw brushless motor using HALL sensors with a single shunt custom board, based on the stm32f103rb(LQFP64) with the following configuration:
MCSDK_v5.4.7-FULL
MCU: STM32F101RB, 72MHz, Ext Clock
Motor parameters:
Current sensing parameters:
Driver parameters:
high side of the W phase (same for others):
Unfortunately, the motor is not spinning. I tried to fix speed regulator parameters, increase dead time and play with the current sensing rise time, but that didn't make any differences and the motor drew many current (almost short circuit), sometimes there is some kind of speed feedback errors.
I tried to log the startup procedure like this:
:: Speed control callback :: current state 0: IDLE
:: Speed control callback :: current speed: 0
:: Speed control callback :: Iq: 0, Id: 0
:: Speed control callback :: Bus Voltage: 59
:: Speed control callback :: Motor Power: 0
:: Speed control callback :: current state 0: IDLE
:: Speed control callback :: current speed: 0
:: Speed control callback :: Iq: 0, Id: 0
:: Speed control callback :: Bus Voltage: 59
:: Speed control callback :: Motor Power: 0
:: Speed control callback :: current state 6: RUN
:: Speed control callback :: current speed: 0
:: Speed control callback :: Iq: 1870, Id: 5136
:: Speed control callback :: Bus Voltage: 59
:: Speed control callback :: Motor Power: 0
:: Speed control callback :: current state 6: RUN
:: Speed control callback :: current speed: 12
:: Speed control callback :: Iq: -1187, Id: -468
:: Speed control callback :: Bus Voltage: 59
:: Speed control callback :: Motor Power: 9
:: Speed control callback :: current state 10: FAULT NOW: Under Voltage
:: Speed control callback :: current speed: 0
:: Speed control callback :: Iq: 0, Id: 0
:: Speed control callback :: Bus Voltage: 29
:: Speed control callback :: Motor Power: 0
:: Speed control callback :: current state 10: FAULT NOW: Under Voltage
:: Speed control callback :: current speed: 0
:: Speed control callback :: Iq: 0, Id: 0
:: Speed control callback :: Bus Voltage: 28
:: Speed control callback :: Motor Power: 0
:: Speed control callback :: current state 6: RUN
:: Speed control callback :: current speed: 0
:: Speed control callback :: Iq: 226, Id: -834
:: Speed control callback :: Bus Voltage: 43
:: Speed control callback :: Motor Power: 0
:: Speed control callback :: current state 6: RUN
:: Speed control callback :: current speed: 393204 //error
:: Speed control callback :: Iq: -1445, Id: -1806
:: Speed control callback :: Bus Voltage: 59
:: Speed control callback :: Motor Power: 15
:: Speed control callback :: current state 10: FAULT NOW: Under Voltage
:: Speed control callback :: current speed: 0
:: Speed control callback :: Iq: 0, Id: 0
:: Speed control callback :: Bus Voltage: 28
:: Speed control callback :: Motor Power: 0
I've had success driving this motor with the same build without a transistor-based FET driver (using an IR2101 driver) and a 5mOhm shunt resistor (otherwise pretty much the same).
The attached image below shows the output waveform of all three phases, it seems that the waveforms of phases 2 and 3 have unwanted pulses at the beginning and end of the TIM1 period.
Please help me to solve the problem, as you know there are so many parameters to interact with, so I hope to find exactly what's the problem.
Thank you </3🙋
2023-01-17 06:05 PM
Hi All,
This case has been routed to our Online Live Support system for priority support from our specialist team. Anyone with similar issues in the future can always submit a case directly at http://my.st.com/ols
Regards,
Jake
ST Support