常州信息职业技术学院电子与电气工程学院 毕业设计论文
基于LabVIEW的温度采集系统设计
摘 要
近些年来单片机取得了突飞猛进的发展并且已在各行业得到广泛应用,在本文中,完成了智能温度采集系统的设计,本系统采用单总线操作,简单电路,精确测量,多点测量。能够在较低的成本下实现有效的温度监测。通过人机界面显示和查询,节约能源,创造价值,具有一定的商业价值。本系统也可广泛应用于消防等其他系统中。
本文首先分析了当前单片机的发展以及应用范围,设计了基于STC89C52单片机的温度恒定单片机采集系统的总体架构以及硬件部分,对系统的硬件的搭建以及部分传感器模块做了详细论证和设计。控制节点经过研究对比,选用STC89C52,对外围电路中的传感器模块、供电电源模块、协调器接口电路以及时钟均做了详细设计,通过对比分析选择了适合本课题的温湿度传感器。最后,进行了软件的设计和实现,主要包括主控程序、数据上传设计、报警子程序设计、按键扫描子程序设计以及终端子程序设计等。实验测试,验证了在特定条件下系统数据传输正常;实验及仿真表明,该系统能很好的实现环境的采集以及传输功能,验证了该方案的可行性。
论文从温度采集系统的理论依据、设计思路、实现过程、测试结果等方面均做了详细阐述,取得了预期效果,论文的研究成果对温度采集系统的完整性起到了补充作用,对其实践应用起到了推动作用。
关键词:单片机 采集 温度
I
常州信息职业技术学院电子与电气工程学院 毕业设计论文
Constant temperature monitor system of the classroom
Abstract
In recent years, this paper designs an intelligent temperature monitoring system, this system is to realize the temperature measurement system of STC89C52 based on MCU and DS185B20, MCU in the system as
the input and
display
of temperature control
device,DS18B20
uses
a is
used
as temperature acquisition and temperature data output device the. Thissystem single bus
operation, has the advantages of simple circuit, accurate measured value, can realize multipoint measurement. To ensure the realization of the effective monitoring of the room temperature with low cost. Through the man-machineinterface to display and query, save energy and create value, has a certain commercial value. The system can also be widely used in fire fighting and other systems.
This paper first analysis of the current development of MCU and the scope of application,the part of the overall architecture design STC89C52 microcontroller, temperaturemonitoring system based on MCU and
hardware, the
system hardware
selection, design,construction
and the
peripheral
modules of sensor module to do a detailed demonstration and design. Through the comparative study of the control node, select STC89C52, thesensor module, the peripheral circuit of the power supply module, interface circuit andclock coordinator has made the detailed design, through the comparison and analysis ofthe temperature and humidity sensor is suitable for this topic. Finally, designed and realized the software, including the main program, data upload alarm design, program design, keyboard scanning subroutine design and terminal program design. Finallyaccording to the design idea of realizing all functions of the system. The experimentaltesting, verification in the system of data transmission under certain conditions are normal;that the experiment and simulation, the system can realize the acquisition and transmission function of the classroom environment is very good, validate the feasibility of the scheme.The temperature acquisition system th.
The temperature acquisition system theory basis,design ideas, implementation process, the test results were described in detail, and achieved the desired results, the research on the integrity of the temperature acquisition system has played a complementary role, for the application to play a role in promoting.
Keyword:microcomputer Monitorte mperature
II
常州信息职业技术学院电子与电气工程学院 毕业设计论文
目 录
1 温度采集系统总体方案设计 ................................................................................... 1
1.1 硬件总体设计................................................................................................. 1 1.2 软件总体设计................................................................................................. 2 2 温度采集系统硬件设计 ........................................................................................... 3
2.1 温度信号采集模块硬件设计......................................................................... 3
2.1.1温度传感器........................................................................................... 3 2.1.2 A/D转换模块....................................................................................... 4 2.1.3单片机模块........................................................................................... 4 2.1.4信号采集模块硬件设计....................................................................... 4 2.2 主控模块硬件设计......................................................................................... 5
2.2.1 GPRS协议概述..................................................................................... 5 2.2.2主控模块硬件总设计........................................................................... 5 2.3 采集显示模块硬件设计................................................................................. 5
2.3.1显示模块............................................................................................... 5 2.3.2显示采集模块硬件总设计................................................................... 5 2.4 电源模块硬件设计......................................................................................... 6 3 软件编程及实现 ....................................................................................................... 7
3.1 软件编程关键技术引用................................................................................. 7
3.1.1 SubVI技术........................................................................................... 7 3.1.2 同步技术.............................................................................................. 8 3.1.3 VI Server技术................................................................................... 9 3.1.4 多线程技术........................................................................................ 10 3.2 温度检测模块的软件设计........................................................................... 10 3.3 主控模块及显示采集模块软件设计........................................................... 10 3.4系统初始化子程序........................................................................................ 11 3.5数据采集设计................................................................................................ 12 3.7数据上传设计................................................................................................ 12 3.6 GPRS软件设计.............................................................................................. 13 4 系统调试及仿真结果 ............................................................................................. 15
4.1 硬件调试....................................................................................................... 15 4.2 软件调试....................................................................................................... 16 4.4 温度传感器部分........................................................................................... 16 4.5湿度检测部分................................................................................................ 17
1