摘要
该设计通过电机的控制在刮风下雨时,风速传感器及湿度传感器不断的循环检测,当湿度或风力到达一定值时,驱动步进电机,使得窗户自动关闭,也可设置自动开关窗阀值,当外界环境到达阀值则会自动开关窗。设计硬件采用单片机STC89C52作为自动关窗系统的检测及控制,采用温湿度传感器对环境进行检测,窗户的工作状态则利用发光二极管来显示;软件部分则是通过模块化结构思想,实现了对窗户的开关控制,状态显示等功能。
the design through the motor control, in the wind and rain, wind speed sensor and humidity sensor continuous cycle detection, when the humidity or wind reaches a certain value, drive the stepper motor, make the window automatically close,can also set the automatic window opening and closing threshold, when the external environment reaches the threshold value,the window will automatically open and close. The design hardware uses single chip microcomputer STC89C52 as the detection and control of the automatic window closing system. The temperature and humidity sensor is used to detect the environment,and the light-emitting diode is used to display the working state of the window. The software part realizes the switch control and status display of the window through the modular structure idea.
作者
王宁宁
孙瑞驰
魏光春
Wang Ningning;Sun Ruichi;Wei Guangchun(ABA TEACHERS UNIVERSITY,Sichuan Wenchuan 623002)
出处
《信息通信》
2020年第8期152-154,共3页
Information & Communications
关键词
STC89C52单片机
湿度传感器
步进电机
风速传感器
自动关窗
STC89C52 single chip microcomputer
humidity sensor
stepping motor
wind speed sensor
automatic window closing