摘要
随着社会经济的不断发展,人们对市政建设中城市照明系统的要求不断提高。传统的路灯控制技术与维护方法存在着很多缺点和弊端,包括施工复杂,灵活性差,存在能源浪费、智能化程度低、通信稳定度差等,无法适应城市现代化发展的需求。
Zigbee技术是一种新兴的无线网络通信技术,与传统的有线系统相比,其在性能、成本以及组网规模等方面具有很大的优势,适用于智能家居、工业控制和医疗控制等领域。本文为解决传统路灯控制系统存在的不足,设计出基于Zigbee技术的LED路灯监控系统。
首先,深入分析当前路灯控制技术的应用背景和国内外路灯控制技术的研究现状。针对传统路灯控制技术的不足与弊端,阐述了Zigbee技术在路灯控制领域的发展前景。
其次,详细介绍Zigbee技术低功耗、低成本以及网络容量大等特点和符合Zigbee通信协议的硬件开发平台CC2430。
最后,完成LED路灯监控系统的硬件设计以及软件流程图的设计。路灯控制系统的硬件部分是以CC2430为控制核心,加上一些外围电路组成控制系统,包括光敏电阻检测电路、路灯工作状态检测电路、支路控制电路等,实现路灯根据光线明暗自动开关,检测路灯工作状态等功能。软件部分主要是路灯控制系统流程图的设计,详细描述整个系统的工作过程。
关键词:Zigbee CC2430 路灯监控
Abstract
With the development of society and economy, the requirement of city lighting system has been improving in the municipal construction. The traditional street light control technology and maintenance method are many shortcomings and abuses, including construction complex, flexibility is poor, existing energy waste, low degree of intelligence, communication stability etc, can't adapt to the needs of the development of the city modernization.
Zigbee technology is a new kind of wireless network communication technology, the communication technology and traditional compared with the performance, cost, and in the scale of network has a lot of advantages, used in intelligent household, industrial control and medical control, etc. The purpose of this paper is to solve traditional street light control system, the problems of design based on Zigbee technology LED street lamp monitoring system.
First of all, the thorough analysis current street light control application background and lamp control technology at home and abroad present situation of the study. According to the deficiency of the traditional street light control technology and disadvantages, this paper expounds the Zigbee technology in the street lamp control areas of development prospects.
Second, detailed introduces Zigbee technology low power consumption, low costs and network capacity characteristics and meet Zigbee communication protocol CC2430 hardware development platform.
Finally, complete LED street lamp monitoring system of hardware design and software flow chart of the design. Street light control system hardware part is CC2430 as control core, plus some peripheral circuit composition control system, including photoconductive resistance detection circuit, street lamp working state detection circuit, control circuit and other branch, and realize the street lamp according to the radial light and shade automatically switch, detection street light work of the state, and other functions. Software of main street is the design of the flow chart of the control system, a detailed description of the whole system working process.
Keywords: Zigbee CC2430 street lamp monitoring
目 录
摘要 ..................................................... I Abstract ................................................ II
1 绪论 ................................................... 1
1.1 课题研究的背景与意义 .................................. 1 1.2 路灯控制技术的研究现状 ................................ 1
2 Zigbee技术及应用 ....................................... 4
2.1 短距离无线通信技术的比较 .............................. 4
2.1.1 REID技术 ....................................... 4 2.1.2 蓝牙技术 ....................................... 4 2.1.3 红外技术 ....................................... 4 2.1.4 UWB超宽带技术 .................................. 5 2.1.5 Zigbee技术 ..................................... 5 2.2 Zigbee技术简介 ...................................... 5 2.3 Zigbee网络设备及其拓扑结构 ............................ 6 2.4 Zigbee协议栈体系结构 ................................. 9
2.4.1 物理层 .......................................... 9 2.4.2 媒体接入控制层 .................................. 10 2.4.3 Zigbee网络层 .................................... 10 2.4.4 Zigbee应用层 .................................... 12 2.5 Zigbee和LED技术的优势 ............................... 12 2.6 Zigbee技术的应用领域 ................................. 13
3 Zigbee技术开发使用的硬件平台 .......................... 15
3.1 无线通信芯片的选择 ................................... 15 3.2 CC2430芯片介绍 ...................................... 16
3.2.1 I/O端口线引脚功能 .............................. 17 3.2.2 CC2430芯片电源线引脚功能 ....................... 17 3.2.3 控制线引脚功能 ................................. 18 3.3 CC2430芯片典型应用电路 ............................. 19 3.4 Zigbee天线系统设计 .................................. 20 3.5 RS232 (DB9) MAX232 ................................. 20
3.5.1 RS232 (DB9)引脚定义 ............................. 21 3.5.2 MAX232原理 .................................. 21 3.6 GPRS模块解决方案 .................................... 22
4 路灯监控系统的硬件设计 ................................ 23
4.1 终端硬件电路的设计与实现 .............................. 23
4.1.1直流稳压电源的供电电路设计 ........................ 24 4.1.2 光敏检测电路 ................................... 25 4.1.3支路控制电路的设计 ............................... 26 4.1.4 工作电流检测电路 ................................ 27 4.2 协调器硬件电路的设计与实现 ............................ 28
4.2.1 MAX232串口通信电路设计 ........................ 28
5 路灯监控系统的软件流程图设计 .......................... 30
5. 1 网络协调器流程图设计 ................................ 30 5.2 路由器程序流程图设计 ................................. 31 5.3 终端节点流程图设计 ................................... 32
6 结论与展望 ............................................ 34
6.1 总结 .............................................. 34 6.2 展望 .............................................. 34
致谢 .................................................... 36
参考文献 ................................................ 37 附录 .................................................... 39