基于STM32单片机的居家智能窗
2023-08-20单申留惠雯赵新铭卢学玉
单申 留惠雯 赵新铭 卢学玉



摘要:智能化发展的今天,大部分家庭还是依靠手动开关窗户,在防雨、防夹、感应有毒气体等各方面不能满足人们对舒适、环保、安全的家庭生活需求。本款居家智能窗是基于STM32单片机根据室外环境完成自动开关窗动作的新型居家智能窗。该智能窗主要由步进电机、滚珠丝杠、电磁铁、光敏电阻等各类传感器和电控部分组成。传感器系统将检测的雨水、空气质量等环境参数收集并传递到控制器,进而带动电机工作,通过动力传动装置实现窗户在室外恶劣环境时的自动关闭以及室内需要通风时的自动打开。此外,用户还可以通过手控按钮控制窗户的开关,体现多种控制结合的人性化设计理念。
关键词:居家智能窗;滚珠丝杠;STM32;传感器
中图分类号:TP271+.4 文献标志码:A doi:10.3969/j.issn.1006-0316.2023.04.011
文章编号:1006-0316 (2023) 04-0074-07
Home Smart Window Based on STM32 Microcontroller
SHAN Shen1,LIU Huiwen1,ZHAO Xinming2,LU Xueyu1
( 1.School of Mechanical Engineering, Jiangnan University, Wuxi 214000, China;
2.College of Automation, Jiangsu University of Science and Technology, Zhenjiang 212000, China )
Abstract:Despite the development of intelligence, most families still rely on manual opening and closing of windows, which cannot meet the needs for comfortable, environmentally friendly and safe family life in terms of rain-proof, anti-pinch protection and the induction of toxic gases. This group designed a new home smart window based on STM32 single-chip microcomputer to automatically open and close the window according to the outdoor environment. The smart window is mainly composed of various sensors and electronic control parts such as stepping motor, ball screw, electromagnet, photoresistor, etc. The sensor system collects and transmits the detected environmental parameters such as the rainwater and the air quality to the controller, which drives the motor to work. The power transmission device realizes the automatic closing of windows in harsh outdoor environments and automatic opening when ventilation is required. In addition, the user can also control the opening and closing of the window through the manual button, which reflects the humanized design concept of multiple controls.
Key words:home smart window;ball screw;STM32;sensor
開关窗户是调节室内环境的手段之一,大部分窗子的开关都是依靠人工调节,不具备根据环境情况来智能控制窗户开关,进而调节室内环境的功能[1]。科技的发展为人们生活舒适性提供了各种可能,智能窗产品也越来越受到人们的关注[2]。当前国外智能窗的研究主要倾向于电致变色的应用等,国内则尚未出现全面、自主、智能化工作的窗户产品,不能满足人们多样化的需求[3]。本文设计了一种基于STM32单片机的智能窗,以环境温度、湿度、光照等作为判断依据,完成对窗户的自动控制,并能做出相应的报警。
实验表明,该设计安全可靠、功能强大、各模块性能稳定、数据收发准确、成本低、维护方便,完全满足人与窗户“远程对话”的需求。……
