【正文】
I 摘 要 隨著國民經(jīng)濟的發(fā)展,人們需要對各中加熱爐、熱處理爐、反應爐和鍋爐中溫度進行監(jiān)測和控制。采用單片機來對他們控制不僅具有控制方便,簡單和靈活性大等優(yōu)點,而且可以大幅度提高被控溫度的技術指標,從而能夠大大的提高產(chǎn)品的質量和數(shù)量。 在日常生活及工業(yè)生產(chǎn)過程中,經(jīng)常要用到溫度的檢測及控制,溫度是生產(chǎn)過程和科學實驗中普遍而且重要的物理參數(shù)之一。在生產(chǎn)過程中,為了高效地進行生產(chǎn),必須對它的主要參數(shù),如溫度、壓力、流量等進行有效的控制。溫度控制在生產(chǎn)過程中占有相當大的比例。溫度測量是溫度控制的基礎,技術已經(jīng)比較成 熟。傳統(tǒng)的測溫元件有熱電偶和二電阻。而熱電偶和熱電阻測出的一般都是電壓,再轉換成對應的溫度,這些方法相對比較復雜,需要比較多的外部硬件支持。我們用一種相對比較簡單的方式來測量。 我們采用美國 DALLAS 半導體公司繼 DS18B20 之后推出的一種改進型智能溫度傳感器 DS18B20 作為檢測元件,溫度范圍為 55~125 186。C,最高分辨率可達 186。C。 DS18B20 可以直接讀出北側溫度值,而且采用三線制與單片機相連,減少了外部的硬件電路,具有低成本和易使用的特點。 本文介紹一種基于 AT89C51 單片 機的一種溫度測量及報警電路 ,該電路采用DS18B20 作為溫度監(jiān)測元件,測量范圍 0℃ ~ +100℃ ,使用 LED 模塊顯示,能設置溫度報警上下限。正文著重給出了軟硬件系統(tǒng)的各部分電路,介紹了集成溫度傳感器 DS18B20 的原理, AT89C51 單片機功能和應用。該電路設計新穎、功能強大、結構簡單。 關鍵詞 : 溫度測量; DS18B20; AT89C51 II Abstract Along with national economy development, the people need to each heating furnace、 the heattreatment furnace、 in the reactor and the boiler the temperature carry on the monitor and the control. Not only uses the monolithic integrated circuit to e to them to control has the control to be convenient, simple and flexibility big and so on merits, moreover may enhance large scale is accused the temperature technical specification, thus can big enhance the product the quality and quantity. In daily life and industrial production process, often used in the detection and control of temperature, temperature is the production process and scientific experiments in general and one of the important physical parameter. In the production process, in order to efficiently carry out the production, to be its main parameters, such as temperature, pressure, flow control, etc... Temperature control in the production process of a large proportion. Temperature measurement is the basis of temperaturecontrolled, more mature thermocouple and temperature ponents are the second thermocouple and thermal resistance are generally measured voltage, and then replaced by the corresponding temperature, these methods are relatively plex, requiring a relatively large number of external hardware support. We use a relatively simple way to measure. We use the United States following DALLAS Semiconductor DS1820 improved after the introduction of a smart temperature sensor DS18B20 as the detection element, a temperature range of 55 ~ 125 186。 C, up to a maximum resolution of 186。 C. DS18B20 can be directly read out the temperature on the north side, and threewire system with singlechip connected to a decrease of the external hardware circuit, with lowcost and easy use. The introduction of a costbased AT89C51 MCU a temperatur measurement circuits, the circuits used DS18B20 highprecision temperatur sensor, measuring scope 0℃ ~ +100℃ ,can set the warning limitation, the use of seven segments LED that can be display the current temperature. The paper focuses on providing a software and hardware system ponents circuit, introduced the theory of DS18B20, the founctions and applications of AT89C51 .This circuit design innovative, powerful, can be expansionary strong. Keywords: Temperatur measurement; DS18B20。 AT89C51 III 目錄 摘要 ..................................................................................................................................I Abstract....................................................................................................................II 第 1章 緒論 ................................................................................................................. 5 課題背景及研究意義 ........................................................................................... 5 國內(nèi)外現(xiàn)狀 ........................................................................................................... 5 課題的設計目的 ................................................................................................... 6 課題的主要工作 ................................................................................................... 6 本文研究內(nèi)容 ....................................................................................................... 6 第 2章 開發(fā)工具 Proteus與 Keil ................................................................................. 8 Proteus 軟件 .......................................................................................................... 8 Proteus 簡介 ................................................................................................... 8 4 大功能模塊 ................................................................................................. 8 ISIS 智能原理圖輸入系統(tǒng) .......................................................................... 10 Proteus 簡單應用 ......................................................................................... 10 Keil 軟件 ............................................................................................................. 11 Keil 軟件簡介 .............................................................................................. 11 Keil 軟件調(diào)試功能 ...................................................................................... 11 本章小結 ............................................................................................................. 12 第 3章 系統(tǒng)概述 ......................................................................................................... 13 方案選擇 ............................................................................................................. 13 方案一 .......................................................................................................... 13 方案二 .......................................................................................................... 14 系統(tǒng)設計原理 ..................................................................................................... 14 系統(tǒng)組成 ...........................................