2.5
PID Regulation
After this brief theoretical presentation of Brushless DC Motor Control, the practical implementa-
tion will be introduced with the help of an example. The next part of this application note will deal
with the hardware and the software implementation based on the starter kit ATAVRMC300 &
ATAVRMC310 running with the Atmel ATmega32M1 microcontroller .
The software includes the control of the speed through a PID corrector. Such a corrector is com-
posed of three main coefficients : KP, KI, and KD.
KP is the proportional gain coefficient, KI is the integral gain coefficient and KD is the derivative
gain coefficient. The error between the desired speed and the real speed (called error in the Fig-
ure 2-1 ) is multiplied by each gain. Then, the sum of the three terms gives the command to apply
to the motor to get the right speed ( Figure 2-1 ).
Figure 2-1.
PID diagram
KP
reference_speed
+
-
error
∫ KI
d
KD
d t
+
+
+
command
BLDC Motor
+
Power Stage
command ( t ) = KP × eror ( t ) + KI ∫ error ( t ) d ( t ) + KD error ( t )
PID corrector
measured_speed
d
d t
error ( t ) = reference _ speed ( t ) – measured _ speed ( t )
The KP coefficient determines the motor response time, the KI coefficient is used to cancel the
static error and the KD is used in particular for position regulation (refer to regulation loop in the
software description for tuning of the coefficients).
3. ATmega32M1 microcontroller
The ATmega32M1 has been developed to provide an integrated solution for advanced motor
control applications with CAN and LIN connectivity.
Based on the high performance AVR 8-bit RISC architecture, the ATmega32M1 integrates all of
the basic peripherals necessary to satisfy the needs of complex algorithms. It integrates analog
blocks like 10-bit ADC, with differential amplifiers and programmable gain options. Analog com-
parators with selectable comparison levels, and interrupts on pin change I/Os. The
microcontrollers provide all necessary resources to control BLDC motors in their system
environments.
6
AVR194
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