Software Development of a Digital Servocontrol System

Author
TU ALICE
Advisor
FAN WEIHUA
School
Nanjing University of Technology and Engineering
Major
Control Science and Engineering
Classification
TP273 Automatic control,automatic control system
Degree
Master's thesis
Year
2011
Downloads
9
Citations
0

Request the full text

Abstract

This paper is the synthesis of six months of work for a master thesis at the university Nanjing University of Science and Technology (NJUST) located in China in the city of Nanjing during the school year 2010-2011. The project was proposed for replacing an old servocontrol system for controlling the position of an AC motor used in some laboratories of NJUST by students during practical exercises. However the new system met some technical problems and the finality of the project was changed at the last moment and the software development result is a sort of digital servocontrol system simulator (although the original project was modified, this paper also describes a part of the software development of the new servocontrol system for replacing the old system).An evaluation board based on processor Philips LPC2142 (processor ARM7) is used for emulating the position of an alternative current motor (AC motor) to control while a PC is used as graphical user interface (GUI used for setting controller parameters and observing the system performances) and as digital controller. The data transfer between the PC and the evaluation board is ensured by Universal Serial Bus (USB). Then the software development is composed of the development of a graphical user interface using GTK+2 library package, the implementation of an AC motor model (to control in position) into the evaluation board, the development of a digital PID controller with feedforward command with six levels of error correction (one level of error correction corresponds to one set of controller’s gains for correcting a certain range of error) on the PC side, and the establishment of a USB data transfer between the PC and the evaluation board.The realization of this project is mainly divided into five steps:(1) Gathering of knowledge about the programming and the use of the hardware (understand the functioning and the programming of the evaluation board based on the processor ARM7, understand the USB norm and the USB firmware/driver programming, choose the library for designing the graphical user interface);(2) Planning of the software development and establishment of the global system functioning;(3) Programming of the graphical user interface;(4) Programming of the USB data transfers between the PC and the evaluation board, and test the display of curves in real time; (5) Implementation of the AC motor model in the evaluation board side and implementation of the digital PID+feedforward controller on the PC side;(6) General software debugging and testing of the controller performances.The simulations ran show the good functioning of the graphical user interface and the good data transfer between the PC and the evaluation board. The simulations’results show that a PID+feedforward controller with six levels of error correction permits to get better performance in the case of a slope input but in the case of a step or sine input signals it does not bring any improvement and the use of a classical PID+feedforward controller with one level of correction is sufficient.Generally speaking, the design of a graphical user interface in system control applications is useful for the tuning of the controller parameters and for observing the system performances while the use of the Universal Serial Bus in the project shows the possibility to establish data transfer between a PC and any embedded systems via USB instead of using classical interfaces such as ISA interface (Industry Standard Architecture bus interface) or RS-232 interface which are not provided on most of the recent PCs.

Table of contents

Abstract 3-8 List of tables 8 List of figures 8-10 Chapter 1 Introduction 10-15 1.1 Motivation 10-11 1.2 Some definitions 11-12 1.2.1 Servosystem 11-12 1.2.2 Digital controller 12 1.2.3 Real time control system 12 1.3 Technology status 12-14 1.3.1 Universal Serial Bus (USB) 12-13 1.3.2 Controllers for servosystem 13-14 1.4 Organization of the dissertation 14-15 Chapter 2 Presentation of the project 15-25 2.1 Context 15-16 2.2 System overview 16-18 2.2.1 Overview of the final system designed 16 2.2.2 Overview of the original system to design 16-18 2.2.3 Objectives 18 2.3 Hardware structure 18-22 <br / > 2.3.1 LPC2142 processor 18 2.3.2 Control board of the original system 18-21 2.3.3 Evaluation board used in the system designed 21 -22 2.4 System requirements 22-24 2.4.1 Requirements 22-23 2.4.2 Data flows 23-24 <br / > 2.5 Summary of chapter 2 24-25 Chapter 3 Software design 25-54 3.1 Software on the control board (original project) 25-29 3.2 Software on the evaluation board (present project) 29-32 3.3 USB software development for PC and LPC2142 32-44 3.3.1 General functioning of the USB 32-35 3.3.2 Introduction to USB software development 35-36 3.3.3 LPC214x USB API for Windows operating system 36-38 3.3.4 USB device firmware for the LPC214x board: USB214x 38-41 3.3.5 Development of the USB driver in the original project 41-42 3.3. 6 Development of the USB driver in the present project 42-44 3.4 Design of the graphical user interface 44-53 3.4.1 Requirements 44-45 3.4.2 Composition of the main window 45-47 3.4.3 Other useful windows 47-49 3.4.4 Source code structure 49-53 3.4.5 Composition of the source code (file management) 53 3.5 Summary of chapter 3 53-54 Chapter4 PID design for AC servosystem 54-66 4.1 Definitions 54-56 4.1.1 Feedback control loop 54 4.1.2 Controller modes 54 - 55 4.1.3 Feedforward control 55-56 4.2 Control of AC servosystem 56-62 4.2.1 General presentation of AC motors 56 4.2.2 Mathematical model of a permanent magnet synchronous motor 56-59 4.2.3 Model used and implemented in the evaluation board 59 4.2.4 Position control with digital PID controller feedforward controller 59-60 4.2.5 Digital controller (PID feedforward) 60-62 4.3 Simulation on SIMULINK 62-65 4.3.1 Simulink model 62 4.3.2 General tuning method 62-63 4.3.3 Results obtained 63-65 4.4 Summary of chapter 4 65-66 Chapter5 Results and analysis 66-79 5.1 Steps for launching a simulation 66-68 5.2 Tuning of the six sets of the controller 68-77 5.2.1 Controller specificity 68 5.2.2 Tuning method 68-69 5.2. 3 Tuning and Results obtained 69-77 5.3 Global evaluation 77-79 5.3.1 Graphical user interface 77-78 5.3.2 USB communication 78 5.3.3 Control performance 78-79 Chapter 6 Conclusion 79-80 APPENDIX A: LPC2142 Code samples 80-86 APPENDIX B: Graphical user interface-Description 86-100 APPENDIX C: Technical note-install and use USB driver / API 100-101 <br / > Abbreviations 101-102 Acknowledgements 102-103 References 103-105

Related dissertations

  1. The Preliminary Design of the Real-time Control of the Super-short-range Antimissile System
  2. Development of the Three Degree-of-Freedom Platform for the Flight Simulator
  3. Embedd-system Base on μC/OS-Ⅱ
    ZhangJun ·Harbin Engineering University ·2005 ·Master's thesis
  4. Research and Design of Magnetic Suspension Ball Control System Testing Platform
  5. Design and Implementation of Four Channels High Speed Synchronous Sampling in Sound Source Localization System
    ZhengZuo ·Hebei University of Technology ·2013 ·Master's thesis
  6. Usb Without Invasive Data Collection Technology Research
  7. Hardware Design for Circuit Fault Diagnosis System Based on JTAG Interface
  8. Study on FPGA Research and Implementation of Multi-Channel Image Acquistion System
  9. Grating Data Acquisition and Error Correction Technology
    DongShanShan ·Hefei University of Technology ·2014 ·Master's thesis
  10. CCD Data Acquisition System Implementation Based on FPGA
    LiuYu ·Anhui University ·2014 ·Master's thesis
  11. Research of Data Acquistion System Based on FPGA
    XuLongFei ·University of North ·2014 ·Master's thesis
  12. The Research of Real-time Simulation Experiment of Process Controlbased on Web
    FengWeiWei ·Harbin Institute of Technology ·2012 ·Master's thesis
  13. Reaserch on Design and Simulation of Intelligent Adaptive PID Controllers
    ZhaoMin ·Harbin Institute of Technology ·2012 ·Master's thesis
  14. Microcomputer-controled Precision AC High-Voltage Power
  15. Research of PID Controller Based on Improved Artificial Fish Swarm Algorithm
  16. Research on Synchronization Control for the Phase Center Robot
  17. Research and Design of Embedded Control System of Lower Limb Rehabilitation Robot
    GuoJianLi ·Hebei University of Technology ·2013 ·Master's thesis
  18. The Research on the Stability Control of Two-wheeled Self-balancing Robot Based on Genetic Algorithms
  19. Research and design of intelligent 3D pulse peak field strength tester
  20. Research on Digital Measurement and Control Technology of Micromachined Thermal Expansion Gyroscope