APP下载

基于温度传感器和FPGA室内温度智能无线控制设计

2016-05-14丛子林

现代电子技术 2016年6期

丛子林

摘 要: 为了提高室内温度控制距离、实现手机无线控制以及温度智能调节,基于温度传感器和FPGA设计一个室内温度智能无线控制系统。通过Android Studio集成开发环境,编写手机应用程序,程序实现读取室内温度和窗子开关状态,同时还实现温度调节和最高预警温度设置的功能。通过温度传感器采集温度与串口WiFi模块组成无线温度测量网络,工作在AP模式的主串口WiFi模块通过RS 232串口与FPGA无线通信,FPGA作为主控中心处理数据并发送数据给手机终端和红外控制空调,并且通过电机控制窗帘和窗子。经测试,该系统运行稳定,操作简单﹑方便而且推广价值较高。

关键词: 温度传感器; FPGA; 无线控制; 温度智能调节

中图分类号: TN926?34; TP212.9 文献标识码: A 文章编号: 1004?373X(2016)06?0070?03

Design of indoor temperature intelligent wireless control based on

temperature sensor and FPGA

CONG Zilin

(School of Electronic and Information Engineering, Lanzhou Jiaotong University, Lanzhou 730070, China)

Abstract: In order to prolong the indoor temperature control range, and attain the goal of mobile phone wireless control and intelligent temperature adjustment, a intelligent wireless indoor temperature control system was designed based on the temperature sensor and FPGA. A mobile phone application program was written in the Android Studio integrated development environment. Reading of the indoor temperature, open/close state of windows, temperature adjustment and setting of maximum warning temperature were realized. The wireless temperature measuring network is composed of the temperature acquisition sensor and a serial port WIFI module. Main serial WIFI module working in AP mode communicates with FPGA through RS232 serial port. The FPGA as the main control center processes the data, sends the data to the mobile phone terminal and infrared control air conditioner, and control the curtains and windows through motors. The testing result indicates that the system runs smoothly, and has simple operation and high promotion value.

Keywords: temperature sensor; FPGA; wireless control; intelligent temperature control

随着电子技术和信息科技的快速发展,温度控制从手动控制逐渐向着自动、智能、安卓终端无线控制方向发展。温湿度监测在工业、农业、化工等行业有着广泛的应用。在很多情况下温湿度监测需要对较大空间的多个点和不同空间的点进行监测,传统的有线方式极为不便。为了实时准确地监测多个观测点的温湿度情况,需要实现温湿度的分布测量和无线传输的功能[1]。

WiFi是近年来越来越流行的一种无线通信网络,目前大量学者将其应用在不同领域进行数据传输。虽然ZigBee的使用比其要早,但使用范围和热度不如WiFi,因为WiFi的传输带宽更宽,传输距离更长,抗干扰性更强[2]。针对家居中分布测量和无线传输特点,本文提供一种WiFi转串口与FPGA传输温度测量方法。……

登录APP查看全文