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

设计说明书

总字数:18000+

基于单片机的智能蚊香液控制系统

摘要

随着人们对居住环境舒适度与健康生活需求的提升,夏季驱蚊方式的便捷性、安全性与节能性成为关注焦点。传统蚊香液多依赖人工手动开关,易出现忘记关闭导致药液浪费、夜间忘开影响睡眠的问题;且盲目长时间使用,不仅增加能耗,还可能因室内蚊香液浓度过高带来健康隐患。因此,研发一种能自动、精准控制蚊香液启停的智能设备具有重要实用价值。

本设计提出了一种基于 STM32F103C8T6 单片机的智能蚊香液控制系统。系统主要功能包括:通过 RTC 内部时钟获取实时时间,支持通过按键修正时间及预设蚊香液启停时段;借助 5516 光照检测模块采集环境光照值,仅当光照值低于设定最小值且处于预设启动时段时,才通过继电器开启蚊香液;配备按键支持用户手动切换蚊香液启停状态;通过 OLED 显示屏清晰展示当前时间、单次使用时长及总使用时长;搭载 ESP8266-12F WIFI 模块,可将设备运行数据实时发送至手机端,手机端不仅能获取实时数据,还可远程设置蚊香液启停时段(如 20 点 – 5 点)并控制其开关。

该智能蚊香液控制系统的作用在于,为用户提供一种高效、节能的驱蚊解决方案。通过 “时间 + 光照” 双重条件触发自动控制,避免无效运行造成的药液与能源浪费;结合手动控制与手机远程控制,提升使用灵活性;OLED 显示与数据上传功能,方便用户掌握设备使用情况,助力打造便捷、健康的居住环境。

关键词:单片机;智能蚊香液控制;STM32F103C8T6;光照检测;WIFI 远程控制

Intelligent mosquito repellent liquid control system based on single-chip microcomputer

Abstract

With the increasing demand for comfortable living environments and healthy living, the convenience, safety, and energy efficiency of mosquito repellent methods in summer have become the focus of attention. Traditional mosquito repellent liquid relies heavily on manual switching, which can lead to waste of liquid due to forgetting to turn it off and affecting sleep at night; Blindly using it for a long time not only increases energy consumption, but also may pose health hazards due to the high concentration of indoor mosquito repellent liquid. Therefore, developing an intelligent device that can automatically and accurately control the start and stop of mosquito repellent liquid has important practical value.

This design proposes an intelligent mosquito repellent liquid control system based on STM32F103C8T6 microcontroller. The main functions of the system include: obtaining real-time time through the RTC internal clock, supporting time correction through buttons, and preset mosquito repellent start and stop time periods; Using the 5516 light detection module to collect ambient light values, the mosquito repellent liquid is only activated through a relay when the light value is below the set minimum value and within the preset start-up period; Equipped with buttons to support users in manually switching the start and stop status of mosquito repellent liquid; Clear display of current time, single usage duration, and total usage duration through OLED display screen; Equipped with ESP8266-12F WIFI module, the device operation data can be sent in real-time to the mobile phone. The mobile phone can not only obtain real-time data, but also remotely set the start and stop time of mosquito repellent liquid (such as 20:00-5:00) and control its switch.

The function of this intelligent mosquito repellent liquid control system is to provide users with an efficient and energy-saving mosquito repellent solution. By triggering automatic control through the dual conditions of “time+light”, it avoids the waste of medication and energy caused by ineffective operation; Combining manual control with mobile remote control to enhance user flexibility; OLED display and data upload function make it convenient for users to monitor device usage and help create a convenient and healthy living environment.

Keywords: microcontroller; Intelligent mosquito repellent liquid control; STM32F103C8T6; Light detection; WIFI remote 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 WIFI 通信模块电路设计

4 系统程序设计

4.1 编程软件介绍

4.2 系统主流程设计

4.3 独立按键

4.4 光照检测模块子流程设计

4.5 OLED显示流程设计

4.6 WiFi模块子流程设计

5 实物制作与功能测试

5.1 实物制作

5.2 RTC 时间控制与阈值设置功能测试

5.3 光照检测与继电器联动功能测试

5.4 手动控制功能测试

5.5 OLED 显示功能测试

5.6 WIFI 远程通信与控制功能测试

6 总结

参考文献

致谢

附录A   原理图

附录B   PCB

附录C   主程序

购买后可查看具体内容!

发表评论

后才能评论

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

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

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

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

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