2022年基于单片机的温度控制外文文献及中文翻译.docx

上传人:l*** 文档编号:10229870 上传时间:2022-04-09 格式:DOCX 页数:23 大小:27.88KB
返回 下载 相关 举报
2022年基于单片机的温度控制外文文献及中文翻译.docx_第1页
第1页 / 共23页
2022年基于单片机的温度控制外文文献及中文翻译.docx_第2页
第2页 / 共23页
点击查看更多>>
资源描述

《2022年基于单片机的温度控制外文文献及中文翻译.docx》由会员分享,可在线阅读,更多相关《2022年基于单片机的温度控制外文文献及中文翻译.docx(23页珍藏版)》请在taowenge.com淘文阁网|工程机械CAD图纸|机械工程制图|CAD装配图下载|SolidWorks_CaTia_CAD_UG_PROE_设计图分享下载上搜索。

1、2022年基于单片机的温度控制外文文献及中文翻译 Temperature Control Using a Microcontroller: An Interdisciplinary Undergraduate Engineering Design Project James S. McDonald Department of Engineering Science Trinity University San Antonio, TX 78212 Abstract:This paper describes an interdisciplinary design project which was

2、 done under the authors supervision by a group of four senior students in the Department of Engineering Science at Trinity University. The objective of the project was to develop a temperature control system for an air-filled chamber. The system was to allow entry of a desired chamber temperature in

3、 a prescribed range and to exhibit overshoot and steady-state temperature error of less than 1 degree Kelvin in the actual chamber temperature step response. The details of the design developed by this group of students, based on a Motorola MC68HC05 family microcontroller, are described. The pedagog

4、ical value of the problem is also discussed through a description of some of the key steps in the design process. It is shown that the solution requires broad knowledge drawn from several engineering disciplines including electrical, mechanical, and control systems engineering. 1 Introduction The de

5、sign project which is the subject of this paper originated from a real-world application. A prototype of a microscope slide dryer had been developed around an OmegaTM model CN-390 temperature controller, and the objective was to develop a custom temperature control system to replace the Omega system

6、. The motivation was that a custom controller targeted specifically for the application should be able to achieve the same functionality at a much lower cost, as the Omega system is unnecessarily versatile and equipped to handle a wide variety of applications. The mechanical layout of the slide drye

7、r prototype is shown in Figure 1. The main element of the dryer is a large, insulated, air-filled chamber in which microscope slides, each with a tissue sample encased in paraffin, can be set on caddies. In order that the paraffin maintain the proper consistency, the temperature in the slide chamber

8、 must be maintained at a desired temperature. A second chamber houses a resistive heater and the temperature controller, and a fan mounted on the end of the dryer blows air across the heater, carrying heat into the slide chamber. This design project was carried out during academic year 199697 by fou

9、r students under the authors supervision as a Senior Design project in the Department of Engineering Science at Trinity University. The purpose of this paper is to describe the problem and the students solution in some detail, and to discuss some of the pedagogical opportunities offered by an interd

10、isciplinary design project of this type. The students own report was presented at the 1997 National Conference on Undergraduate Research 1. Section 2 gives a more detailed statement of the problem, including performance specifications, and Section 3 describes the students design. Section 4 makes up

11、the bulk of the paper, and discusses in some detail several aspects of the design process which offer unique pedagogical opportunities. Finally, Section 5 offers some conclusions. 2 Problem Statement The basic idea of the project is to replace the relevant parts of the functionality of an Omega CN-3

12、90 temperature controller using a custom-designed system. The application dictates that temperature settings are usually kept constant for long periods of time, but its nonetheless important that step changes be tracked in a “reasonable” manner. Thus the main requirements boil down to allowing a cha

13、mber temperature set-point to be entered, displaying both set-point and actual temperatures, and tracking step changes in set-point temperature with acceptable rise time, steady-state error, and overshoot. Although not explicitly a part of the specifications in Table 1, it was clear that the custome

14、r desired digital displays of set-point and actual temperatures, and that set-point temperature entry should be digital as well . 3 System Design The requirements for digital temperature displays and setpoint entry alone are enough to dictate that a microcontrollerbased design is likely the most app

15、ropriate. Figure 2 shows a block diagram of the students design. The microcontroller, a MotorolaMC68HC705B16 , is the heart of the system. It accepts inputs from a simple four-key keypad which allow specification of the set-point temperature, and it displays both set-point and measured chamber tempe

16、ratures using two-digit seven-segment LED displays controlled by a display driver. All these inputs and outputs are accommodated by parallel ports on the 6805. Chamber temperature is sensed using a pre-calibrated thermistor and input via one of the 6805s analog-to-digital inputs. Finally, a pulse-wi

17、dth modulation output on the 6805 is used to drive a relay which switches line power to the resistive heater off and on. Figure 3 shows a more detailed schematic of the electronics and their interfacing to the 6805. The keypad, a Storm 3K041103, has four keys which are interfaced to pins PA0 PA3 of

18、Port A, configured as inputs. One key functions as a mode switch. Two modes are supported: set mode and run mode. In set mode two of the other keys are used to specify the set-point temperature: one increments it and one decrements. The fourth key is unused at present. The LED displays are driven by

19、 a Harris Semiconductor ICM7212 display driver interfaced to pins PB0PB6 of Port B, configured as outputs. The temperature-sensing thermistor drives, through a voltage divider, pin AN0 . Finally, pin PLMA drives the heater relay. Software on the 6805 implements the temperature control algorithm, mai

20、ntains the temperature displays, and alters the set-point in response to keypad inputs. Because it is not complete at this writing, software will not be discussed in detail in this paper. The control algorithm in particular has not been determined, but it is likely to be a simple proportional contro

21、ller and certainly not more complex than a PID. Some control design issues will be discussed in Section 4, however. 4 The Design Process Although essentially the project is just to build a thermostat, it presents many nice pedagogical opportunities. The knowledge and experience base of a senior engi

22、neering undergraduate are just enough to bring him or her to the brink of a solution to various aspects of the problem. Yet, in each case, realworld considerations complicate the situation significantly. Fortunately these complications are not insurmountable, and the result is a very beneficial desi

23、gn experience. The remainder of this section looks at a few aspects of the problem which present the type of learning opportunity just described. Section 4.1 discusses some of the features of a simplified mathematical model of the thermal properties of the system and how it can be easily validated e

24、xperimentally. Section 4.2 describes how realistic control algorithm designs can be arrived at using introductory concepts in control design. Section 4.3 points out some important deficiencies of such a simplified modeling/control design process and how they can be overcome through simulation. Final

25、ly, Section 4.4 gives an overview of some of the microcontroller-related design issues which arise and learning opportunities offered. 4.1 MathematicalModel Lumped-element thermal systems are described in almost any introductory linear control systems text, and just this sort of model is applicable

26、to the slide dryer problem. Figure 4 shows a second-order lumped-element thermal model of the slide dryer. The state variables are the temperatures Ta of the air in the box and Tb of the box itself. The inputs to the system are the power output q of the heater and the ambient temperature T. ma and m

27、b are the masses of the air and the box, respectively, and Ca and Cb their specific heats. 1 and 2 are heat transfer coefficients from the air to the box and from the box to the external world, respectively. Its not hard to show that the state equationscorresponding to Figure 4 are Taking Laplace tr

28、ansforms of and and solving for Ta, which is the output of interest, gives the following open-loop model of the thermal system: where K is a constant and D is a second-order polynomial.K, tz, and the coefficients of D are functions of the variousparameters appearing in and .Of course the various par

29、ameters in and are completely unknown, but its not hard to show that, regardless of their values, D has two real zeros. Therefore the main transfer function of interest , since well assume constant ambient temperature) can be written Moreover, its not too hard to show that 1=tp1 <1=tz <1=tp2,

30、i.e., that the zero lies between the two poles. Both of these are excellent exercises for the student, and the result is the openloop pole-zero diagram of Figure 5. Obtaining a complete thermal model, then, is reduced to identifying the constant K and the three unknown time constants in . Four unkno

31、wn parameters is quite a few, but simple experiments show that 1=tp1 _ 1=tz;1=tp2 so that tz;tp2 _ 0 are good approximations. Thus the open-loop system is essentially first-order and can therefore be written . Simple open-loop step response experiments show that,for a wide range of initial temperatu

32、res and heat inputs, K _0:14 _=W and t _ 295 s.1 4.2 Control System Design Using the first-order model of for the open-loop transfer function Gaq and assuming for the moment that linear control of the heater power output q is possible, the block diagram of Figure 6 represents the closed-loop system.

33、 Td is the desired, or set-point, temperature,C is the compensator transfer function, and Q is the heater output in watts. Given this simple situation, introductory linear control design tools such as the root locus method can be used to arrive at a C which meets the step response requirements on ri

34、se time, steady-state error, and overshoot specified in Table 1. The upshot, of course, is that a proportional controller with sufficient gain can meet all specifications. Overshoot is impossible, and increasing gains decreases both steady-state error and rise time. Unfortunately, sufficient gain to

35、 meet the specifications may require larger heat outputs than the heater is capable of producing. This was indeed the case for this system, and the result is that the rise time specification cannot be met. It is quite revealing to the student how useful such an oversimplified model, carefully arrive

36、d at, can be in determining overall performance limitations. 4.3 Simulation Model Gross performance and its limitations can be determined using the simplified model of Figure 6, but there are a number of other aspects of the closed-loop system whose effects on performance are not so simply modeled.

37、Chief among these are quantization error in analog-to-digital conversion of the measured temperature and the use of PWM to control the heater. Both of these are nonlinear and time-varying effects, and the only practical way to study them is through simulation . Figure 7 shows a SimulinkTM block diag

38、ram of the closed-loop system which incorporates these effects. A/D converter quantization and saturation are modeled using standard Simulink quantizer and saturation blocks. Modeling PWM is more complicated and requires a custom S-function to represent it. This simulation model has proven particula

39、rly useful in gauging the effects of varying the basic PWM parameters and hence selecting them appropriately. PWM is often difficult for students to grasp, and the simulation model allows an exploration of its operation and effects which is quite revealing. 4.4 The Microcontroller Simple closed-loop

40、 control, keypad reading, and display control are some of the classic applications of microcontrollers, and this project incorporates all three. It is therefore an excellent all-around exercise in microcontroller applications. In addition, because the project is to produce an actual packaged prototy

41、pe, it wont do to use a simple evaluation board with the I/O pins jumpered to the target system. Instead, its necessary to develop a complete embedded application. This entails the choice of an appropriate part from the broad range offered in a typical microcontroller family and learning to use a fa

42、irly sophisticated development environment. Finally, a custom printed-circuit board for the microcontroller and peripherals must be designed and fabricated. Microcontroller Selection. In view of existing local expertise, the Motorola line of microcontrollers was chosen for this project. Still, this

43、does not narrow the choice down much. A fairly disciplined study of system requirements is necessary to specify which microcontroller, out of scores of variants, is required for the job. This is difficult for students, as they generally lack the experience and intuition needed as well as the perseve

44、rance to wade through manufacturers selection guides. Part of the problem is in choosing methods for interfacing the various peripherals . A study of relevant Motorola application notes 2, 3, 4 proved very helpful in understandingwhat basic approaches are available, and what microcontroller/peripher

45、al combinations should be considered. The MC68HC705B16 was finally chosen on the basis of its availableA/D inputs and PWMoutputs as well as 24 digital I/O lines. In retrospect this is probably overkill, as only one A/D channel, one PWM channel, and 11 I/O pins are actually required . The decision wa

46、s made to err on the safe side because a complete development system specific to the chosen part was necessary, and the project budget did not permit a second such system to be purchased should the first prove inadequate. Microcontroller Application Development. Breadboarding of the peripheral hardw

47、are, development of microcontroller software, and final debugging and testing of a custom printed-circuit board for the microcontroller and peripherals all require a development environment of some kind. The choice of a development environment, like that of the microcontroller itself, can be bewilde

48、ring and requires some faculty expertise. Motorola makes three grades of development environment ranging from simple evaluation boards to full-blown real-time in-circuit emulators . The middle option was chosen for this project: the MMEVS, which consists of _ a platform board , _ an emulator module

49、, and _ a cable and target head adapter . Overall, the system costs about $900 and provides, with some limitations, in-circuit emulation capability. It also comes with the simple but sufficient software development environment RAPID 5. Students find learning to use this type of system challenging, but the experience they gain in real-world microcontroller application development greatly exceeds the typical first-course experience using simple evalua

展开阅读全文
相关资源
相关搜索

当前位置:首页 > 应用文书 > 策划方案

本站为文档C TO C交易模式,本站只提供存储空间、用户上传的文档直接被用户下载,本站只是中间服务平台,本站所有文档下载所得的收益归上传人(含作者)所有。本站仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。若文档所含内容侵犯了您的版权或隐私,请立即通知淘文阁网,我们立即给予删除!客服QQ:136780468 微信:18945177775 电话:18904686070

工信部备案号:黑ICP备15003705号© 2020-2023 www.taowenge.com 淘文阁