设计说明书
总字数:17000+
摘要
随着人们生活品质的提升,对居家环境的舒适性、智能化管控需求日益增长。传统家居环境中,温湿度、光照等参数的调节多依赖人工操作,不仅响应滞后,还难以实现精准控制,长期下来既影响居住体验,也可能造成能源浪费。因此,研发一种能自动监测环境参数、智能调控设备且支持远程控制的智能家居监控系统,具有重要的现实意义与应用价值。
本设计提出了一种基于 STM32F103C8T6 单片机的智能家居监控系统。系统主要功能包括:通过 DHT11 温湿度检测模块实时采集当前环境温湿度,当温度大于预设最大值时自动控制风扇(继电器)降温,温度低于预设最小值时启动加热设备(继电器),同时通过按键可灵活设置温度上下限,温湿度超出阈值时蜂鸣器触发报警;通过 5516 光照强度检测模块监测环境光照,光照低于预设最小值时自动开启照明设备(继电器),光照阈值可通过按键调整;通过 OLED 显示模块实时展示温湿度、光照强度等检测数据;借助 ECB02 蓝牙模块将监测数据发送至手机端,同时支持手机端远程控制加热、制冷(风扇)、窗帘(ULN2003A 驱动步进电机)、热水器、加湿器及电灯的开关状态。
该智能家居监控系统的作用在于,为用户打造了 “自动监测 + 智能调控 + 远程控制” 的一体化居家环境管理方案。通过自动感知环境变化并联动设备调节,减少人工干预,提升居住舒适度;手机端远程控制功能则进一步拓展了使用便利性,用户可随时掌控家中设备状态,兼顾了实用性与智能化需求,为现代智能家居生活提供了可靠支持。
关键词:STM32F103C8T6;智能家居监控系统;DHT11;5516;ECB02
Design and Implementation of Smart Home Monitoring System
Abstract
With the improvement of people’s quality of life, the demand for comfort and intelligent management of home environments is increasing day by day. In traditional home environments, the adjustment of parameters such as temperature, humidity, and lighting relies heavily on manual operation, which not only lags in response but also makes it difficult to achieve precise control. In the long run, this not only affects the living experience but may also result in energy waste. Therefore, developing an intelligent home monitoring system that can automatically monitor environmental parameters, intelligently regulate devices, and support remote control has important practical significance and application value.
This design proposes an intelligent home monitoring system based on STM32F103C8T6 microcontroller. The main functions of the system include: real-time collection of current environmental temperature and humidity through the DHT11 temperature and humidity detection module, automatic control of the fan (relay) to cool down when the temperature exceeds the preset maximum value, activation of the heating device (relay) when the temperature is below the preset minimum value, and flexible setting of temperature upper and lower limits through buttons. When the temperature and humidity exceed the threshold, the buzzer triggers an alarm; Monitor the ambient lighting through the 5516 light intensity detection module, and automatically turn on the lighting equipment (relay) when the lighting is below the preset minimum value. The lighting threshold can be adjusted by pressing the button; Real time display of temperature, humidity, light intensity and other detection data through OLED display module; Using ECB02 Bluetooth module to send monitoring data to the mobile phone, it also supports remote control of heating, cooling (fan), curtains (ULN2003A driven stepper motor), water heater, humidifier, and light switch status on the mobile phone.
The function of this smart home monitoring system is to create an integrated home environment management solution for users, which includes “automatic monitoring+intelligent regulation+remote control”. By automatically sensing environmental changes and coordinating device adjustments, reducing manual intervention and improving living comfort; The remote control function on the mobile phone further expands the convenience of use, allowing users to control the status of their home devices at any time, balancing practicality and intelligence needs, and providing reliable support for modern smart home life.
Keywords:STM32F103C8T6; Smart home monitoring system; DHT11; 5516; ECB02
目 录
1 绪论
1.1 研究背景及意义
1.2 国内外研究现状
1.3 主要内容
2 系统总体方案设计
2.1系统总体设计
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 步进电机子流程设计
4.8 蓝牙模块子流程
5 实物制作与功能测试
5.1 实物制作
5.2 温湿度检测与自动调控及蜂鸣器报警功能测试
5.3 光照强度检测与自动照明功能测试
5.4 检测值 OLED 显示功能测试
5.5 蓝牙数据传输与远程设备控制功能测试
6 总结
参考文献
致谢
附录A 原理图
附录B PCB
附录C 主程序
购买后可查看具体内容!