我目前正在尝试在定制设计的主板上部署
STM32 foc库(目前v3.4,v4.0尚未尝试)。
电机没有启动,我已经将问题跟踪到ICS电流测量中的极性不匹配。在我的设计中,从电机流入逆变器的电流具有正号。图书馆期望它采取相反的方式。
由于现在给出了极性(并且由于布局限制也是必要的)并且我不想添加反转缓冲区 - 有没有办法修改或欺骗库以接受负增益?例如,反转各个通道的ADC读数。或者我可以将''AMPLIFICA
tiON_GAIN''设置为负值吗?
以上来自于谷歌翻译
以下为原文
I am currently trying to deploy the STM32 foc library (v3.4 currently, v4.0 available not not tried yet) on a custom designed board.
The motor does not startup, and I have tracked down the problem to a polarity mismatch in the ICS current measurement. In my design, current flowing out of the motor into the inverter has a positive sign. The library expects it the opposite way.
As that polarity is now given (and was also necessary due to layout constraints) and I do not want to add an inverting buffer - is there a way to modify or fool the library to accept that negative gain? For example, inverting ADC readout for the respective channels. Or can I just set ''AMPLIFICATION_GAIN'' to a negative value?