版權(quán)說(shuō)明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)
文檔簡(jiǎn)介
1、<p><b> 外文翻譯原文</b></p><p> Teaching digital control using a low-cost microcontroller-based temperature control kit</p><p> Abstract The design of a low-cost digital tempera
2、ture control kit is described. The system enables the students to implement various control strategies using a microcontroller. The kit is intended to be helpful in a control laboratory as a complement to the digital con
3、trol system theory taught to undergraduate students. </p><p> Keywords microcontroller-based control; teaching digital control; temperature control</p><p> With the availability of low-cost
4、computers and microcontrollers, digital control has gained popularity and most current control systems are based on digital techniques. The same is true for simulation. Digital simulation techniques have replaced analogu
5、e simulators. These simulators are in the form of interactive computer packages used in the industry, in research laboratories, colleges and universities. Early simulation packages such as ACSL were designed for large ma
6、inframe computers and only</p><p> Simulation is an invaluable tool in teaching the theory of control system. For example, the student can plot the accurate root-locus of a complex System in a matter of a f
7、ew minutes rather than spending several hours. Similarly, the time and frequency responds of a system can very easily be plotted with the aid of simulator package. Although the simulators are very useful tools they are n
8、ot same as real world solutions. There are also cases in which computer models may be inappropriate, or the s</p><p> One of the problems with commercially available physical laboratory experiments is that
9、the experimental kits are usually very expensive, especially when a number of similar kits are purchased for teaching purpose. Such kits may also require frequent calibration and maintenance services as a result of compo
10、nent failures and ageing. Laboratory kits also do become obsolete quite rapidly as new products are developed.</p><p> This paper describes a low-cost temperature control kit which is designed and used in t
11、he engineering teaching laboratories of Near East University. The kit is based on the popular PIC16F877 model microcontroller, manufactured by Microchip Inc. The overall cost of the kit is less than $200, which is well b
12、elow the cost of similar commercially available educational temperature control kits. The design, modeling and digital control of the kit are described in detail.</p><p> Temperature control kit</p>
13、<p> Educational temperature control kits are not new. Many companies manufacturing laboratory kits also offer some kind of general process control or temperature control kits.TCL-1 by Kuruganti is a temperature co
14、ntrol loop trainer which is intended to show how the temperature in a heat exchanger can be controlled. TCL-1, also by Kuruganti, is an on/off-based temperature control teaching kit. PROCON by Feedback Instruments is a p
15、rogress control system, which includes rigs for level, flow, temperatur</p><p> Near East University offers undergraduate and graduate level engineering courses and control engineering is one of these topic
16、s, which is taught for one semester. There are no practical experiments and students have been using the MATLAB package to design, simulate and test their control theory. It was felt necessary to provide some practical e
17、xperiments to the students as a way of supporting the theoretical concepts taught in the classroom. The main reason to design a control kit rather than to</p><p> The block diagram of the digital temperatur
18、e control kit is shown in Fig.1. The working principle of this experiment consists of heating the water in a small container using a low-voltage electric heating element and a simple MOSFET-based power controller circuit
19、. A temperature sensor is immersed into the water whose output signal is sent to a PIC-type microcontroller. This signal is compared with a reference temperature signal and a PID controller algorithm is implemented by th
20、e microcontroller</p><p> This process is used to teach the following important concepts to the students:</p><p> ·Modeling and identification of a real physical process</p><p&
21、gt; 1、Using the Ziegler-Nichols tuning method</p><p> 2、Using microcontrollers in process automation</p><p> 3、Developing and experimenting with digital PID controllers.</p><p>
22、 Figure 2 shows a picture of the prototype experiment kit. The kit is rather simple, consisting of only low cost materials. A round plastic container is used to store the water. The heater element and the sensor are imme
23、rsed in this container. The temperature is sensed using a low cost semiconductor sensor, which is protected inside a glass tube. The heating element is the type which is used in camping and other outdoor activities in or
24、der to warm up liquid in a cup, for example for making coffee</p><p> Fig 2: The temperature control kit</p><p> Figure 3 shows the electrical circuit diagram of the kit .The circuit is rather
25、 simple, consisting of only a few parts .LM35DZ is the analog semiconductor temperature sensor , PIC16F877 is the microcontroller ,and IRL1004 is a power MOSFET switch ,used to drive the heater element .</p><
26、p> The temperature sensor </p><p> The temperature sensor used in the experiment is a 3-pin semiconductor sensor with an output voltage directly proportional to the temperature. The output of the sensor
27、 is connected to one of the A/D converter inputs of the microcontroller.</p><p> There was the option of using a digital output sensor ,but they are usually more expensive and it was also felt necessary to
28、use an analog sensor and teach the students the practical applications of A/D converters.</p><p> The microcontroller</p><p> In order to lower costs ,we needed a microcontroller with a built-
29、in A/D converter. Process control algorithms require the use of floating-point arithmetic and as a result,a microcontroller with a large date memory was also required. Author requirement to lower the cost was a built-in
30、pulse width modulated (PWM) output ,which was used to drive the heater circuitry linearly .The development of floating-point arithmetic routines is very complex using the assembly language and it was decided to pro</p
31、><p> The PIC16F877 microcontroller satisfied all of our requirements. This is one of the most popular microcontrollers used in industry and it offers the following features:</p><p> 1、8K x14 fla
32、sh program memory</p><p> 2、368 bytes RAM memory</p><p> 3、256 bytes EEPROM memory</p><p> 4、8x10 bit A/D converters</p><p> 5、Pulse width modulated (PWM)output<
33、/p><p> 6、High-level language support</p><p> The FEDC compiler was used for program development. This is a Windows-based low-cost compiler for the PIC family of microcontrollers. The compiler of
34、fers a large number of standard C library functions, including support for floating-point arithmetic.</p><p> The heater driver</p><p> An IRL1004 power MOSFET switch is used to drive the heat
35、er element. This MOSFET can dissipate up 200W when mounted on a suitable heat sink. The heating element is connected to the drain pin of the MOSFET and the gate input is controlled from the microcontroller (see Fig.3).&l
36、t;/p><p> Large industrial temperature control systems are based on a.c. power control techniques using thyristors and triacs and appropriate theory is given to the students on this topic.</p><p>
37、<b> Modelling</b></p><p> The system can be approximated to a first-order system with a time lag. A simplified mathematical model of the overall system can be derived as described here.</p&g
38、t;<p> Mathematical model of the tank</p><p> The heat-balance equation for the tank can be written as:</p><p> Heat input to the system=heat increase in the system +heat losses</p&
39、gt;<p><b> If we let</b></p><p> m1=mass of water inside the tank</p><p> m2=mass of the water</p><p> c1=specific heat capacity of the water</p><p
40、> c2= specific heat capacity of the tank</p><p> Ignoring the heat loss through the walls of the tank and the heat capacities of the heater element and the mixer ,we can write the following equation &l
41、t;/p><p> Heat increase in the tank=(m1*c1+m2*c2) </p><p> Heat loss from the tank= h*A*(T-Ta)</p><p> Where Ta is the ambient temperature, A is the tank top area, and h is a consta
42、nt, which depends on the surface and the ambient temperature.</p><p> Thus, the heat input to the system is</p><p> E=(m1*c1+m2*c2) + h*A*(T-Ta) (1)</p><p&
43、gt; If we assume that the ambient temperature is constant, and let</p><p><b> Tq=T-Ta</b></p><p> We can write equation (1) as:</p><p> E=(m1*c1+m2*c2) + h*A*Tq</
44、p><p> Or, letting k1= m1*c1+m2*c2 and k2= h*A</p><p> = (2)</p><p> Which is a first order system with time constant k1/k2.</p><p&g
45、t; Mathematical model of the heater</p><p> The relationship between the applied voltage and energy generated by an electrical heating element is non-linear.</p><p> In this experiment this l
46、inearised by driving the heater from a pulse width modulated (PWM) signal. A pulse width modulated signal is generated from the microcontroller as shown in Fig4 where M and S are the mark and the space of the waveform, a
47、nd</p><p> T is the period ,i.e. T=M+S. This waveform is used to control a power MOSFET switch where the heater element is connected as the load of this device.</p><p> The r.m.s. value of the
48、 current through the heater can be calculated as</p><p><b> Or,</b></p><p><b> ?。?)</b></p><p> Fig.4 PWM heater waveform </p><p> Assumi
49、ng the heating element has a pure resistance ,R ,the average power delivered to the heater can be calculated as:</p><p> If we let then</p><p> =
50、 (4)</p><p> Equation (4) shows that the average power delivered to the load is linearly proportional to the on-time (M) of the signal.We will call M the duty cycle of the waveform.</p><p&g
51、t; The frequency of the waveform must be well above the closed-loop bandwidth of the control system so that the process is only affected by the mean level of the waveform. In this project, we will assume a frequency of
52、1kHz,i.e. the period is 1ms.</p><p> In this project,</p><p> Thus, the transfer function of the heater is, form equation (4):</p><p><b> Or ,</b></p><p>
53、;<b> (5)</b></p><p> Where is in watts and M is in seconds.</p><p> Equation (5) shows the linear relationship between the duty cycle of the applied signal and the average power
54、generated by the heater.</p><p> Mathematical model of the temperature sensor </p><p> The temperature sensor is a semiconductor device with a linear voltage-temperature relationship specifi
55、ed as 10mV/, i.e.</p><p><b> (6)</b></p><p> Where is the sensor output voltage in volts , and T is the temperature in .</p><p> Experiment example </p><
56、p> Identification of the system </p><p> The dynamic behavior of the system is identified using non-parametric , by using a reaction curve method .For this , the feedback loop is opened , and a step PWM
57、 input is applied to the heater driver by the microcontroller, The temperature of the water in the tank is then measured and recorded every second by connecting the output of the sensor to the voltage input of DrDaq har
58、dware and Picolog software . Both of these products are manufactured by Pico Technology . DrDaq is a small card which i</p><p> voltage ,humidity ,and temperature .Picolog software runs on a PC and can be u
59、sed to record the measurements of the DrDaq card in real time .The software includes a graphical option that enables the measurements to be plotted.</p><p> A Ziegler-Nichols tuning method is then used to i
60、dentify the system , as shown in Fig 5 .The open-loop system transfer function was found to be </p><p><b> ?。?)</b></p><p> The system has a large time lag (180 seconds) and a time
61、constant of 1800 seconds .</p><p> Choosing a controller algorithm</p><p> The PID algorithm was selected as the controller since it is probably the most extensively used method in industrial
62、process control applications .A large number of references can be found which describe the continuous and digital forms of this controller , its performance evaluation ,implementation and auto-tuning forms .</p>&
63、lt;p> Fig 5: using the Ziegler-Nichols method to find system parameters</p><p> The transfer function of the standard PID algorithm is :</p><p> The block diagram of the continuous PID con
64、troller is shown in Fig 6 ,where , is the proportional gain , is the integral time constant, is the derivative time constant ,u(t)is the controlling parameter,e(t) is the windage of the controlled parameter y(t)and the
65、 given parameter .</p><p> Fig 6: Block diagram of continuous PID controller</p><p> In the s-domain , the PID controller can be written as </p><p><b> ?。?)</b></p&
66、gt;<p> The discrete form of the PID controller can be derived by finding the z-transform of equation (9):</p><p><b> (10)</b></p><p> Equation (10) is usually written as :
67、</p><p><b> ?。?1)</b></p><p><b> where:</b></p><p> PI controller</p><p> The Ziegler-Nichols parameters for a PI controller are :</p>
68、<p><b> and </b></p><p> Taking a sampling time of T=20s ,a and b in equation (10) are calculated to be a=10.9 ,b=0.37 </p><p> The PI algorithm implemented on the microcont
69、roller is the following :</p><p><b> BEGIN</b></p><p> Read a and b parameters of the controller</p><p> Read MAX and MIN</p><p> Read the set-point tem
70、perature</p><p> Initialise the A/D converter </p><p> DO FOREVER</p><p> Read the set-point r(KT)</p><p> Read water temperature y(KT)</
71、p><p> Calculate error e(KT)= r(KT)- y(KT)</p><p> Calculate proportional term q(KT)=a* e(KT)</p><p> Calculate integral term p(KT)=b* e(KT)+ p(KT-T)
72、</p><p> Calculate output u(KT)=p(KT)+q(KT)</p><p> If u(KT)>MAX</p><p> p(KT)=p(KT-T)</p><p><b> u(KT)=MAX</b></p><p>
73、; else if u(KT)<MIN</p><p> p(KT)=p(KT-T)</p><p><b> u(KT)=MIN</b></p><p><b> end if</b></p><p> Save for next cycle</p><p>
74、; p(KT-T)=p(KT)</p><p> e(KT-T)=e(KT)</p><p> Wait for next cycle</p><p><b> END DO</b></p><p><b> END</b></p><p> This algor
75、ithm was implemented using C language. The controller output is limited to be within MIN and MAX in order to avoid integral saturation.</p><p> The response of the system with the PI controller is shown in
76、Fig 7 .In this example, the set point was 30 and the temperature reached this value with no overshoot and no steady-state errors. One of the advantages of using the Ziegler-Nichols method is that it yields a satisfactor
77、y response with little effort .</p><p> Fig 7: Response of the system with PI controller</p><p> Some computer packages such as the ExperTune by Top Control run on a PC ,analyse a system in r
78、eal time and provide an optimum set of PID controller parameters .With the availability of such packages it should take much less time to tune a PID controller satisfactorily.</p><p> Conclusion</p>
79、<p> The design of a low-cost digital temperature control kit has been described .The aim in designing this kit was to teach engineering students the practical applications of the theory they are taught in the clas
80、sroom.</p><p> The kit is designed using standard low-cost components which are readily available in most electronic component shops .Another advantage of the kit is that it enables the students to experime
81、nt and learn the microcontrollers which are used extensively in most intelligent electronic control projects .The kit is complemented with a laboratory manual which is written to help the students follow the experiments
82、in an orderly way.</p><p> Other control algorithms and design procedures such as state-space techniques can be developed for the kit. It is also hoped to develop other automation kits in the near future ,s
83、uch as level control systems ,flow control systems ,servo control systems and so on .</p><p> References</p><p><b> 外文翻譯中文</b></p><p> 基于單片機(jī)的低成本教學(xué)數(shù)字溫度控制器</p>&
84、lt;p> 摘要:這種低成本的數(shù)字溫度控制器的設(shè)計(jì)可以被這樣描述。由于使用了單片機(jī),這一系統(tǒng)可以使學(xué)生能夠控制各種各樣的溫度。這一器件在控制實(shí)驗(yàn)室是非常有用的,對(duì)于學(xué)生可以作為數(shù)字控制系統(tǒng)理論的一個(gè)補(bǔ)充。</p><p> 關(guān)鍵詞:基于單片機(jī)控制;教學(xué)數(shù)字控制;溫度控制</p><p> 伴隨著低損耗計(jì)算機(jī)和單片機(jī)的有效性、實(shí)用性,數(shù)字控制已經(jīng)變得越來(lái)越受歡迎,當(dāng)前最流行的控制
85、都是以數(shù)字技術(shù)為基礎(chǔ)的。對(duì)于仿真器來(lái)說(shuō)也是如此。數(shù)字模擬技術(shù)已經(jīng)取代了相類似的仿真器。 這些仿真器是以交互式的盒裝計(jì)算機(jī)的形式應(yīng)用于工業(yè),研究實(shí)驗(yàn)室以及各種大學(xué)院校。早期的盒裝仿真器像ACSL是為了大型的中央處理器而設(shè)計(jì)的,因此只有那些大型的機(jī)構(gòu)組織才有能力購(gòu)買和使用這樣的盒裝仿真器。目前,像TUTSIM,20-sim,program CC,VisSim,Extend和MATLAB這樣的軟件包在計(jì)算機(jī)的平臺(tái)上是非常有用的,絕大多數(shù)的大學(xué)
86、院校都把這些軟件的花費(fèi)作為其中的一項(xiàng)預(yù)算。其中一些軟件包(像MATLAB和program CC)現(xiàn)在也已經(jīng)提供了較低花費(fèi)的版本,學(xué)生能都購(gòu)買并且在自己的電腦上使用這些軟件,而不僅僅是在學(xué)校的實(shí)驗(yàn)室里。</p><p> 在控制系統(tǒng)的理論教學(xué)中仿真器是一種非常有用的工具。比如,學(xué)生能夠在幾分鐘的時(shí)間內(nèi)就可以精確地指出一個(gè)復(fù)雜系統(tǒng)的關(guān)鍵部位,而不是幾個(gè)小時(shí)的時(shí)間。類似地,當(dāng)你使用了一個(gè)仿真器的幫助功能時(shí),你就能很容
87、易地知道一個(gè)系統(tǒng)的相應(yīng)時(shí)間和頻率。盡管仿真器是一個(gè)非常有用的工具,但是他們和現(xiàn)實(shí)社會(huì)中的器件還是存在一定得差別的。計(jì)算機(jī)中的一些例子也許并不適宜的或者是系統(tǒng)太復(fù)雜而不能用計(jì)算機(jī)中的數(shù)學(xué)等式來(lái)描述。根據(jù)作者的經(jīng)驗(yàn),當(dāng)學(xué)生們能夠親眼看到實(shí)驗(yàn)的各種現(xiàn)象時(shí),他們會(huì)更好地學(xué)習(xí)工程課題。仿真器仍然會(huì)在分析的最初水平上被使用但是這并不能取代現(xiàn)實(shí)中的物理實(shí)驗(yàn)。仿真器應(yīng)該作為一種互補(bǔ)的工具而不是工程課題中的唯一工具。</p><p&g
88、t; 物理實(shí)驗(yàn)室里的實(shí)驗(yàn)設(shè)備的一個(gè)主要問(wèn)題是價(jià)格通常是很貴的,尤其是教學(xué)上的一些相類似的器件。一些儀器是需要經(jīng)常校準(zhǔn)和像儀器中元器件的損壞或者到達(dá)使用期限錢的一些保養(yǎng)服務(wù)。隨著新產(chǎn)品的不斷產(chǎn)生,實(shí)驗(yàn)室中的儀器更新是相當(dāng)快的。</p><p> 本文描述的是一種低損耗的溫度控制儀器,這種儀器是在東方的一所大學(xué)的工程教學(xué)實(shí)驗(yàn)室設(shè)計(jì)出來(lái),正在被使用中。這種儀器是基于當(dāng)前非常流行的PIC16F877的單片機(jī)模型,是由
89、一家集成電路公司制造的。這種儀器的總共花費(fèi)不到200美元,價(jià)格遠(yuǎn)遠(yuǎn)低于市場(chǎng)上相類似的教學(xué)溫度控制器件。本文將詳細(xì)描述這種溫度控制器件的設(shè)計(jì),模型和數(shù)字控制。</p><p><b> 溫度控制器件</b></p><p> 教學(xué)溫度控制器件現(xiàn)在已經(jīng)非常普遍。許多實(shí)驗(yàn)室器件的制造廠商也會(huì)提供一些全程控制或者是溫度控制器件。TCL-1可以說(shuō)是一個(gè)溫度控制程序的培訓(xùn)者,
90、它打算呈現(xiàn)一個(gè)加熱系統(tǒng)中的溫度是怎么樣被控制的。TCL-1當(dāng)然也是基于溫度控制教學(xué)器件的。PROCON是一個(gè)溫度控制系統(tǒng),它包括了高度,流量,溫度和PH值控制等裝置。在這里,溫度控制系統(tǒng)是采用了流動(dòng)的水和簡(jiǎn)易的PID控制來(lái)實(shí)現(xiàn)的。Elettronica公司制造了G34/EV,這G34/EV是基于PID控制的教學(xué)溫度控制單元。這種單元可以直接與計(jì)算機(jī)相連接,并且由PID控制器,電源放大器和溫度傳感器組成。</p><p
91、> Near East 大學(xué)為工程課程和控制工程的學(xué)生提供了一個(gè)學(xué)期的時(shí)間來(lái)學(xué)習(xí)這一課題。沒(méi)有現(xiàn)實(shí)的實(shí)驗(yàn),學(xué)生們就用MATLAB軟件包來(lái)進(jìn)行設(shè)計(jì),仿真和測(cè)試他們的控制理論。在教室里為學(xué)生提供一些實(shí)用的實(shí)驗(yàn)是非常有必要的,它可以為理論概念的學(xué)習(xí)提供一種支持。設(shè)計(jì)控制器而不是去市場(chǎng)山購(gòu)買控制器的主要原因是因?yàn)榛ㄙM(fèi)。過(guò)程控制在自動(dòng)控制工程中是一個(gè)非常重要的領(lǐng)域,于是就決定做一個(gè)基于單片機(jī)的數(shù)字溫度控制實(shí)驗(yàn)的。實(shí)驗(yàn)室器件的一個(gè)目標(biāo)是價(jià)格
92、便宜,但是在工業(yè)試驗(yàn)中能夠確保使用的可靠性。在不久的將來(lái),我希望有更多的教師和學(xué)生能夠參與到控制試驗(yàn)中來(lái)。</p><p> 圖1顯示的是數(shù)字溫度控制器的原理圖。這一實(shí)驗(yàn)的工作原理是在一個(gè)小容器里使用低壓電加熱元件和一個(gè)簡(jiǎn)單的基于MOSFET的電源控制電路來(lái)加熱水。將溫度傳感器放在水中,它可以將外界的信號(hào)傳送到直插式的單片機(jī)中。這一信號(hào)會(huì)和參考溫度信號(hào)進(jìn)行比較,然后單片機(jī)會(huì)啟動(dòng)PID算法會(huì)完成所要求的溫度控制。
93、</p><p> 圖1:溫度控制器的原理圖</p><p> 這一過(guò)程可以用來(lái)把以下重要的概念教給學(xué)生:</p><p> 物理過(guò)程的模型和等效性</p><p> 使用Ziegler-Nichol的方法</p><p> 在自動(dòng)化控制過(guò)程中單片機(jī)的使用</p><p> PID控
94、制器的發(fā)展和實(shí)驗(yàn)</p><p> 圖2顯示的實(shí)驗(yàn)控制器的模型圖。這一器件非常簡(jiǎn)單,僅有低成本的材料組成。圓形塑料容器是用來(lái)儲(chǔ)存水的。加熱元件和傳感器浸入容器中。溫度傳感器是用低成本的半導(dǎo)體元件做成的,它能夠被內(nèi)部的玻璃管保護(hù)。這種加熱器件被用于野營(yíng)或者是其他戶外活動(dòng),能夠用來(lái)加熱杯子里的液體,比如沖咖啡。這種加熱設(shè)備的電壓是12V,通過(guò)的電流是10A,并且能夠提供120W的功率。實(shí)驗(yàn)室電源供應(yīng)商提供如此高功率
95、的通常價(jià)格比較昂貴,因此標(biāo)準(zhǔn)的350W的計(jì)算機(jī)電源被花費(fèi)不多于50美元的電源取代了。在實(shí)驗(yàn)器件中使用低壓有一種優(yōu)勢(shì),系統(tǒng)是安全的因?yàn)闆](méi)有了電震的風(fēng)險(xiǎn)。</p><p> 圖2:溫度控制器的實(shí)物圖</p><p> 圖3顯示的是溫度控制器的電路圖。這電路圖是非常的簡(jiǎn)單,僅僅有幾部分組成。LM35DZ是模擬的半導(dǎo)體溫度傳感器,PIC16F877是微控制器,IRL1004是MOSFET電源開(kāi)
96、關(guān),它能夠啟動(dòng)加熱器件。</p><p> 圖3:溫度控制器的電路原理圖</p><p><b> 溫度傳感器:</b></p><p> 試驗(yàn)中使用的溫度傳感器是3個(gè)引腳的半導(dǎo)體傳感器,它有一個(gè)直接與溫度相對(duì)應(yīng)的輸出電壓。傳感器的輸出端與微控制器中的A/D轉(zhuǎn)換器的一個(gè)輸入引腳相連接。</p><p> 數(shù)字輸出
97、傳感器的使用通常是可以選擇的,但是它們一般都比較貴,因此使用模擬的傳感器和教學(xué)生A/D轉(zhuǎn)化器的實(shí)際應(yīng)用是很有必要的。</p><p><b> 微型控制器:</b></p><p> 為了能使成本降到最低,我們需要一個(gè)微型控制器來(lái)建立一個(gè)A/D轉(zhuǎn)化器。過(guò)程控制算法要求使用浮點(diǎn)算術(shù)以及用它作為結(jié)果。因此需要大的數(shù)據(jù)存儲(chǔ)的微型控制器。低成本的另一個(gè)要求是建立一個(gè)脈寬輸
98、出調(diào)節(jié)(PWM),它能夠線性啟動(dòng)加熱電路。浮點(diǎn)算術(shù)的發(fā)展歷程是非常復(fù)雜的,它需要使用的是匯編語(yǔ)言,因此決定用高級(jí)語(yǔ)言來(lái)編寫微型控制器中的程序,這種語(yǔ)言同樣支持浮點(diǎn)算術(shù)。</p><p> PIC16F877微型控制器符合我們的所有要求。在工業(yè)生產(chǎn)中,它是最受歡迎的微型控制器之一,因?yàn)樗哂幸韵绿卣鳎?lt;/p><p> 1、8Kx14的閃存</p><p> 2
99、、368bytes的RAM存儲(chǔ)</p><p> 3、256bytes的EEPROM存儲(chǔ)</p><p> 4、8x10位的A/D轉(zhuǎn)換器</p><p> 5、脈寬輸出調(diào)節(jié)(PWM)</p><p><b> 6、支持高級(jí)語(yǔ)言</b></p><p> FEDC放大器程序擴(kuò)大。這是一種基
100、于Windows的低成本放大器,它是微型控制器中的一種。這放大器能夠提供許多標(biāo)準(zhǔn)的功能,比如支持浮點(diǎn)算法。</p><p><b> 啟動(dòng)加熱裝置</b></p><p> IRL1004 MOSFET電源開(kāi)關(guān)是用來(lái)啟動(dòng)加熱裝置的。當(dāng)加熱裝置的溫度達(dá)到合適的下降點(diǎn)時(shí),這種MOSFET能夠驅(qū)散高達(dá)200W的能量。加熱元件可以和MOSFET的引腳相連接,而輸入端是由微
101、型控制器控制的(見(jiàn)圖3)。</p><p> 工業(yè)上大的溫度控制系統(tǒng)都是基于交流電的控制技術(shù),它們采用電子半導(dǎo)體閘流管和本文中教給學(xué)生的一些準(zhǔn)確的理論。</p><p><b> 模型</b></p><p> 這一系統(tǒng)和先前的系統(tǒng)幾乎是一樣的。整個(gè)系統(tǒng)的簡(jiǎn)單的數(shù)學(xué)模型會(huì)在這里進(jìn)行詳細(xì)地描述。</p><p>&l
102、t;b> 容器的數(shù)學(xué)模型:</b></p><p> 容器的熱平衡等式如下:</p><p> 系統(tǒng)的輸入熱量=系統(tǒng)增加的熱量+系統(tǒng)損失的熱量</p><p><b> 假如我們?cè)O(shè)定:</b></p><p> m1 =容器中水的質(zhì)量</p><p><b>
103、 m2=容器的質(zhì)量</b></p><p><b> c1=水的比熱</b></p><p><b> c2=容器的比熱</b></p><p> 不考慮通過(guò)容器壁,加熱裝置的加熱能力散失的熱量,我們可以列出以下等式:</p><p> 容器中增加的熱量=(m1*c1+m2*c
104、2)</p><p> 容器中損失的熱量=h*A*(T-Ta)</p><p> 在這里Ta是周圍環(huán)境的溫度,A是容器頂部的面積,h是常量,它決定于表面和外界環(huán)境的溫度。</p><p> 因此,系統(tǒng)的輸入熱量為:</p><p> E=(m1*c1+m2*c2)+ h*A*(T-Ta)
105、 (1)</p><p> 假如我們假定周圍環(huán)境的溫度是一個(gè)常量,那么</p><p><b> Tq=T-Ta</b></p><p> 我們就可以把等式(1)寫為:</p><p> E=(m1*c1+m2*c2)+ h*A*Tq</p><p> 或者是,我們令k1= m1*c
106、1+m2*c2 ,k2= h*A</p><p> 則= (2)</p><p><b> 加熱器的數(shù)學(xué)模型:</b></p><p> 放大器的電壓和電熱器件產(chǎn)生的能量?jī)烧咧g的關(guān)系是非線性的。在這個(gè)實(shí)驗(yàn)中,通過(guò)脈寬調(diào)節(jié)輸出的信號(hào)可以使放大器的電壓和電熱器產(chǎn)生的能
溫馨提示
- 1. 本站所有資源如無(wú)特殊說(shuō)明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁(yè)內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒(méi)有圖紙預(yù)覽就沒(méi)有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 眾賞文庫(kù)僅提供信息存儲(chǔ)空間,僅對(duì)用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。
最新文檔
- 外文翻譯---基于單片機(jī)的可編程溫度控制器
- 外文翻譯---基于單片機(jī)的可編程溫度控制器
- 外文翻譯---基于單片機(jī)的可編程溫度控制器.doc
- 基于單片機(jī)的光控制器【外文翻譯】
- 基于單片機(jī)的光控制器【外文翻譯】
- 外文翻譯--基于單片機(jī)控制的電梯控制器
- 單片機(jī)溫度控制器
- 外文翻譯---基于單片機(jī)的可編程溫度控制器.doc
- 基于pic單片機(jī)的溫度控制器
- 外文翻譯---嵌入式單片機(jī)溫度控制器設(shè)計(jì)
- 外文翻譯---嵌入式單片機(jī)溫度控制器設(shè)計(jì)
- 外文翻譯---嵌入式單片機(jī)溫度控制器設(shè)計(jì)
- 外文翻譯---嵌入式單片機(jī)溫度控制器設(shè)計(jì).docx
- 外文文獻(xiàn)及翻譯--基于單片機(jī)的可編程溫度控制器
- 外文翻譯---嵌入式單片機(jī)溫度控制器設(shè)計(jì).docx
- 基于單片機(jī)的溫度控制器設(shè)計(jì)與研究
- 單片機(jī)數(shù)字傳感器課程設(shè)計(jì)-- 溫度控制器
- 基于單片機(jī)的全自動(dòng)熱飲機(jī)控制器設(shè)計(jì)外文翻譯
- 外文翻譯--單片機(jī)微控制器microcontroller unit
- 基于單片機(jī)的溫度控制器的與實(shí)現(xiàn)論文
評(píng)論
0/150
提交評(píng)論