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

设计说明书

总字数:18000+

基于嵌入式的香薰灯的设计与实现

摘要

随着生活品质的提升,人们对居家环境的舒适度与氛围营造愈发重视,香薰灯作为改善环境、舒缓情绪的家居产品,其智能化需求日益增长。传统香薰灯多依赖手动操作,存在香薰释放时机不精准、液位不足难察觉、功能单一等问题,难以满足用户对便捷化、个性化使用的需求。因此,研发一款能自动调节香薰释放、实时监测状态且支持智能交互的嵌入式香薰灯具有重要的现实意义。

本设计提出一种基于 STM32F103C8T6 单片机的嵌入式香薰灯系统。系统主要功能包括:通过 DHT11 温湿度监测模块实时监测环境温湿度,当温度或湿度大于预设最大值时,每间隔 1 小时通过继电器控制雾化片工作 5 秒释放香薰,否则每间隔 2 小时工作 5 秒,且间隔时间可手动设置;通过 YW01 液位监测模块检测香薰剩余量,液位不足时在开启香薰瞬间触发声光报警 3 次并自动关闭香薰功能;通过按键可设置温湿度阈值、启动香薰、切换睡眠模式(香薰灯低亮)与休闲放松模式(香薰灯高亮),还能切换 RGB 灯颜色及设置香薰灯工作时长;OLED 显示屏实时显示温湿度、液位、工作模式等数据;借助 ECBO2 蓝牙模块将监测数据传输至手机端,支持手机远程设置阈值、启动香薰、切换模式及调整灯光颜色。

该嵌入式香薰灯的作用在于构建了 “环境感知 – 智能调控 – 状态反馈 – 远程交互” 的一体化香薰体验方案。通过温湿度联动控制香薰释放,实现精准化环境调节;液位监测与报警功能保障使用安全与持续性;多模式与灯光调节满足不同场景的氛围需求;蓝牙远程控制提升操作便捷性。为用户提供了便捷、个性化的居家香薰解决方案,助力营造舒适健康的生活环境,提升生活品质。

关键词:嵌入式;香薰灯;STM32;温湿度监测;蓝牙控制

Design and Implementation of Aromatherapy Lamp Based on Embedded System

Abstract

With the improvement of quality of life, people attach increasing importance to the comfort and atmosphere of their home environment. Aromatherapy lamps, as home products that improve the environment and soothe emotions, have a growing demand for intelligence. Traditional aromatherapy lamps rely heavily on manual operation, which results in inaccurate release timing, difficulty in detecting insufficient liquid level, and limited functionality, making it difficult to meet users’ demands for convenient and personalized use. Therefore, developing an embedded aromatherapy lamp that can automatically adjust aroma release, monitor status in real-time, and support intelligent interaction has important practical significance.

This design proposes an embedded aromatherapy lamp system based on STM32F103C8T6 microcontroller. The main functions of the system include: real-time monitoring of environmental temperature and humidity through the DHT11 temperature and humidity monitoring module. When the temperature or humidity exceeds the preset maximum value, the atomizer is controlled by a relay to work for 5 seconds every hour to release the fragrance. Otherwise, it works for 5 seconds every 2 hours, and the interval time can be manually set; By using the YW01 liquid level monitoring module to detect the remaining amount of aromatherapy, if the liquid level is insufficient, the aromatherapy function will trigger three sound and light alarms and automatically turn off when the aromatherapy is turned on; By pressing the buttons, you can set temperature and humidity thresholds, activate aromatherapy, switch between sleep mode (aromatherapy light low) and leisure relaxation mode (aromatherapy light high), and also switch between RGB light colors and set the working hours of the aromatherapy light; OLED display screen displays real-time temperature, humidity, liquid level, working mode and other data; By using the ECBO2 Bluetooth module to transmit monitoring data to the mobile phone, it supports remote setting of thresholds, starting aromatherapy, switching modes, and adjusting light colors on the phone.

The function of this embedded aromatherapy lamp is to build an integrated aromatherapy experience solution of “environmental perception intelligent regulation status feedback remote interaction”. By controlling the release of aromatherapy through temperature and humidity linkage, precise environmental regulation can be achieved; The liquid level monitoring and alarm function ensures safe and continuous use; Multi mode and lighting adjustment meet the atmosphere requirements of different scenes; Bluetooth remote control improves operational convenience. We provide users with convenient and personalized home aromatherapy solutions, helping to create a comfortable and healthy living environment and improve their quality of life.

 Keywords: embedded; Aromatherapy lamp; STM32; 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 RGB 灯光模块电路设计

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 蓝牙通信与远程控制功能测试

6 总结

参考文献

致谢

附录A   原理图

附录B   PCB

附录C   主程序

购买后可查看具体内容!

发表评论

后才能评论

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

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

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

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

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