Tutorial.pdf

(1739 KB) Pobierz
dSPACE DS1103 Control Workstation Tutorial and DC Motor Speed Control
dSPACE DS1103 Control Workstation Tutorial and DC
Motor Speed Control
Tutorial
By
Annemarie Thomas
Advisor: Dr. Winfred Anakwa
May 11, 2009
Table of Contents
1
Introduction
The purpose of this tutorial is to introduce Bradley University’s dSPACE DS1103 Workstation
to new users. Use of this tutorial will minimize the time required for students (of senior
undergraduate level or higher) to become proficient in using the workstation. This should allow
them to spend less time learning about the workstation, so they can spend more time designing
and implementing more complex control systems.
The example system used in this tutorial is a DC motor speed control system. The controller has
been designed and simulated using both the Simulink and the dSPACE blocksets, the MATLAB-
to-DSP interface libraries, Real-Time Interface to Simulink, and Real-Time Workshop, all
located on the workstation PC. The controller will be downloaded onto the Texas Instruments’
TM320F240 DSP [1] located on the DS1103 board.
A general block diagram for the system is shown in figure 1 below.
ControlDesk
(Desired Speed
Input)
Motor System
Load Applied to
Motor Shaft
By Brake
CLP1103
Connector
Panel
DS1103
Optical Encoder
Figure 1: Motor Speed Control System Block Diagram.
Controller
The controller was designed using hand and MATLAB calculations and Simulink Simulation. It
was then added to the Simulink Model that was downloaded to the DS1103 DSP. For more
information see the final project report for this project [2].
ControlDesk
ControlDesk serves multiple purposes. It provides the interface for downloading controller
models onto the DSP and provides the ability to interface with the entire system so inputs, such
as the desired motor speed, can be altered and output data can be monitored on the PC display in
real-time.
443682056.001.png
2
CLP1103 Connector Panel
The CLP1103 Connector Panel serves as an interface between the DS1103 and all external
hardware. The CLP1103 Connector Panel contains connectors for twenty (20) Analog-to-Digital
inputs, eight (8) Digital-to-Analog outputs, and several other connectors that can be used for
Digital I/O, Slave/DSP I/O, Incremental Encoder Interfacing, CAN interfacing, and Serial
Interfacing. [3]. Only the Slave I/O (for PWM output) and Incremental Encoder interfaces are
used in this tutorial.
Motor System
The Motor System includes a motor and additional analog components, most of which are listed
in the “Equipment” section that follows.
Optical Encoder System
The Optical Encoder System is an optical encoder connected to the motor with necessary pull-up
resistors and power/ground connections added.
Equipment
Required Equipment for this tutorial is:
The dSPACE DS1103 Workstation. (See figure 2 on the next page.)
Pittman GM9236C534-R2 DC Motor.
HEDS 9100 Two Channel Optical Incremental Encoder Module and 512 CPR code
wheel (attached to the internal motor shaft).
Magtrol HB-420 Brake.
TIP120 Transistor.
IN4004 Diode.
SN7407 Hex Inverters.
Connectors with wires for the pins used as inputs and outputs to the CLP1103
Connector Panel. (See more details in the “Motor Speed Control Application”
section.)
Other required/desired electronic components (resistors and wires), power supplies,
and measurement devices.
All of this equipment was readily available at Bradley University at the time this tutorial was
written.
Note1: The next several sections are general processes that should be followed. Skip to the
section titled “Motor Speed Control Application” to follow these steps in an actual application.
Even if the example application is not being used, reading through the instructions in that section
may provide some additional hints and tips that might make using the system easier.
3
Figure 2: Workstation
Note2: If additional information is required, please refer to the final project report for this project
[2] or contact Dr. Anakwa at Bradley University.
443682056.002.png
Zgłoś jeśli naruszono regulamin