设计说明书
总字数:21000+
摘要
随着宠物饲养成为现代生活的重要组成部分,远程、精准的宠物照看需求日益凸显。传统的宠物照看依赖人工定时照料,存在响应滞后、参数控制不精准等问题,难以满足宠物主人对宠物生活环境和健康状态的实时掌控需求。
基于 STM32F103C8T6 单片机的物联网宠物照看系统,整合了 DHT11 温湿度传感器、康帕斯A9 摄像头模块、DS1302 时钟模块、HX711 称重模块、YW-J 液位检测模块、MLX90614 非接触测温模块、3 个独立按键、OLED 显示屏、ESP8266 WiFi 模块及执行设备(通风装置、加热设备、投喂装置、加水装置),实现了宠物生活环境的自动化监测与远程智能照看。系统核心功能包括:通过 DHT11 检测环境温湿度,温度或湿度过高时自动通风,温度较低时自动加热;借助摄像头模块将宠物画面远程传输至手机端;通过 DS1302 获取时间,支持按键修正;利用 HX711 称重模块监测食物重量,投喂时间到达且重量小于最小值时自动投喂至达标;通过 YW-J 液位检测模块检测水位,低于最小值时自动加水至达标;通过 MLX90614 测量宠物体温,体温超最大值时手机弹窗震动提醒;支持 3 个独立按键设置阈值及手动控制继电器;通过 OLED 显示测量数据和阈值;借助 ESP8266 WiFi 模块将数据传输至手机端,手机可设置阈值及远程控制继电器。
该系统的实现,有效提升了宠物照看的自动化与智能化水平,实现了宠物生活环境的精准调控和健康状态的实时监测,为宠物主人提供了便捷的远程照看方式,同时为同类物联网宠物照看设备的研发提供了参考,具有较高的实际应用价值。
关键词:STM32F103C8T6;物联网;宠物照看系统;传感器;远程控制;WiFi 通信
ABSTRACT
With pet keeping becoming an important part of modern life, the demand for remote and precise pet care is increasingly prominent. Traditional pet care relies on manual regular care, which has problems such as delayed response and inaccurate parameter control, making it difficult to meet pet owners’ needs for real-time control of their pets’ living environment and health status.
The IoT-based pet care system based on the STM32F103C8T6 microcontroller integrates DHT11 temperature and humidity sensors,camera modules, DS1302 clock modules, HX711 weighing modules, YW-J liquid level detection modules, MLX90614 non-contact temperature measurement modules, 3 independent buttons, OLED displays, ESP8266 WiFi modules, and executive devices (ventilation devices, heating equipment, feeding devices, water adding devices), realizing automatic monitoring of the pet’s living environment and remote intelligent care. The core functions of the system include: detecting environmental temperature and humidity through DHT11, automatically ventilating when the temperature or humidity is too high, and automatically heating when the temperature is low; transmitting the pet’s 画面 to the mobile phone remotely through the A9 camera module; obtaining time through DS1302, supporting time correction via buttons; using HX711 weighing module to monitor food weight, automatically feeding when the feeding time is reached and the weight is less than the minimum value until it meets the standard; detecting water level through YW-J liquid level detection module, automatically adding water when it is lower than the minimum value until it meets the standard; measuring the pet’s body temperature through MLX90614, sending a pop-up vibration reminder to the mobile phone when the body temperature exceeds the maximum value; supporting 3 independent buttons to set thresholds and manually control relays; displaying measured data and thresholds through OLED; transmitting detected data to the mobile phone via ESP8266 WiFi module, allowing the mobile phone to set parameter thresholds and remotely control relays.
The implementation of this system effectively improves the automation and intelligence level of pet care, realizes precise regulation of the pet’s living environment and real-time monitoring of health status, provides a convenient remote care method for pet owners, and also offers a reference for the research and development of similar IoT pet care equipment, with high practical application value.
Keywords:STM32F103C8T6; Internet of Things; Pet care system; Sensor; Remote control; WiFi communication
目录
第 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.1.7 非接触测温模块选择
2.1.8 显示模块选择
2.1.9 WiFi 模块选择
2.1.10 按键模块选择
2.2整体设计方案
第 3 章 硬件设计
3.1 主控电路模块
3.2 温湿度传感器电路
3.3 摄像头模块电路
3.4 时钟模块电路
3.5 称重模块电路
3.6 液位检测模块电路
3.7 非接触测温模块电路
3.8 显示模块电路
3.9 WiFi 模块电路
3.10 按键模块电路
3.11 执行设备驱动电路
第4章 系统程序设计
4.1 编程软件介绍
4.2 系统主流程设计
4.3 独立按键
4.4 OLED显示流程设计
4.5 WiFi模块子流程设计
4.6 温湿度检测模块子流程设计
4.7 时钟模块子流程设计
4.8 称重模块子流程设计
4.9 ADC模数转换子流程设计
4.10 红外测温模块子流程设计
第 5 章 实物测试
5.1 整体实物测试
5.2 温湿度传感器与环境调控功能测试
5.3 摄像头与 WiFi 模块功能测试
5.4 时钟与投喂功能测试
5.5 液位检测与加水功能测试
5.6 非接触测温功能测试
5.7 按键设置与显示功能测试
第 6 章 总结与展望
6.1 总结
6.2 展望
致谢
参考文献
附录
附录一:原理图
附录二:PCB
附录三:主程序
购买后可查看具体内容!