基于单片机的多点温度采集系统

  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

基于单片机的多点温度采集系统

The detecting System of the muti-point Environmental Temperature Based on Single chip Microcomputer

系(院)名称:电子信息与电气工程学院

专业班级:2008级自动化1班

学生姓名:xxx

学号:

指导教师姓名:xxx

指导教师职称:副教授

目录

摘要 ............................................................................................................................ I Abstract..................................................................................................................... II 引言 .. (1)

第一章方案论证 (2)

1.1课题的来源 (2)

1.2系统设计思路概述 (2)

1.3系统方案对比 (2)

1.3.1系统设计方案一 (3)

1.3.2系统设计方案二 (3)

1.3.3方案对比与选择 (4)

第二章硬件系统设计 (5)

2.1硬件系统设计概述 (5)

2.2单片机最小系统设计 (5)

2.2.1单片机简要介绍 (5)

2.2.2时钟电路与复位电路 (5)

2.2.3单片机的工作方式 (6)

2.2.4单片机最小系统 (7)

2.3温度采集电路设计 (7)

2.3.1 传感器的选用 (7)

2.3.2 温度传感器DS18B20简介 (8)

2.4键盘控制电路设计 (11)

2.4.1 键盘控制的主要功能 (11)

2.4.2 键盘电路设计 (11)

2.5液晶显示电路设计 (13)

2.5.1 LCD1602液晶显示模块 (13)

2.6报警电路设计 (15)

第三章软件设计 (16)

3.1程序设计语言与软件开发环境 (16)

3.1.1 程序设计语言的选用 (16)

3.1.2 Keil C51简介 (17)

3.2程序流程图 (17)

3.2.1 主程序流程图 (17)

3.2.2 键盘控制子程序流程图 (18)

3.2.3 温度采集子程序流程图 (19)

3.2.4 LCD1602显示子程序流程图 (20)

3.2.5 报警电路子程序流程图 (21)

第四章仿真测试 (23)

4.1P ROTEUS简介 (23)

4.2仿真结果 (23)

总结 (27)

致谢 (28)

参考文献 (29)

附件A 原理图 (30)

附件B 程序 (31)

基于单片机的多点温度采集系统

摘要:本课题设计制作了一个两点温度采集系统,主要实现两路温度采集,采集的温度可在LCD上显示,可根据需要手动调整LCD上显示哪一路的温度数据,包括实时温度值,高温限值,低温限值,并可以通过按键对限值进行设定。

本设计硬件部分以STC89C52单片机为核心,通过两路DS18B20温度传感器进行温度采集,在单片机控制下对相应传感器采集到的温度数据进行处理,并将处理后的数据显示在LCD1602显示器上。此外,还配有5V电源电路,晶振电路,复位电路,按键电路,报警电路。其中按键电路对两路传感器的温度限值进行调节;当实测温度值超过温度限值时,报警电路会进行报警,此时蜂鸣器鸣响,发光二极管发光。

软件部分采用Keil uVision4集成开发环境,以C51语言编写,并结合仿真软件proteus 进行了仿真。

在Proteus仿真环境仿真成功后,在Altium Designer summer09软件中绘制了原理图和相应的PCB图,在实验室完成了PCB板的制作。经过焊接,调试,本系统最终能实现预定的各项功能,运行良好。

关键词:温度;单片机;传感器;LCD

The detecting System of the muti-point Environmental

Temperature Based on Single chip Microcomputer

Abstract: This paper designed a two-point temperature collection system, mainly the realization of two temperature acquisition, acquisition of temperature can be displayed on the LCD, according to the need to manually adjust the LCD show which way the temperature data, including real-time temperature, high temperature limit, low temperature limit, and can be key to the limit set.

The design of the hardware part of the STC89C52 MCU as the core, through the two DS18B20temperature sensor for temperature acquisition, under the control of the microcontroller on the corresponding sensor collected temperature data are processed, and the processed data is displayed in the LCD1602 display. In addition, it also equipped with a 5V power supply circuit, a crystal oscillator circuit, a reset circuit, a key-board circuit, alarm circuit. The key circuit can adjust the limit value of two sensors temperature; when the measured temperature value exceeds the limit value of temperature, the alarm circuit can alarm, buzzer ringing, emitting diode lighting.

The software part adopts the Keil uVision4 integrated development environment, using C51 programming language, combined with the simulation software Proteus for simulation.

In the Proteus simulation environment simulation is successful, in the Altium Designer summer09 software rendering of the schematic diagram and the corresponding PCB, completed in the laboratory PCB board production. After welding, debugging, this system can realize all the function of expecting, and running well.

Key words: single chip microcomputer; sensor; temperature; LCD

相关文档
最新文档