【正文】
模式是用來(lái)驅(qū)動(dòng)電機(jī)和簡(jiǎn)單的延時(shí)程序是用來(lái)處理脈沖之間的時(shí)間間隔,獲得不同的轉(zhuǎn)速。一:當(dāng)溫度超過上限值時(shí),電機(jī)反向旋轉(zhuǎn)(以低的溫度),而當(dāng)?shù)陀谙孪拗禃r(shí),電機(jī)旋轉(zhuǎn)正常(提高溫度),除了不等于預(yù)設(shè)值。這些步驟是用來(lái)實(shí)現(xiàn)溫度控制。代碼數(shù)據(jù)是通過港口答 11? A8的輸入( ? 的是)的逆變器 74LS04 由 AT89S51 單片機(jī)和反向輸出。 IV. 軟件設(shè)計(jì) 按照一般設(shè)計(jì)要求,該系統(tǒng)的硬件電路原理,以及該程序的可讀性,可移植性和改進(jìn)的調(diào) 試方便,軟件設(shè)計(jì)模塊化。給一點(diǎn)分析,上述 8個(gè)任務(wù),很容易地發(fā)現(xiàn),過去五年任務(wù)需要實(shí)時(shí)操作。系統(tǒng)啟動(dòng)包括全局變量的定義,內(nèi)存啟動(dòng),啟動(dòng)特殊功能寄存器和外圍設(shè)備的啟動(dòng)。開始主要是指 RAM 的內(nèi)存處理。特殊功能寄存器包括加載啟動(dòng)定時(shí)器初值的開放中斷。外圍設(shè)備的啟動(dòng),是指設(shè)置外圍設(shè)備的初始值。報(bào)警處理主要是降低和溫度的提高使溫度保持在預(yù)設(shè)范圍。這樣做的條件溫度等于設(shè)定值,從而達(dá)到溫度的目標(biāo)。 1℃范圍內(nèi)誤差),便利性和多功能性等,它可廣泛的場(chǎng)合使用的優(yōu)點(diǎn)與55℃至 125℃范圍內(nèi),且有一定的實(shí)用價(jià)值。 microcontroller。 temperature I. INTRODUCTION Temperature is a very important parameter in human life. In the modern society, temperature control (TC) is not only used in industrial production, but also widely used in other fields. With the improvement of the life quality, we can find the TC appliance in hotels, factories and home as well. And the trend that TC will better serve the whole society, so it is of great significance to measure and control the temperature. Based on the AT89S51 and temperature sensor DS18B20, this system controls the condition temperature intelligently. The temperature can be set discretionarily within a certain range. The system can show the time on LCD, and save monitoring data。 it also fits the rugged environment. It is mainly used in people39?!? [2 ,3]. The temperature collected by the DS18B20 is transmitted in the 1Wire bus way, and this highly raises the system antijamming and makes it fit in situ temperature measurement of the rugged environment [4]. There are two power supply ways for the DS18B20. The first is external power supply: the first pin of the DS18B20 is connected to the ground。s functions are set by the AT89S51 receiving the entered data. In order to save the external resistor, the 16 keyboard is used, and the keyboard codes are defined as: 07H, 0FH, 17H, 1FH, 27H, 2FH. The order can be read out by reading the code instruction. HD7279A is connected to the AT89S51 in serial mode and only 4 ports are need. As shown in Fig. 6, DIG0~DIG5 and DP are respectively the column lines and row line ports of the six keys which achieve keyboard monitoring, decoding and key codes identification. F. Alarm Circuit In order to simplify the circuit and convenient debugging, a 5V automatic buzzer is used in the alarm circuit [8]. And this make the software programming simplified. As shown in Fig. 7, it is controlled by the PNP transistor 9012 whose base is connected to the pin of the AT89S51. When the temperature exceeds the upper and lower limit value, the output low level which makes the transistor be on and then an alarm is given by the buzzer. G. Drive Circuit A step motor is used as the drive device to control the temperature. The fourphase and eightbeat pulse distribution mode is used to drive motor and the simple delay program is used to handle the time interval between the pulses to obtain different rotational speed. There are two output states for the step motor. One: when the temperature is over the upper value, the motor rotates reversely (to low the temperature), while when lower than the lower limit value, the motor rotates normally (to raise the temperature)。1 ℃ ), convenience and versatility, etc. It can be widely used in the occasions with 55℃ to 125℃ range, and there is a certain practical value.