This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

F28335 eQEP位置检测问题

请问各位: 在F28335控制永磁同步电机里面的eQEP是如何来检测初始位置的呢,我们知道进行svpwm控制永磁同步电机必须要知道初始角,那利用Eqep怎么进行初始角的定位呢?是先模拟一个角度然后让转子转动起来再让eqep检测吗?

  • haha,

    嗯,是的,应该是先让电机转动一个小角度,让它能够检测到index信号,才能够知道电机转子的绝对位置。

    Eric

  • 那这个模拟一定要用RMPCNTL和RAMPGEN这两个宏吗?可不可以加一个直流电压呢?还有

    typedef struct {int32 ElecTheta; // Output: Motor Electrical angle (Q24)
    int32 MechTheta; // Output: Motor Mechanical Angle (Q24)
    Uint16 DirectionQep; // Output: Motor rotation direction (Q0)
    Uint16 QepPeriod; // Output: Capture period of QEP signal in number of EQEP capture timer (QCTMR) period (Q0)
    Uint32 QepCountIndex; // Variable: Encoder counter index (Q0)
    int32 RawTheta; // Variable: Raw angle from EQEP Postiion counter (Q0)
    Uint32 MechScaler; // Parameter: 0.9999/total count (Q30)
    Uint16 LineEncoder; // Parameter: Number of line encoder (Q0)
    Uint16 PolePairs; // Parameter: Number of pole pairs (Q0)
    int32 CalibratedAngle; // Parameter: Raw angular offset between encoder index and phase a (Q0)
    Uint16 IndexSyncFlag; // Output: Index sync status (Q0)
    } QEP;

    CalibratedAngle是什么意思呢?