Design of Real-time Controller Based on AVR and the Application of It to the Fermentation Process
- Author
- NiuZuo
- Advisor
- LiuFei
- School
- Jiangnan University
- Major
- Control Theory and Control Engineering
- Classification
- TP273 Automatic control,automatic control system
- Degree
- Master's thesis
- Year
- 2008
- Downloads
- 166
- Citations
- 2
Abstract
Process automatic control as an important branch of automation technology, has developed rapidly in recent years. With the rising of people's living standards, and closely related to people's lives fermentation, food, textile, paper, etc. the Light Chemical industry, has become a hotspot of research and development. The fermentation process is an important part of the light chemical industry, due to the complexity of the mechanism of microbial fermentation process influenced by many factors, Therefore, the automatic control of the fermentation process is more and more urgent, the computer control system of the fermentation process of the implementation of online detection and effective real-time on-line control becomes increasingly important. The development of microelectronics technology rising, the performance of the single-chip microcontroller-based controller, a low-cost, high-cost-effective, widely used in various control site. This topic Application Light Chemical Engineering background, the choice of the ATmega128 and ATmega64 ATMEL AVR microcontroller series, designed and implemented based on the the AVR's real-time process controller. This system has a simple structure, high reliability, and small investment. Fermentation process focused around the reliability and usefulness of the system, a detailed description of the system's hardware, service program design implementation, and control algorithms to explore research. The main subject of include the following: (1) the hardware design. Processors and peripheral devices, according to the hardware requirements for the selection, design of printed circuit boards. The controller by the main control board and the display control panel. The main control panel of the AVR ATmega128 processor. Display control panel using ATmega64 processor. The controller uses the communication between the RS-232 physical layer interface as the host computer and the main control board and the main control panel display control panel AVR TWI bus interface implementation. (2) software design. Feature to determine the overall framework, modular architecture, integrated fermentation process control algorithm to achieve complete data acquisition, communication, self-test failure, output control, and other functions. Analog input section, the design uses oversampling techniques, programming the ATmega128 microcontroller comes with 10-bit AD converter accuracy increased to 12. Fermentation controller communicates with the host computer using the MODBUS protocol is an application layer protocol, its AVR USART interface, combined with the control process requires the appropriate adjustments. The main function of the main control board is itself captured signal, as well as the data obtained by the communication with the analysis and processing, and the abnormality and failure of the reaction and treatment. The display control panel main function is to receive the input signal from the main controller, and in accordance with the instruction of the main controller to the corresponding output display. (3) to explore and study the fermentation process control algorithm and the biological fermentation experiment platform, fermentation controller testing and functional verification. Through the system board, welding, hardware and program debugging controller has good reliability and stability to meet the control requirements.
Table of contents
Abstract 3-4
ABSTRACT 4-9
first chapter 9-15
1.1 process control development and status quo 9-10
1.2 single-chip real-time control system 10-11
1.3 AVR microcontroller features 11-12
1.3.1 the AVR with several commonly used microcontroller comparison 11-12
1.3.2 ATmega128 12
1.3.3 ATmega64 12
1.4 AVR microcontroller system development tools 12-13
1.4.1 ICCAVR 13
1.4.2 AVRstudio4 13
1.5 computer-controlled fermentation process 13-14
1.6 This research significance and main tasks 14-15
controller hardware design 15-22
2.1 controller hardware overall design 15
2.2 main control board design 15-20
2.2.1 reset circuit and crystal oscillator circuit 15-16
2.2.2 JTAG and ISP interface 16-17
2.2.3 Power-down data protection circuit 17
2.2.4 external data memory 17-18
2.2.5 Analog I / O channels 18-19
2.2.6 the amount of data I / O channels 19
2.2.7 TWI interface 19-20
the 2.2.8 serial interface circuit 20
2.3 data display control panel design 20-22
2.3.1 reset circuit, crystal oscillator circuit with JTAG interface 21
2.3.2 parameter display circuit 21
2.3.3 auxiliary analog input channels 21
2.3.4 TWI interface 21-22
Chapter controller programming 22-47
3.1 main control board service program designed 22-45
3.1.1 EEPROM read and write drive 22-25
3.1.2 Analog I / O channel service program 25-30
3.1.3 TWI communication 30-32
3.1.4 Digital I / O channel service program 32-35
3.1.5 parameters set drive 35-36
3.1.6 ATmega128 ATmega64 TWI communication from the controller 36-37
3.1.7 upper and lower machine serial communication to achieve 37-41
3.1.8 Bootloader Download 41-45
3.2 Display control panel service procedures designed 45-47
3.2.1 LED data display 45
3.2.2 TWI driver receives from the machine to achieve 45-46
3.2.3 Analog input processing 46-47
Chapter controller in the fermentation process, the overall program 47-56
4.1 experimental platform 47
4.2 functions divided 47-48
4.3 hardware input and output planning 48-50
4.4 service routine processing 50-54
4.4.1 processing 51-53
4.4.2 Modbus message frame application definition 53-54
4.5 debug 54-56
Chapter fermentation control algorithm research 56-65
5.1 fermentation process control analysis 56-57
5.2 PID control 57-58
5.3 Cascade control 58-59
5.4 fuzzy control 59-65
5.4.1 real measurement data based on a binary number pretreatment 60
5.4.2 input fuzzy 60-61
5.4.3 rule base to develop 61-62
5.4.4 reasoning based on the fuzzy subset of the binary number 62-65
Chapter Summary and Reflections 65-66
6.1 summarizes 65
6.2 thinking 65-66
Acknowledgements 66-67
the
References 67-70
the
Appendix A: of papers published during the master's degree 70-71
Appendix B: main control experiment board 71-72
The
Appendix C: minimum main control board 72-73
The
Appendix D: display control panel 73-74
Appendix E: Controller physical map 74
Related dissertations
- Design and Implementation of Monitoring System for Industrial Rice Breeding
- The Design and Implementation of Remote Wireless Data Collection System for Agricultural Microclimate Based on AVR
- The Research of Real-time Simulation Experiment of Process Controlbased on Web
- Research of System Integration and Application Based on Proflbus-DP and Modbus
- Microcomputer-controled Precision AC High-Voltage Power
- The Research on the Stability Control of Two-wheeled Self-balancing Robot Based on Genetic Algorithms
- Audio Decoder Clock Jitter Reduction Circuit Base on FPGA
- IC Design of Second-order Fully Differential Sigma-delta Modulator
- Research and Design of Decimation Filter in16-bit Sigma-delta ADC
- Research and Implementation of the Analog Circuit in the DVI Receiver
- Epidemiological Investigation of Hypertensive Retinopathy in Part Residents of Shandong Province
- Aquaculture Aeration Intelligent Systems
- Design of Three Phase Energy Meter Based on Modbus
- Design and Implementation of Substation Remote Terminal Unit
- Research on the Movement Mechanism and Characteristics of Four-stroke Single-piston Hydraulic Free Piston Engine
- Urea Injecting Pump Monitor System Applied in Exhaust-treatment of Diesel Vehicle
- Reserch of Automatic Focusing Control and Assembly Technolog of Vehicle Camera
- Research on Real-time Control for Motion Platform of Subway Simulator
- Analog Control System Based on Virtual Instrument of Vehicle-Mounted Gun Study
- Research on Fuzzy-PID Control Method of Three-DOF Helicopter Model