设计说明书
总字数:13000+
窗户是建筑的主要围护结构,建筑物通过窗户实现采光、通风等功能。普通窗户依赖人力,无法适应多变的环境实时开闭,其便利性较差。如今,智能化产品蓬勃发展,为提高居家环境,增加居住的舒适性提供了丰富的方法与渠道,智能化产品成为提高生活质量必不可少的产品。窗户被称为“家居之眼”,实现窗户的智能化是智能家居的第一步,也是提升生活质量至关重要的一步。目前普通窗户在下雨时不能自动关闭,在刮大风有沙尘天气的时候也不能自动关闭,这给我们带来了诸多不便,也给我们带来经济损失,在这种情况下安装智能窗就可以让我们不再让这些问题成为我们的烦恼。智能窗户代替现在的普通窗户将会成为一种趋势。
本论文阐述了以STM32F103C8T6单片机为核心的智能开窗器的工作原理和设计方法。温湿度信号由温湿度传感器DHT11采集,并以数字信号的方式传送给单片机,苯类有害气体检测采用的是MQ-135传感器检测,雨量检测模块检测当前室外是否下雨,窗外是否有人通过D203S检测,通过显示模块OLED将检测的数据和设置的数据进行显示,通过控制步进电机的旋转控制窗户的开关,此外用户可以使用蓝牙或者定时控制窗户的开关,检测有人时、或有害气体浓度过高时,进行声光报警。论文介绍了该控制系统的硬件部分和软件部分的设计与实现。单片机通过对信号进行相应处理,对连接窗户的电机进行控制,从而实现对窗户开闭进行自动控制的目的。
关键词:窗户;传感器;无线通信;单片机;测控
With the progress of science and technology and the rapid development of economy, people have higher and higher requirements for the quality of life, and automation equipment is gradually loved by people, so the design of intelligent window system has practical significance. At present, ordinary Windows can not automatically close when it rains, and can not automatically close when there is strong wind and dust weather, which brings us a lot of inconvenience, but also brings us economic losses, in this case, the installation of smart Windows can let us no longer let these problems become our troubles. Smart Windows instead of the current ordinary Windows will become a trend.
This paper describes the working principle and design method of the intelligent window opener based on STM32F103C8T6 single chip computer. Temperature and humidity signals are collected by the temperature and humidity sensor DHT11 and transmitted to the single chip computer in the form of digital signals. Benzene harmful gases are detected by MQ-135 sensor. The rainfall detection module detects whether it is raining outdoors at present and whether anyone outside the window is detected by D203S. By controlling the rotation of the stepper motor, the switch of the window is controlled. In addition, the user can use Bluetooth or timing to control the switch of the window to detect when someone is present or when the concentration of harmful gases is too high. This paper introduces the design and implementation of the hardware and software of the control system. The single chip microcomputer can control the motor connected to the window by processing the signal accordingly, so as to realize the purpose of automatic control of the window opening and closing..
Key words:window; Sensor; Wireless communication; Single-chip computer; Measure and control
目 次
摘 要
Abstract
1 引言
1.1 课题研究的意义和背景
1.2 国内外研究现状
1.3 课题研究的主要内容和工作
2 整体硬件的设计与实现
2.1 系统整体结构
2.2 方案论证与比较
2.2.1 主控芯片选择
2.2.2 显示模块方案
3 具体硬件设计
3.1 主控模块电路
3.2 雨量检测电路模块
3.3 人体热释电红外感应电路模块
3.4 烷类有害气体检测电路模块
3.5 温湿度检测电路模块
3.6 显示电路模块
3.7 步进电机电路模块
3.8 按键电路模块
3.9 声光报警模块
3.10 蓝牙电路模块
4 系统程序设计
4.1 编程软件介绍
4.2 系统主流程设计
4.3 独立按键
4.4 温湿度检测模块子流程
4.5 步进电机子流程
4.6 OLED显示流程设计
4.7 蓝牙模块子流程
5实物制作过程
5.1 PCB的制作流程
5.2 调试过程
5.2.1硬件调试
5.2.2软件调试
5.3实物功能测试
5.3.1 温度监测实物测试
5.3.2 湿度检测实物测试
5.3.3 人体检测实物测试
5.3.4 定时检测实物测试
5.3.5 下雨检测实物测试
5.3.6 有害气体检测实物测试
5.3.7 蓝牙测控实物测试
6 结论
致 谢
参考文献
附录1 硬件原理图
附录2 硬件PCB图
附录3 部分源程序
购买后可查看具体内容!