首页 实物资料 开题报告 设计说明书 答辩PPT

设计说明书

总字数: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   主程序

购买后可查看具体内容!

发表评论

后才能评论

本站所有资源版权均属于原作者所有,这里所提供资源均只能用于参考学习用,请勿直接商用。若由于商用引起版权纠纷,一切责任均由使用者承担。更多说明请参考 VIP介绍。

最常见的情况是下载不完整: 可对比下载完压缩包的与网盘上的容量,若小于网盘提示的容量则是这个原因。这是浏览器下载的bug,建议用百度网盘软件或迅雷下载。 若排除这种情况,可在对应资源底部留言,或联络我们。

对于会员专享、整站源码、程序插件、网站模板、网页模版等类型的素材,文章内用于介绍的图片通常并不包含在对应可供下载素材包内。这些相关商业图片需另外购买,且本站不负责(也没有办法)找到出处。 同样地一些字体文件也是这种情况,但部分素材会在素材包内有一份字体下载链接清单。

如果您已经成功付款但是网站没有弹出成功提示,请联系站长提供付款信息为您处理

源码素材属于虚拟商品,具有可复制性,可传播性,一旦授予,不接受任何形式的退款、换货要求。请您在购买获取之前确认好 是您所需要的资源