《基于单片机的智能温度控制系统设计.doc》由会员分享,可在线阅读,更多相关《基于单片机的智能温度控制系统设计.doc(5页珍藏版)》请在taowenge.com淘文阁网|工程机械CAD图纸|机械工程制图|CAD装配图下载|SolidWorks_CaTia_CAD_UG_PROE_设计图分享下载上搜索。
1、Journal of Harbin Institute of Technology ( New Series) , Vol 21, No 3, 2014 Intelligent Temperature Control System Design Based on Single-Chip Microcomputer Jun Li 1 , Xian-Lin Meng , Wen-Long Song 1 ( 1 College of Mechanical and Electrical Engineering, Northeast Forestry University, Harbin 150040,
2、 China; 2 School of Municipal and Environmental Engineering, Harbin Institute of Technology, Harbin 150001, China) Abstract: A design method of an intelligent temperature control system based on single-chip microcomputer is presented in this paper The intelligent temperature control system is divide
3、d into four parts: monitor , heater, controlled process and feedback loop Among them, the temperature detection circuit is designed with the conductivity of water by sensor detection The optical coupler MOC3041 is used to implement the power control circuit, whose control object is 1 kW electric hea
4、ter with the 220 V alternating current power; keyboard and display circuit SMC1602A include four buttons and LCD display to achieve human-computer interaction; Based on single-chip system STC89C52, the sensor signal and keyboard set target temperature are compared to the power automatically in order
5、 to finish the water temperature control Through the static and dynamic data testing, the results show that the proposed method provides an effective way to realize the real-time acquisition and control of temperature Keywords: microcontroller; temperature sensors; power control; SC CLC number: TP29
6、 Document code: A Article ID: 1005-9113( 2014) 03-0091-04 1 Introduction Temperature is the representation of a physical temperature hourly, so to maximize the performance of the combined water chiller and cooling tower system Zhen proposed a typical multi -variable, large time delay and nonlinear s
7、ystem, self-extracting rules fuzzy quantity of hot and cold objects and one of the most control ( SE FC ) method to maintain a stable basic physical quantity in our production and life temperature value in a built environment chamber with 10 Temperature measurement is related to various fields of su
8、pply air system and hot-water system Based on industry and agricultural production Temperature the modified output-input feedback ( OIF ) Elman control is of critical importance to ensure the neural networks and the prediction principle, an effectiveness of the industrial production Temperature adap
9、tive PID decoupling controller is designed to control system also 1 is an important part of vacuum achieve the rapid, precise and especially independent smeltingprocess Therefore, the temperature control 2 control for the upstream and downstream temperatures systemis widely used such as industrializ
10、ed culture 3 4 , of the double-level air flow 11 field dynamic vacuum green granary , 5 Fumigation therapy , air- ( DAFDV) coupling system conditioning system , and so on How to select an The present study focuses on software designs approximately optimal control strategy through real-time including
11、 approaches and strategies to control monitoring data becomes 6 7 a key factor for the energy- temperature changes in different application fields and saving operation the research work of temperature control system Various strategies have been applied on the hardware design are relatively small amo
12、unt However, temperature control system The fuzzy self-tuning if there is no corresponding hardware support, a good proportional-integral-derivative ( P ID ) algorithm, method is also unable to be used In this paper, the which is easy to implement and be effective, has been 8 main work is to design
13、for the hardware circuit We use widelyused in the temperature control system An single chip microcomputer to develop intelligent optimal approach temperature ( OAT ) control strategy temperature control system, which has a higher is proposed for resetting the condensing water control convenient , lo
14、w cost , flexibility advantages It is eceived 2014 02 17 Sponsored by the Fundamental esearch Funds for Heilongjiang Postdoctoral Grant( Grant No L B11-334 ) , Natural Science Foundation of Heilongjiang Province( Grant No QC2013C035 ) , Heilongjiang Province Education Department of Science and Techn
15、ology esearch Foundation ( Grant No 12533014) , and the Foundamental esearch Funds for the Central Universities( Grant No 2572014CB13 ) Corresponding author: Wen-Long Song E-mail: wlsong139 126 com 91 2 9 Journal of Harbin Institute of Technology ( New Series) , Vol 21, No 3, 2014 proved in the expe
16、riment that the design has the heating pipe and the temperature will be controlled in obvious effect for technical indicators to improve the our system Here, the interference signal is mainly due temperature control As the hardware support , our to the heating power changes caused by contact with co
17、ntrol system will be fit for other temperature control other objects methods The control system includes four units, such as feedback loop ( temperature detection circuit) Fig 1 shows the diagram of the designed control system Fig 1 The system structure diagram the temperature of the water tank is d
18、etected by the 3 System Circuit Design which will give the quantity of temperature control The shown in Fig 2 heater will receive heating instructions Finally, the power controller can control the heating power of the 42%).&5 ($)*$%#+%$ ,$#$-#./&-.%-+.# 0/1$%-/%/2-.%-+.# !#$%2$3$2 ,$#$-#./&-.%-+.#
19、 4(06789: ;$)?& *ABCD 5/ # 1 5/ 5/ & 7 5/ 6 !#$%&( $)*+,-./0#12+34 Fig 3 Package diagram of DS18B20 70)#$#0(#860%4 !#$%&(%)#* 9-# )#+,#%)-# )#+,#%)-# 5)/%6# )%03 monitor, heater, controlled process ( storage tank) and 4/, In Fig 1, the water tank is the controlled object; temperature sensor and then
20、 the signal is transmitted to Accordingto the structure diagram of control system, we can build the circuit principle diagram, as and the prefabricated signal are compared with SCM .?+.,-%#2 12 13 14 Journal of Harbin Institute of Technology ( New Series) , Vol 21, No 3, 2014 . ./ /% Fig 4 Power con
21、trol circuit &( & &% &) !#$% 3. 3 Water Level Detection Circuit For cost saving, we design the water level ( a) Keyboard circuit !# , detection circuit by means of conductivity of water As % . 7*/ +*8 shown in Fig5, three metal bars are respectively ( 0 7*1 installedat different height of the water
22、tank The bar #)+ 5 7,+ Ais at the bottom of the water tank and connected with a power supply of 5 V; the bar B and C represent the lowest and highest level, which ground through a resistance When the water level is below B, B and C are all higher than the water surface, and then no electricity, the
23、status of b and c is 0 At the same )24 +0 7,1 3/ time, the system gives the alarm signal, and the Fig6 ( b) Display circuit Keyboard and display circuit indicator light of less water works, and the electromagnetic water valve is turned on to inject +, water; when the water level rises to B, A and B
24、are connected; the status of b is 1 and c is 0 The alarm signal disappears and the indicator light of %& #$ ! -( normal works When the water level rises to C, C and ()* ,.) B are connected, and the status of b and c is 1 , then the valve is closed and stop injection ! $%&( Fig 7 /0( 0%&1*& The alarm
25、ing circuit % $ 4 4. 1 Test esults System Testing Instrument Fig 5 Water level detection principle diagram as There are many instruments used in our test, such dual tracking voltage and current stabilized power 3. 4 the Keyboard and Display Circuit Keyboard with four keys is directly connected with
26、microcontroller P1 port as prefabricated supply ( DH1718E-5) , digital oscilloscope ( Tektronix TDS1002 ) , emulators ( WEIFUE6000 / L ) , Multi- function digital meter ( GDM -8145 ) , PC ( P4 temperature input port setting in Fig 6( a) We choose CPU2.4) , a thermometer, electric heating cups and a
27、LCD1602 as liquid ( 16 crystal 2 character dot matrix LCD screen) display circuit, which can achieve stopwatch 4. 2 Test esults human-computer interaction, such as prefabricated 1) We put 1 litre water into the thermostat temperature and real time shown in Fig 6( b) detection of temperature as elect
28、rothermalcup and change its temperature We can 3. 5 Alarming Circuit A buzzer and a light emitting diode consist of the observe the temperature value on liquid crystal display ( LCD1602) , while we measure the real temperature with a thermometer and record the results, as shown in alarming circuit,
29、as level of the tank is shown in Fig 7 lower than the When the water floor, the buzzer Fig8 We can conclude that the static temperature gives out the alarm and the system turns on the light of less water; otherwise when the water level of the tank reaches the upper threshold, the system turns off th
30、e light of less water and turns on the light of normal water level ,- /0% .4 & 12-/%3 - 3% !#$% 3/ + !$ - %+, %& / 7*0 #)* 1 7,* #), #)- #). #)/ #)0 #)1 )23 6 +* + +, +- +. +/ 7, 7,- 7,. 7,/7,0 !# # 15 sensor measurement results and actual measurement of the thermometer is consistent Therefore, the
31、results of measurement with temperature sensor are reliable and the system can comply with the design requirement 93 Journal of Harbin Institute of Technology ( New Series) , Vol 21, No 3, 2014 temperature control system design and simulation ! & % ( $ 3 Shi Q S Green granary temperature control sys
32、tem )*+, modeling and simulation Physics Procedia, 2010, 25: Fig 8 The static temperature results 4 Zhang H F, Zhao A L, Hou J Design of fumigation results, as shown in Fig 9 ( before heating, the Applied Thermal Engineering, 2011, 31( 17 18) : 3653 temperature is 25 ) 3657 8 Pen Y Q Application of
33、hybrid fuzzy PID in Gelaton temperature control system based on PLC Journal of temperature for energy saving International Journal of process of heating and errors are in the permitted temperature hot-water radiator system Energy and range Although there are errors , they can not affect Buildings, 2
34、010, 42: 386 392 the results Therefore our system reaches design 11 Li J Y, Feng M X Temperature decoupling control of neural network and prediction principle Engineering 1245 chip microcomputer in temperature control We use 26( 2) : 49 52 single chip microcomputer AT89C52 as the control core 13 Zha
35、ng J Smart temperature sensor DS18B20 and its and design the intelligent control system with the application Instrumentation Technology, 2010, 4: 6870 temperature control, at the same time it has many on P OTEUS Microcomputer Information, 2010, 26( 7 1) : 171 172 94 advantages, such as easy to contr
36、ol, low cost and high -6,78+/9*:,71,./,0*120, -6,0,*91,./,0*120, # 5 4 , 2 1 Wei J G, Jiang X C Design of an intelligent temperature * control system based on the fuzzy self-tuning PID P rocedia / . Engineering , 2012, 43: 307 311 , - & temperature control system based on single-chip 2) The target t
37、emperature is set 75 We can observe the temperature value on liquid crystal display 5Zhang X J, Yu C Y, Li S, et al A museum storeroom air- (LCD1602) , while we measure the water temperature conditioning system employing the temperature and with the thermometer every 30 seconds and record the 6 Yu F
38、 W, Chan K T Improved energy performance of air ! cooled centrifugal chillers with variable chilled water flow &1*+5,()*+,-* 0 1611 / * - + evaluation of alternative control strategies for building ) ( & % 7#89%9:9!%9%$%;7777#78 9Liu C W, Chua Y K A study on an optimal approach temperature control s
39、trategy of condensing water Fig9 The dynamic temperature results efrigeration, 2011, 34: 816823 By comparison, we can see that the measured 10 ZhenL , Zhang J L, Chen Y P , et al Fuzzy control model temperatureand the real temperature consistent in the double-level air flow field dynamic vacuum syst
40、em based on requirements 5 Conclusions 12 Feng Y Design of temperature control system based on This paper focuses on the application of single 14 Yu Chunhe, Zhang Danping An artificial intelligence temperature real-time acquisition and control The test centralair-conditioning controller Advances in Intelligent results show that our design is reasonable and achieves Systems, 2012, 138: 19 25 the desired effect The system realizes the intelligent 15 SuiQ J Interface design and simulation of LCD1602 based