设计说明书
总字数:15000+
摘要
随着人们生活品质的提升和对饮水健康需求的增加,便捷、智能的饮水设备成为日常生活和办公场景中的重要需求。传统的饮水机功能单一,多依赖人工操作进行加热和取水,且无法精准控制水温,也不能实时监测水位状态,难以满足人们对饮水便捷性和安全性的要求。
基于 STM32F103C8T6 单片机的自动饮水机系统,整合了 DS18B20 温度传感器、液位传感器、按键、OLED 液晶显示屏、WiFi 模块、水泵、加热装置等硬件,实现了多项核心功能:通过 DS18B20 实时监测水温,根据设定的温度范围自动控制加热装置工作,确保水温处于适宜区间;借助液位传感器检测水桶水位,当水位为 0% 时,禁止加热并启动水泵加水至 100%,同时将水位信息远程传输;通过按键可设置保温水温范围,也能控制加热和出水;OLED 液晶显示屏实时显示当前水温;利用 WiFi 模块将水温等数据传输到手机端,手机端可设置水温上下限、控制加热和出水,并显示水位状态。
该系统的实现,有效提升了饮水机的自动化和智能化水平,减少了人工操作,确保了饮水的便捷性和安全性,为家庭、办公等场景提供了高效、可靠的饮水解决方案,同时也为智能家电设备的研发提供了有益参考,具有一定的实际应用价值。
关键词:STM32F103C8T6;自动饮水机系统;物联网;温度控制;远程监测
ABSTRACT
With the improvement of people’s living standards and the increasing demand for drinking water health, convenient and intelligent drinking water equipment has become an important need in daily life and office scenarios. Traditional water dispensers have single functions, mostly relying on manual operation for heating and water fetching, and cannot accurately control water temperature or real-time monitor water level status, making it difficult to meet people’s requirements for convenience and safety of drinking water.
The automatic water dispenser system based on STM32F103C8T6 single-chip microcomputer integrates hardware such as DS18B20 temperature sensor, liquid level sensor, buttons, OLED liquid crystal display, WiFi module, water pump, and heating device, and realizes several core functions: real-time monitoring of water temperature through DS18B20, automatically controlling the heating device according to the set temperature range to ensure that the water temperature is in a suitable interval; detecting the water level of the bucket with the help of a liquid level sensor, when the water level is 0%, heating is prohibited and the water pump is started to add water to 100%, and the water level information is transmitted remotely at the same time; the button can be used to set the heat preservation water temperature range, and also control heating and water outlet; the OLED liquid crystal display shows the current water temperature in real time; the WiFi module is used to transmit data such as water temperature to the mobile phone terminal, which can set the upper and lower limits of water temperature, control heating and water outlet, and display the water level status.
The realization of this system effectively improves the automation and intelligence level of the water dispenser, reduces manual operations, ensures the convenience and safety of drinking water, provides an efficient and reliable drinking water solution for home, office and other scenarios, and also provides a useful reference for the research and development of smart home appliances, which has certain practical application value.
Keywords:STM32F103C8T6; Automatic water dispenser system; Internet of Things; Temperature control; Remote monitoring.
目录
第 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 WiFi 模块选择
2.1.6 按键模块选择
2.2 方案设计
3 硬件电路设计
3.1 主控电路模块
3.2 温度检测模块电路
3.3 液位检测模块电路
3.4 加热控制模块电路
3.5 出水控制模块电路
3.6 显示模块电路
3.7 WiFi 模块电路
3.8 按键模块电路
第4章 系统程序设计
4.1 编程软件介绍
4.2 系统主流程设计
4.3 温度检测模块子流程设计
4.4 液位检测模块子流程设计
4.5 OLED显示屏子流程设计
4.6 独立按键子流程设计
4.7 WiFi模块子流程设计
第 5 章 实物测试
5.1 整体实物测试
5.2 温度检测模块功能测试
5.3 液位检测模块功能测试
5.4 加热控制模块功能测试
5.5 出水控制模块功能测试
5.6 按键与显示功能测试
5.7 无线传输功能测试
第6章 总结与展望
6.1 总结
6.2 展望
致谢
参考文献
附录
附录一:原理图
附录二:PCB
附录三:主程序
购买后可查看具体内容!