摘要
为了实现管理员对实验室内部温湿度实时监控,利用STC12C5A60S2单片机、DTH21传感器、ESP8266通信模块、OLED显示模块、步进电机驱动模块、按键模块等设计一款实验室温湿度智能监控系统.通过DTH21传感器实时检测实验室内温湿度,如果实验室内温湿度超阈值,LED发出报警信号,手机APP显示预警信息,电机会按设定指令自动转动或通过手机APP发送指令控制电机转动,实现窗户的打开、关闭或暂停.该系统用C语言编程,采用模块化的程序设计思想,逻辑清晰.经过反复测试,系统稳定可靠.
In order to realize the administrator to the laboratory internal temperature and humidity real-time monitoring,the intelligent monitoring system of laboratory temperature and humidity is designed.The system is composed of STC12C5A60S2 single chip microcomputer,DTH21 sensor,ESP8266 communication module,OLED display module,stepper motor driver module and button module,etc.The DTH21 module detects the temperature and humidity in the laboratory in real time.If the temperature and humidity in the laboratory exceed the alarm value,the LED will send an alarm signal,at the same time,the mobile APP displays an early warning message.The windows are opened,closed or suspended by sending commands through the mobile APP.The system is written in C language.The program is designed by adopting the idea of modularization,which has the advantage of clear logic.The test results show that the system has the advantages of stable,reliable and practical.
作者
张亚萍
李抗抗
ZHANG Ya-ping;LI Kang-kang(School of Physics and Electronic Information,Huaibei Normal University,Huaibei 235000,Anhui,China)
出处
《兰州文理学院学报(自然科学版)》
2020年第6期72-75,共4页
Journal of Lanzhou University of Arts and Science(Natural Sciences)
基金
淮北师范大学教学研究项目(jy15127)
安徽省质量工程项目“通信工程专业综合改革试点”(2016zy109)
安徽省质量工程项目“高级语言程序设计”(2017kfk043)
淮北师范大学质量工程项目“《高级语言程序设计》网络教学平台课程建设”(2017tykc159)。
关键词
温度检测
湿度检测
智能监控
LED报警
temperature check
humidity detection
intelligent monitoring
LED alarm