基于树莓派+Arduino的WiFi反馈控制系统的研究
2017-05-04周栋梁郭永安
周栋梁+郭永安



摘 要: 随着物联网的发展,智能家居越来越被人们重视。为了解决智能家居中使用ZigBee高成本的问题,本文介绍了以树莓派为主的控制端,Arduino开发板和无线模块作为数据反馈端,实现了在WiFi环境下,对LED灯的开关控制,并反馈LED灯真实亮灭情况。简化了智能家居的控制结构,并降低了成本。
关键词: 智能家居;树莓派;Arduino;WiFi;开关控制
中圖分类号:TP391.9
文献标志码:A
文章编号:2095-2163(2017)02-0038-04
Abstract: With the development of the Internet of Things, smart home has attracted growing attention.In order to solve the problem of high cost of using ZigBee in smart home, this paper introduces Raspberry as the console, Arduino development board and wireless module as the data feedback terminal, which realizes the switch control of LED and the real situation feedback of LED in WiFi environment. The research simplifies the control structure of the smart home, and reduces the cost.
Keywords:smart home; Raspberry pie;Arduino; WiFi; switch control
0 引 言
随着智能家居的普及发展,使用智能家居产品已然成为时尚自然首选。然而当今市面上主要是使用ZigBee来设计实现智能家居的核心控制,ZigBee的使用不仅是成本有所增加,安装也变得复杂,而且还不能直接连接用户手机。WiFi控制即可有效避免这些问题,WiFi的速度相对较快,无需网桥就可接入互联网,而且可以与手机进行无缝通信,在如今智能手机提档升级飞速变化的时代,以WiFi控制为主的智能家居已然成为研究设计主流。本文即对这一课题展开如下论述。
1 硬件设计
1.1 树莓派控制台
树莓派(Raspberry Pi)是一款基于ARM的微型电脑主板,以SD卡为内存硬盘,在卡片主板周围有2个USB接口和一个网口,可连接键盘、鼠标和网线,同时拥有视频模拟信号的电视输出接口和HDMI高清视频输出接口,以上部件全部整合在一张仅比信用卡稍大的主板上,具备所有PC的基本功能。在设计上,则基于Linux的操作系统,Python的语言开发环境,同时也支持C、JAVA等语言。
在此,研究给出系统环境搭建的过程步骤如下:
1)安装Raspbian 官方镜像
① 从官方下载最新Raspbian 镜像,下载网址为:https://www.raspberrypi.org/downloads/;……
