设计说明书
总字数:12000+
摘 要
鱼缸是一种常见的水生生物饲养设施,通常用于养鱼等水生生物。然而,为了确保鱼类的健康和生存,鱼缸的环境参数需要严格监测和控制,包括水温、水质和氧气含量。传统的鱼缸管理方式通常需要人工干预,缺乏智能化和自动化的特性,这可能导致环境参数的不稳定和鱼类的不适应。此外,对于长时间离开家的鱼类饲养者来说,监测和管理鱼缸可能会变得更加复杂。本研究旨在基于STM32F103C8T6单片机,设计并研究一种智能鱼缸系统,旨在提供对鱼缸环境的全面监测和智能控制。该系统包括多个关键功能,如太阳能充电、温度控制、水质监测、氧气充注以及用户界面。首先,系统通过太阳能板充电锂电池,而锂电池则为整个主板供电,实现了绿色能源的应用。其次,系统使用防水式DS18B20传感器来监测鱼缸水温,当水温高于设置的最大值时,系统会触发制冷装置,直到水温降低到最小值以下。此功能有助于维持适宜的水温条件,确保鱼类的健康和生存。另外,系统还通过PH检测模块来监测鱼缸水的PH值,以确保水质的稳定性。系统还集成了充氧模块,用户可以通过一键操作来增加水中的氧气含量,提高鱼类的生活环境。系统提供了用户友好的界面,通过按键可以设置温度的最大值,并通过OLED显示屏实时显示水温和PH值等重要参数。这使得用户能够随时监测鱼缸环境,并根据需要进行调整。综上所述,本研究设计的智能鱼缸系统结合了多种先进的技术,包括太阳能充电、温度控制、水质监测、氧气充注以及用户界面。这个系统有望在鱼类养殖领域提供更便捷、智能的解决方案,同时减少了对传统能源的依赖,具有环保和可持续性的潜力。未来的研究可以进一步扩展系统的功能和适用范围,以满足更广泛的需求。
关键词:智能鱼缸;STM32F103C8T6;太阳能充电;温度控制;水质监测;氧气充注
Abstract
Fish Tank is a common aquatic facility used to raise aquatic creatures such as fish. However, to ensure the health and survival of the fish, the environmental parameters of the fish tank need to be strictly monitored and controlled, including water temperature, water quality, and oxygen content. Traditional fish tank management methods often require manual intervention and lack intelligent and automated features, which can lead to unstable environmental parameters and fish adaptation issues. In addition, for fish keepers who are away from home for extended periods, monitoring and managing the fish tank can become more complicated. This study aims to design and research an intelligent fish tank system based on the STM32F103C8T6 microcontroller, aiming to provide comprehensive monitoring and intelligent control of the fish tank environment. The system includes several key functions such as solar charging, temperature control, water quality monitoring, oxygenation, and user interface. Firstly, the system charges the lithium battery through the solar panel, which then powers the entire mainboard, demonstrating the application of green energy. Secondly, the system uses a waterproof DS18B20 sensor to monitor the water temperature of the fish tank. When the water temperature exceeds the set maximum value, the system triggers the cooling device until the temperature drops below the minimum value. This function helps maintain the appropriate water temperature conditions, ensuring the health and survival of the fish. Additionally, the system uses a pH detection module to monitor the pH value of the fish tank water to ensure water quality stability. The system also integrates an oxygenation module, allowing users to increase the oxygen content in the water with a single press, improving the living environment for the fish. The system provides a user-friendly interface, allowing users to set the maximum temperature with the press of a button, and an OLED display screen that shows real-time parameters such as water temperature and pH value. This enables users to monitor the fish tank environment at any time and make adjustments as needed. In summary, the intelligent fish tank system designed in this study incorporates various advanced technologies, including solar charging, temperature control, water quality monitoring, oxygenation, and user interface. This system is expected to provide a more convenient and intelligent solution in the field of fish farming, while reducing dependence on traditional energy sources and offering potential for environmental sustainability. Future research can further expand the system’s functionality and applicability to meet broader needs.
Keywords: Intelligent fish tank; STM32F103C8T6; solar charging; temperature control; water quality monitoring; oxygenation.
目 录
基于STM32单片机的智能鱼缸设计与研究
摘 要
Abstract
1.绪论
1.1 研究背景及其研究意义
1.2 国内外研究现状
1.3 研究目标
2.系统方案设计
2.1 整体方案设计
2.2 主要器件选型选择
2.2.1 主控芯片方案选择
2.2.2 水温监测模块方案选择
2.2.3 PH检测模块方案选择
2.2.4 显示模块方案选择
3 硬件电路设计
3.1 单片机最小系统
3.2 水温检测模块电路
3.3 PH检测模块电路
3.4 显示模块电路
3.5 继电器模块电路
3.6 独立按键模块电路
4 系统程序设计
4.1 编程软件介绍
4.2 系统主流程设计
4.3 独立按键
4.4 OLED显示流程设计
5 实物调试
5.1 实物总体设计
5.2 水温测控实物测试
5.3 充氧实物测速
总结与展望
参考文献
致谢
附录
附录A:原理图
附录B:PCB
附录C:主程序
购买后可查看具体内容!