类杰 韩玉 谢印忠
摘要:从环境温湿度检测、手机App 控制装置以及远程服务器端三个方面进行设计,装置采用嵌入式单片机 stm32芯片作为系统的核心组成环境温湿度测量系统,通过蓝牙或GSM模块把温度传感器的温度信息显示在以及手机App 界面上,手机App 客户端可实时监控数据和控制,利用蓝牙技术与远程服务器端无线通信,远程服务器端实现用户数据存储及操作。被测量环境温湿度变化剧烈时,信息能够及时传送到用戶App,超过设定阈值时报警,并按设定开启通风、空调或水帘模块工作。
关键词:嵌入式;蓝牙;智能App;GSM
中图分类号TP23 文献标识码:B
文章编号:1009-3044(2021)29-0017-03
Design of Temperature and Humidity Monitoring System Based on Internet of Things
LEI Jie, HAN Yu, XIE Yin-zhong*
(School of Automation and Electrical Engineering, Linyi University, Linyi 276005, China)
Abstract: The device is designed from three aspects: environmental temperature and humidity detection, mobile app control device and remote server. The device uses embedded MCU STM32 as the core of the system, the chip constitutes the environment tempera⁃ture and humidity measurement system. The temperature information of the temperature sensor is displayed on the mobile app inter ⁃ face through Bluetooth or GSM module. The mobile app client can monitor and control the data in real time, and communicate with the remote server through Bluetooth technology. The remote server realizes the user data storage and operation. When the tempera⁃ture and humidity of the measured environment change violently, the information can be sent to the user app in time. When it ex⁃ceeds the set threshold, the alarm will be given, and the ventilation, air conditioning or water curtain module will work according to the set.
Key words: Embedded; Bluetooth; intelligent app; GSM
1引言
随着农业现代化的发展,种植大棚的普及程度不断提高,为了使大棚中作物生长良好,环境温湿度的控制工作十分重要,传统农业大棚中一般都是在棚内悬挂温湿度计,通过温度计和湿度计显示数值,靠人工观察判断是否超出相关范围,再启动相关控制机构进行调节,耗费人力物力且不能实时精确控制。经过研究利用物联网技术完成远近程可实时观察的自动大棚温湿度控制系统。
本设计由数据显示模块、温湿度采集模块、无线传输模块三个模块组成。系统以STM32单片机为控制器,使用10位精度的DHT11温湿度传感器模块,将检测到的数据显示在OLED 液晶显示屏上,利用蓝牙串口传输的功能,将数据打包发送到开发的智能App 中,并成功实时显示温度信息,并且用户可以利用手机设置温度阈值,报警电路则采用GSM模块作为核心,当达到用户所设置的温度阈值时,GSM会进行拨打电路等措施通知用户,以保证环境的安全性。……