设计说明书
总字数:15000+
摘要
在日常生活与办公场景中,饮水机作为常用设备,其便捷性与安全性至关重要。传统饮水机多依赖人工操作,存在温度控制精度低、缺水时易干烧、功能单一等问题,难以满足用户对智能化、安全化饮水的需求。
基于 STM32F103C8T6 单片机的智能饮水机控制系统,整合了防水式 DS18B20 温度传感器、YW-J 水位检测模块、3 个独立按键、OLED 显示屏及声光报警装置,实现了饮水机的智能化控制与状态监测。系统核心功能包括:在加热模式下,通过 DS18B20 实时检测水温,当水温低于设定最小值时自动启动加热,达到设定最大值时停止加热,同时显示屏显示 “加热” 状态;常温模式下仅实时检测并显示水温;通过 YW-J 水位检测模块监测水位,缺水时立即停止加热,显示屏显示 “缺水” 并触发声光报警;支持通过 3 个独立按键切换界面设置温度阈值、切换加热 / 常温模式及控制出水;OLED 显示屏实时展示水温、工作模式(加热 / 常温)、缺水状态及出水状态。
该系统的实现,有效提升了饮水机的智能化水平与使用安全性,减少了人工干预,确保了水温的精准控制和缺水时的及时保护,为用户提供了便捷、安全的饮水体验,同时为同类智能饮水设备的研发提供了参考,具有较高的实际应用价值。
关键词:STM32F103C8T6;智能饮水机;控制系统;温度传感器;水位检测;OLED 显示
ABSTRACT
In daily life and office scenarios, water dispensers, as common equipment, their convenience and safety are crucial. Traditional water dispensers mostly rely on manual operation, with problems such as low temperature control accuracy, easy dry burning when water is insufficient, and single function, which are difficult to meet users’ needs for intelligent and safe drinking water.
The intelligent water dispenser control system based on the STM32F103C8T6 microcontroller integrates waterproof DS18B20 temperature sensor, YW-J water level detection module, 3 independent buttons, OLED display and sound-light alarm device, realizing intelligent control and state monitoring of the water dispenser. The core functions of the system include: in heating mode, the water temperature is detected in real-time through DS18B20, heating is automatically started when the water temperature is lower than the set minimum value, and stopped when it reaches the set maximum value, and the display shows “heating” status; in normal temperature mode, only the water temperature is detected and displayed in real-time; the water level is monitored by YW-J water level detection module, when water is insufficient, heating is stopped immediately, the display shows “water shortage” and triggers sound-light alarm; 3 independent buttons are used to switch interfaces to set temperature thresholds, switch heating/normal temperature modes and control water outlet; the OLED display shows water temperature, working mode (heating/normal temperature), water shortage status and water outlet status in real-time.
The implementation of this system effectively improves the intelligence level and use safety of the water dispenser, reduces manual intervention, ensures precise control of water temperature and timely protection when water is insufficient, provides users with a convenient and safe drinking experience, and also offers a reference for the research and development of similar intelligent drinking water equipment, with high practical application value.
Keywords: STM32F103C8T6; Intelligent water dispenser; Control system; Temperature sensor; Water level detection; OLED display
目录
第 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.2整体设计方案
第 3 章 硬件设计
3.1 主控电路模块
3.2 温度传感器电路
3.3 水位检测模块电路
3.4 按键模块电路
3.5 显示模块电路
3.6 声光报警模块电路
3.7 执行设备驱动电路
第4章 系统程序设计
4.1 编程软件介绍
4.2 系统主流程设计
4.3 OLED显示子流程设计
4.4 独立按键子流程设计
4.5 ADC模数转换子流程设计
4.6 温度检测模块子流程设计
第 5 章 实物测试
5.1 整体实物测试
5.2 温度传感器功能测试
5.3 水位检测模块功能测试
5.4 按键功能测试
5.5 显示模块功能测试
5.6 声光报警模块功能测试
第 6 章 总结与展望
6.1 总结
6.2 展望
致谢
参考文献
附录
附录一:原理图
附录二:PCB
附录三:主程序
购买后可查看具体内容!