【正文】
工程技術(shù)學院畢業(yè)論文 基于單片機的溫度自動控制系統(tǒng)設計 作者姓名: 專業(yè)名稱: 應用電子技術(shù) 指導教師: 講師 基于單片機的溫度自動控制系統(tǒng)設計 I 摘要 溫度的檢測與控制是工業(yè)生產(chǎn)過程中比較典型的應用之一,隨著傳感器在生產(chǎn)和生活中的更加廣泛的應用,利用新型單總線式數(shù)字溫度傳感器實現(xiàn)對溫度的測試與控制得到更快的開發(fā),本文設計了一種基于 AT89C51 的溫度檢測及報警系統(tǒng)。該系統(tǒng)將溫度傳感器 AD590 通過模擬放大電路接在模數(shù)轉(zhuǎn)化器 ADC0809 的輸入端,然后將 ADC0809 的 輸出端接在控制器的一個端口上 ,對傳感器溫度進行采集 ,將采集到的溫度值與設定值進行比較 ,當?shù)陀谠O定的上限溫度時 ,通過打開加熱電路來使溫度自然冷卻。文中給出了系統(tǒng)實現(xiàn)的硬件原理圖及軟件流程圖。經(jīng)實驗測試表明 ,該系統(tǒng)測量精度高、抗干擾能力強、報警及時準確 ,具有一定的參考價值。該系統(tǒng)設計和布線簡單,結(jié)構(gòu)緊湊,體積小,重量輕,抗干擾能力強,性價比高,擴展方便,在大型倉庫,工廠,智能化建筑等領域的多點溫度檢測中有廣闊的應用前景。 關(guān)鍵詞 : AD590; ADC0809; AT89C51; CD4511。 基于單片機的溫度自動控制系統(tǒng)設計 II Abstract Temperature detection and control of industrial production processes typical of one of the applications, with sensors in production and living in the more widely used, Li Yong of new singlebus digital temperature sensor to achieve on the test and control the temperature more rapidly development, the paper design based on AT89C51 temperature detection and alarm system. The system will AD590 temperature sensor connected via analog amplifier module input converter ADC0809, ADC0809 and then the output termination of a port on the controller, temperature sensor acquisition, will be collected and set the temperature value constant parison, when the temperature exceeds the upper limit set by closing the heating circuit to make the temperature of natural cooling. This paper presents the hardware implementation of the system schematic diagram and software flow chart. The experimental test shows that the system with high precision, strong antiinterference capability, alarm timely and accurate, with some reference value. The system design and layout is simple, pact structure, small size, light weight, antiinterference ability, costeffective, easy expansion, in large warehouses, factories, construction and other areas of 基于單片機的溫度自動控制系統(tǒng)設計 III intelligent multipoint temperature measurement in a wide application prospect. Key words: AD590; ADC0809; AT89C51; CD4511. 基于單片機的溫度自動控制系統(tǒng)設計 IV 目錄 摘 要 ........................................................................................................ I Abstract ..................................................................................................... II 目 錄 ......................................................................................................IV 前 言 ........................................................................................................1 1 溫度控制器緒論 ....................................................................................2 課題背景 ..........................................................................................2 溫度檢測系統(tǒng)的國內(nèi)外狀況 ..........................................................3 2 整體系統(tǒng)方案 ........................................................................................5 系統(tǒng)整體方案和結(jié)構(gòu) ......................................................................5 系統(tǒng)硬件接線圖 ..............................................................................6 3 系統(tǒng)硬件電路設計 ................................................................................8 主機控制電路 ..................................................................................8 溫度采集電路 ................................................................................ 11 模數(shù)轉(zhuǎn)換電路 ................................................................................13 數(shù)碼顯示電路 ................................................................................17 鍵盤輸入電路與加熱控制電路 ...................................................20 4 程序設計 ..............................................................................................23 主程序設計 ...................................................................................23 溫度檢測模塊 ................................................................................25 數(shù)值轉(zhuǎn)化模塊 ................................................................................29 BCD 顯示模塊 ..............................................................................31 比較加熱模塊 ................................................................................35 鍵盤中斷程序 ................................................................................37 總 結(jié) ......................................................................................................43 致謝 ..........................................................................................................44 基于單片機的溫度自動控制系統(tǒng)設計 V 參考資料 ..................................................................................................45 基于單片機的溫度自動控制系統(tǒng)設計 1 前言 現(xiàn)在可以說單片機是百花齊放,百家爭鳴的時期,世界上各大芯片制造公司都推出了自己的單片機,從 8 位、 16 位到 32 位,數(shù)不勝數(shù),應有盡有,有與主流 C51 系列兼容的,也有不兼容的,但它們各具特色,互成互補,為單片機的應用提供廣闊的天地。 由于單片機具有體積小、重量輕、價格便宜、功耗低,控制功能強及運算速度快等特點,因而在國民經(jīng)濟建設、軍事及家用電器等各個領域均得到了廣泛的應用。 所以,從上所述我們可以發(fā)現(xiàn)單片機得重要性。據(jù)統(tǒng)計,我國的單片機年容量已達到 13 億片,且每年以大約 16%的速度 增長,但相當于世界市場我國的占有率還不到 1%。這說明單片機應用在我國才剛剛起步,有著廣闊的前景!而且由于單片機具有體積小、重量輕、價格便宜、功耗低,控制功能強及運算速度塊等特點,無論是尖端科技,如軍事、通信、能源、機器人、交通、IT,還是現(xiàn)代工業(yè)、農(nóng)業(yè)、儀器儀表、汽車電子系統(tǒng)、家用電器、玩具及個人信息終端等諸多領域,都離不開單片機。因此,本論文就是從基于單片機的溫度自動控制系統(tǒng)設計來更加全面和深入的了解單片機。 基于單片機的