设计说明书
总字数:20000+
摘 要
随着人们生活水平的提高和健康意识的增强,足浴桶作为家庭保健的一种方式越来越受到欢迎。然而,传统足浴桶功能单一,无法满足用户对水温控制、消毒、烘干等多功能的需求。因此,设计一种基于单片机的多功能足浴桶,能够提供更加智能化、个性化的服务,对于提升用户体验和保健效果具有重要意义。
本设计采用STM32F103C8T6单片机作为核心控制器,通过防水式DS18B20传感器实时监测水温,并通过单片机内部定时器获取当前时间。利用YW-J液位检测模块获取当前水位,当水位满足条件且水温低于设定最小值时,启动加热功能,直到水温超过最大值或加热倒计时结束。倒计时结束后,若水位满足条件,则启动烘干功能并进行抽水,同时发出声光报警提醒。用户可通过按键设置水温阈值、加热倒计时和消毒开关,并通过OLED显示屏实时显示水温和倒计时信息。
该多功能足浴桶能够根据用户设定自动调节水温,提供舒适的足浴体验。同时,通过烘干和抽水功能,保持足浴桶干燥卫生,避免细菌滋生。此外,通过声光报警提醒用户及时添加热水或进行其他操作,提高使用安全性。该系统适用于家庭、足疗店等多种场景,具有较高的实用性和推广价值,对于推动足浴桶智能化发展具有重要意义。
关键词:足浴桶;STM32F103C8T6单片机;传感器;OLED显示
Abstract
With the improvement of people’s living standard and increasing health awareness, foot bath bucket is becoming more and more popular as a way of family health care. However, the traditional foot bath bucket has a single function, which cannot meet the needs of users for water temperature control, disinfection, drying and other multifunctional functions. Therefore, the design of a multi-functional foot bath bucket based on a single-chip machine can provide more intelligent and personalized services, which is of great significance to improve the user experience and health care effect.
This design uses STM32F103C8T6 SU as the core controller, monitors the water temperature in real time through the waterproof DS18B20 sensor, and obtains the current time through the MCU internal timer. The current water level is obtained by using the YW-J liquid level detection module. When the water level meets the conditions and the water temperature is lower than the set minimum value, start the heating function until the water temperature exceeds the maximum value or the heating countdown is over. After the countdown, if the water level meets the conditions, start the drying function and pump water, and issue the sound and light alarm reminder at the same time. Users can set the water temperature threshold, heating countdown and disinfection switch through the keys, and display the water temperature and countdown information in real time through the OLED display screen.
The multi-functional foot bath bucket can automatically adjust the water temperature according to the user’s setting, providing a comfortable foot bath experience. At the same time, through the drying and pumping function, keep the foot bath bucket dry and sanitary, to avoid bacterial breeding. In addition, through the sound and light alarm to remind users to timely add hot water or other operations, to improve the safety of use. The system is suitable for many scenarios such as family and foot therapy shop, which has high practicability and promotion value, and is of great significance for promoting the intelligent development of foot bath bucket.
Key words: Foot bath bucket; STM32F103C8T6 MCU; sensor; OLED display
目 录
1 绪论
1.1 课题研究的背景及意义
1.1.1 课题研究的背景
1.1.2 课题研究的意义
1.2 国内外研究现状
1.2.1 国外研究现状
1.2.2 国内研究现状
1.3 本文研究内容
1.3.1 论文结构
1.3.2 研究方法及手段
2 系统分析
2.1可行性分析
2.1.1经济可行性分析
2.1.2 技术可行性分析
2.1.3 操作可行性分析
2.2需求分析
2.2.1 关键技术
2.2.2 业务流程分析
2.2.3 功能需求分析
2.2.4 性能需求分析
2.2.5 将来可能提出的需求分析
3 系统方案设计
3.1 架构设计
3.2 功能模块设计
3.2.1. 单片机
3.2.2. 温度检测模块
3.2.3. 液位检测
3.2.4. 继电器模块
3.2.5. 显示模块
3.3 硬件设计
3.3.1 STM32F103C8T6单片机
3.3.2 DS18B20温度模块电路设计
3.3.3 液位模块电路设计
3.3.4. TYPE-C-2P继电器模块
3.3.5 OLED显示模块电路设计
3.3.6 按键电路设计
3.4 软件设计
3.4.1 系统主流程设计
3.4.2 温湿度检测模块子流程
3.4.3 OLED显示流程设计
3.4.4 独立按键
4 系统实现
4.1 开发环境
4.2 功能模块实现
4.2.1 控制模块
4.2.2 温度检测模块
4.2.3 液位模块
4.2.4 OLED显示模块
4.2.5 按键电路
5 系统测试
5.1 硬件测试
5.2 软件测试
5.3 联合测试
总结
致谢
参考文献
附录一:元器件清单
附录二:原理图
附录三:PCB
附录四:主程序
购买后可查看具体内容!