摘要本方案利用單片機系統,溫度傳感器,調理電路, A/D變換,I/O接口鍵盤顯示等電路設計一個空調溫度控制系統,要求能通過遙控器或鍵盤設定溫度值來控制壓縮機的工作狀態,并能實時顯示當前溫度值。
本篇論文先是對于本課題的背景和意義進行簡要介紹,然后對于硬件設計部分所用的AT89C51單片機的作用和功能,以及模數轉換電路和溫度傳感器電路的設計進行系統的闡述。接著對于軟件部分,介紹了顯示模塊、溫度比較模塊和控制模塊的功能實現。最后,通過軟件硬件的調試,完成了基于51單片機空調溫度控制系統的設計。
關鍵字:溫度傳感器,單片機,溫度控制5560
畢業設計說明書(論文)外文摘要
Title Design of The Control System of Air Conditioner Based On 51 MCU
Abstract This paper introduces a control system of air conditioner based on 51 MCU, which consists of MCU, temperature sensor, conditioning circuit, A/D convert, I/O of button and display circuits. The requirements of this project is to set temperature to control the working condition of the compressor of the air conditioner by buttons or remote control, and to display the instant temperature.
This paper inroduces the background and meaning of this subject first of all, and then summarize the functions of AT89C51 MCU,which is applied in this project, and the design of A/D convert, temperature sensor circuits. For the software, this paper explains the functional implementation of the display section, temperature comparison section and control section. At last, this paper achieves the design of a control system of air conditioner based on 51 MCU by a successful simulation.
源¥自%六:維;論-文'網=www.kj9998.cn
Key words: Temperature sensor, MCU, Temperature Control
目 次
1 緒論•1
1.1 研究背景1
1.2 論文的章節安排2
2 方案設計2
2. 1 方案流程設計2
2. 2 方案論證•3
3 硬件設計 ••3
3.1 單片機的選擇3
3.2 模數轉換器的選擇••7
3.3 LM35,ADC0809與AT89C51的連接••11
3.4 顯示電路12
3.5 按鍵控制電路••15
3.7 傳感器與放大電路•16
3.7 電機與驅動電路17
3.8 紅外遙控電路••17
4 系統軟件設計••20
4.1 軟件流程20
4.2 軟件設計20
4.2.1 I/O口命名•22
4.2.2 主函數•23
4.3.3 延時函數••26
4.3.4 顯示函數••26
5 系統調試••27
5.1 仿真軟件和開發工具•27
5.1.1 Proteus27
5.1.2 Keil C•30
5.2 初始化調試31
5.3 調試增溫減溫按鈕32
5.4 調試模數轉換•34
5.5 調試sw模式選擇按鍵35
結論 ••37
致謝38
參 考 文 獻••39
1.緒論
1.1研究背景
空調即空氣調節器(room air conditioner),掛式空調是一種用于給空間區域(一般為密閉)提供處理空氣溫度變化的機組。它的功能是對該房間(或封閉空間、區域)內空氣的溫度、濕度、潔凈度和空氣流速等參數進行調節,以滿足人體舒適或工藝過程的要求。
源¥自%六:維;論-文'網=www.kj9998.cn
空調由以下主要部分組成:
壓縮機部分:制冷循環的過程為制冷劑被壓縮機由蒸發器吸入的低溫、低壓、蒸發后的氣體進入壓縮機吸入口。由壓縮機內曲軸箱經電動機驅動,將制冷劑壓縮后從排氣管路排出的制冷劑變為高溫、高壓、氣體(壓縮機排出的制冷劑為高溫、高壓氣體)。 51單片機空調溫度控制系統的設計+流程圖:http://www.kj9998.cn/zidonghua/20170207/2630.html