安徽工程大学机电学院毕业设计(论文)
基于无线传感网络的温度监控系统设计
摘 要
近年来,随着无线通信技术和传感器技术的飞速发展,无线传感器网络越来越得到广泛的应用,特别是在环境监测、智能家居、工业监控等领域的应用。基于无线传感器网络的温度监控系统用于对温度的自动监控。
无线传感器网络是由一组传感器以Ad Hoc方式构成的无线网络,其目的是协调地感知、采集和处理网络覆盖的地理区域中感知对象的信息,并发布给监控者。随着通信技术、嵌入式计算技术和传感器技术的飞速发展和日益成熟,具有感知能力、计算能力和通信能力的微型传感器开始在世界范围内出现,由这些微型传感器构成的传感器网络引起了人们的极大关注。这种无线传感器网络综合了传感器技术、微机电系统技术、分布式信息处理和网络通信技术,能够协调地实时监测、感知和采集网络分布区域内的各种环境或监测对象的信息,并对这些信息进行处理。在信息采集及处理的过程中,涉及到了基于嵌入式系统及面向片上系统的平台设计,基于微机电系统技术(MEMS)的传感器研发,针对分布式系统的数据挖掘及队列数据处理,以及具有自适应组网和自主路由的无线网络协议及其安全问题。正是对这些课题的不断探索,促成了无线传感器网络研究的各个分支的产生以及标准的制定。
本文是设计一个基于无线传感网络的温度监控系统其中包括温度的采集、无线发射、无线接收、报警等内容的设计可以广泛应用于工业监控、智能楼宇、环境监测等领域
关键词:无线传感网络;传感器;嵌入式系统;智能家居
I
朱野:基于无线传感网络的温度监控系统
The Design of Temperature monitoring system based on wireless
sensor networks
Abstract
In recent years, with the rapid development of wireless communication and sensor technology, wireless sensor networks has been widely used, especially in the field of environmental monitoring, smart home, and industrial monitoring applications.
Wireless sensor network is constituted by a group of sensors to the Ad Hoc mode wireless network, and its purpose is to coordinate perception, acquisition and processing of the geographical area covered by the network-aware object, and issued to the observer. With the rapid development of communication technology, embedded computing and sensor technology and increasingly sophisticated, with perception, computing power and communication capabilities of the tiny sensors worldwide, aroused by these miniature sensors, sensor networks of great concern. This wireless sensor network integrated sensor technology, MEMS technology, distributed information processing and network communication technology, able to coordinate a variety of environmental monitoring object information in real-time monitoring, sensing and collecting network distribution area, and these information processing. In the process of information collection and processing related to a platform-based system embedded systems-oriented on-chip design, micro-electromechanical systems (MEMS)-based sensor development for distributed systems, data mining and queue data processing and adaptive networking and routing wireless network protocols and security issues. It is the continuous exploration of these topics, contributed to the generation of the various branches of the wireless sensor network, as well as the development of standards.
This article is to design a wireless sensor network-based temperature monitoring system, including the design of the temperature of the collection, wireless transmitter, wireless
receiver, alarm and other content can be widely used in industrial monitoring, smart buildings, environmental monitoring field
Keyword:Wireless sensor networks; sensors;embedded systems; smart home
II
安徽工程大学机电学院毕业设计(论文)
目录
引言 ............................................................. 1 第1章 绪论 ....................................................... 2 1.1 课题研究的目的和意义 ................................................ 2 1.2 无线传感网络的研究和发展现状 ........................................ 2 1.3课题研究的主要内容 .................................................. 4 第2章 系统方案设计 ................................................ 5 2.1 系统方案的论证 ..................................................... 5 2.2 系统方案设计原则 ................................................... 6 2.3 系统方案的选择 ..................................................... 6 第3章 系统的硬件电路设计 ........................................... 8 3.1 系统电路主要硬件元件介绍 ............................................ 8 3.2本系统的硬件电路 ................................................... 13 3.3 单片机串口电路设计 ................................................. 16 3.4温度控制电路设计 ................................................... 17 第4章 系统软件设计 ............................................... 19 4.1按键处理程序设计 ................................................... 19 4.2液晶显示程序设计 ................................................... 20 4.3温度采集程序设计 ................................................... 20 4.3 报警处理程序设计 ................................................... 20 4.4发射端主程序设计 ................................................... 21 4.5接收端主程序设计 ................................................... 23 结论与展望 ....................................................... 24 致谢 ............................................................ 25 参考文献 ......................................................... 26 附录A基于无线传感网络的温度监控系统设计发射模块电路.................. 27 附录B 基于无线传感网络的温度监控系统接收模块的硬件原理图.............. 28 附录C 系统软件程序............................................... 29 附录D 参考文献摘要............................................... 44 附录E 引用外文文献及翻译 ......................................... 47
III
朱野:基于无线传感网络的温度监控系统
插图清单
图2-1方案一原理框图 .......................................................................................................... 5 图2-2方案二原理框图 .......................................................................................................... 6 图2-3本系统采用的电路方案框图 ......................................................................................... 7 图3-1 DS18B20引脚分布图 ................................................................................................... 9 图3-2 D18B20工作原理图 ....................................................................................................11 图3-3 nRF24L01芯片引脚图.................................................................................................11 图3-4 晶振电路 .................................................................................................................. 13 图3-5电源电路 ................................................................................................................... 13 图3-6 3v电源电路.............................................................................................................. 13 图3-7 8051单片机基本电路 ................................................................................................. 14 图3-8测温电路电路图 ........................................................................................................ 14 图3-9 报警电路 .................................................................................................................. 15 图3-10按键电路 ................................................................................................................. 15 图3-11 LCD1602液晶显示模块电路图.................................................................................. 16 图3-12 nrf24L01无线传输电路 .......................................................................................... 16 图3-13 电平转换电路原理图............................................................................................... 17 图3-14温度控制电路图 ....................................................................................................... 18 图4-1按键处理子程序流程图 .............................................................................................. 19 图4-2 DS18B20温度读取过程流程图 ................................................................................... 20 图4-3发射端主要程序流程图 .............................................................................................. 22
IV
安徽工程大学机电学院毕业设计(论文)
表格清单
表3-1 DS18B20详细引脚功能描述 ....................................................................................... 9 表3-2 ROM的内存指令 ........................................................................................................ 10
V