Cypress FM3 Series Panduan Memulai Cepat - Halaman 12

Jelajahi secara online atau unduh pdf Panduan Memulai Cepat untuk Motherboard Cypress FM3 Series. Cypress FM3 Series 17 halaman. 32-bit arm cortex - m3 washing machine evaluation board
Juga untuk Cypress FM3 Series: Manual (14 halaman)

Cypress FM3 Series Panduan Memulai Cepat
Motor Parameter Configure
The motor parameter such as motor resistance, inductance, and hall angle are set at this part.
/** UI_0101
configure motor parameter */
#if
0== MOTOR_ID
int32_t
Motor_PolePairs
float32_t
Motor_f32Ld
float32_t
Motor_f32Lq
float32_t
Motor_f32Res
float32_t
Motor_f32Ke
float32_t
Motor_f32Flux
#define
Motor_f32IsMax
float32_t
Motor_CurrentMax
uint8_t
Motor_HallNumber = THREE_HALL;
float
Wm_TransRate
uint8_t
Motor_HallStatuList[7] = {0,2,6,4,5,1,3};
int32_t
Motor_HallAngleCCW[7] = {0,DEGREE(270-6),DEGREE(30-6),DEGREE(330-6),
int32_t
Motor_HallAngleCW[7] = {0,DEGREE(150),DEGREE(30),DEGREE(90),
Note: The transmission ratio of the motor must be also correctly set, otherwise the motor speed will be incorrect.
Wm_TransRate =1 for the DD and DDM motor.
ADC and coefficient Configure
/** UI_0102 ADC port and coefficient set */
float32_t Motor_f32IuvwSampleResistor
float32_t Motor_i32IuvwAmplifierFactor
int32_t
Motor_i32IuvwOffsetNormal
int32_t
Motor_i32IuvwOffsetRange
int32_t
Motor_i32IuvwOffsetCheckTimes
The Demo Board's current sample resistor is 0.02Ω, current OP's 5 times
Carrier Frequency and Speed Acceleration
The inverter carrier frequency can be set by the reserved variable, it's recommended to set the carrier frequency
corresponding to the motor.
/** UI_0103 configure Deadtime, carrier frequency, direction and speed*/
float32_t
Motor_f32DeadTimeMicroSec
uint16_t
Motor_u16CarrierFreq
float32_t
Motor_f32SpdAccelerationHz
The system carrier frequency of demo board is16 KHz. The current sample frequency is 16 KHz. And the dead-time of the
SVPWM is 2us.
FM3 Family Math and Motor Control Library Quick Start Guide, Doc. No. 002-04766 Rev. *A
// FXD42BL-2460-002
=
2;// the pole pairs of rotor
=
0.65;// the d axis reductance
=
0.85;// the q axis reductance
=
0.94;// the resistance between two phases
=
2.86;// inductive voltage constant between two phases
=
12;// wb
2//3.6
= Motor_f32IsMax;
= 1;
// TransRate of Motor
DEGREE(150-6),DEGREE(210-6),DEGREE(90-6)};
= 0.02;// Iuvw sample resistor (ohm)
= 5.0; // Iuvw calculation factor
= 2048;
= 100;
= 64;
= 2.0f;
= 16000;
=
10;//1.0f; // acceleration speed
// the middle value of 12-bits ADC
// ADC offset range of Iuvw sampling
// Iuvw ADC sample offset check times
// Dead timer us
// motor carry frequency (hz)
// Range: [5(khz), 8(khz)]
Appendix
12