摘要:随着社会的进步和无线通信技术的发展,人们对生活品质越来越重视,希望居住在一个现代化、科技化、安全、便捷、舒适、节能的生活环境,因而智能家居一词应运而生。基于ZigBee的智能家居无线传感网的设计作为一个有实际意义的课题近年来被广泛研究。本课题是智能家居控制系统的子课题,本课题设计了一个ZigBee传感网络,用于温度采集,短距离的信息传输并通过串口打印到电脑上,当温度过高时,触发继电器并发出警报。节点使用CC2530无线单片机,温度检测模块使用DS18B20作为温度传感器,开关功能扩展采用单路带光耦继电器。开发平台采用IAR,协议栈使用TI公司的ZStack,主要使用c语言来开发。78970
毕业论文关键词: ZigBee,智能家居,无线传感网,CC2530
Abstract: With the development of society and wireless communication technology, People pay more and more attention to the quality of life。 They all want to live in a space which is modern and technological, with safe, convenient, comfortable and energy- efficient living environment。 Therefore, smart home emerges as the times require。 The design of smart home wireless sensor network based on ZigBee has been widely studied in recent years as a practical problem。 This project is a sub-project of smart home control system。 A ZigBee sensor network is designed for temperature acquisition, the short distance information is transmitted and printed on the computer through the serial port。 When the temperature is too high, the relay is triggered and the alarm is sent out。 The node employs CC2530 wireless single chip mirocomputer while the temperature detection employs a DSI8B20 temperature sensor。 The switch is an Single channel with optocoupler relay。 The development platform uses IAR and the protocol stack applies ZStack of TI company。 It mainly use C Language to develop。
Key words: ZigBee;Smart home;wireless sensor network ;CC2530
目录
1 绪论 4
2 系统方案 4
2。1 主要功能 4
2。2 系统模块 4
2。3 模块功能详细描述 5
3 ZigBee技术 5
3。1 无线技术比较 5
3。2 ZigBee技术特点 6
3。3 ZigBee协议 7
3。4 ZigBee网络拓扑结构 8
4 硬件设计 9
4。1 CC2530 9
4。2 DS18B20温度传感器 10
4。3 单路带光耦继电器 12
4。4 驱动安装 13
5 软件设计 14
5。1 软件结构设计 14
5。2 温度传感器裸机程序 14
5。3 Z-stack移植 16
5。4 Z-stack中新任务的建立 18
5。5 协调器节点设计 19
5。6 温度传感器模块 19
5。7 继电器模块 20
5。8 功能实现总结 21
6 系统测试 22
总结 27
参考文献