【正文】
LED 數(shù)碼管來顯示水的實際溫度。從 DS18B20讀出或?qū)懭?DS18S20 信息僅需要一根口線,其讀寫及其溫度變換功率來源于數(shù)據(jù)線,該總線本身也可以向所掛接的 DS18B20 提 供電源 ,不需要額外 電源。溫 度 控制部分,提出了用 DS18BAT89C51 單片機 和 LED的硬件電路完成對水溫的實時檢測及顯示,利用 DS18B20與單片機連接由軟件與硬件電路配合來實現(xiàn)對加熱電阻絲的實時控制。 課題研究的內(nèi)容及要求 本次 畢業(yè)設(shè)計的題目是 基于單片機的恒溫控制系統(tǒng)設(shè)計 。 在單片機溫度 控制 系統(tǒng)中的關(guān)鍵是溫度 的 測量、溫度 的 控制和溫度 的 保持,溫度是工業(yè) 控制 對象中主要的被控參數(shù)之一。 溫度 值 是表征物體冷熱程度的 一個 物理量,溫度 的 測量則是工農(nóng) 和 業(yè)生產(chǎn)過程中一個很重要 也 普遍的參數(shù)。 temperature 濰坊學院本科畢業(yè)設(shè)計(論文) 2 第一章 前言 課題的背景及其意義 21 世紀是科 學技術(shù) 高速發(fā)展的信息時代,電子技術(shù)、單片機技術(shù)的應(yīng)用 已經(jīng) 是 非常 廣泛,伴隨著科學技術(shù)和生產(chǎn)的不斷發(fā)展, 在生產(chǎn)生活中 需要對各種參數(shù)進行溫度測量。 關(guān)鍵詞 : 單片機系統(tǒng);傳感器;數(shù)據(jù)采集;模數(shù)轉(zhuǎn)換器;溫度 濰坊學院本科畢業(yè)設(shè)計(論文) 1 ABSTRACT: With the puter technology in recent years, the peration in the social sphere, SCM applications are constantly rapid development, while promoting traditional control detects the rapidly growing updated. In automatic control and realtime detection of microputer application system, the microcontroller is often used as a core part only of SCM technology is not enough, but also according to the specific characteristics of the hardware structure and application software objects bine to make perfect. The major research paper from the automatic thermostat temperature control process, the main application AT89C51, DS18B20, LED digital tube, MOC3041, triac. By collecting temperature DS18B20 digital temperature sensor, a microcontroller as the central controller for data processing and control analysis, and through the four LED digital display realtime temperature and various status values, then a singlechip PWM pulse modulated by PWM drive can be siliconoff control, to achieve realtime temperature control. KEY WORDS: MCU system。濰坊學院本科畢業(yè)設(shè)計(論文) I 目錄 第一章 前言 ........................................................................................................................... 2 課題的背景及其意義 ............................................................................................ 2 課題研究的內(nèi)容及要求 ........................................................................................ 2 課題的研究方案 ..................................................................................................... 3 第 2 章 設(shè)計理論基礎(chǔ) ......................................................................................................... 6 AT89C51 系列單片機介紹 ................................................................................... 6 光電耦合器 MOC3041 ............................................................................................. 7 雙向可控硅 ............................................................................................................. 7 移位寄存器 74LS164 ............................................................................................. 8 數(shù)碼顯示管 LED ...................................................................................................... 9 數(shù)字溫度計 DS18S20 ......................................................................................... 10 DS18S20 的主要特性 ............................................................................ 10 DS18B20 測溫原理 ................................................................................. 11 第 3 章 硬件電路設(shè)計 ..................................................................................................... 13 單片機控制單元 ................................................................................................ 14 溫度采樣電路 .................................................................................................... 14 顯示電路 ............................................................................................................. 15 調(diào)節(jié)執(zhí)行單元 .................................................................................................... 15 第 4 章 軟件設(shè)計 .............................................................................................................. 17 主程序流程圖 ..................................................................................................... 17 中斷子程序流程圖 ............................................................................................ 18 按鍵流程圖 ......................................................................................................... 19 顯示流程圖 ......................................................................................................... 19 PID 控制算法子程序 ........................................................................................ 20 第 5 章 系統(tǒng)調(diào)試及結(jié)論分析 ........................................................................................ 21 硬件調(diào)試 .............................................................................................................. 21 軟件調(diào)試 .............................................................................................................. 21 結(jié)論分析 .............................................................................................................. 22 濰坊學院本科畢業(yè)設(shè)計(論文) II 第 6 章 結(jié)束語 .................................................................................................................. 23 參考文獻 ............................................................................................................................. 24 致謝 ...................................................................................................................................... 25 濰坊學院本科畢業(yè)設(shè)計(論文) 1 摘要: 近年來隨著計算機技術(shù)在社會領(lǐng)域的滲透 , 單片機的應(yīng)用也在不斷地的快速發(fā)展,同時推動傳統(tǒng)控制檢測日新月益 的 更新。通過 DS18B20 數(shù)字溫度傳感器采集溫度,以單片機為 中央 控制器 進行數(shù)據(jù)的處理和控制的分析 ,并通過四位 LED 數(shù)碼管顯示實時溫度 和各種狀態(tài)值, 然后單片機調(diào)制出 PWM 脈沖, 通過 PWM 驅(qū)動可控硅 的通斷,實現(xiàn)溫度的 實時 控制 。 analogtodigital converter。在農(nóng)業(yè) 生產(chǎn) 中,用于保證蔬菜大棚的恒溫保產(chǎn)等。 并 且隨著科學技術(shù)與