设计说明书
总字数:13000+
摘要
随着人们健康意识的提升,科学饮水成为日常生活的重要组成部分,而智能水杯作为健康管理的载体,其便捷性与功能性备受关注。传统水杯仅能盛装液体,无法监测水质、水温及饮水状态,难以满足用户对饮水健康的精细化需求,存在水温不适、水质不佳等潜在问题。
基于 STM32F103C8T6 单片机的智能水杯设计,整合了红外避障模块、DS18B20 水温检测模块、HX711 水位检测模块、TDS 水质模块、按键、OLED 显示屏及 ECB02 蓝牙模块,实现了饮水状态的智能化监测与管理。系统核心功能包括:通过红外避障模块检测用户是否拿起杯子,长时间未拿起时通过手机端提醒;借助 DS18B20 检测水温,低于最小值时启动加热,高于最大值时停止,保持水温恒温;利用 HX711 实时监测水位,便于用户掌握水量;通过 TDS 模块检测水质,水质较差时手机端发出提醒;支持按键设置各参数阈值及控制加热开关;OLED 显示屏实时显示水温、水质、水位信息;通过蓝牙模块将数据传输至手机端,支持远程设置参数和控制加热。
该系统的实现,有效提升了饮水管理的智能化水平,通过实时监测与主动提醒,保障了饮水健康与便捷性,为用户提供了科学的饮水解决方案,同时为智能穿戴设备的功能扩展提供了参考,具有较高的实用价值。
关键词:STM32F103C8T6;智能水杯;水温控制;水质监测;蓝牙通信
ABSTRACT
With the improvement of people’s health awareness, scientific drinking water has become an important part of daily life, and smart water cups, as a carrier of health management, have attracted much attention for their convenience and functionality. Traditional water cups can only hold liquids and cannot monitor water quality, water temperature, or drinking status, making it difficult to meet users’ needs for refined drinking water health, with potential issues such as uncomfortable water temperature and poor water quality.
The smart water cup design based on the STM32F103C8T6 microcontroller integrates an infrared obstacle avoidance module, DS18B20 water temperature detection module, HX711 water level detection module, TDS water quality module, buttons, OLED display, and ECB02 Bluetooth module, realizing intelligent monitoring and management of drinking status. The core functions of the system include: detecting whether the user picks up the cup through the infrared obstacle avoidance module, and sending a reminder on the mobile phone when the user does not pick up the cup for a long time; using the DS18B20 to detect the water temperature, starting heating when the temperature is lower than the minimum value, stopping when it is higher than the maximum value, and keeping the water temperature constant; using the HX711 to monitor the water level in real time, making it easy for users to know the water volume; detecting water quality through the TDS module, and sending a reminder on the mobile phone when the water quality is poor; supporting button settings of various parameter thresholds and control of the heating switch; the OLED display real-time shows water temperature, water quality, and water level information; transmitting data to the mobile phone through the Bluetooth module, supporting remote parameter setting and heating control.
The implementation of this system effectively improves the intelligence level of drinking water management. Through real-time monitoring and active reminders, it ensures the health and convenience of drinking water, provides users with a scientific drinking water solution, and also provides a reference for the functional expansion of smart wearable devices, with high practical value.
Keywords:STM32F103C8T6; smart water cup; water temperature control; water quality monitoring; Bluetooth communication
目录
第1章 绪论
1.1 研究的目的及意义
1.2 国内外发展情况
1.3 本文主要研究内容
第2章 设计思路与方案论证
2.1 主要元器件选择
2.1.1 主控芯片选择
2.1.2 水温检测模块选择
2.1.3 水位检测模块选择
2.1.4 水质检测模块选择
2.1.5 红外避障模块选择
2.1.6 显示模块选择
2.1.7 蓝牙模块选择
2.2整体设计方案
第 3 章 硬件设计
3.1 主控电路模块
3.2 DS18B20 水温检测模块电路
3.3 HX711 水位检测模块电路
3.4 TDS 水质检测模块电路
3.5 红外避障模块电路
3.6 显示模块电路
3.7 蓝牙模块电路
3.8 按键与加热控制电路
第4章 系统程序设计
4.1 编程软件介绍
4.2 系统主流程设计
4.3 独立按键
4.4温度检测模块子流程
4.5 OLED显示流程设计
4.6称重模块HX711模块子流程
4.7 蓝牙模块子流程
第 5 章 实物测试
5.1 整体实物测试
5.2 DS18B20 水温检测与加热功能测试
5.3 HX711 水位检测功能测试
5.4 TDS 水质检测功能测试
5.5 红外避障与饮水提醒功能测试
5.6 蓝牙模块远程控制功能测试
5.7 按键设置与显示功能测试
第6章 总结与展望
6.1 总结
6.2 展望
致谢
参考文献
附录
附录一:原理图
附录二:PCB
附录三:主程序
购买后可查看具体内容!