基于ZigBee的智能家居控制系统设计
2014-12-13陶在红杨宇常建华
陶在红+杨宇+常建华
摘 要: 设计了一个新颖的智能家居控制系统,该系统以CC2530无线单片机为主控,采用ZigBee无线传输技术实现上下位机的通信。下位机通过各类传感器获得家中的温度、湿度及电器工作状态信息等参数,并传送给上位机;上位机接收到信息并进行分析,把控制信号下达给继电器控制模块控制电器通断。同时,上位机还能将接收到的数据通过串口传输到PC进行显示和保存。经实际测试,该系统可以快速、准确地实现温湿度测量和家用电器的监视和控制,具有低成本、高实用性的特点。
关键词: ZigBee; CC2530; 智能家居; 无线通信
中图分类号: TN911?34; TH811.2 文献标识码: A 文章编号: 1004?373X(2014)23?0009?04
Abstract: A new smart home control system is designed in this paper. In this system, CC2530 is used as the master control chip, and the communication between a master machine and a slave machine is realized through ZigBee wireless technology. The slave machine gathers indoor parameters on temperature, humidity and work condition of household appliances by various kinds of sensors, and sends them to the master machine. The master machine analyzes the data from slave machine and turns electrical appliances on or off by issuing a control signal to the relay control module. Furthermore, the data from slave machine can be transmitted through a serial port to PC for storage and display. The practical test indicates that the system can realize fast detection of temperature and humidity, as well as monitoring and control of household appliances. This system with low?cost and high?practicality has good promotional value.
Keywords: ZigBee; CC2530; smart home; wireless communication
0 引 言
智能家居控制系统就是在住宅中融合自动化控制系统、计算机网络系统和网络通信技术于一体的网络化智能化的家居控制系统,能为用户提供一个更简单更便捷的接口来操控家庭电器。比如,通过PC、手机甚至是语音控制家中的电器设备,而且可以设置一些场景规则,使多个设备基于同一场景模式进行协同工作[1?2]。另一方面,智能家居系统中的各种设备都是联网的,可以相互通信,利用多个设备协同工作,形成一个闭环的自动控制系统。用户只需要对其简单设置将其初始化,便可以自动运行,这给用户带来最大程度的高效、便利、舒适与安全[3?4]。
基于智能家居具有非常强的实用价值,本文设计了一套基于ZigBee无线通信技术的智能家居控制系统。该系统能收集家中温度、湿度以及家用电器的工作状态等参数,从而实现对家用电器的智能控制。……
