Research of RTOS Based Versatile PID Controller
- Author
- HaoDeNing
- Advisor
- JiangXueDong
- School
- Beijing Jiaotong University
- Major
- Power Electronics and Power Drives
- Classification
- TP273 Automatic control,automatic control system
- Degree
- Master's thesis
- Year
- 2008
- Downloads
- 96
- Citations
- 0
Abstract
This paper mainly reaches the design and realization of a versatile digital PID controller.The digital PID algorithm is widely used in industry,and many controllers work based on this theory,with specific functions,there are many different applications with different performance requirements,and the controlled object differs such as voltage,current,or equivalent resistance,the purpose of this paper is to present the design of a versatile PID controller and its application,detailed information of both hardware and software is contained in the paper,it is applied in three-phase full bridge circuit and proved excellent performance,and there is a large space of further application.The hardware of the versatile PID controller uses the ARM7 core S3C44BOX as the CPU,I/O module contains 4*4 matrix keyboards and 640*480 LCD and UART,the signal is sampled by the internal 10 bits ADC module of the CPU,it is competent for common use,two feedback interfaces(voltage,current)are adopted.The PWM is used as the output function,0~5v control signal is obtained by low pass filter and it connected to the trigger module of the main circuit.The embedded real time operating kernel uC/OSⅡis adopted as the main part of the system software,the GUI software package is used to manage input and output,the incremental PID algorithm is selected for calculation.The uC/OSⅡmanages the running of each task,and uC/GUI is responsible for LCD display and keyboards scanning.The PC end software is designed using C#.The versatile PID controller is now capable of stable voltage limited current control, stable current limited voltage control and constant V/I control and each mode can be shifted between each other manually or automatically,RTC is adopted as system clock, tasks can start at specific time or shift mode,the PC end software can be used to monitor the state of the hardware system.In the last chapter of this paper the application of this system in three-phase full bridge circuit is presented with detailed debugging trouble shooting.
Table of contents
Acknowledgements 5-6
Chinese Abstract 6-7
ABSTRACT 7-11
1 Introduction 11-15
a 1.1 research background and significance 11
1.2 General PID controller design ideas 11-15
the
a 1.2.1 embedded systems hardware framework 11-12
1.2.2 embedded operating system-based programming ideas 12-13
the
the 1.2.3 General PID controller hardware system design 13-14
1.2.4 General PID controller software system design 14-15
generic PID controller hardware system design and implementation 15-23
2.1 based the ARM7 core S3C44BOX minimum system design 15-17
2.1.1 power circuit 15-16
2.1.2 crystal oscillator circuit and reset circuit 16
2.1.3 memory expansion 16-17
2.2 system peripheral interface circuit design 17-23
2.2.1 using UART communication interfaces 17
2.2.2-based the EPROM data storage interface circuit design 17-20
2.2.2.1 Ⅱ C bus common transmission format 18-20
the
2.2.2.1.1 start and stop conditions 18-19
the
2.2.2.1.2 of data transmission format 19
the
2.2.2.1.3 response signal 19-20
2.2.3 input output interface circuit 20-23
2.2.3.1 LCD interface design 20-21
2.2.3.2 matrix keyboard interface circuit design 21-23
General PID controller software system design and implementation 23-68
3.1 embedded operating system kernel uC / OS Ⅱ program designed 23-33
3.1.1 uC / OS II structure analysis 23-24
3.1.2 Portable Operating System preparations 24-25
3.1.3 uC / OS Ⅱ transplant concrete realization 25-33
3.1.3.1 create ADS project 27-28
3.1.3.2 write the source processor 28-29
3.1.3.3 uC / OS Ⅱ source code package add and modify 29-33
3.2 system GUI package design 33-40
3.2.1 graphical user interface uC / GUI written 35-37
3.2.2 LCD driver design 37-40
3.2.2.1 LCD LCD scan timing 37-38
3.2.2.2 LCD driver design to complete 38-40
3.3 uC / GUI-based controller interface design 40-47
3.3.1 design ideas 40
3.3.2 General PID controller boot interface design 40-41
3.3.3 control panel interface 41-45
3.3.4 monitoring voltage current curve design 45-47
3.4 controller functions to achieve - based software design task (Task) 47-64
3.4.1 task function to write 47-49
3.4.2 PID controller system tasks and communication 49-50
3.4.3 main task 50-51
3.4.4 digital PID tasks 51-57
3.4.4.1 Overview of digital PID 52-54
3.4.4.2 digital PID implementation 54-55
3.4.4.3 digital PID controller improvements and specific procedures to achieve 55-57
3.4.5 serial communication tasks 57-58
3.4.6 Real-time clock task 58-59
3.4.7 keyboard tasks 59-60
3.4.8 GUI tasks 60-63
3.4.9 Ⅱ C bus-based data retention task 63-64
3.5 PC software written 64-68
3.5.1 programming language based on C # WinForm programming 64-65
3.5.2 serial communication design 65-68
3.5.2.1 serial receiver data 65-66
3.5.2.2 serial send data 66
3.5.2.3 GUI voltage, current Curve 66
3.5.2.4 Real-time curve plotted 66-68
4 generic PID controller in the application of three-phase full-controlled bridge rectifier circuit 68-81
4.1 main circuit and the trigger circuit 68-69
4.2 interface circuit design 69-70
4.3 the General PID controller software design 70-74
4.3.1 Trigger Board control signal output 71-72
4.3.2 the enable signal 72-74
4.4 debugging process 74-81
4.4.1 main circuit feedback loop adjustment 74-76
4.4.2 running system 76-79
4.4.2.1 boot interface 76
4.4.2.2 Control panel 76-77
4.4.2.3 running system 77-79
4.4.3 PID parameter tuning 79-81
5 summarizes 81-83
the
References 83-84
the
Appendix A physical map 84-85
the
trigger circuit 84
the
experimental platform 84-85
Appendix B control system schematics and PCB 85-86
schematic 85
PCB 85-86
of resume The 86-88
the
Dissertation datasets 88
Related dissertations
- Research on the System of Sitting Two-wheeled Self-balancing Vehicle
- Building of Hardware Platform and Study of Control for Dual-motor Windshield Wiper System
- A gun automatic for the digital bullet machine servo drive control
- With the design and research of pneumatic control experimental platform
- Application of Priority Mechanism in Embedded Metering Pumps Monitoring System
- The Research of Detection Technology of Water Activity in Foods Based on Peltier Effect
- The Research of the Control System of the Underwater Glider by Electricity
- Research and Design of a Variable Voltage AC Power Supply with Numerical Control
- The Study of Digital Control Switching Power Supply Based on Si825x
- Research on Digital Controlled Forward Converter with Active-Clamp Reset
- Design and Study on the Control System of Magnetic Suspending Plane Based on PC
- Research of Power Amplifier of Active Magnetic Bearings Based on the Accommodating Digit PID
- Shipboard monitoring and control radar antenna control system to improve the design
- Design and Simulation of Full Digital Power Control System for Hydrogen Manufacture by Electrolysi
- The axial maglev rotor control system control study
- Design of the Embeded Devices Based on Industrial Ethernet
- Study on the Energy-saving Control System in Hydraulic Excavator
- The DSP Controller of DC/DC Converter
- Research on a New Type of Axle Temperature Detecting and Generator Controlling in Railway Carriage
- Study on the Application of GAAA in the Control of Linear Pulse Motors