问候!
我在使用来自Nanotec的DB87L01-S BLDC电机时遇到STEVAL-SPIN3201板的问题。
我将
电路板连接到三相,内部霍尔传感器,外部DC和PC,并使用SW4
STM32 IDE使用FOC SDK 4.3闪烁SPIN3270。
使用ST Motor Workbench插入电机参数(极对,电阻,电感等)。构建和刷新演示项目没有问题;但是,电机在运行代码后无意运行。通过单步执行代码,我发现在按下电路板上的“START_STOP”按钮后几乎立即设置了“MC_FOC_DURA
tiON”错误代码。头文件用简短的解释'FOC rate too high'列出了这个错误,所以我选择了最低的PWM速率和执行速率(4500Hz),仍然有相同的结果。
进一步调试代码以找到这个错误的起源导致没有令人满意的结论(显然在PWM定时器寄存器'TIM1-> SR'中有一点没有正确重置?),所以我刚想出来的想法这可能是什么问题。有没有人有什么建议可以查看或者哪些参数可能还需要进一步调整?
在这里您还可以看到二手电机的简短数据表:
https://community.st.com/external-link.jspa?url=https%3A%2F%2Fde.nanotec.com%2Ffileadmin%2Ffiles%2FDatenblaetter%2FBLDC%2FDB87%2FDB87L01-S_neu.pdf
提前谢谢了!
-M
#foc-sdk-4.3#steval-spin3201 #mc_foc_duration
以上来自于谷歌翻译
以下为原文
Greetings!
I am having trouble with the STEVAL-SPIN3201 board in combination with a DB87L01-S BLDC motor from Nanotec.
I connected the board to the three phases, the internal hall sensors, to the external DC and to the PC and flashed the SPIN3270 with the FOC SDK 4.3 using the SW4STM32 IDE.
The parameters of the motor (pole pairs, resistance, inductivity etc.) were inserted using the ST Motor Workbench. Building and flashing the demo project was no problem; however, the motor makes no intention to run after running the code. By stepping through the code I figured out that 'MC_FOC_DURATION' error code is set almost immediately after pushing the 'START_STOP' button on the board. The header file lists this error with the short explanation 'FOC rate too high', so I choose the lowest PWM rate possible in combination with the execution rate (4500Hz), still with the same result.
Debugging the code further to find the origin of this error led to no satisfying conclusion (apparently something about a bit in the PWM timer register 'TIM1->SR' that has not been reseted correctly?), so I am freshly out of ideas what the problem could be here. Does anyone have any suggestions where to look or what parameters may also need further adjustments?
Here you can also see the short datasheet of the used motor:
https://community.st.com/external-link.jspa?url=https%3A%2F%2Fde.nanotec.com%2Ffileadmin%2Ffiles%2FDatenblaetter%2FBLDC%2FDB87%2FDB87L01-S_neu.pdf
Many thanks in advance!
-M
#foc-sdk-4.3 #steval-spin3201 #mc_foc_duration