MATEJ PACHAS12 / MagniV Microcontrollers
Hi
We are trying to use the FOC PMSM code AN5327SW on the Miniboard. The miniboard has all the required hardware to work with this except for 4Mhz XTAL, which we are using internal clock.
We have set up the MCAT and parameters and the appconfig.h is attached below.
As per the PDF we are trying to at least start the motor in Scalar control.
After a lot many days of work we are able to spin the motor in SCALAR mode.
The motor stalls when entering any of the sensorless modes. In case of speed FOC we can here the motor vibrating but it has otherwise stalled
In the scalar mode the motor runs very hot and at limited RPM.
Further We are trying to tune using the AN4912 and the first step to getting Sinusoidal wave but the waves look randam and no amount of changing the V/HZ Ration Req is changing this. Please see attached image from Freemaster.
Also refer to Openloop position and estimated position recorder. they look to be in sync.
Further please see the current oscilloscope from Freemaster. Is this sinusoidal or do we need to tune this? What exact parameter do we need to change?
Urgent help required as we have spent over a week getting this far!
Hi,
I'd like to emphasize how important is to understand the field oriented control and motor construction and behavior. We provide open solution to be adjustable to most of the motors and to enable you to tune it to it's maximum efficiency. However, the price is that more time is needed to get understood the FOC (although it is a standard FOC with cascade structure, known and used for many years).
Please also take sufficient time to learn how to use the FreeMASTER. In your post, you are showing a "random" phase currents waveforms using a "scope" feature, however the "scope" is not capable of capturing such fast waveforms. Use "recorder" feature instead. The FreeMASTER tool has lot's of cool features connected with the recorder, such as triggering, capturing, etc.. You will need it during the tuning.
Unfortunately, my time and also the space here is limited so please let me just note, what I usually do when I tune the sensorless FOC:
Please also take into consideration:
- if the motor parameters are not correct, the algorithm settings may not follow the real scales and timings - please see the MCAT documentation, mainly the https://www.nxp.com/docs/en/application-note/AN4642.pdf .
- the FOC algorithm provided is based on linear model of the PMSM in the D-Q frame. If the motor is non-symmetrical, appropriate actions have to be taken to cover for these non-linearities (indicated by noise, low performance, low efficiency, etc.)
Best regards,
Matej