2014-09-27 05:10 AM
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?2014-09-29 12:09 AM
Ciao Frank
I don't know if setting negative amplification gain is feasible. For sure you can go in the code and change the get phase current function reverting the polarity. Let say that you find there I = ADC sample - OFFSET you need to change in I = OFFSET - ADC sample Ciao Gigi2014-09-29 12:48 AM
Gigi, thanks for that. This means that I have to obtain the library source code.
2014-09-29 11:46 PM
Yes Frank,
but if you have a concrete businnes opportunity you will not have any problem to get it from the nearest ST contact in you region. Ciao Gigi2014-09-30 12:44 AM
I have just done that yesterday. Thanks again Gigi,
Frank