Darko Hercog, Bojan Gergič, Vojko Matko, Karel Jezernik. Faculty of Electrical Engineering and Computer Science, Maribor, Slovenia

Similar documents
Virtual Instruments for Remote Experiments Visualization

Teaching Control System Principles Using Remote Laboratories over the Internet

Design and Implementation of a Service-Oriented Web-based Control Laboratory

Simulink Based Robot Arm Control Workstation. Figure 1-1 High Level Block Diagram

Electronic Design for Power Control Technology and Knowledge transferred from University to Industry

ECE 487 LAB 1 ÇANKAYA UNIVERSITY Overview of DSP Board

Model-Based Design: Generating Embedded Code for Prototyping or Production

Development of a MATLAB Data Acquisition and Control Toolbox for PIC Microcontrollers

Modeling HDL components for FPGAs in control applications

Industrial PC for real-time rapid prototyping KEY FEATURES

SIMULATION OF MCU HARDWARE PERIPHERALS

Running OPAL-RT s ehs on National Instruments crio: Sub-microsecond power-electronic simulation

DS1104 R&D Controller Board Single-board PCI hardware for use in PCs Set of intelligent I/O on-board

Lab Exercise 07 DC motor PI velocity control

Optimize DSP Designs and Code using Fixed-Point Designer

A NOVEL BASED METHOD TO DESIGN A 4G NETWORK AND TO IMPLEMENT IN REAL TIME USING DSP INTERFACE

Development of Simulink blockset for embedded system with complex peripherals

Feaser

TextProc a natural language processing framework

Advanced AC Motor Control S/W Development Sang-Ho Yoon Senior Application Engineer The MathWorks

Tutorial. CASPER Reference Design

Group 10 Programmable Sensor Output Simulator Progress Report #2

6th WSEAS International Conference on EDUCATION and EDUCATIONAL TECHNOLOGY, Italy, November 21-23,

TI s PCI2040 PCI-to-DSP Bridge

DSP240-LPI Inverter Controller Card. Technical Brief

A design of real-time image processing platform based on TMS320C6678

A Matlab/Simulink Simulation Approach for Early Field-Programmable Gate Array Hardware Evaluation

EXPERIMENTAL PLATFORM FOR SIMULATION AND ANALYSIS OF SYSTEMS STATES AND FAULT DIAGNOSIS IN INDUSTRIAL AND LOGISTICS SYSTEMS

Master Class: Target Optimized Code Generation Shobhit Shanker Senior Application Engineer-Code Generation & Verification

5I20 ANYTHING I/O MANUAL

Comparison of different microcontroller development boards for power electronics applications

Avnet Speedway Design Workshop

PDF of this portion of workshop notes:

Chapter 7. Hardware Implementation Tools

REMOTE laboratories represent an interesting emerging

Doc: page 1 of 6

Integrated Simulation and Hardware-test Environment for Microcontroller Development

Control Systems Laboratory Manual Hardware and Software Overview. 2 Hardware Equipment. 2.1 Analog Plant Simulator (EE357 Only)

Multi-function DSP Experimental System Based on TMS320VC5509 Qiu-feng SHANG and Wei LIU

SMT9091 SMT148-FX-SMT351T/SMT391

AC : DEVELOPMENT AND INITIAL ANALYSIS OF A MINI CNC RAPID DEVELOPMENT SYSTEM

Supporting Custom Boards with DSP Builder

Adding interactivity to existing Simulink models using Easy Java Simulations

Model-Based Design for effective HW/SW Co-Design Alexander Schreiber Senior Application Engineer MathWorks, Germany

Doc: page 1 of 8

SIMOREG 6RA70 DC MASTER SIMOREG CM

Intro to System Generator. Objectives. After completing this module, you will be able to:

DS1103 PPC Controller Board

LabVIEW FPGA in Hardware-in-the-Loop Simulation Applications

Usable Simulink Embedded Coder Target for Linux

Getting Started Guide RS-EDP & XC167 CPU Module. Version 2 10th June 2010

Implementing MATLAB Algorithms in FPGAs and ASICs By Alexander Schreiber Senior Application Engineer MathWorks

APPLICATION OF THE V-CYCLE DEVELOPMENT IN THE AEROSPACE INDUSTRY

MATLAB-to-ROCI Interface. Member(s): Andy Chen Faculty Advisor: Camillo J. Taylor

Emerging Integrated Drive Controller

Reprint. Transmission Systems Prototyping based on Stateflow/Simulink Models

A MATLAB TOOLBOX FOR REAL-TIME CONTROL USING C167 MICROCONTROLLERS

Sencer Yeralan and Helen Emery Gainesville, Florida January 2000

A DSP Systems Design Course based on TI s C6000 Family of DSPs

TI TMS320C6000 DSP Online Seminar

Remote System Identification in the Automatic Control Telelab Environment

Technical Specification for Educational Robots

Implementation of Face Detection System Using Haar Classifiers

Ultra5000 Intelligent Positioning Drive Frequently Asked Questions

Lab Exercise 08 DC motor PID position control

Laboratory: Introduction to Mechatronics. Instructor TA: Edgar Martinez Soberanes Lab 1.

S2C K7 Prodigy Logic Module Series

ECU Hardware-in-Loop Simulation System Design for Gas Engine based on Virtual Instruments

DT9841. Scalable Realtime Data Acquisition USB Function Module with Embedded DSP

Rapid Control Prototyping Solutions Electrical Drive, Power Conversion and Power Systems

Control System for the Prototype of Hydrogen Powered Car

Engineering Innovation Center LabVIEW Basics

Timing Analysis of Automatically Generated Code by MATLAB/Simulink

Remote Laboratories at NIU and Beyond (Department of Electrical Engineering)

COMPLEX EMBEDDED SYSTEMS

Model-based Design/Simulation

Internet-Based Remote Control using a Microcontroller and an Embedded Ethernet Board 1

Low Power System Design

EMBEDDED SYSTEMS COURSE CURRICULUM

Experiment 1: Introduction to PC-Based Data Acquisition and Real-Time Control

M. Brett McMickell, Ph.D.

DT3016. High-Speed, Multifunction PCI Data Acquisition Board. Overview. Key Features. Supported Operating Systems

MATLAB/Simulink 기반의프로그래머블 SoC 설계및검증

Typhoon HIL ugrid DSP Interface. Rapidly develop, test, and deploy controllers for parallel converter systems and microgrids.

Objectives. Part 1: forward kinematics. Physical Dimension

Case Study on DiaHDL: A Web-based Electronic Design Automation Tool for Education Purpose

I Introduction to Real-time Applications By Prawat Nagvajara

White Paper. The advantages of using a combination of DSP s and FPGA s. Version: 1.0. Author: Louis N. Bélanger. Date: May, 2004.

Embedded Target for TI C6000 DSP 2.0 Release Notes

The Arduino Briefing. The Arduino Briefing

Extensible and Dynamic Data Structure Viewers in Java

LEGO Plus. Session 1420

TPMC x ADC, 16x/0x DAC and 8x Digital I/O. Version 1.0. User Manual. Issue May 2018

Basic Xilinx Design Capture. Objectives. After completing this module, you will be able to:

OP5600 & OP7000. High performance Real-Time simulators. Yahia Bouzid 25 th June2013

A variety of ECONseries modules provide economical yet flexible solutions. Waveform Generation

Canny Edge Detection Algorithm on FPGA

ET2640. Unit 5:ADVANCED I/O TECHNIQUES Pearson Education, Inc. Pearson Prentice Hall Upper Saddle River, NJ 07458

4I39 RS-422 ANYTHING I/O MANUAL

Quanser NI-ELVIS Trainer (QNET) Series: QNET ROTPEN. Rotary Pendulum (ROTPEN) User Manual. User Manual

Transcription:

Remote Motor Control Darko Hercog, Bojan Gergič, Vojko Matko, Karel Jezernik Faculty of Electrical Engineering and Computer Science, Maribor, Slovenia Key words: Remote Control, Remote Experiments, Motor Control, DSP, LabVIEW, MATLAB/Simulink. Abstract: A new approach for remote control experiment development is presented. The described solution is based on custom developed motor control hardware and two commercially available software packages i.e. MATLAB/Simulink and LabVIEW. MATLAB/Simulink is used for experiment control algorithm development and the LabVIEW for graphical user creation and remote operation. A combination of the presented hardware and software solutions enables quick and easy development of different remote control experiments. This article is supplemented with an example of a remote DC motor control. 1 Introduction Classical hands-on laboratories are usually fully occupied therefore students have to conclude their research in the time offered for experimental work. This problem can be reduced using remote experiments. When using remote experiments students operate with the real system although they are not physically present in the laboratory. Such a solution presents a cost effective way of opening up a laboratory for students 24 hours a day. Although remote experiments seem to be very useful, a lot of hard work is needed when setting them up. Designers must be acquainted with web servers operation, Java programming, CGI scripts, etc. In contrast, using the solution described in this present article, remote experiments can be developed quickly and with minimal effort. The presented solution relies on a DSP-2 motor controller developed by the Faculty of Electrical Engineering and Computer Science (FERI) Maribor, and two of the electrical engineering world s leading software packages, i.e. Matlab/Simulink from MathWorks Inc. and LabVIEW from National Instruments. Simulink is used for control algorithm development and LabVIEW for graphical user creation and remote control operation. Following one from the first remote laboratory developed in 1992 by SCiL (Stansford Center for Innovations in Learning), a variety of different approaches have been proposed for developing remote experiments or a remote laboratory. In many cases, the authors spent a lot of energy finding a simple solution, where only a standard web browser is needed by the remote user in order to perform remote experiments [1], [2]. In some others existing solutions the user must download special programmes that enable remote control [3]. In the majority of available remote experiments, remote users can run an experiment and adjust process or controller parameters from a set of predefined parameters. An interesting and advance remote laboratory has been presented by the members of Siena University [1]. Using an Automatic Control Telelab (ACT), the remote users can design a custom controller and reference signal on a local PC in Matlab/Simulink. After successful simulation, the remote user can download the designed controller to the ACT server, and also verify it on the real process. Although presented solution doesn t enable custom controller verification it has other qualities for example powerful DSP based controller, capability of rapid remote experiment development and real time operation. 1

This present article is divided into 5 sections. Section 2 contains a description of the DSP-2 motor controller, the programming possibilities using MATLAB/Simulink and an overview of the LabVIEW virtual instrument for the mentioned controller. Section 3 deals with the Remote Panels technology, which enables remote control of the LabVIEW programmes using a standard web browser. Section 4 contains an example of the remote DC motor control experiment, whilst in section 5 summarize the preference and weakness of described remote experiment solution. 2 Hardware and software components Section contains an overview of hardware and software components used in remote motor control experiment. 2.1 DSP-2 motor controller DSP-2 motor controller [4] was developed at FERI for the research of torque, speed and positon control of electrical motors. The main components of the afore mentioned controller are the Texas Instruments (TI) TMS320C32 floating point processor which is used for motor control algorithm's execution, and the Xilinx FPGA of the Spartan family, which implements the 3 phase pulse width modulator (PWM), and the peripheral s (Figure 1). In addition to the afore mentioned components, the DSP-2 controller contains all the necessary peripheral for AC and DC motor control i.e. it contains A/D and D/A converters, a pulse width modulator (PWM), an optically isolated digital I/O, connector for incremental encoder, RAM, FLASH ROM, CAN controller (Figure 1). JTAG RS485 RS232 CAN 16 GP I/O FLASH 256 x 8 SRAM 0WS 128K x 32 EEPROM 4...256kb SAE81C90 ADM232A LTC485 8 32 A/D A/D A/D A/D 400kS/s 12bit 12bit 12bit 12bit LPF I 2 C CAN RS232 RS485 Boundary Scan Logic LPF LPF DSP TMS320C32-60 EEPROM XilinX XCS40PQ240 A/D MUX LPF 0... 4V ± 2V ± 2V 8x ± 2V 16 DT PERIOD D/A INCR. ENC. D/A D/A 12bit 12bit + - I/O 0..4V -4..4V 0..4V Power supply supervisor H/W INTERLOCK MIN. DEADTIME RS422 3xIN 1xOUT XDS510 MPSD Port SERIAL PORT INVERTER 10 GPI/O PINS INC.ENC. Figure 1: block scheme of the DSP-2 motor controller DSP-2 pedagogic aids (Figure 6) have been developed, based on the DSP-2 motor controller. These aids are used in different control courses that are performed at FERI, and also in remote DC motor control experiment, described in a subsequent article. 2.2 Programming possibilities of the DSP-2 motor controller A set of Simulink blocks so-called the DSP-2 Library for Simulink [5] has been developed for the purpose of easy programming of the DSP-2 controller. DSP-2 Simulink library is composed of a few subsystems, the most important being the DSP-2 blocks (Figure 2). This subsystem contains input and output blocks (DSP-2 blocks) for the DSP-2 controller which, by using a Real-Time Workshop and Code Composer for the TI signal processors, enables 2

programming of the DSP-2 controller using the Simulink [5]. The DSP-2 blocks subsystem contains three types of DSP-2 blocks i.e. DSP-2 source blocks, DSP-2 sink blocks and the transformation blocks (Figure 2). The majority of these have their own graphical user s (GUI), where additional parameters can be customized which are specific to each block. Figure 2: Simulink DSP-2 blocks Almost any type of control or signal processing algorithm can be created under the Simulink frame by using the DSP-2 blocks and Simulink built-in blocks. Followings successful simulation, the Simulink model is converted to binary executable code, appropriate for the DSP-2 motor controller [5]. While the generated binary code is executing in real time on the embedded target i.e. on the DSP-2 controller, DSP-2 variable monitoring and parameter tuning is achieved using the DSP Terminal [7]. 2.3 LabVIEW virtual instrument for the DSP-2 controller The DSP Terminal [7] monitoring programme is a very simple and easy to use programme. However, the DSP Terminal has some weaknesses, for example the user cannot accommodate GUI to the customized needs, limitation of parameter range is impossible and DSP-2 variables can only be displayed on one graph. A decision was made to develop a LabVIEW virtual instrument (VI) named ComVIEW, which would eliminate the majority of the stated limitations. ComVIEW is an advanced LabVIEW virtual instrument composed of the main VI and a library of approximately 70 VI s. ComVIEW VI has been developed so that, only a basic knowledge of the G language is necessary when using it. This simplicity was achieved using the DSP Connection Manager window (Figure 3). The DSP Connection Manager appears immediately after the binary code starts executing on the DSP-2 controller. All information about the DSP-2 input variables, DSP-2 parameters and DSP-2 output variables, as well as all information about VI scalar controls and the indicators of front panel window, appear in the afore mentioned window (Figure 3). Using mouse clicks, the user can create links between the front panel indicators and the DSP-2 output variables, and links between the front panel controls and the DSP-2 input variable or DSP-2 parameter. When these links are made, the newly set control value of the front panel is immediately transferred from the PC to the DSP-2 controller. At the same time, all arrived DSP-2 output variables are read from the PC serial port and displayed in an appropriate indicator or graph. In addition to the DSP Connection Manager, ComVIEW contains a run time menu (Figure 9), where additional online options take place. These menu options enable the storing and loading 3

of current control vales to/from the file, setting the trigger signal, trigger level, trigger slope, and defining the signals to be captured. Figure 3: DSP Connection Manager The ComVIEW virtual instrument comes with an empty front panel and fully functional block diagram, which already contains all the necessary functions needed for correct operation. These functions implement VI initialization, executable code download to the DSP-2 controller, functions for receiving and transmitting messages between PC and the DSP-2 controller, etc. The user can fully accommodate the ComVIEW VI front panel and block diagram to the customized needs and, in such a way, take full advantage of the LabVIEW environment. Figure 4: block diagram of the ComVIEW VI 4

3 Remote Control Remote Panels technology developed by National Instruments enables the viewing and controlling of LabVIEW virtual instruments over the Internet. The LabVIEW VI can be published on the internet with no additional programming. The remote user can observe or control remote experiments by using only the standard web browser (Figure 9). Remote experiments can be developed in approximately one hour by using the hardware and software components described in the previous section, and the Remote Panels technology. Figure 5 presents the block scheme of such a remote control experiment. A DSP-2 motor controller, connected to the server through the serial port, implements a control algorithm developed using Simulink and, through the analog and digital I/O, drives the real process. ComVIEW VI and the LabVIEW server run on the server machine for the purpose of enabling the remote control of an experiment. ComVIEW VI performs communication between server and the DSP-2 controller and enables DSP-2 variable monitoring and parameter tuning, while the LabVIEW server enables remote operation of the ComVIEW VI. Remote users, connected to the server through the internet, must have a LabVIEW Run-Time Engine installed on the PC in order to perform remote experiments. Figure 5: block scheme of remote experiment using DSP-2 motor controller The user registration procedure is added to the programme, when ComVIEW is used as a Remote Panel. The user name and an e-mail address are required by the log-in window, when the remote user gains control over the VI. During the experiment, the remote user can adjust the controller or process parameters and send him experimental results via email. 4 Experiment: Remote DC Motor Control This section presents the realization of remote DC motor control using Simulink, ComVIEW VI DSP-2 motor controller and Remote Panels. The experimental system is shown in Figure 6. System is composed of the DSP-2 pedagogic aid, H-bridge and commercially available DC motor. 4.1 DC motor control algorithm Figure 7 presents a Simulink model of the DC motor cascade control. The Simulink model contains current, speed and position control loops, a position reference generator, and the DSP-2 DC motor subsystem. A proportional-integral (PI) controller is used in the current and speed control loop, whilst the position control loop is realized by using a proportional (P) controller. 5

Figure 6: DSP-2 pedagogic aid with the H-bridge and the DC motor Figure 7: Simulink model of current, speed and position control of the DC motor DC motor Interface subsystem (Figure 8) contains an algorithm for the armature current measurement, current offset compensation, speed and position of the motor shaft calculation, speed measurement filter, PWM signal generation, and the DC link voltage measurement. Afore mentioned subsystem is realized using DSP-2 blocks (these blocks are shaded in Figure 8), and the Simulink built-in blocks. An executable code is automatically generated from the Simulink model and downloaded to the DSP-2 motor controller [5] using Real-Time Workshop and the TI Code Composer. Next, the ComVIEW VI template is used for experiment GUI development. 6

4.2 Remote DC motor control Figure 8: Simulink DC motor DSP-2 Interface subsystem Figure 8 shows the GUI of the DC motor experiment. GUI was developed using the ComVIEW and by Remote Panels published on the internet. During remote operation, the remote user can start/stop the DC motor, set position reference, adjust current, speed and position controller parameters, reinitialize all parameters to the default values, observe DSP-2 variables in numerical or graphical view, select which DSP-2 variables will be captured and shown in a graph, select the trigger signal, trigger level, trigger slope, number of pre-samples and send results of remote operation via email. The e-mail attachment contains experimental results in a format appropriate for further offline analysis in MATLAB. The described experiment is accessible via the DSP-2 page [8]. Figure 9: Remote DC motor control user in a standard web browser 7

5 Conclusion Hardware and software solutions have been presented for developing remote control experiments. This solution represents an open architecture which can easily be adopted to the different remote experiments. Using the presented solution the developers don t need to waste time publishing remote experiments on the internet, therefore they can direct their energies to the experiment control algorithm design. In contrast to some existing remote experiment solutions, where only the pure web browser is needed by the remote user in order to perform experiment, the presented solution requires LabVIEW Run-Time Engine installed on the client computer. The described remote DC motor control experiment is currently in the test phase. Following this, variety of different remote experiments are intended to be developed which will serve as supplements to the classical laboratory exercises. References: [1] Marco Casini, Domenico Prattichizzo, Antonio Vicino: The Automatic Control Telelab, IEEE Control System Magazine, June 2004, Volume 24, Number 3, pages 36-44, ISSN 0272-1708; [2] Jose Sanchez, Sebastian Dormido, Rafael Pastor, Fernando Morilla: A Java/Matlab-Based Environment for Remote Control System Laboratories: Illustrated With an Inverted Pendulum, IEEE Transaction on Education, August 2004, Volume 47, Number 3, pages 321-329, ISSN 0018-9359; [3] Ingvar Gustavsson: LABORATORY EXPERIMENTS IN DISTANCE LEARNING, International Conference on Engineering Education, Oslo, Norway, August 6-10 2001, 8B1 pages 14-18; [4] Milan Čurkovič: DSP-2 User s Manual, version t3, March 2001, Institute of Robotics, FERI Maribor; [5] Darko Hercog: DSP-2 Library for Simulink User's Manual, May 2004, Institute of Robotics, FERI Maribor; [6] Darko Hercog, Milan Čurkovič, Gregor Edelbaher, Evgen Urlep: Programming of the DSP2 board with the Matlab/Simulink, International conference on industrial technology [also] IEEE ICIT 2003, Hotel Habakuk Maribor, Slovenia, December 10-12, 2003. Proceedings. Piscataway: IEEE, 2003, str. 709-713; [7] Evgen Urlep: DSP Terminal User s Manual, May 2004, Institute of Robotics, FERI Maribor; [8] DSP-2 web page: wwww.ro.feri.uni-mb.si/projekti/dsp2 Authors: Darko Hercog, B. Sc. Faculty of Electrical Engineering and Computer Science, Laboratory for Electrical Measurement Smetanova ulica 17, 2000 Maribor, Slovenia darko.hercog@uni-mb.si Bojan Gergič, Ph.D. Faculty of Electrical Engineering and Computer Science, Laboratory for Electrical Measurement Smetanova ulica 17, 2000 Maribor, Slovenia bojan.gergic@uni-mb.si Vojko Matko, Ph.D. Faculty of Electrical Engineering and Computer Science, Laboratory for Electrical Measurement Smetanova ulica 17, 2000 Maribor, Slovenia vojko.matko@uni-mb.si 8

Karel Jezernik, Ph.D. Faculty of Electrical Engineering and Computer Science, Institute of Robotics Smetanova ulica 17, 2000 Maribor, Slovenia karel.jezernik@uni-mb.si 9