news 2026/4/23 13:18:43

【dz-1118】基于单片机的智能宠物喂食器

作者头像

张小明

前端开发工程师

1.2k 24
文章封面图
【dz-1118】基于单片机的智能宠物喂食器

基于单片机的智能宠物喂食器

摘要

在现代生活中,宠物已成为家庭重要成员,但主人因工作繁忙等原因常无法按时喂食,可能导致宠物饮食不规律影响健康。传统宠物喂食器多为手动操作或固定时间喂食,缺乏灵活性与精准控制,难以满足个性化喂养需求。因此,研发一种具备定时精准喂食、重量可控、远程管理及状态提醒功能的智能喂食设备十分必要。

本设计提出了一种基于 STM32F103C8T6 单片机的智能宠物喂食器。系统主要功能包括:通过 DS1302 时钟模块获取实时时间,支持按键手动修正时间;手机界面可配置最多 5 组喂食计划,包括喂食时间、使能状态及喂食重量;当到达设定喂食时间,单片机驱动 SG90 舵机运转出食物,通过 HX711 重量检测模块实时监测出粮重量,达到设定值后停止出粮,同时触发 CN-TTS 语音模块播报提醒宠物进食;OLED 显示屏实时显示当前时间、喂食计划及食物重量等数据;通过 ESP8266-WIFI 模块实现数据上传,手机端可远程查看设备状态、设置喂食参数。

该智能宠物喂食器的作用在于,实现了宠物喂养的自动化与精准化。通过定时定量喂食保障宠物饮食规律,远程管理功能解决主人外出时的喂食难题,语音提醒与状态显示提升了使用便捷性,为宠物健康成长提供可靠保障,同时减轻主人喂养压力。

关键词:单片机;智能宠物喂食器;定时喂食;重量检测;远程管理

Intelligent pet feeder based on microcontroller

Abstract

In modern life, pets have become important members of the family, but owners often cannot feed their pets on time due to busy work and other reasons, which may lead to irregular diet and affect their health. Traditional pet feeders are mostly manually operated or fed at fixed times, lacking flexibility and precise control, making it difficult to meet personalized feeding needs. Therefore, it is necessary to develop an intelligent feeding device with timed and precise feeding, controllable weight, remote management, and status reminder functions.

This design proposes an intelligent pet feeder based on STM32F103C8T6 microcontroller. The main functions of the system include: obtaining real-time time through the DS1302 clock module, supporting manual time correction by pressing buttons; The mobile interface can be configured with up to 5 feeding plans, including feeding time, enable status, and feeding weight; When the set feeding time is reached, the microcontroller drives the SG90 servo to rotate out the food, and the HX711 weight detection module monitors the weight of the food in real time. When the set value is reached, the feeding stops, and the CN-TTS voice module is triggered to remind the pet to eat; The OLED display screen displays real-time data such as the current time, feeding plan, and food weight; Through the ESP8266-WIFI module, data upload can be achieved, and the mobile end can remotely view device status and set feeding parameters.

The function of this intelligent pet feeder is to achieve automation and precision in pet feeding. By providing timed and quantitative feeding to ensure the regular diet of pets, remote management functions solve the feeding difficulties of owners when they go out. Voice reminders and status displays improve the convenience of use, providing reliable guarantees for the healthy growth of pets and reducing the pressure of feeding for owners.

Keywords:microcontroller; Intelligent pet feeder; Timed feeding; Weight testing; remote management

目 录

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 显示模块电路设计

3.8 按键模块电路设计

3.9 WIFI 通信模块电路设计

4 系统程序设计

4.1 编程软件介绍

4.2 系统主流程设计

4.3 独立按键

4.4 OLED显示流程设计

4.5 WiFi模块子流程设计

4.6 称重模块子流程设计

5实物制作与功能测试

5.1 实物制作

5.2 时钟与时间修正功能测试

5.3 喂食计划与定量出粮功能测试

5.4 语音播报与状态显示功能测试

5.5 WIFI 通信与远程控制功能测试

5.6 按键交互与参数设置功能测试

6 总结

参考文献

致谢

附录A 原理图

附录B PCB

附录C 主程序

版权声明: 本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若内容造成侵权/违法违规/事实不符,请联系邮箱:809451989@qq.com进行投诉反馈,一经查实,立即删除!
网站建设 2026/4/20 0:06:08

近地面无人机植被定量遥感与生理参数反演实践技术应用

一:近十年近地面无人机植被遥感文献分析,传感器选择,观测方式及质量控制要点1.1. 近十余年无人机植被遥感文献分析 文献分析软件VOSviewer的使用(实践)无人机植被遥感的重点研究方向、研究机构、科学家1.2. 无人机遥感…

作者头像 李华
网站建设 2026/4/23 13:18:55

数据集增强利器:M2FP批量生成人体分割标注样本

数据集增强利器:M2FP批量生成人体分割标注样本 📖 项目简介:构建稳定高效的多人人体解析服务 在计算机视觉领域,人体语义分割(Human Parsing)是实现精细化图像理解的关键技术之一。它不仅服务于虚拟试衣、动…

作者头像 李华
网站建设 2026/4/8 20:07:12

如何用M2FP实现智能摄影构图辅助?

如何用M2FP实现智能摄影构图辅助? 📌 引言:从人体解析到构图智能的跃迁 在摄影创作中,构图是决定作品成败的核心要素之一。无论是人像摄影中的姿态引导,还是群像拍摄中的空间布局,摄影师都需要对画面中人物…

作者头像 李华
网站建设 2026/4/18 4:03:23

M2FP性能测试:CPU环境下人体解析速度与精度对比

M2FP性能测试:CPU环境下人体解析速度与精度对比 📊 引言:为何需要在CPU上进行多人人体解析性能评估? 随着边缘计算和低成本部署需求的兴起,无GPU环境下的AI模型推理能力正成为落地关键指标。尽管多数语义分割模型依赖G…

作者头像 李华
网站建设 2026/4/23 13:15:58

无需CUDA也能做人像分割?M2FP CPU镜像填补无卡用户空白

无需CUDA也能做人像分割?M2FP CPU镜像填补无卡用户空白 📖 项目简介:M2FP 多人人体解析服务 在当前AI视觉应用日益普及的背景下,人像语义分割已成为图像编辑、虚拟试衣、智能安防等场景的核心技术之一。然而,大多数高性…

作者头像 李华