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

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

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

Observer-based Engine Cooling Control System (OBCOOL) Project Proposal. Students: Andrew Fouts & Kurtis Liggett. Advisor: Dr.

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

RAPID CONTROL PROTOTYPING FOR ELECTRIC DRIVES

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

Students: Andrew Fouts Kurtis Liggett. Advisor: Dr. Dempsey

ECE 5671/6671 Lab 3. Impedance Measurement and Parameter Estimation of a DC Motor

Figure 1: Motor model

FPGA Implementation of a PID Controller with DC Motor Application

Electric Drives Experiment 5 Four-Quadrant Operation of a PMDC Motor

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

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

PID Control with Derivative Filtering and Integral Anti-Windup for a DC Servo

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

Lab 2: Introduction to Real Time Workshop

Brushed DC Motor PWM Speed Control with the NI myrio, Optical Encoder, and H-Bridge

CHAPTER 4 HARDWARE DEVELOPMENT OF STATCOM

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

Variable Frequency AC Source

Real Time Implementation of Power Electronics System

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

CHAPTER-5 DESIGN OF DIRECT TORQUE CONTROLLED INDUCTION MOTOR DRIVE

Real-time Simulation and Experiment Platform for Switched Reluctance Motor

Implementation of discretized vector control strategies for induction machines

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

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

Prototyping Unit for Modelbased Applications

CHAPTER 4 FUZZY BASED DYNAMIC PWM CONTROL

UNIT 2: DC MOTOR POSITION CONTROL

EE 308 Spring S12 SUBSYSTEMS: PULSE WIDTH MODULATION, A/D CONVERTER, AND SYNCHRONOUS SERIAN INTERFACE

BLuAC5 Brushless Universal Servo Amplifier

Brushed DC Motor System

CHAPTER-III MODELING AND IMPLEMENTATION OF PMBLDC MOTOR DRIVE

Lab 2: Quanser Hardware and Proportional Control

SERVO MOTOR CONTROL TRAINER

BLuAC5 Brushless Universal Servo Amplifier

L E C T U R E R, E L E C T R I C A L A N D M I C R O E L E C T R O N I C E N G I N E E R I N G

Lab 5: Inverted Pendulum PID Control

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

CHAPTER 4 PI CONTROLLER BASED LCL RESONANT CONVERTER

Open Loop Frequency Response

maxon document number:

CHAPTER 2 PID CONTROLLER BASED CLOSED LOOP CONTROL OF DC DRIVE

A PID Controller for Real-Time DC Motor Speed Control using the C505C Microcontroller

Example Data for Electric Drives Experiment 6. Analysis and Control of a Permanent Magnet AC (PMAC) Motor

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

Training Schedule. Robotic System Design using Arduino Platform

Closed Loop Magnetic Levitation Control of a Rotary Inductrack System. Senior Project Proposal. Students: Austin Collins Corey West

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

MEM01: DC-Motor Servomechanism

Single-phase Variable Frequency Switch Gear

AC : LABORATORY IMPLEMENTATION OF BANG-BANG CONTROLLER-BASED MOTOR DRIVE MODULE FOR MODELING AND CONTROL COURSES

The DC Machine Laboration 3

Appendix C, Paper 3 C-17

MTS Automation P R O D U C T S P E C I F I C A T I O N. MaxPlus Digital Servo Drive. MP-FLX 230 Series. MP-FLX 230 Series. Single- and Dual-Axis

Software User Manual

ies-2309 Integrated Easy Servo

Laboratory Assignment Number 3 for Mech 143. Pre-Lab: Part 1 Interfacing to a DC Motor and Potentiometer

Single-phase Variable Frequency Switch Gear

Brushed DC Motor Control. Module with CAN (MDL-BDC24)

DSP-2 Library for Simulink User s Manual

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

Fuzzy Logic Control of a Magnetic Suspension. System Using xpc Target

Magnetic Suspension System Control Using Position and Current Feedback. Senior Project Proposal. Team: Gary Boline and Andrew Michalets

DMCode-MS(BL) MATLAB Library

7 Lab: Motor control for orientation and angular speed

AUTOMATIC CLOSED LOOP SPEED CONTROL OF DC MOTOR USING IGBT

Design Applications of Synchronized Controller for Micro Precision Servo Press Machine

UNIVERSITY OF JORDAN Mechatronics Engineering Department Measurements & Control Lab Experiment no.1 DC Servo Motor

LSM&DSD Brushless Servo Drive Package

King Fahd University of Petroleum and Minerals. Department of Electrical Engineering

Ensemble HPe/CP/MP. Networked, Panel-Mount Drives PWM. Network drives through a high-speed serial interface to coordinate up to ten axes of motion

EE 4314 Lab 3 Handout Speed Control of the DC Motor System Using a PID Controller Fall Lab Information

ME 461 Laboratory #5 Characterization and Control of PMDC Motors

Linear Motion Servo Plants: IP01 or IP02. Linear Experiment #0: Integration with WinCon. IP01 and IP02. Student Handout

EE 308 Lab Spring 2009

The Embedded System. - Development and analysis of an Embedded DC-motor controller - by Embedded System Team

RX23T inverter ref. kit

SRV02-Series Rotary Experiment # 3. Ball & Beam. Student Handout

MODEL BASED DESIGN OF PID CONTROLLER FOR BLDC MOTOR WITH IMPLEMENTATION OF EMBEDDED ARDUINO MEGA CONTROLLER

HBS Series Hybrid Servos

Analog Servo Drive. Peak Current 16 A (11.3 A RMS )

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

Using CME 2 with AccelNet

dspace and Real-Time Interface in Simulink

Jaguar Motor Controller (Stellaris Brushed DC Motor Control Module with CAN)

Design and Implementation of a Microcontroller Based Buck Boost Converter as a Smooth Starter for Permanent Magnet Motor

PWM Control of Asymmetrical Converter Fed Switched Reluctance Motor Drive

Real-Time Testing Made Easy with Simulink Real-Time

Analog Servo Drive. Continuous Current. Features

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

Motion Controller 2-Quadrant PWM for Brushless DC-Servomotors

Effective Teaching Learning Process for PID Controller Based on Experimental Setup with LabVIEW

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

Integrated Easy Servo

A Model-Based Development Environment and Its Application in Engine Control

The University of Wisconsin-Platteville

Electronics Design Laboratory Lecture #6. ECEN2270 Electronics Design Laboratory

Transcription:

dspace DS1103 Control Workstation Tutorial and DC Motor Speed Control Project Proposal By Annemarie Thomas Advisor: Dr. Winfred Anakwa December 2, 2008

Table of Contents Introduction... 1 Project Summary... 1 Functional Description... 1 Controller... 3 ControlDesk... 3 CLP1103... 3 Motor System... 3 Optical Encoder System... 4 Speed Input... 4 Requirements... 4 Overall System Requirements... 4 Controller Requirements... 5 Other Requirements... 5 Current Progress... 6 Schedule for Completion... 6 Equipment... 7 Workstation... 7 Other Equipment... 7 References... 7

Thomas 1 Introduction The dspace DS1102 was first used at Bradley University in the year 2000 when a user s manual and a workstation based on this board were developed. Since then, a newer dspace DS1103 board has become available. With grant from the Bradley College of Engineering of $2,000 and additional funds of $12,200 provided by Dr. Larry Kendrick at the Caterpillar Technical Center, a dspace DS1103 board and additional equipment required have been purchased to set up a DS1103 workstation. Initial setup has been completed by Mr. Chris Mattus. The object of the dspace DS1103 Control Workstation Tutorial and DC Motor Speed Control project is to develop a tutorial for use of the new dspace DS1103 Workstation by implementing a DC motor speed control system. The tutorial will minimize the time required for future students to become proficient in using the workstation, therefore increasing the time they can spend designing and implementing more complex control systems. Project Summary The goals of the dspace DS1103 Control Workstation Tutorial and DC Motor Speed Control project are the following: Determine and implement any additional setup that may be required for the dspace DS1103 control workstation. Write a tutorial for use of the workstation, paying particular attention to details related to the DS1103 board using a DC motor speed controller as the example application. Design a controller to control the speed of a DC motor. Implement the designed DC motor speed controller on the dspace DS1103 system using the Simulink and the dspace blocksets, the Matlab-to-DSP interface libraries, Real-Time Interface to Simulink, and Real-Time Workshop. Functional Description The design portion of this project involves designing and implementing a motor speed controller using the dspace DS1103 board. The controller will be designed and simulated using the Simulink and the dspace blocksets, the Matlab-to-DSP interface libraries, Real-Time Interface to Simulink, and Real-Time Workshop on a PC. The controller will then be downloaded onto the Texas Instruments TM320F240 DSP [1] located on the DS1103 board. Inputs to the DS1103 will include the desired motor speed and the output of an optical encoder connected to the motor. Outputs from the DS1103 will include the input to the motor, possibly a PWM signal, and a display of the actual motor speed. Inputs to and outputs from the DS1103 will pass through the CLP1103 [2] connector panel for the DS1103 board. The motor s speed should remain steady for any reasonable amount of load torque applied to it by a braking system. A general block diagram for the system is shown in figure 1 below.

Thomas 2 ControlDesk Load Applied to Input Desired Motor System Motor Shaft Speed (From CLP1103 By Brake ControlDesk or DS1103 Connector voltage sent Panel through CLP1103) Optical Encoder System Figure 1: Motor Speed Control System Block Diagram Testing of the initial controller design can be done by modeling the Motor System, Optical Encoder System, and CLP Connector Panel, shown in figure 1 above, in Simulink. A simple motor model is shown in figure 2 below. From this model, a closed loop control block diagram can be generated with a transfer function for the input voltage to the motor, Va, in relation to the output, w, in radians per second, which can then be easily be converted to other formats such as RPM (revolutions per minute). A simple transfer function that can be used to model the motor in the frequency domain, in terms of s, is: w / Va = Kt / [ ( Ra + s * La ) * ( B + s * J ) + Kt * Kv ] (1) where Ra and La are the electrical resistance and inductance of the motor, J and B are the mechanical inertia and damping/friction of the motor, and Kt and Kv are the torque constant and back emf constant of the motor. These values will be found in the motor s datasheet(s) and verified experimentally. Ra La Va w J B Figure 2: Simple Motor Model Schematic

Thomas 3 Controller The controller will be designed using the various development and simulation tools found on the PC for the workstation. It will then be downloaded to the DSP in the DS1103 shown in figure 1 on the previous page using the ControlDesk software package also on the PC. The complexity and other specifications of the motor speed controller design have not yet been determined. A simple proportional (P) controller design would probably be implemented first to gain experience and knowledge with the overall system, and then one or several more complex controllers would probably be designed and implemented. The output from the DS1103 is currently expected to be a PWM signal. ControlDesk ControlDesk in figure 1 on the previous page serves multiple uses. It provides the interface for downloading controller models designed in Simulink onto the DSP. The Instrument Panel feature of ControlDesk can be used as an input device for the system and as a data output device. It may be possible to control the input value for the Simulink model using the Instrument panel, but more research in this area is needed to be certain of this. The output from the Optical Encoder System can definitely be sent through the CLP1103 and DS1103 to the computer and various measurements can be displayed on the PC screen. [3] Initially, measurement of the system response (the actual motor speed) will be measured by connecting the output of the Optical Encoder to an oscilloscope. CLP1103 The CLP1103 shown in figure 1 on the previous page serves as an interface between the DS1103 and the external hardware portion ( Motor System, Optical Encoder System, and possibly the Desired Input) of the overall system. The CLP1103 contains connector for twenty (20) Analog-to-Digital inputs, eight (8) Digital-to-Analog outputs, several other connectors that can be used for Digital I/O, Slave/DSP I/O, Incremental Encoder Interfaces, CAN interface, and Serial Interfaces. [2] Motor System The Motor System identified in the block diagram in figure 1 on the previous page will include the motor and additional analog components. The analog components will include either a transistor or an H-bridge to further process the output from the DS1103 board (passed through the CLP1103 Connector Panel) before it enters the motor.

Thomas 4 Optical Encoder System The Optical Encoder System shown in figure 1 on page 2 may be just an optical encoder connected to the motor and necessary pull-up resistors and power/ground connections, but additional analog components might be added to convert the optical encoder output signal into a form that can be more easily handled by the DSP. Speed Input A means of inputting the speed at which the motor is desired to operate is needed. This is shown as the Input Desired Speed Block in figure 1 on page 2. The speed could be hard coded into the controller or an external signal could be used to vary the desired operating speed. Initial design and implementation will most likely use a hard-coded value, but eventually it should be possible to control the desired speed by using a DC voltage supply or some other type of input. Current research is inconclusive, but it might also be possible to set desired input using the Instrument Panel Feature of ControlDesk, see ControlDesk section on the previous page. This would be the preferred option if it is possible. Requirements Overall System Requirements Requirements and specifications for the overall system shown in figure 1 on page 2 are as follows: The operating range of the system shall be 0 to 40 degrees C. The system shall use a 30 VDC or smaller power supply. The motor used shall be a Pittman DC Motor Model Part # GM9236C534-R2. The values for the motor model to be used for design and simulation in Simulink shall be determined from the datasheets and verified experimentally. A control panel shall be created in the ControlDesk application to monitor the inputs and the outputs of the system. The output from the DS1103 to the Motor System shall be passed through a PWM output located on the CLP1103 Connector Panel. The output from the DS1103 to the Motor System shall be a 12 khz PWM signal.

Thomas 5 The input to the DS1103 from the Optical Encoder System shall be passed through an Incremental Encoder input located on the CLP1103 Connector Panel. The input to the DS1103 from the Optical Encoder System shall be converted to RPM for display purposes. The RPM measurement displayed using a control panel in ControlDesk shall be within ±10 RPM of the actual value. There shall be a method to input/control the desired speed of the motor. Note: The desired speed can be input as an RPM value using a control panel in ControlDesk or a voltage input through an Analog-to-Digital Converter input of the CLP1103 Connector Panel. The desired maximum speed/velocity that shall be input is 834 RPM. Load Torque shall be applied to the motor shaft using a HB-420 Brake. Note: The maximum load torque that can be applied should be limited to reasonable values. The designed controller shall be downloaded onto the Texas Instruments TM320F240 DSP [1] located on the DS1103 board using ControlDesk. Controller Requirements Requirements and specification applicable to the controller functionality are as follows: The DC motor speed controller shall be designed/simulated using Simulink and dspace blocksets, Matlab-to-DSP interface libraries, the Real-Time Interface to Simulink, and Real-Time Workshop. Overshoot shall be less than or equal to 5%. Rise time shall be less than or equal to 20 ms. Steady-state error shall be less than or equal to 5 RPM. Other Requirements Other requirements particular to this project are as follows: A tutorial shall be written on the use of the workstation using the DC motor speed controller as the example application.

Thomas 6 Current Progress Lab periods up to this point have been spent primarily on reading large portions of the manuals/guides provided by dspace explaining the abilities, functions, and relationships between the DS1103, ControlDesk and Simulink, and exterior analog/digital systems [3,4,5]. Notes about pages/sections that are important have been recorded with some notes to make it easier to find them later if they are needed. dspace System First Work Steps For DS1103, DS1104, DS1005, DS1006, and Micro Auto Box [4] and ControlDesk Experiment Guide For ControlDesk 3.2 [3] have been thoroughly reviewed. A review of Real-Time Interface (RTI and RTI-MP) Implementation Guide [5] is still in progress. The DS1103 board has been successfully found and registered in ControlDesk. A simple model has also been begun to be designed in Simulink. This model applies gain to an Analog-to-Digital Converter input and sends the output through a Digital-to-Analog Converter. It is also being used as a mechanism to better understand some of the basic interactions between settings in a Simulink model, ControlDesk (downloading and instrument panel function), and the DS1103 board, before moving onto the greater complexities involved in motor speed controller simulation and implementation. This work will probably not be completed until the beginning of the Spring 2009 semester. Schedule for Completion At this point in time, the primary research for this project is nearly completed. Most of the Spring 2009 semester will be spent applying what has been learned by designing a controller to control the speed of a DC motor and implementing it using the DS1103 Board. A proposed schedule for the Spring 2009 semester is shown in Table 1 below. (Most Weeks begin on Wednesday and end on Tuesday.) Week Week End Date Task 1 January 27 Write tutorial introduction 2 February 3 Verify motor parameters 3 February 10 Design/Simulate motor model and controller in Simulink 4 February 17 Make required adjustments to model and download to DS1103 5 February 24 6 March 3 Design/Build/Test hardware for motor subsystem 7 March 10 Design/Build/Test hardware for optical encoder system 8 March 17* 9 March 24* 10 March 31 11 April 7 12 April 14 13 April 21 Make required adjustments to controller model to work with motor and hardware and download to DS1103 Improve controller or Design/Build/Test additional controllers 14 April 28 Work on presentation/final report 15 May 5 Presentation Table 1: Schedule of Tasks for the Spring 2009 semester. * Spring Break is March 14 March 22, 2009

Thomas 7 Equipment Workstation The dspace DS1103 control workstation contains the following: The $14,000 dspace DS1103 system consisting of: o A DS1103 Board. o An Expansion Box to house the DS1103. o A CLP1103 PPC Connector and LED Panel. o ControlDesk Version 3.2.2 and several other software applications provided by dspace. A PC dedicated to the workstation containing all software applications required for controller design (Matlab/Simulink Version R2008a and libraries) and implementation in the DS1103 (ControlDesk). Other Equipment Equipment particular to this project includes: A Pittman DC Motor (Model Part # GM9236C534-R2). A Magtrol HB-420 Brake. A Transistor or H-Bridge. Other electronic components as needed. All of this equipment should already be available at Bradley University. References [1] DS1103 PPC Controller Board, Germany: dspace, July 2008. [2] Connector and LED Panels, Catalog 2008, Germany: dspace GmbH, 2008, p. 302. [3] ControlDesk Experiment Guide For ControlDesk 3.2, Germany: dspace GmbH, 2008, Release 6.1. [4] dspace System First Work Steps For DS1103, DS1104, DS1005, DS1006, and Micro Auto Box, Germany: dspace GmbH, 2007, Release 6.0. [5] Real-Time Interface (RTI and RTI-MP) Implementation Guide, Germany: dspace GmbH, 2008, Release 6.1.