【正文】
本科畢業(yè)論文(設(shè)計(jì)) 題目:基于單片機(jī)水溫控制系統(tǒng)設(shè)計(jì)學(xué) 院: 專 業(yè): 班 級(jí): 學(xué) 號(hào): 學(xué)生姓名: 指導(dǎo)教師: 年 月 日 貴州大學(xué)本科畢業(yè)論文(設(shè)計(jì))誠(chéng)信責(zé)任書(shū)本人鄭重聲明:本人所呈交的畢業(yè)論文(設(shè)計(jì)),是在導(dǎo)師的指導(dǎo)下獨(dú)立進(jìn)行研究所完成。畢業(yè)論文(設(shè)計(jì))中凡引用他人已經(jīng)發(fā)表或未發(fā)表的成果、數(shù)據(jù)、觀點(diǎn)等,均已明確注明出處。特此聲明。論文(設(shè)計(jì))作者簽名: 日 期: 2014年 6月 7日目錄摘要 1第一章 引言 3 3 3 3第二章 系統(tǒng)相關(guān)技術(shù)介紹 5 5 6 單片機(jī)內(nèi)部結(jié)構(gòu) 6 6 DS18B20溫度傳感器應(yīng)用解析 8 DS18B20的主要特征 8 DS18B20封裝結(jié)構(gòu)圖 9第三章 系統(tǒng)各部件設(shè)計(jì) 10 10 10 10 10 鍵盤(pán)電路 11 數(shù)碼管和指示燈顯示電路及報(bào)警電路 12 12 13 13 系統(tǒng)的抗干擾措施 13 DS18B20介紹 13 DS18B20的單線(1-wire bus)系統(tǒng) 14 DS18B20的供電方式 16 DS18B20設(shè)計(jì)中應(yīng)注意的幾個(gè)問(wèn)題 17第四章系統(tǒng)總設(shè)計(jì) 18 18 19 19 22 22第五章系統(tǒng)調(diào)試 24 24 25 25第六章 總結(jié)與展望 26參考文獻(xiàn) 27致謝 28附錄1單片機(jī)水溫控制系統(tǒng)程序 29單片機(jī)水溫控制系統(tǒng)設(shè)計(jì)摘要隨著科學(xué)技術(shù)的不斷發(fā)展,和人們對(duì)生活品質(zhì)要求的不斷提高,現(xiàn)代電子產(chǎn)品在大眾的生活中有著舉足輕重的作用,產(chǎn)品的功能、性能也隨著人們的要求不斷完善,不斷提高。在此要求下,設(shè)計(jì)了一個(gè)基于單片機(jī)的水溫控制系統(tǒng),以單片機(jī)為核心,完成測(cè)量水溫、溫度加熱、水溫現(xiàn)實(shí)和報(bào)警燈功能。系統(tǒng)采用了DS18B20采集溫度,用鍵盤(pán)設(shè)定所需溫度,設(shè)定溫度與現(xiàn)實(shí)溫度都通過(guò)數(shù)碼管顯示出來(lái),當(dāng)溫度達(dá)到設(shè)定溫度時(shí)自動(dòng)報(bào)警。通過(guò)基于單片機(jī)水溫控制系統(tǒng)設(shè)計(jì)的實(shí)驗(yàn),表明以單片機(jī)為核心可以實(shí)現(xiàn)對(duì)水溫的控制,也可以根據(jù)用戶的需要進(jìn)行設(shè)置。該系統(tǒng)應(yīng)用廣泛,在該系統(tǒng)的基礎(chǔ)上在進(jìn)行改善可達(dá)到更理想的用途。在工業(yè)生產(chǎn)中溫度、壓力、流量和液位是四種常用的物理量,其中溫度是一個(gè)非常重要的過(guò)程量,因?yàn)樗苯佑绊懭紵?、化學(xué)反應(yīng)、發(fā)酵、烘烤、煅燒、蒸餾、濃度、擠壓成型,結(jié)晶以及空氣流動(dòng)等物理和化學(xué)過(guò)程。溫度控制在工業(yè)領(lǐng)域應(yīng)用非常廣泛,由于其具有影響因素多、參數(shù)多變、運(yùn)行慣性大、控制滯后等特點(diǎn),所以對(duì)控制調(diào)節(jié)器要求較高。溫度控制不好就會(huì)引起生產(chǎn)安全,產(chǎn)品質(zhì)量和產(chǎn)量等一系列問(wèn)題。在日常生活中水溫也是經(jīng)常要用的參量,如飲水機(jī)、熱水器、浴池、游泳池等都需要對(duì)水溫進(jìn)行控制,從而使人們生活更為便利。針對(duì)這個(gè)系統(tǒng)而言,是以89C51單片機(jī)為核心,配合溫度傳感器,信號(hào)處理電路,顯示電路,輸出控制電路等組成,軟件選用C語(yǔ)言編程。單片機(jī)將溫度傳感器監(jiān)測(cè)到的水溫,顯示于LED數(shù)碼管顯示器上,可根據(jù)用戶設(shè)定對(duì)水溫進(jìn)行加熱以及對(duì)于設(shè)定溫度高于或低于界限溫度時(shí)報(bào)警。系統(tǒng)靈活性強(qiáng),易于操作,可靠性高,在將來(lái)會(huì)有更廣闊的發(fā)展前景。關(guān)鍵詞: C51單片機(jī),溫度控制,DS18B20 Designoftemperaturecontrolsystembased onMCU Abstract With the development of science and technology, and the continuous improvement of quality of life, and modern electronic products play an important role in the public life, product features, performance as people continue to improve, and continuously improve. Under this requirement, designed a water temperature based on singlechip microputer control system with SCM as the core pleted reality heating water temperature, temperature measurement, temperature and the alarm lamp function. System uses a DS18B20 collected temperature, set the desired temperature with the keyboard, the set temperature and actual temperature through the digital display, automatic alarm when temperature has reached the set temperature. Through the design of temperature control system based on singlechip microputer experiment showed that SCM as the core can realize temperature control, can also be set according to user39。s needs. The system is widely used in that system improvements can be achieved on the basis of a better use of. In industrial production of temperature, pressure, flow, and level are four monly used physical quantities, where the temperature is a very important process because it directly affects the bustion, chemical reaction, baking, roasting, calcination, distillation, concentration, extrusion, crystallization, and air movement, and other physical and chemical processes. Temperature control is widely used in industry, because of their number, parameter, variable, influencing factors operating control of large inertia, hysteresis characteristics, so the control regulator to demand higher. Poor temperature control can cause the production safety, product quality and productivity and other problems. In the parameters of the water temperature is often used in everyday life, such as water coolers, water heater, hot tub, pool, needed to control the water temperature, so as to make people39。s lives easier. For this system,Is 89C51 SCM as the core, with the temperature sensors, signal processing circuit, display circuits, output control circuits and other ponents, software using c language programming. Monolithic temperature sensors to monitor water temperature, displayed on the LED digital tube display, to heat the water temperature can be set according to the user, and when the set temperature is above or below the limit temperature alarm. System flexibility, ease of operation, high reliability, and will have broader prospects for development in the future.KEY WORDS:SCM,temperatre control,DS18B20第一章 引言 隨著科學(xué)技術(shù)的進(jìn)步,水溫控制在生活中的地位越來(lái)與重要,水溫控制系統(tǒng)在溫度控制區(qū)域受到廣泛的應(yīng)用。 系統(tǒng)設(shè)計(jì)的背景 在能源日益緊張的今天,電熱水器,飲水機(jī),電飯煲之類的家用電器在保溫時(shí),由于其簡(jiǎn)單的溫控系統(tǒng),利用溫敏電阻來(lái)實(shí)現(xiàn)溫控,因而會(huì)造成很大的能源浪費(fèi)。本系統(tǒng)是以AT89C51單片機(jī)為核心,配合溫度傳感器,信號(hào)處理器,顯示電