【正文】
畢業(yè)設(shè)計(jì)論文 基于 AT89C51 單片機(jī)的 糧倉溫度控制系統(tǒng) 系 別 自 動(dòng) 化工程系 專 業(yè) 測 控 技術(shù)與儀器 班 級(jí) 姓 名 指導(dǎo)教師 2021 年 5 月 5 日 東北大學(xué)秦皇島分校畢業(yè)設(shè)計(jì)(論文) 第 I 頁 基于單片機(jī)的 糧倉溫度 控制 系統(tǒng) 摘 要 隨著單片機(jī)技術(shù)的飛 速發(fā)展,單片機(jī)在各個(gè)領(lǐng)域得到了廣泛的應(yīng)用。 糧食是人類生存的必需品,溫度是保存好糧食的先決條件,儲(chǔ)存大量的糧食對(duì)穩(wěn)定國民經(jīng)濟(jì)的發(fā)展起到至關(guān)重要的作用。糧庫一般較大,測 量 點(diǎn) 會(huì)很多 。糧倉溫度測量方法以及相應(yīng)的智能控制一直是糧食保存的一個(gè)重要問題。 該系統(tǒng)是以 AT89C51單片機(jī) 和 DS18B20數(shù)值溫度傳感器為核心組成的糧倉溫度控制系統(tǒng)。該系統(tǒng)利用 AT89C51 單片機(jī)采集了各個(gè)溫度點(diǎn)的溫度,實(shí)現(xiàn)溫度顯示、報(bào)警等功能。它以 AT89C51 單片機(jī)為主控制芯片,采用數(shù)字溫度傳感器DS18B20 實(shí)現(xiàn)多路溫度的檢測,利用 LCD1602 液晶顯示器形象直觀的顯示測出的溫度值。 本文在確定法設(shè)計(jì)方案基礎(chǔ)上,著重論述了系統(tǒng)的軟硬件設(shè)計(jì),并且描述了系統(tǒng)電路設(shè)計(jì)、硬件設(shè)計(jì)框圖及所使用各種芯片功能和特性。通過 PROTEUS軟件和 KEIL C 仿真出了該系統(tǒng)。 關(guān)鍵詞 : 單片機(jī) DS18B20 液晶顯示 鍵盤 報(bào)警 東北大學(xué)秦皇島分校畢業(yè)設(shè)計(jì)(論文) 第 II 頁 Temperature Control System Of The Granary Based On Singlechip Author: Mu Xiqing Tutor: Fan Lina Abstract Along with the single chip microputer technology rapid development, the microcontroller obtained the widespread application in each domain. The grain is the human survival essential item, the temperature is the precondition of preserving the grain well, storing up the massive grain plays a crucial role in the development of the stable national economy. Provision room is generally big, so there will be a lot of measurement points. Grain temperature measurement method and the corresponding intelligent control of food preservation has been an important issue. The system is based on AT89C51 singlechip and numerical temperature sensor DS18B20, which posite the core temperature control system. This system has gathered each temperature using AT89C51 monolithic integrated circuit, which realizes functions temperature display and alarm functions and so on. It takes AT89C51 monolithic integrated circuit as main control chip, which uses digit temperature sensor DS18B20 to realize the multichannel temperature detections. Temperature value which determines is displayed using the LCD1602 liquidcrystal in directviewing demonstration. This article focuses on system39。s software and hardware design emphatically on the foundation of determining the design of the program. It describes the system circuit design, the hardware design diagram as well as the function and the characteristic of the chip which is used in the system. This system is simulated through the PROTEUS and KEIL C software. Key Words: Singlechip Microputer DS18B20 Liquidcrystal display Keyboard Warning 東北大學(xué)秦皇島分校畢業(yè)設(shè)計(jì)(論文) 第 III 頁 目錄 一 緒論 .............................................................................................................................1 背景 ........................................................................................................................................................ 1 設(shè)計(jì)的目的和意義 ................................................................................................................................. 1 相關(guān)領(lǐng)域國內(nèi)外技術(shù)和發(fā)展趨勢 ........................................................................................................... 2 二 系統(tǒng)方案設(shè)計(jì) .............................................................................................................4 方案設(shè)計(jì) ................................................................................................................................................ 4 方案論證 ................................................................................................................................................ 5 三 溫度傳感器 .................................................................................................................6 溫度傳感器的選型 ................................................................................................................................. 6 傳感器的選擇原則 .................................................................................................................... 6 溫度傳感器的選擇 .................................................................................................................... 6 溫度上、下限值的設(shè)定原理 ........................................................................................................ 7 四 系統(tǒng)硬件設(shè)計(jì) .............................................................................................................8 系統(tǒng)工作原理綜述 ................................................................................................................................. 8 DS1820 與單片機(jī)接口電路 .................................................................................................................... 9 單片機(jī) 89C51 為本系統(tǒng)的核心 ................................................................................................10 中央處理器 AT89C51 簡介 ........................................................................................................13 DS18B20 簡介及測溫電路設(shè)計(jì) ..............................................................................................................16 DS18B20 的性能特點(diǎn) ..............................................................................................................17 DS18B20 的外形和內(nèi)部結(jié)構(gòu) ....................................................................................................17 高速暫存存儲(chǔ)器 .......................................................................................................................21 DS18B20 單總線 (1 一 Wire)的基本原理 .................................................................................22 液晶顯示電路 .........................................................................................................................................29 LCD1602 主要技術(shù)參數(shù) ....................................................