【正文】
本科畢業(yè)設計論文 冰箱測試系統(tǒng)設計 學 生 姓 名: 班 級: 學 號: 指 導 教 師: 所 在 單 位: 電氣工程學院 答 辯 日 期: 年 月 日 I 摘 要 冰箱性能測試技術的不斷完善和發(fā)展,能夠促進冰箱性能的改進,推動全行業(yè)技術的進步與繁榮,但我國冰箱測試系統(tǒng)還不完善,全面引進既需要人量的資金投入,也不符合國家長久利益,因此,有必要對自動化冰箱制冷性能測控系統(tǒng)進行研究,開發(fā) 出一種運行能耗低、通用性強、控制功能完善、數(shù)據(jù)處理高效、顯示操作集中、人機界面友好、調(diào)試方便運行安全穩(wěn)定、造價便宜等特點的測試系統(tǒng)。 本文介紹了一種基于 AT89C51 單片機的冰箱測試系統(tǒng),該系統(tǒng)利用 溫度傳感器 DS18B20 采集電冰箱冷藏室的溫度 ,并通過 A\D 轉換通過數(shù)碼管進行顯示,且可利用 RS485 串行總線來進行擴展同時測量多臺冰箱的溫度。其中單片機是實時檢測和自動控制系統(tǒng)中心一個核心器件。本文通過利用單片機對冰箱測試系統(tǒng)進行改進,實現(xiàn)了冰箱的智能檢測,并且操作方便,運行穩(wěn)定。 關鍵詞 : 冰箱 。 溫度檢測 。 單片機 。 DS18B20 II Abstract The refrigerator performance testing technology continuous improvement and development, can promote the improvement of the performance of the refrigerator, and promote the industry technology progress and prosperity, but our country refrigerator test system is not perfect, overall introduction of the amount of people need to have both funds, and also do not conform to national interests for a long time, therefore, it is necessary to refrigerator automation control system of performance, developed a running low energy consumption, strong monality, control the perfect function and data processing efficiency, show operation concentration, friendly manmachine interface, convenient debug operation safety stable, cost cheap and so on test system. This paper introduces a kind of based on AT89C51 refrigerator test system, this system using temperature sensor DS18B20 acquisition refrigerator temperature of cold, and through A \ D conversion through the digital tube that is available RS485 serial bus to expand simultaneously measuring more the temperature of the refrigerator. Among them is the realtime detection and single chip microputer automatic control system center a core device. This article through the use of the monolithic integrated circuit to the refrigerator test system was improved, and realize the refrigerator intelligent detection, and convenient operation, stable performance. Keywords: refrigerators。 Temperature detection。 Single chip microputer。 DS18B20 I 目 錄 摘 要 ............................................................. I Abstract.......................................................... II 第一章 緒論 ....................................................... 1 研究背景 .................................................... 1 發(fā)展概況 .................................................... 1 課題研究目的及意義 .......................................... 2 第二章 系統(tǒng)的總體設 計 .............................................. 4 電冰箱簡介 .................................................. 4 冰箱主要電器零部件 ..................................... 4 冰箱工作原理 ........................................... 6 系統(tǒng)總體方案設計 ............................................ 7 傳感器部分 ............................................. 7 主控制部分 ............................................. 8 系統(tǒng)方案 ............................................... 9 第三章 系統(tǒng)硬件設計 ............................................... 10 硬件結構 ................................................... 10 AT89C51 單片機芯片介 紹 ...................................... 10 單片機主要特性 ........................................ 10 管腳說明 .............................................. 11 運算器 ................................................ 12 中斷系統(tǒng) .............................................. 13 單片機最小系統(tǒng) ........................................ 13 單片機應用 ............................................ 14 A/D 轉換器 .................................................. 14 TLC549 的主要特點 ..................................... 14 TLC549 芯片的工作原理 ................................. 15 RS485 接口 ................................................. 16 RS485 簡介 ........................................... 16 RS485 接口標準 ....................................... 16 RS485 節(jié)點數(shù) ......................................... 16 RS485 通信方式 ....................................... 17 必備電路介紹 ............................................... 19 供電直流電源電路 ...................................... 19 時鐘震蕩電路 .......................................... 19 復位電路 .............................................. 19 溫度檢測電路 ............................................... 19 溫度傳感器 ............................................ 20 運算放大電路 .......................................... 22 其他電路與器件簡介 ......................................... 22 鍵盤電路和顯示電路 .................................... 22 存儲器 ................................................ 22 II 鍵盤 /顯示器 ........................................... 22 執(zhí)行器 ................................................ 22 開關檢測 .............................................. 22 報警器 ................................................ 23 第四章 系統(tǒng)軟件設計 ............................................... 24 主程序 ..................................................... 24 A/D 轉換和數(shù)碼顯示子程序 .................................... 25 DS18B20 程序 ................................................ 25 開啟延時程序 ............................................... 26 結 論 ............................................................ 28 參 考 文 獻 ....................................................... 29 致 謝 ............................................................ 30 附 錄 ............................................................ 30 主要 C 程序 ..................................................... 30 ( 1)主函數(shù)如下 ............................................. 30 ( 2) DS18B20 子程序 ......................................... 31 ( 3)延時程序 ............................................... 34 1 第一章 緒論 研究背景 冰箱的出現(xiàn)是人類近代生活的一個重大轉折,要知道 在人們發(fā)明冰箱之前,保存 肉類的唯一方法是腌制,而在夏季喝到冰鎮(zhèn)飲料更是一種奢望 ,而冰箱幫