RAPID CONTROL PROTOTYPING FOR ELECTRIC DRIVES

Similar documents
CHAPTER-5 DESIGN OF DIRECT TORQUE CONTROLLED INDUCTION MOTOR DRIVE

dspace DS1103 Control Workstation Tutorial and DC Motor Speed Control Project Proposal

Real-time Simulation and Experiment Platform for Switched Reluctance Motor

3-in-1 Air Condition Solution

Prototyping Unit for Modelbased Applications

DSP BASED SYSTEM FOR SYNCHRONOUS GENERATOR EXCITATION CONTROLL

Design of double loop-locked system for brush-less DC motor based on DSP

SPEED CONTROL OF INDUCTION MOTOR WITHOUT SPEED SENSOR AT LOW SPEED OPERATIONS

ServoStep technology

Observer-based Engine Cooling Control System (OBCOOL) Functional Description & System Block Diagram. Students: Andrew Fouts & Kurtis Liggett

RX23T inverter ref. kit

CHAPTER 4 HARDWARE DEVELOPMENT OF STATCOM

Real-Time Testing Made Easy with Simulink Real-Time

TMS320F241 DSP Boards for Power-electronics Applications

Digital Control of Permanent Magnet Synchronous Motor

CHAPTER 4 CONTROL ALGORITHM FOR PROPOSED H-BRIDGE MULTILEVEL INVERTER

When to use an FPGA to prototype a controller and how to start

DSpace Platform for Speed Estimation AC Slip-Ring Motor in Crane Mechatronic System

POWER- SWITCHING CONVERTERS Medium and High Power

EE152 Final Project Report

Sensors and Sensing Motors, Encoders and Motor Control

Nicolò Antonante Kristian Bergaplass Mumba Collins

Training Schedule. Robotic System Design using Arduino Platform

VORAGO Timer (TIM) subsystem application note

Development of an Experimental Rig for Doubly-Fed Induction Generator based Wind Turbine

Chuck Raskin P.E. Principle R&D Engineer. Blaine, MN USA

dspace DS1103 Control Workstation Tutorial and DC Motor Speed Control Project Report

Automotive Control Solution for Brushless DC Motors

Electric Bike BLDC Hub Motor Control Using the Z8FMC1600 MCU

Using dspace in the Shunt Static Compensators Control

Real Time Implementation of Power Electronics System

Outline. Goals Project Description/Requirements. Equipment Implementation Progress Summary References

Tarocco Closed Loop Motor Controller

CHAPTER-III MODELING AND IMPLEMENTATION OF PMBLDC MOTOR DRIVE

Simulation of Solar Powered PMBLDC Motor Drive

The University of Wisconsin-Platteville

System Board 6219 MAXREFDES89#: MAX14871 Full-Bridge DC Motor Driver MBED Shield

PREDICTIVE CONTROL OF INDUCTION MOTOR DRIVE USING DSPACE

Design of stepper motor position control system based on DSP. Guan Fang Liu a, Hua Wei Li b

DMCode-MS(BL) MATLAB Library

Interfacing dspace to the Quanser Rotary Series of Experiments (SRV02ET)

Speed Control of BLDC Motor Using FPGA

Open Loop Speed Control of Brushless DC Motor

DC motor control using arduino

CHAPTER 2 CURRENT SOURCE INVERTER FOR IM CONTROL

CHAPTER 4 FIELD PROGRAMMABLE GATE ARRAY IMPLEMENTATION OF FIVE LEVEL CASCADED MULTILEVEL INVERTER

Digital Power: Consider The Possibilities

Motor Control using NXP s LPC2900

Page ENSC387 - Introduction to Electro-Mechanical Sensors and Actuators: Simon Fraser University Engineering Science

User Guide IRMCS3041 System Overview/Guide. Aengus Murray. Table of Contents. Introduction

DSP-2 Library for Simulink User s Manual

Laboratory set-up for Real-Time study of Electric Drives with Integrated Interfaces for Test and Measurement

Application Note. Brushless DC Motor Control AN-1114

Peripheral Link Driver for ADSP In Embedded Control Application

Brushless 5 click. PID: MIKROE 3032 Weight: 25 g

EVDP610 IXDP610 Digital PWM Controller IC Evaluation Board

TUTORIAL Simulation and Code Generation of TI InstaSPIN Using DRV8312 EVM

Sensors and Sensing Motors, Encoders and Motor Control

User Guide Introduction. IRMCS3043 System Overview/Guide. International Rectifier s imotion Team. Table of Contents

Rapid Control Prototyping using MATLAB/Simulink and a DSP-based Motor Controller*

Motor control using FPGA

Design of a Simulink-Based Control Workstation for Mobile Wheeled Vehicles with Variable-Velocity Differential Motor Drives

CIS009-2, Mechatronics Signals & Motors

MicroAutoBox. Platform for in-vehicle function prototyping Variants with CAN, LIN and FlexRay interfaces

TMC603EVAL MANUAL Evaluation board for the TMC603 three phase motor driver with BLDC back EMF commutation hallfx

Simulation and Implementation of FPGA based three phase BLDC drive for Electric Vehicles

Application Note. Using PZAmp with dspace MicroAutoBox and RapidPro. Version 1.3

VT1419A Multifunctional Plus Measurement and Control Module

DSP-Based Simple Technique for Synchronization of 3 phase Alternators with Active and Reactive Power Load Sharing

CHAPTER 6 CURRENT REGULATED PWM SCHEME BASED FOUR- SWITCH THREE-PHASE BRUSHLESS DC MOTOR DRIVE

Sensorless BLDC Motor Control Using FRDM-KE02Z Based on Tower Board

E x p e r i m e n t 3 Characterization of DC Motor: Part 1

Development of a MATLAB Data Acquisition and Control Toolbox for BASIC Stamp Microcontrollers

Application Note. 3-Phase Brushless DC Motor Control with Hall Sensors AN-CM-244

ECE 5670/6670 Project. Brushless DC Motor Control with 6-Step Commutation. Objectives

SPEED CONTROL OF SENSORLESS BLDC MOTOR WITH FIELD ORIENTED CONTROL

STM32 PMSM FOC SDK v3.2. 蒋建国 MCU Application Great China

Design and Implementation of AT Mega 328 microcontroller based firing control for a tri-phase thyristor control rectifier

Brushed DC Motor Microcontroller PWM Speed Control with Optical Encoder and H-Bridge

PWM, ALT, HALT, HAST.

Project Proposal. Low-Cost Motor Speed Controller for Bradley ECE Department Robots L.C.M.S.C. By Ben Lorentzen

2.017 DESIGN OF ELECTROMECHANICAL ROBOTIC SYSTEMS Fall 2009 Lab 4: Motor Control. October 5, 2009 Dr. Harrison H. Chin

OBSOLETE. Bus Compatible Digital PWM Controller, IXDP 610 IXDP 610

Automated PMSM Parameter Identification

Bimal K. Bose and Marcelo G. Simões

815-BR SERVO AMPLIFIER FOR BRUSH SERVOMOTORS

CQM1H-MAB42 Analog I/O Board Connector CN1: Analog inputs 1 to 4. Name Specifications Model number Slot 1 (left slot) High-speed Counter Board

Implementation of Brushless DC motor speed control on STM32F407 Cortex M4

SilverMax Datasheet. QuickSilver Controls, Inc. NEMA 23 Servomotors.

Latest Control Technology in Inverters and Servo Systems

The Real-Time Control System for Servomechanisms

IRT Mini Evo. Technical Manual. quality IN MOTION. quality IN MOTION

Unit-6 PROGRAMMABLE INTERRUPT CONTROLLERS 8259A-PROGRAMMABLE INTERRUPT CONTROLLER (PIC) INTRODUCTION

{Speed_limit} Position_Error. {P_pos/quadcounts} max. Speed_command. z.o.h. Radians/sec. clk. Clamp min. Clk1 V22. {-Speed_limit} VELOCITY OBSERVER

E x p e r i m e n t 2 S i m u l a t i o n a n d R e a l - t i m e I m p l e m e n t a t i o n o f a S w i t c h - m o d e D C C o n v e r t e r

A COMPARISON STUDY OF THE COMMUTATION METHODS FOR THE THREE-PHASE PERMANENT MAGNET BRUSHLESS DC MOTOR

DCS810 Brushed DC Servo Drive

Speed Control Of Transformer Cooler Control By Using PWM

EE 314 Spring 2003 Microprocessor Systems

A Subsidiary of Regal-Beloit Corporation. AC Inverter Terminology

Transcription:

RAPID CONTROL PROTOTYPING FOR ELECTRIC DRIVES Lukáš Pohl Doctoral Degree Programme (2), FEEC BUT E-mail: xpohll01@stud.feec.vutbr.cz Supervised by: Petr Blaha E-mail: blahap@feec.vutbr.cz Abstract: This paper presents an approach to rapid prototyping of control algorithms for electric motors with dspace real-time simulation platform. dspace board DS1103 is connected to Freescale 3-Phase BLDC/PMSM Low-Voltage Motor Control Drive providing sufficient power output to the electric motor. Control action is performed by pulse width modulated (PWM) signals generated in dspace board using Simulink Real-Time Interface (RTI) libraries provided by dspace manufacturer. Motor outputs (speed, currents and voltages) are measured directly by dspace with encoder interfaces and A/D converters. Keywords: dspace, Freescale, Rapid Control Prototyping, Electric Motor Control 1 INTRODUCTION In recent years the economic aspects of electric drive manufacturing such as raw materials costs and availability are accelerating development of new types of electric motors. These new motors often provide cost effective solution for manufacturer but they usually require development or modification of current control algorithms. Real-time simulation platforms such as dspace allow us to decrease time needed for development cycle to a minimum. Figure 1: Development Cycle. Implementation of a control loop is carried out in Simulink environment. An RTI library provides blocks that implement the I/O capabilities of dspace system in Simulink model. Simulink model is compiled and downloaded to dspace platform after which automated measurement and analysis can be started. 2 DSPACE SIMULATION HARDWARE Real-time hardware DS1103 is based on PowerPC microprocessor supplemented by Texas Instruments TMS320F240 DSP processor. The TMS320F240 slave DSP is loaded with firmware that al-

Figure 2: DSpace Board Architecture. lows access to the different peripheral devices of the slave DSP. Also user specific DSP function, not covered by standard firmware, can be compiled and loaded to the DSP. Manufacturer s support for this processor is no longer available so it is not possible to find compiler for 64b operating system. Functions needed for motor control (SPI, PWM) are already pre-defined in slave DSP so there was no need to compile custom code. Programs for master PowerPC can be compiled directly from the C-code using RTIlib containing the functions provided by the DS1003 Processor Board or using Simulink Real-Time Workshop. Besides the PWM module and SPI interface provided by slave processor the Encoder interface and A/D modules controlled by master PowerPC are used for closed loop motor control to measure the rotor speed and stator currents. 2.1 MOTOR CONTROL DRIVE Power output of dspace platforms D/A converters is not sufficient for powering any larger types of electric drives. For this purpose DSpace PWM outputs are connected to 3-Phase BLDC/PMSM Low- Voltage Motor Control Drive. Driver board is capable of providing up to 24V and 5A power output from 3-phase bridge to the motor. Gate driving for the bridge is supplied by Freescale MC33927. This driver has built-in overcurrent, undervoltage and other safety functions. Gate driver is configurable thru commands send over Serial Peripheral Interface (SPI). The board enables the sensing of a variety of feedback signals suitable for different motor control techniques, such as all three phase currents, DC bus current, DC bus voltage and BEMF voltages. Registers of MC33927 are configured after dspace power-up. SPI communication is implemented in initialization section of Simulink model. Initialization is written in C language (slave SPI communication is not included in Simulink RTI library). First command sent after SPI initialization is deadtime calibration command. Deadtime prevents the turn-on of both transistors in the same phase until the deadtime has expired. Calibration pulse on SPI s /CS line with precise length has to follow this command. Required length of the pulse can be achieved by sending NULL command with precise speed of communication. This command will drop the /CS line to logic 0 in order to start the communication. For example SPI speed of 468750 Baud will provide approximately 24us wide pulse for 1.5us deadtime (see MC33927 datasheet for details). Successful deadtime command calibration

Figure 3: dspace I/O board with Freescale motor control drive and DC motor[3] can be verified by reading status registers in the driver by SPI command. In order to fully enable outputs of the driver EN (enable) signals has to be set to logic 1. 3 CLOSED LOOP CONTROL IMPLEMENTATION This section is an example of a closed-loop brush DC motor control with dspace connected to Freescale drive board. Rotor speed and stator currents represent measured (controlled) variables and control action is applied by pulse width modulated voltage on stator winding. 3.1 ROTOR SPEED AND STATOR CURRENT SENSING dspace encoder interface is used to measure the rotor speed by a 1024bit rotary encoder. Simulink implementation of the encoder interface is composed of two blocks. First block serves as global encoder setup (dspace has total of 7 encoder inputs) where the encoder type can be specified for each channel as single-ended or differential. Second block provides access to the position and delta position (speed) of the 7 encoder interface channels. Rotor speed acquired from the interface can be then then scaled to rotations per minute (RPM). Stator currents are more difficult to acquire. Freescale drive board is equipped with 4 sampling resistors. One is for bus current and one for each phase of the bridge. Because these resistors sample the current in the lower phase legs, they do not directly measure the phase current. However, given phase voltages for all three phases, phase current can be constructed mathematically from the lower phase leg values. Phase currents from sampling resistors are amplified and scaled so that +/-4A corresponds to +/-1.65V on current sensing output with 1.65V bias. Currents are present at the phase legs only when the lower transistors are open hence measurement has to be precisely timed to be aligned in the center of PWM pulse. Precise current measurement is achieved with DSpace interrupt controller. Simulink block Master

Sync IO Setup can be used to select input signals and triggering source from many of the board s I/O units. It can be also specified whether the synchronization occurs on falling or raising edge of the triggering signal. Triggered measurement itself has to be placed in Simulink triggered subsystem. Slave DSP PWM interrupt is selected as triggering source for the subsystem. It is recommended to use Task Transition block whenever the transition from triggered subsystem to the rest of the Simulink model with different sampling interval occurs. 3.2 PWM GENERATION dspace slave DSP is capable of generating several types of PWM output signals (4 individual channels, 3 phase PWM, space vector PWM... ) each connected to different connector pin. Only 3 phase PWM can be used as triggering source. Unfortunately the 3 phase PWM Simulink block has no deadtime settings so the deadtime has to be added in the Freescale control drive board (calibration over the SPI line is described above). One of many safety features of Freescale motor control drive board is inverted logic level for the high side transistor minimizing the probability of high side and low side transistor activation during power up or failure. Since the deadtime is not generated in dspace one signal for high side or low side can be used to control driver for both sides of the bridge in each phase. 3.3 CLOSED LOOP SIMULATION Since the stator currents are measurable it is possible to use cascade control structure to control both the rotor speed and stator current. Stator position of DC motor was fixed in order to identify time constant of the current loop. Identified plant is the first order transfer function so the step response can be measured to easily identify this unknown parameter. The time constant was identified as T = 0.0025s. PI controller was used to achieve desired current. Time constants and gain of the controller were selected by frequency open loop shaping so that 0dB is crossed with -20dB/dek declanation at the highest frequency as possible. PI controller for outter speed loop was designed accordingly. Implementation of both controllers is done in Simulink environment using some of the build in functions for controller design (SISOTOOL). Figure 4: DC Motor current step response

Figure 5: Closed loop speed response 4 CONCLUSION This article presented flexible dspace development system extended by Freescale low-voltage drive for rapid development of motor control algorithms. dspace platform provided all I/O connections needed for control of most types of electric drives. Freescale board served as a final power stage that was able to provide 4A of stator current into the motor after the deadtime calibration was done over the SPI line. Motor speed and stator currents were measured directly by dspace through integrated interfaces. Simulation of newly developed algorithms is substantially easier since the whole closed loop can be developed in Simulink, measured and tested in dspace control desk studio provided by dspace Company. Simple example of DC motor control was presented at the end of article as demonstration of overall dspace functionality. ACKNOWLEDGEMENT The research has been supported by Czech Science Foundation under the project GA P103/10/0647 Intelligent Electrical Drives Predictive and Robust Control Algorithms This work was supported by grant Research of Modern Methods and Approaches in Automation from the Internal Grant Agency of Brno University of Technology (grant No. FEKT-S-11-6). REFERENCES [1] Neborák, I.: Modelování a Simulace Elektrických Regulovaných Pohonů, Vysoká Škola Báňská Technická Univerzita Ostrava, 2002. [2] dspace GmbH: DS1103 PPC Controller Board documentation, Release 7.1 May 2011 [3] Frgal, P.: 3-Phase BLDC/PMSM Low-Voltage Motor Control Drive User Manual, Freescale Semiconductor 2008