设计说明书
总字数:20000+
随着健康管理理念的普及和生活节奏的加快,科学饮水逐渐成为人们关注的重点,水温不适、水质不佳、饮水不规律等问题却困扰着日常饮水体验。水温过高易引发烫伤,过低可能刺激肠胃,水质超标则潜藏健康风险,而忙碌的生活更易让人忽视定时补水。因此,研发一种能实现水温调控、水质监测、定时提醒且操作便捷的智能饮水设备十分必要。
本设计提出了一种基于 STM32F103C8T6 单片机的智能水杯。系统主要功能包括:通过 DS18B20 传感器检测水温,超出预设阈值时通过继电器启动加热或制冷;借助 TDS 传感器监测水质,可溶性电解质含量超标时,CN-TTS 语音模块发出更换提醒;通过按键设定饮水定时,时间到达后语音提醒并驱动 SG90 舵机自动开盖;支持按键设置参数、手动控制设备及触发语音播报水温水质,每步操作均伴随语音反馈;OLED 显示屏同步显示测量值与设置值,同时通过蓝牙模块实现手机端数据接收与远程控制。
该智能水杯的作用在于,为用户提供了一种安全、智能的饮水管理工具。通过自动调控、异常预警、定时提醒与远程交互的协同,既保障了饮水安全,又培养了规律饮水习惯,有效提升了生活品质与健康管理效率。
关键词:单片机;智能水杯;水温调控;水质监测;蓝牙远程控制
Abstract
With the popularization of health management concepts and the acceleration of life rhythm, scientific drinking water has gradually become the focus of people’s attention. However, problems such as uncomfortable water temperature, poor water quality, and irregular drinking water plague the daily drinking experience. Excessively high water temperature may cause scalds, excessively low temperature may irritate the intestines and stomach, excessive water quality hides health risks, and the busy life makes it easier for people to ignore regular water replenishment. Therefore, it is very necessary to develop an intelligent drinking water device that can realize water temperature regulation, water quality monitoring, timing reminder and convenient operation.
This design proposes an intelligent water cup based on the STM32F103C8T6 single-chip microcomputer. The main functions of the system include: detecting water temperature through the DS18B20 sensor, and starting heating or cooling through the relay when exceeding the preset threshold; monitoring water quality with the help of the TDS sensor, and when the content of soluble electrolytes exceeds the standard, the CN-TTS voice module sends a replacement reminder; setting a drinking timer through the button, and when the time is up, a voice reminder is issued and the SG90 servo is driven to open the lid automatically; supporting button-based parameter setting, manual equipment control and triggering voice broadcast of water temperature and quality, with voice feedback accompanying each operation; the OLED display synchronously shows measured values and set values, and at the same time, the Bluetooth module realizes data reception and remote control on the mobile phone terminal.
The function of this intelligent water cup is to provide users with a safe and intelligent drinking water management tool. Through the coordination of automatic regulation, abnormal early warning, timing reminder and remote interaction, it not only ensures drinking water safety, but also cultivates regular drinking habits, effectively improving the quality of life and health management efficiency.
Keywords:Single-chip microcomputer; Intelligent water cup; Water temperature regulation; Water quality monitoring; Bluetooth 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 电源模块电路设计
4 系统程序设计
4.1 编程软件介绍
4.2 系统主流程设计
4.3 温度检测模块子流程设计
4.4 水质检测模块子流程设计
4.5 舵机子流程设计
4.6 独立按键子流程设计
4.7 语音播报模块子流程设计
4.8 OLED显示屏子流程设计
5 实物制作与功能测试
5.1 实物制作
5.2 环境感知与显示功能测试
5.3 温度调控功能测试
5.4 定时提醒与自动开盖功能测试
5.5 语音交互功能测试
5.6 蓝牙通信功能测试
5.7 水质异常提醒功能测试
6 总结
参考文献
致谢
附录A 原理图
附录B PCB
附录C 主程序
购买后可查看具体内容!