【正文】
ding instructions. Keywords: SCM。所以此裝置不僅輕便、穩(wěn)定,而且功能非常實用。編號: 最牛的自主論文 題 目: 溫度自動控制系統(tǒng)實現(xiàn) 學(xué) 院: 專 業(yè): 學(xué)生姓名: 學(xué) 號: 指導(dǎo)教師: 職 稱: 題目類型 : 理論研究 實驗研究 工程設(shè)計 工程技術(shù)研究 軟件開發(fā) 2021 年 5 月 28 日 2 第 2 頁 共 54 頁 摘 要 溫度控制是我們工業(yè)生產(chǎn)過程和日常生活中經(jīng)常遇到的過程控制;在我們?nèi)粘I钪校依锏娘嬎畽C、電風(fēng)扇、空調(diào)、暖氣開關(guān)、宿舍的熱水系統(tǒng)無不需要用到自動溫控系統(tǒng)。設(shè)計中采用 MCS51 單片機來對溫度進行控制,是因為其具有控制方便、組態(tài)簡單和靈活性大,集成度高,功能強,通用性好,特別是它具有體積小,重量輕,能耗低,價格便宜,可靠性好,抗干擾能 力強和使用方便等方面的獨特的優(yōu)點;而且可以大幅度提高被控溫度的技術(shù)指標(biāo)。 in our daily life, home water dispenser, electric fans, air conditioning, heating switch, dormitories not need to use a hot water system has no automatic temperature control system . In order to achieve a plurality of temperature control of the system currently on the market is very small, for each individual host objects to control the temperature bees waste of resources, and in order to solve this problem, the realization of a system for controlling a plurality of host the project implements a dualchannel automatic temperature control system. This design is based mainly on STC89C51 MCU and DS18B20 temperature sensor automatic temperature control system, and the use of 1602 as a temperature LCD display module, designed to fully utilize the microcontroller pin resources to achieve twochannel temperature control system can separate keyboard setting the normal temperature range, temperature may choose to work channel, the control module is implemented by a control signal output of the relevant switching control of heating and cooling devices, in order to achieve a twochannel control system for automatic temperature control. Design used in MCS51 microcontroller to control the temperature, because of its easy to control, configuration simplicity and flexibility, high integration, strong function, versatility, and in particular, it has small size, light weight, consumption is low, cheap, good reliability, antiinterference ability and ease of use of the unique advantages。 temperature control 4 第 4 頁 共 54 頁 引言 ......................................................... 6 1 緒論 ...................................................... 6 溫度測量與控制技術(shù)的發(fā)展與現(xiàn)狀 ........................................ 6 2 設(shè)計任務(wù) .................................................. 7 3 設(shè)計構(gòu)思及理論 ............................................ 8 設(shè)計思路 .............................................................. 8 方案論證 .............................................................. 9 主機模塊 ............................................................ 9 顯示模塊 ............................................................ 9 溫度測量 ............................................................ 9 4 系統(tǒng)電路的設(shè)計及原理說明 ................................. 10 電路系統(tǒng)說明 ......................................................... 10 電路設(shè)計說明 ......................................................... 10 單片機電路 ......................................................... 11 供電系統(tǒng)電路 ....................................................... 11 顯示模塊電路 ....................................................... 12 時鐘電路 ........................................................... 12 復(fù)位電路 ........................................................... 13 按鍵電路 ........................................................... 13 報警電路 ........................................................... 14 控制電路 ........................................................... 15 保護電路 ........................................................... 15 5 關(guān)鍵元器件介紹 ........................................... 16 STC89C51 單片機 ...................................................... 16 單片機主要功能 ..................................................... 16 51 單片機常用管腳功能 .............................................. 16 單片機內(nèi)部寄存器 ................................................... 18 常見的寄存器 ....................................................... 19 LCD1602 液晶屏 ...................................................... 19 1602 液晶屏的優(yōu)點 .................................................. 19 管腳功能 ........................................................... 20 指令說明及時序 ..................................................... 20 地址映射及標(biāo)準(zhǔn)字庫表 ............................................... 22 DS18b20 溫度傳感器 ................................................... 22 DS18B20 的簡介 ..................................................... 22 DS18b20 初 始化操作流程 ............................................. 23 DS18B20 與單片機的典型接口設(shè)計 ..................................... 25 數(shù)據(jù)采集電路的設(shè)計 ................................................. 25 5 第 5 頁 共 54 頁 6 系統(tǒng)原理圖及 PCB圖 ....................................... 25 系統(tǒng)原理圖 ........................................................... 25 系統(tǒng) PCB 圖 ........................................................... 26 7 軟件設(shè)計 ................................................. 26 軟件組成 ............................................................. 27 主程序模塊 ........................................................... 27 數(shù)據(jù)采集模塊 ......................................................... 28 初始化程圖 ......................................................... 28 溫度設(shè)置模塊 ......................................................... 30 軟 件抗干擾措施 ....................................................... 31 8 結(jié)論 ........................................