设计说明书
总字数:16000+
摘 要
传统养鱼方式存在费时费力、经验少、易出错等问题,在养鱼环节中出现鱼儿刚进缸阶段环境不适、换水以及长时间没有进行鱼缸管理等问题,设计一款智能鱼缸迫在眉睫。为了解决上述问题,本文采用STM32作为主控芯片,控制系统的参数采集和参数调节。采用防水式DS18B20检测鱼缸内水温,通过超声波模块检测剩余水位,采用TDS水质模块检测鱼缸内水的浑浊度,采用光敏电阻检测关照值,采用OLED显示屏显示相关监测值,采用按键可以设置定时投喂、充氧时间和阈值设置,还可以控制继电器进行相关工作,达到调节鱼缸环境相关参数的目的。实物测试表明,该鱼缸可自动实现对鱼缸系统的实时检测、调节功能。并将集到的数据通过传输到显示屏进行实时显示,即可宏观检测鱼缸状态,又可实时操控鱼缸,实现鱼缸的控制功能,更好的美化生态环境,提高人们的生活水平。
关键词:鱼缸;传感器;控制:单片机;OLED显示屏
Abstract:
Traditional fish farming methods are time-consuming, laborious, less experience, error-prone and other problems. In the fish farming process, the environment is not comfortable when the fish just enter the tank, the water is changed, and the tank management is not carried out for a long time.In order to solve the above problems, this paper uses STM32 as the main control chip to control the parameter acquisition and parameter adjustment of the system. The waterproof DS18B20 is used to detect the water temperature in the aquarium, the remaining water level is detected by the ultrasonic module, the turbidity of the water in the aquarium is detected by the TDS water quality module, the care value is detected by the photoresistor, the relevant monitoring value is displayed by the OLED display, and the timing feeding, oxygenation time and threshold Settings can be set by pressing the button. The relay can also be controlled to perform related work to achieve the purpose of adjusting the parameters related to the fish tank environment.The real test shows that the fish tank can automatically realize the real-time detection and adjustment of the fish tank system. And the collected data is transmitted to the display screen for real-time display, which can detect the status of the aquarium in a macroscopic way, and control the aquarium in real time to achieve the control function of the aquarium, better beautify the ecological environment and improve people’s living standards.
Key words: fish tank; Sensor; Control: MCU; OLED display
目 录
摘 要
Abstract
- 绪论
1.1本文研究背景和意义
1.2 国内外发展现状
1.3 主要研究内容和实现功能
1.3.1论文主要研究内容
1.3.2论文实现功能
- 系统方案设计
2.1 主要元器件选择
2.1.1 主控模块方案选择
2.1.2 显示模块方案选择
2.1.3 按键方案选择
2.2 系统总体设计思路
- 硬件设计
3.1 单片机最小系统
3.2 防水DS18B20温度检测模块电路
3.3 浑浊度检测模块设计
3.4 水位监测模块
3.5 光照强度监测模块
3.6 显示模块电路设计
3.7 独立按键电路模块
3.8 继电器模块电路
3.9 彩灯补光模块电路
- 系统程序设计
4.1 编程软件介绍
4.2 系统主流程设计
4.3 独立按键
4.4 温度检测模块子流程
4.5 超声波检测模块子流程
4.6 OLED显示流程设计
- 实物制作与调试
5.1 实物制作
5.2 水温调节实物测试
5.3 浑浊度调节实物测试
5.4 水位调节实物测试
5.5 光照强度调节实物测试
5.6 手动控制投喂、充氧实物测试
- 结论
参考文献
致 谢
附录
附录A: 原理图
附录B:PCB
附录C:程序
购买后可查看具体内容!