【正文】
陣 即可 。計(jì)數(shù)器 1 和溫度寄存器被預(yù)置在- 55℃ 所對(duì)應(yīng)的一個(gè)基數(shù)值。在單線端口的條件下, 首先要建立 ROM 協(xié)議,才能進(jìn)行存儲(chǔ)和控制操作。 ? 可 以 通過數(shù)據(jù)線供電 , 供電范圍為 ~ , 測(cè)溫 的 范圍為 55~+125℃ (- 67~+ 257℉ ), 當(dāng) - 10~+ 85℃ 范圍內(nèi)精確度為 177。 圖 DS18B20 的引腳圖和封裝 DS18B20 的引腳介紹 DQ 為數(shù)字信號(hào)輸入 /輸 出 端 。 DS18B20 擁有 9~ 12 位測(cè)溫分辨率,精度為 ℃ 。由于水的高低也有一定的電阻,如圖 ,當(dāng)水位較低時(shí),傳感器將信號(hào)傳給單片機(jī) 端口,輸出低電平信號(hào)輸入到 U7A 電壓相應(yīng)變的?。ǖ陀?6v), 1 腳輸出低電平,經(jīng)過U7A 電壓跟誰器,輸入到 U7B 反相輸入端,與 U7B 同相端電壓進(jìn)行比較,在同相端設(shè)置的基準(zhǔn)電壓為 6V,輸出高電平,作用于 端口制成高電平, AT89S52接受到高電平信號(hào)后,將指 令給 端口,制成高電平,使三極管導(dǎo)通,繼電器吸合,電磁閥門開始工作。 單片機(jī)中的定時(shí)器可以提供電壓變化時(shí)間的紀(jì)錄,接下來就是如何將電壓的變化傳遞給單片機(jī)。 P3口的每一條引 腳 都 可 分別 定義為第 二 功能的輸入 功能 或第二 輸出 功能。 ? P2 口: P2 口是一個(gè) 雙口功能、字節(jié)地址為 0H、位地址為 A0H~A7H。在 flash 編程期間, EA 也接收 12 伏 VPP 電壓。當(dāng)不訪問外部存儲(chǔ)器程序時(shí) , ALE 仍以時(shí)鐘振蕩頻率的 1/6 輸出固定的脈沖信號(hào),因此它可對(duì)外輸出時(shí)鐘或用于定時(shí)目的。在單片機(jī)內(nèi)部接至上述的振蕩器的反相放大器的輸出端,振蕩器的頻率是晶體振蕩頻率。 AT89S52 引腳功能介紹 AT89S52 單片機(jī)采用雙列直排的 40 條引腳的封裝形式。 公共 水位 CD 4069 74LS244 AT89S52 水箱 5 表 輸出電阻值表 短接方式 無短接 2 3 4 5 輸出電阻值 極大值 25kΩ kΩ kΩ 方案選擇 以 RC 充放電式水位傳感器來測(cè)量水位有較大優(yōu)勢(shì), RC 充放電式水位傳感器只要兩根線就可以,這里相對(duì)于排阻法就省下不少的導(dǎo)線,另一方面占用較少的 I/O 口,僅需兩個(gè) I/O 口就能完成水位檢 測(cè)任務(wù),極大地節(jié)約了單片機(jī)的 I/O 口資源。單片機(jī)對(duì)這些引腳進(jìn)行判斷后 ,顯示相應(yīng)的水位值。 其基本工作原理是當(dāng)用戶在使用熱水器時(shí),水箱中水位下降到一定刻度值時(shí),單片機(jī)會(huì)發(fā)指令給報(bào)警電路,同時(shí)打開電磁閥水箱內(nèi)會(huì)水自動(dòng)上水,水位達(dá)到的最高刻度 時(shí)單片機(jī)會(huì)控制電磁閥進(jìn)行放水。具體流程框圖如圖 。上水電磁閥、報(bào)警電路,是整個(gè)系統(tǒng)的執(zhí)行部分。 在西方,尤其是美國、德國、以色列這些國家在太陽能熱水器方面的研發(fā)一直比較活躍。現(xiàn)在人們對(duì)家用電器的要求越來越趨向數(shù)字化、自動(dòng)化、智能化。雖然本論文課題是水位控制電路設(shè)計(jì),但水位的檢測(cè)和溫度有著密不 可分的聯(lián)系,所以溫度的檢測(cè)模塊也是論文必不可少的一部分。除文中已經(jīng)注明引用的內(nèi)容外,本論文不含其他個(gè)人或集體已經(jīng)發(fā)表或撰寫過的研究成果。太陽能水位控制器主要起到太陽能中水位顯示,無水和水滿報(bào)警的作用。 設(shè)計(jì)出電路原理 圖。 2 課題工作量 難易程度適中,工作量飽滿 3 設(shè)計(jì)(論文)質(zhì)量 材料豐富、內(nèi)容充實(shí),較好地體現(xiàn)本專業(yè)基本知識(shí)、基本技能的綜合應(yīng)用,觀點(diǎn)明確、結(jié)構(gòu)完整、格式符合《徐州工業(yè)職業(yè) 技術(shù)學(xué)院畢業(yè)設(shè)計(jì)(論文)規(guī)范》。 關(guān)鍵詞 : AT89S52; RC 充放電;水位檢測(cè);溫度檢測(cè) VII Abstract My design regards the AT89S52 SCM as the core, bining the RC chargedischarge type waterlevel sensor. I design one kind of digital and intelligent control system of solar energy water heater. Although my issue is about water monitoring system, I still mentioned something about temperature monitoring content. My subject is still mainly in water monitoring. This system consists of main chip modules, LCD display module, the water level detection module. the temperature level detection module, keyboard control module, alarm module and solenoid valve control module. At the beginning of the study describes the need for the solar water heaters , domestic and international research developments, the final part of this article also brings us the design of requirements. Then article brings us the main demonstration and determination of the program, and the choice of MCU and the working principle of the introduction. Next is the core of this design, bining theory focuses on the solar water heater control circuit of the various ponents. Behind the software design is also essential , finally, the lack of design experience and the improvement is present on our eyes This design has relatively solved the water heater in the water waiting to be artificial and excessive overflow problem, to the province, the provincial water purposes. The solar water heater system pared with traditional ones has many advantages, with a simple structure, easy to use, low cost, better stability and so on. Keywords: AT89S52 SCM; RC chargedischarge type; Water level detection; Temperature detection VIII 目錄 摘要 ................................................................................................................................VI Abstract ......................................................................................................................... VII 第 1 章 緒論 .................................................................................................................... 1 前言 .................................................................................................................... 1 國內(nèi)外研究動(dòng)態(tài) .................................................................................................. 1 太陽能熱水器智能水位控制系統(tǒng)整體結(jié)構(gòu)介紹 .................................................... 1 第 2 章 方案論證 和單片機(jī)的選擇 ..................................................................................... 2 方案論證和方案的選擇 ........................................................................................ 2 水位傳感器的選擇 ............................................................................................... 3 單片機(jī)的選擇 ...................................................................................................... 5 AT89S52 選擇和 其功能性能 ........................................................................ 5 AT89S52 引腳功能介紹 ............................................................................... 5 第 3 章 硬件電路設(shè)計(jì) ...................................................................................................... 8 水位檢測(cè)模塊 ...................................................................................................... 8 水 位測(cè)量原理 ............................................................................................. 8 ...................................................................................... 9 溫度檢測(cè)模塊 ....................................................................................................10 LCD 液晶顯示模塊 .............................................................................................13 12864 液晶 [8] .............................................................................................13 LCD 液晶顯示電路設(shè)計(jì) .............................................................................15 IX 鍵盤控制模塊 ....................................................................................................16 報(bào)警模塊 .........................................................................................