ATAVRMC310 Atmel, ATAVRMC310 Datasheet

no-image

ATAVRMC310

Manufacturer Part Number
ATAVRMC310
Description
BOARD EVAL MOTOR CTRL W/MEGA32M1
Manufacturer
Atmel
Series
AVR®r
Datasheets

Specifications of ATAVRMC310

Main Purpose
Power Management, Motor Control
Embedded
Yes, MCU, 8-Bit
Utilized Ic / Part
ATmega32M1
Primary Attributes
3-Ph BLDC, Brushed DC, Stepper Motor- Controller Board
Secondary Attributes
Requires ATAVRMC300 Power Driver Board
Processor To Be Evaluated
ATmega32M1
Data Bus Width
8 bit
Interface Type
RS-232, USB
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
Features
References
[1] ATmega32/64/M1/C1 data sheet
[2] AVR138: ATmega32M1 family PSC Cookbook
[3] AVR430: MC300 Hardware User Guide
[4] AVR470: MC310 Hardware User Guide
1. Introduction
This application note describes how to implement a brushless DC motor control in
sensor mode using the ATmega32M1 AVR microcontroller.
The high performance AVR core fitted with Power Stage Controller module of
ATmega32M1 allows to design high speed brushless DC motor applications.
In this document, we will give a short description of brushless DC motor theory of
operations, we will detail how to control a brushless DC motor in sensor mode and we
will also give a short description of the ATAVRMC310 and ATAVRMC300 boards
used in this application note.
Software implementation is also discussed with software control loop using a PID
filter.
This application note deals only with BLDC motor control application using Hall effect
position sensors to control commutation sequence.
2. Theory of Operation
Brushless DC motors are used in a growing number of motor applications as they
have many advantages:
They have no brushes so they require little or no maintenance.
They generate less acoustic and electrical noise than universal brushed DC motors.
They can be used in hazardous operation environments (with flammable products).
BLDC Motor Basics
Hardware Implementation
Code Example
AVR194: Brushless DC Motor Control using
ATmega32M1
8-bit
Microcontroller
Application Note
8138A–AVR–04/08

Related parts for ATAVRMC310

ATAVRMC310 Summary of contents

Page 1

... In this document, we will give a short description of brushless DC motor theory of operations, we will detail how to control a brushless DC motor in sensor mode and we will also give a short description of the ATAVRMC310 and ATAVRMC300 boards used in this application note. Software implementation is also discussed with software control loop using a PID filter ...

Page 2

They also have a good weight/size to power ratio. Such motors have little rotor inertia. The coils are attached to the stator. The commutation is controlled by electronics. Commutation times are provided either by position sensors or by coils Back ...

Page 3

The coils are stationary while the magnet is rotating. The rotor of the BLDC motor is lighter than the rotor of a conventional universal DC motor where the coils are placed on the rotor. 2.3 Hall Sensor For the estimation ...

Page 4

Figure 4. Power Stage Reading hall sensor values indicates which switch should be closed. Table 1. Switches commutation for CW rotation Hall Sensors Value (H3 H2 H1) For motors with multiple poles the electrical rotation does not correspond to a ...

Page 5

Figure 5. Commutation steps and rotating field coil U 001 coil W 101 coil V coil V coil W coil V coil U coil W coil V Commutation creates a rotating field. Step1 Phase U is connected to the positive ...

Page 6

... 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 ...

Page 7

The ATmega32M1 includes independent positive and negative comparator inputs to allow sen- sorless motor control with no external active component. Three individual comparators are available for back Electro Magnetic Field (EMF) measurements. An additional comparator is available for over-current detection. ...

Page 8

... Hardware Description This application has been developed and tested with ATAVRMC300 and ATAVRMC310 boards. The ATAVRMC300 board is the power board which embeds the bridge while the ATAVRMC310 is the processor board built arround the ATmega32M1 processor. Refer to the ‘AVR430: MC300 Hardware User Guide’ and ‘AVR470: MC310 Harware User Guide’ ...

Page 9

The phase commutation has to be done according to hall sensors value. HallA, HallB and HallC are connected to external interrupt sources or to the three internal comparators. The compara- tors generate the same type of interrupts as the external ...

Page 10

... HTML documentation is delivered with the AVR194 software package. It can be opened thanks to the readme.html file located in the source directory. Atmel provides libraries to control Brushless DC motors. The first step is to configure and initial- ize the microcontroller. The function to be used is mc_init(). It calls hardware and software initialization functions and sets up all motor parameters (motor direction, motor speed, motor run or motor stop) ...

Page 11

Used to stop the motor. void mci_set_ref_speed(U8 speed) Sets the reference speed. U8 mci_get_ref_speed(void) Returns the reference speed. void mci_forward() Sets the motor direction ‘CW’ (clock wise). void mci_backward() Sets the motor direction ‘CCW’ (counter clock wise). U8 ...

Page 12

Figure 9. Regulation Loop mc_cmd_speed The speed loop consists in a speed regulation loop with the PID corrector. We will further explain how to adjust the coefficients KP and KI. The KD coefficient is present in the regulation loop but ...

Page 13

Figure 11. Ki tuning example 250 200 150 100 In Figure 10 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 ...

Page 14

... CODE memory (Flash occupation = 17% ). Including communication protocol through UART • 488 bytes of DATA memory (SRAM occupation = 24%). Including stack and communication protocol through UART 6. ATAVRMC300 & ATAVRMC310 Configuration and Use The power board must be supplied with a 12V, 2A, DC Power Supply. Table 6-1. Table 6-2. AVR194 ...

Page 15

Appendix Figure 7-1. 42BLS01-001 Motor Characteristics 8138A–AVR–04/08 AVR194 15 ...

Page 16

... Disclaimer: The information in this document is provided in connection with Atmel products. No license, express or implied, by estoppel or otherwise, to any intellectual property right is granted by this document or in connection with the sale of Atmel products. EXCEPT AS SET FORTH IN ATMEL’S TERMS AND CONDI- TIONS OF SALE LOCATED ON ATMEL’S WEB SITE, ATMEL ASSUMES NO LIABILITY WHATSOEVER AND DISCLAIMS ANY EXPRESS, IMPLIED OR STATUTORY WARRANTY RELATING TO ITS PRODUCTS INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR NON-INFRINGEMENT ...

Related keywords