【正文】
空調(diào)溫度控制器軟件設(shè)計 20xx 年 5 月 II 空調(diào)溫度控制器軟件設(shè)計 Software Design of Temperature Control System Based on Air Conditioner III 摘 要 隨著人們生活水平的日益提高,空調(diào)已成為現(xiàn)代家庭不可或缺的家用電器設(shè)備,人們也對空調(diào)的舒適性和空氣品質(zhì)的要求提出了更高的要求?,F(xiàn)代的智能空調(diào),不僅利用了數(shù)字電路技術(shù)與模擬電路技術(shù),而且采 用了單片機(jī)技術(shù),實現(xiàn)了軟硬件的結(jié)合,既完善了空調(diào)的功能,又簡化了空調(diào)的控制與操作 。 為此我們設(shè)計了一個基于單片機(jī) AT89C52的簡易空調(diào) 自動 控制系統(tǒng),本系統(tǒng)主要功能是根據(jù)房間溫度和設(shè)定溫度的差值,并綜合考慮其他條件,然后對壓縮機(jī)和室內(nèi)外風(fēng)扇的運(yùn)行狀態(tài)進(jìn)行智能控制。本 系統(tǒng) 控制電路成本低廉,功能實用,操作簡便,有一定的實用價值。 本課題設(shè)計的空調(diào)溫度控制系統(tǒng),其系統(tǒng) 主要由 AT89C52單片機(jī)控制模塊、數(shù)模轉(zhuǎn)換模塊、液晶顯示 OCMJ4X8C 模塊、按鍵等部分組成 ,其軟件則采用 8051C 語言編程;該系統(tǒng)可以完成溫度 的顯示、溫度的設(shè)定、空調(diào)的控制等多項功能。 本課題軟件部分主要設(shè)計了模數(shù)轉(zhuǎn)化程序,溫度控制程序,液晶顯示程序及按鍵控制程序。 關(guān)鍵詞: 空調(diào) 單片機(jī) 自動控制 顯示 IV Abstact With the development of people’s daily life, aircondition has became an indispensable daily use equipment in modern family, and also, people has a new demand of the aircondition’s fort –standard and air quality. Modern smart air condition, not only benefit from technology from digital circuits, simulates electrical, but also take advantage from SCM technology, realizing the bination of hardware and software. Complementing the functions of aircondition and simplifying the system of control / operation in the same time. So, we design an operation system based on SCM technology AT89c52, whose main function is to set up the difference between the real temperature in the room and the designed one. Having considered the other general conditions together, it can make the digital control of pressor and in –room and outroom electric fans . This system has a low prim cost, and quite piratical, easyoperated, a lot piratical value can be seen in this system. This subject designs the control system of aircondition , which consists of AT89C52 SCM control module ,analogtodigital conversion module ,liquid crystal display OCM192X64 module ,and key ponents .The software used in this system is 8051c programming language 。This Simple automatic control system system can finish the setup and display of the temperature ,operation of the aircondition ect. . The software portion of the main design analogdigital conversion process, temperature control procedures, procedures for liquid crystal display and key control procedures. Key words: air conditioner single chip microputer automatic control display V 目 錄 摘要 1 Abstact IV 緒論 1 1 控制器系統(tǒng)組成及工作原理 2 控制系統(tǒng)的組成 2 控制系統(tǒng)的工作原理 3 2 芯片介紹 4 OCMJ4X8C 4 OCMJ4X8C 芯片介紹 4 OCMJ4X8C 的工作原理 4 OCMJ4X8C 的 數(shù)據(jù)顯示原理 6 OCMJ4X8C 的繪圖顯示原理 6 AT89C52 單片機(jī)介紹 6 AT89C52 主要 結(jié)構(gòu) 6 AT89C52 功能特性 7 AT89C52 引腳結(jié)構(gòu) 7 TLC0832 芯片介紹 1