AVR194
Figure 11. Ki tuning example
250
200
150
100
Ki=1 ; Kp=1
Ki=2 ; Kp=1
Ki=0,5 ; Kp=1
Speed Speed
R eference     Consign
50
0
Time (s)
In Figure 10 and Figure 11 , the right parameters are KP = 1, KI = 0.5 and KD = 0.
To adjust the KD parameter:
?
?
If the reponse is still slow, increase KD gain.
If the reponse is still unstable, decrease KD gain.
Another significant point is the sampling time. It has to be chosen according to the response time
of the system. The sampling time must be at least twice as small as the response time of the
system (according to the Shannon-Nyquist criteria).
Two functions are available for the sampling time configuration (explained previously). They
result in a global variable called g_tick which is set every 250us. With this variable it is possible
to configure the sampling time.
5.3
CPU & Memory Usage
All measurements have been realized with Fosc = 16MHz. They also depend on the motor type
(numbers of pair of poles). With a motor of 4 pairs of poles, hall sensor frequency is four times
faster than the motor rotation.
All results in Figure 5-1 are obtained with a three phases BLDC motor with four pairs of poles
and a maximum speed of 6900 rpm. (Motor provided with the ATAVRMC300 kit)
Table 5-1.
Microcontroller utilization rate
Function Param eters
m c_es tim ation_s peed() Speed = 6900 rpm
m c_s witch_com m utation() Speed = 6900 rpm
activation tim e
15 us
8 us
activation period
2 ms
300 us
Ratio uc %
0.75
2.7
m c_regulation_loop()
Open Loop
Clos e Loop
1.4 us
20 us
80 m s
80 m s
0.0175
0.025
In the worst case, the microcontroller utilization ratio is about 3.5% with a sampling time of 80ms
at 6900 rpm.
13
8138A–AVR–04/08
相关PDF资料
ATAVRMC303 BOARD EVAL MOTOR CTRL W/XMEGA
ATAVRMC320 KIT EVAL MOTOR CTRL CAN/LIN
ATAVRSB100 SMART BATTERY DEVELOPMENT KIT
ATAVRSB200 KIT EVAL FOR AVR SMART BATTERY
ATAVRSB201 KIT REF FOR AVR SMART BATTERY
ATDH1150USB ACCY USB CABLE JTAG ISP AT18F
ATDVK90CAN1 KIT DEV FOR AT90CAN128 MCU
ATEVK1104AU KIT EVAL AT32UC3A3256AU
相关代理商/技术参数
ATAVRMC301 功能描述:开发板和工具包 - AVR Processor Brd w/ TINYx61 RoHS:否 制造商:Arduino 产品:Evaluation Boards 工具用于评估:ATMega32U4 核心:AVR 接口类型:I2C, UART, USB 工作电源电压:6 V to 20 V
ATAVRMC303 功能描述:BOARD EVAL MOTOR CTRL W/XMEGA RoHS:是 类别:编程器,开发系统 >> 评估演示板和套件 系列:AVR® 标准包装:1 系列:- 主要目的:数字电位器 嵌入式:- 已用 IC / 零件:AD5258 主要属性:- 次要属性:- 已供物品:板 相关产品:AD5258BRMZ1-ND - IC POT DGTL I2C1K 64P 10MSOPAD5258BRMZ10-ND - IC POT DGTL I2C 10K 64P 10MSOPAD5258BRMZ100-ND - IC POT DGTL I2C 100K 64P 10MSOPAD5258BRMZ50-ND - IC POT DGTL I2C 50K 64P 10MSOPAD5258BRMZ1-R7-ND - IC POT DGTL I2C 1K 64P 10MSOPAD5258BRMZ10-R7-ND - IC POT DGTL I2C 10K 64P 10MSOPAD5258BRMZ50-R7-ND - IC POT DGTL I2C 50K 64P 10MSOPAD5258BRMZ100-R7-ND - IC POT DGTL I2C 100K 64P 10MSOP
ATAVRMC310 功能描述:开发板和工具包 - AVR Processor Brd w/ MEGA32M1 RoHS:否 制造商:Arduino 产品:Evaluation Boards 工具用于评估:ATMega32U4 核心:AVR 接口类型:I2C, UART, USB 工作电源电压:6 V to 20 V
ATAVRMC320 功能描述:开发板和工具包 - AVR Motor Contrl. Kit for CAN and LIN app. RoHS:否 制造商:Arduino 产品:Evaluation Boards 工具用于评估:ATMega32U4 核心:AVR 接口类型:I2C, UART, USB 工作电源电压:6 V to 20 V
ATAVRMC321 功能描述:开发板和工具包 - AVR Motor Contrl. Kit for low cost app. RoHS:否 制造商:Arduino 产品:Evaluation Boards 工具用于评估:ATMega32U4 核心:AVR 接口类型:I2C, UART, USB 工作电源电压:6 V to 20 V
ATAVRMC323 功能描述:开发板和工具包 - AVR Motor Contrl. Kit CPU Intens Algorithm RoHS:否 制造商:Arduino 产品:Evaluation Boards 工具用于评估:ATMega32U4 核心:AVR 接口类型:I2C, UART, USB 工作电源电压:6 V to 20 V
ATAVR-MICTOR38 功能描述:集管和线壳 Connector 4 nexus trace connect 4 AVR RoHS:否 产品种类:1.0MM Rectangular Connectors 产品类型:Headers - Pin Strip 系列:DF50 触点类型:Pin (Male) 节距:1 mm 位置/触点数量:16 排数:1 安装风格:SMD/SMT 安装角:Right 端接类型:Solder 外壳材料:Liquid Crystal Polymer (LCP) 触点材料:Brass 触点电镀:Gold 制造商:Hirose Connector
ATAVRONEKIT 功能描述:电路内置调试器 Debug and program all AVR32 devices RoHS:否 制造商:Microchip Technology 产品:In-Circuit Debugger Kits 工具用于评估:PIC MCUs, dsPIC DSCs 用于:07-00024, AC164113 核心:dsPIC, PIC 接口类型:USB 工作电源电压:3 V to 5 V