设计说明书
总字数:18000+
摘要
随着宠物饲养的普及,科学、规律的喂食管理对保障宠物健康具有重要意义。传统的人工喂食方式不仅依赖人为记忆、易出现遗漏或投喂不规律的情况,还在主人外出时难以保障宠物饮食,难以满足现代化宠物饲养的便捷性、智能化需求。
基于 STM32F103C8T6 单片机的宠物自动喂食器系统,整合了 HX711 称重模块、DS302 时钟模块、SG90 舵机(2 个)、按键、OLED 显示模块、ESP8266 WiFi 模块等,实现了宠物喂食的自动化监测与智能控制。系统核心功能包括:通过 HX711 实时获取储存箱内食物重量,当重量低于设置最小值时,自动控制舵机 1 打开进行加食物,直至重量大于设置最大值;通过 DS302 时钟模块获取当前时间,支持设置宠物投喂时间,当时间到达设定值时,自动控制舵机 2 打开进行投喂,持续 5 秒后自动关闭;支持通过按键设置投喂时间及食物重量阈值;通过 OLED 显示屏实时显示当前时间及食物重量;利用 ESP8266 WiFi 模块将数据上传至阿里云,实现手机端远程设置投喂时间、重量阈值,以及远程控制投喂和加料操作。
该系统的实现,有效提升了宠物喂食的自动化与智能化水平,减少了人工干预,确保了宠物喂食的规律性与便捷性,为宠物饲养提供了高效、可靠的解决方案,同时为同类宠物智能饲养设备的研发提供了参考,具有较高的实际应用价值。
关键词:STM32F103C8T6;宠物自动喂食器;测控系统;传感器;智能调控;WiFi 通信
ABSTRACT
With the growing popularity of pet keeping, scientific and regular feeding management is of great significance for ensuring pet health. The traditional manual feeding method not only relies on human memory, which is prone to omissions or irregular feeding, but also makes it difficult to ensure pets’ diet when their owners are away, failing to meet the needs for convenience and intelligence in modern pet keeping.
The pet automatic feeder system based on the STM32F103C8T6 microcontroller integrates the HX711 weighing module, DS302 clock module, SG90 servos (2 units), buttons, OLED display module, ESP8266 WiFi module, etc., realizing automatic monitoring and intelligent control of pet feeding. The core functions of the system include: real-time acquisition of the food weight in the storage box through the HX711; when the weight is lower than the set minimum value, servo 1 is automatically controlled to open for adding food until the weight exceeds the set maximum value; obtaining the current time through the DS302 clock module, supporting the setting of pet feeding time; when the set time is reached, servo 2 is automatically controlled to open for feeding, which is automatically closed after 5 seconds; supporting the setting of feeding time and food weight thresholds through buttons; real-time display of the current time and food weight via the OLED display; uploading data to Alibaba Cloud through the ESP8266 WiFi module, enabling remote setting of feeding time and weight thresholds on the mobile phone, as well as remote control of feeding and food adding operations.
The implementation of this system effectively improves the automation and intelligence level of pet feeding, reduces manual intervention, ensures the regularity and convenience of pet feeding, provides an efficient and reliable solution for pet keeping, and also offers a reference for the research and development of similar intelligent pet feeding equipment, with high practical application value.
Keywords:STM32F103C8T6; pet automatic feeder; measurement and control system; sensor; intelligent regulation; WiFi communication
目录
第1章 绪论
1.1 研究的目的及意义
1.2 国内外发展情况
1.3 本文主要研究内容
第2章 设计思路与方案论证
2.1 主要元器件选择
2.1 主控芯片选择
2.2 称重模块选择
2.3 时钟模块选择
2.4 舵机模块选择
2.5 显示模块选择
2.6 按键模块选择
2.7 WiFi 模块选择
2.2整体设计方案
第 3 章 硬件设计
3.1 主控电路模块
3.2 称重模块电路
3.3 时钟模块电路
3.4 舵机模块电路
3.5 显示模块电路
3.6 按键模块电路
3.7 WiFi 模块电路
4 系统程序设计
4.1 编程软件介绍
4.2 系统主流程设计
4.3 独立按键
4.4 OLED显示流程设计
4.5 时钟模块子流程设计
4.6 舵机子流程设计
4.7 称重模块子流程设计
4.8 WiFi模块子流程设计
第 5 章 实物测试
5.1 整体实物测试
5.2 称重模块功能测试
5.3 时钟与定时投喂功能测试
5.4 舵机控制功能测试
5.5 WiFi 模块与远程控制功能测试
5.6 按键设置与显示功能测试
5.7 自动运行功能综合测试
第6章 总结与展望
6.1 总结
致谢
参考文献
附录
附录一:原理图
附录二:PCB
附录三:主程序
购买后可查看具体内容!