华夏电子工作室:2023年6月8日下午3点(15:00)电机控制MATLAB代码生成系列课程直播第一季。邀请各位工程师准时来直播间讨论和观看。届时代码全开源。
下面我们来说一下FOC简单框架:

该图为FOC入门基本框架,我们围绕着这个框图开始从0开始写FOC算法。
首先我们来讲一下CLARK变换:

我们把CLARK变换总结如下公式:

变换图可见变换要点和变换中间电流变换:

到这里,我们把CLAEK PARK,公式已经写清楚了,SVPWM怎么写呢:
我们根据七段式SVPWM基本原理,先说落在扇区的充要条件

然后我们在写七段式SVPWM如下:



有了七段式SVPWM的公式,根据如下图形:

我们知道落在每个扇区的电压矢量和电压大小。那么我们就能搭建一个FOC框架了。到这里我们MATLAB如下编写模型:

细节如下:

七段式SVPWM编写:

PARK变换,严格按照上述公式编写:
。如上FOC框架基本完成,那么往下我们讲无感观测器

无感观测器是基于电流积分误差估算的PLL位置锁相观测器:该观测器优点:重载启动,耐高低温,表贴凸极一样好用。我们来看看观测器公式:

通过引入Kd,Kq来消除位置观测误差,电流误差等,让我们更好的得到电机位置。
还能得到电机实时转矩:

通过dq轴电流误差估算电机转矩。所以是一篇不错的文章和应用。希望大家下载认真看看,
下面给大家付上MATLAB仿真模型及解析:
MATLAB Sumlink仿真: *附件:现代永磁同步电机控制原理及MATLAB仿真.zip
另外本工程师推出MATLAB大家控制仿真及代码生成系列课程,6月8日下午上点电子发烧友直播。请各位工程师朋友一起讨论代码生成,电机控制。如下是工作室仿真模型摘要:

。谢谢观看。*附件:PLL Position and Speed Observer With Integrated Current Observer for Sensorless PMSM Drives.pdf*附件:电机控宣传.pptx
|