【正文】
基于 DS18B20amp。s energy are highly strained,Traditional gas and electric water heaters use increasingly higher the advantages of inexhaustible solar energy,the solar water heaters are more and more ,different from the rapid development of solar water heaters, the research of water heater controller has been in infancy. Many water heater controller can not automatically control the temperature or water level , cause the dryburning,overburning or making the temperature of the water this situation, design a microprocessor controlled solar water heater controller not only make the heater’s function more perfect,but also make it more ,it is a valuable issue. The object is based on micro controller,proposed a system solution which make the sensor detect the temperature and water level at realtime,and MCU control the relays to make it drive the corresponding module. The core is to design a solar water heater not only has the function of temperature and water level display,but also has temperature control,water level control and alarming the dryburning or overburning. The design of the controller is divided into hardware ponents and software ponents. The hardware part is consist of STC89C52 MCU control module,DS18B20 temperature sensor temperature measurement module, water level measure module,temperature and water level control module,keyboard input and LCD display software part is dispatched by MCU. Through program analyzes the current temperature and water level detected by sensor, to achieve the automatic control of temperature and water addition ,the program is also designed with modular structure,the whole program design is divided into several functional modules. Realizing the function of each module first, and then group them it with the clear and understandable structure,but also enhancing the portability of programs. Keywords: water heater controller。DS12C887 的熱水器智能控制器的設(shè)計(jì) [J].機(jī)械工程與自動(dòng)化 ,20xx,(2):191192. [7]干簧管百科 [EB/OL]. [8]應(yīng)錕.基于單片機(jī)的電子萬(wàn)年歷設(shè)計(jì) [J].中國(guó)科技博覽 ,20xx,(15):243243. [9]于志贛 ,劉國(guó)平 ,張旭斌等 .液顯 LCD1602 模塊的應(yīng)用 [J].機(jī)電技術(shù) ,20xx,32(3):2123. [10]單片機(jī)驅(qū)動(dòng)繼電器 [EB/OL]. [11]太陽(yáng)能熱 水器的通用控制器研制 [EB/OL]. [12]吳永明.基于某型計(jì)程儀測(cè)試系統(tǒng)要求的高精度液壓發(fā)生裝置的設(shè)計(jì)與實(shí)現(xiàn) [D].上海: 上海交通大學(xué) ,20xx. [13]. Hasan,K. Arifin, , .Design, implementation and performance of a controller for uninterruptible solar hot water system[C].IEEE 18th International Conference on Industrial Enigineering and Engineering :584588. [14] Zaixiang Liu. Intelligent integrated solar water heater the development orientation of future household products[C]. In Proceedings of ISES Solar World Congress , 20xx . [15]王正彥 .太陽(yáng)能熱水器控制器的設(shè)計(jì)與實(shí)現(xiàn) [J].儀表技術(shù)與傳感器 ,20xx,(11):5355 太陽(yáng)能熱水器控制器的軟硬件設(shè)計(jì) 29 致 謝 從 20xx 年 12 月初到 20xx 年 6 月中旬,歷時(shí)半年左右,太陽(yáng)能熱水器控制器的軟硬件設(shè)計(jì)論文順利完成了.從開(kāi)始的選題、收集資料、開(kāi)題 報(bào)告到后期的電路設(shè)計(jì)、論文編寫(xiě)、反復(fù)修改等等.整個(gè)過(guò)程都得到了于鳳芹老師和莊嚴(yán)學(xué)長(zhǎng)的耐心指導(dǎo)和細(xì)心幫助.特別是于老師嚴(yán)謹(jǐn)?shù)闹螌W(xué)態(tài)度讓我嚴(yán)格要求自己,論文編寫(xiě)過(guò)程前后在于老師的指導(dǎo)下修改了好多次,我的文章也從開(kāi)始的文字堆砌漸漸變成了一篇條理清晰、語(yǔ)言得當(dāng)?shù)漠厴I(yè)設(shè)計(jì)論文.回過(guò)來(lái)看,這些修改的過(guò)程都是一種歷練,一種人生的積累. 四年的大學(xué)生活隨著畢業(yè)設(shè)計(jì)答辯的完成即將落下帷幕.在此也要感謝四年來(lái)給我上過(guò)課的所有老師,感謝高春能老師帶著我做了大學(xué)的第一個(gè)項(xiàng)目,讓我對(duì)電路模塊有了最初的認(rèn)識(shí),也為后來(lái)的比賽和項(xiàng)目打下了 基礎(chǔ).更要感謝帶著我做第二個(gè)項(xiàng)目的于鳳芹老師,讓我更加熟悉了單片機(jī)電路的設(shè)計(jì)和各個(gè)功能模塊的制作,于老師還指導(dǎo)我發(fā)表了文章,讓我對(duì)論文的撰寫(xiě)和發(fā)表過(guò)程有了了解,這些經(jīng)歷對(duì)我之后的人生都是一筆筆寶貴的財(cái)富. 最后,再次感謝于鳳芹老師,感謝答辯組的各位老師,謝謝大家. 附錄 30 附錄 A: 作者在 校 期間發(fā)表的論文 [1]于昆才,戈永侃 . 基于 Zigbee 無(wú)線通信技術(shù)交流傳感器設(shè)計(jì) [J]. 信息通信 , 20xx. 10,總第 121 期 : 9091頁(yè) . [2]戈永侃,于昆才 . 一種帶語(yǔ)音提示功能的空調(diào)遙控器設(shè)計(jì) [J]. 信息通信 , 20xx. 8,總第 120 期 : 69頁(yè) . 附錄 31 附錄 B: 作者在 校 期間 項(xiàng)目成果物 項(xiàng)目 1:基于 zigbee 無(wú)線通信技術(shù)交流傳感器設(shè)計(jì) 指導(dǎo)老師:高春能 項(xiàng)目成果物展示: 調(diào)試情況(精度為 1mA): 附錄 32 項(xiàng)目 2:一種帶語(yǔ)音提示功能的空調(diào)遙控器設(shè)計(jì) 指導(dǎo)老師:于鳳芹 紅外接收模塊: 主控、溫度、語(yǔ)音、紅發(fā)發(fā)送等模塊: 附錄 33 附錄 C:部分模塊匯編程序 主程序: ORG 000H JMP START START: Curtemp EQU 10H ; Curtemp 存儲(chǔ)地址 Pretemp EQU 11H ; Pretemp 存儲(chǔ)地址 MOV TMOD, 53H SETB EA ;開(kāi) CPU 中斷 LCALL ReadTemp ;讀溫度時(shí)間設(shè)定值 LCALL ReadWaterandPosition ;讀水位高度 CLR C ; C 清零 SUB Curtemp, pretemp ;當(dāng)前溫度減去預(yù)設(shè)溫度 JC Offheat Heatcontinue: LCALL DELAY LCALL Heat SJMP $ ;等待中斷 OffHeat: SETB RETI Heat: CLR LCALL DELAY CLR C LCALL ReadTemp MOV A, Curtemp ADD A, 2H SUB A, Pretemp JNC KeepTemp JMP Heatcontinue LCALL KeeptempCON RETI 溫控程序如下: ORG 000H JMP START START: Curtemp EQU 10H Pretemp EQU 11H MOV TMOD, 53H SETB EA CLR C 附錄 34 SUB Curtemp, pretemp JC Offheat OffHeat: CLR RETI ReadTempandTime: LCALL ReadTemp LCALL ReadTime RET 水位檢測(cè)程序如下: ORG 000H JMP START START: Curtemp EQU 10H Pretemp EQU 11H MOV TM。 編號(hào) 本科生畢業(yè)設(shè)計(jì)( 論文 ) 題目: 太陽(yáng)能熱水器控制器 的軟硬件設(shè)計(jì) 物聯(lián)網(wǎng)工程 學(xué)院 電子信息工程 專業(yè) 學(xué) 號(hào) 0703090325 學(xué)生姓名 于昆才 指導(dǎo)教師 于鳳芹 教授 二〇一三 年 六 月 設(shè)計(jì)總說(shuō)明 I 設(shè)計(jì)總說(shuō)明 在全世界能源都高度緊張的今天,傳統(tǒng)的燃?xì)夂碗姛崴魇褂贸杀驹絹?lái)越高,太陽(yáng)能熱水器憑借著太陽(yáng)能取之不盡的優(yōu)點(diǎn)越來(lái)越受到人們的歡迎.但與太陽(yáng)能熱水器發(fā)展日趨成熟的現(xiàn)狀不同,與之配套的熱水器控制器還存在著很多問(wèn)題.有些熱水器控制器無(wú)法自動(dòng)控制水溫和水位,經(jīng)常出現(xiàn)干燒、過(guò)燒或水溫不適等情況.針對(duì)這個(gè)現(xiàn)狀,設(shè)計(jì)一種單片機(jī)控制的太陽(yáng)能熱水器控制器.該控制器可以讓熱水器功能更加的完善,也使得熱水器使用更加安全,因此這是一個(gè)具有實(shí)用價(jià)值的課題. 本課題以單片機(jī)控制為基礎(chǔ) ,提出了一種通過(guò)傳感器實(shí)時(shí)檢測(cè)溫度和水位,再由單片機(jī)控制繼電器驅(qū)動(dòng)相應(yīng)控制模塊來(lái)實(shí)現(xiàn)溫度和水位智能控制的系統(tǒng)方案,核心是設(shè)計(jì)出一個(gè)太陽(yáng)能熱水器控制器.該控制器在太陽(yáng)能熱水器原有的溫度和水位顯示功能基礎(chǔ)上,新增了溫度控制、水位控制、防干燒和過(guò)燒警報(bào)等功能.控制器的設(shè)計(jì)又分硬件部分和軟件部分.硬件部分由 STC89C52 單片機(jī)主控模塊、 DS18B20 溫度傳感器測(cè)溫模塊、干簧管水位傳感器測(cè)水位模塊、繼電器驅(qū)動(dòng)的溫控和水位控制模塊、鍵盤(pán)輸入和液晶顯示模塊等部分組成.軟件部分由單片機(jī)主控,通過(guò)程序分析傳感器檢測(cè)的當(dāng)前溫 度和水位,再通過(guò)與預(yù)設(shè)值的比較來(lái)發(fā)出信號(hào)驅(qū)動(dòng)相應(yīng)的控制模塊,實(shí)現(xiàn)對(duì)溫度和水位的自動(dòng)控制.此外本設(shè)計(jì)的程序也采用模塊化結(jié)構(gòu),將整個(gè)程序設(shè)計(jì)分成若干功能模塊.先將每個(gè)模塊的功能實(shí)現(xiàn),然后再組合到一起,使其邏輯關(guān)系更清晰易讀,而且增強(qiáng)了程序的可移植性. 關(guān)鍵詞: 熱水器控制器;單片機(jī);軟件設(shè)計(jì);硬件設(shè)計(jì) DESIGN SUMMARY II DESIGN SUMMARY Today the worl