设计说明书
总字数:16000+
摘要
在现代生活中,人们对居住环境的舒适度和健康度愈发关注,香薰灯作为改善室内环境、舒缓身心的工具受到广泛喜爱。传统香薰灯多依赖手动操作,存在喷雾时机不精准、液位不足难察觉、模式切换不便等问题,难以满足个性化与智能化的使用需求。因此,研发一种能自动调节、状态可控的嵌入式香薰灯十分必要。
本设计提出了一种基于 STM32F103C8T6 单片机的嵌入式香薰灯系统。系统主要功能包括:通过 DHT11 温湿度监测模块实时监测环境温湿度,当温湿度超过最大值时,继电器控制雾化片每间隔 1 小时喷雾 5 秒,否则每间隔 2 小时喷雾 5 秒,且间隔时间可设置;借助 YW01 液位监测模块检测香薰剩余量,液位不足时在开启香薰状态下触发声光报警(提醒 3 声后关闭香薰);通过按键设置温湿度阈值及工作模式(睡眠模式下 LED 灯低亮,休闲放松模式下 LED 灯高亮);通过 OLED 显示屏实时显示温湿度、液位等数据;同时,系统通过 ECBO2 蓝牙模块将监测数据传输至手机端,手机端可远程设置阈值和启动香薰。
该嵌入式香薰灯的作用在于,为人们提供了一种智能化、个性化的环境调节工具。通过自动喷雾控制、液位监测报警及多模式切换,能精准改善室内环境,提升使用便捷性与舒适度,满足不同场景下的放松需求。
关键词:嵌入式;香薰灯;STM32F103C8T6;温湿度监测;蓝牙控制
Design and Implementation of Aromatherapy Lamp Based on Embedded System
Abstract
In modern life, people are increasingly concerned about the comfort and health of their living environment, and aromatherapy lamps are widely loved as tools to improve indoor environments and soothe the body and mind. Traditional aromatherapy lamps mostly rely on manual operation, and there are problems such as inaccurate spray timing, insufficient liquid level, and inconvenient mode switching, which are difficult to meet personalized and intelligent use needs. Therefore, it is necessary to develop an embedded aromatherapy lamp that can automatically adjust and control its state.
This design proposes an embedded aromatherapy lamp system based on STM32F103C8T6 microcontroller. The main functions of the system include: real-time monitoring of the ambient temperature and humidity through the DHT11 temperature and humidity monitoring module. When the temperature and humidity exceed the maximum value, the relay controls the atomizer to spray for 5 seconds every 1 hour, or spray for 5 seconds every 2 hours, and the interval time can be set; Use the YW01 liquid level monitoring module to detect the remaining amount of aromatherapy. When the liquid level is insufficient, trigger an audible and visual alarm when the aromatherapy is turned on (after 3 reminders, turn off the aromatherapy); Set the temperature and humidity threshold and working mode through buttons (LED light is low in sleep mode and high in leisure and relaxation mode); Real time display of temperature, humidity, liquid level and other data through OLED display screen; At the same time, the system transmits monitoring data to the mobile phone through the ECBO2 Bluetooth module, and the mobile phone can remotely set thresholds and start aromatherapy.
The function of this embedded aromatherapy lamp is to provide people with an intelligent and personalized environmental adjustment tool. Through automatic spray control, liquid level monitoring alarm and multi-mode switching, the indoor environment can be accurately improved, the convenience and comfort of use can be improved, and the relaxation needs in different scenarios can be met.
Keywords: embedded; Aromatherapy lamp; STM32F103C8T6; Temperature and humidity monitoring; Bluetooth control
目 录
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 OLED显示流程设计
4.5 温湿度检测模块子流程设计
4.6 蓝牙模块子流程设计
5 实物制作与功能测试
5.1 实物制作
5.2 温湿度监测与自动喷雾功能测试
5.3 液位监测与声光报警功能测试
5.4 模式切换与灯光调节功能测试
5.5 数据显示功能测试
5.6 蓝牙远程控制功能测试
6 总结
参考文献
致谢
附录A 原理图
附录B PCB
附录C 主程序
购买后可查看具体内容!
 
       
                
            