设计说明书
总字数:28000+
基于stm32的热带鱼鱼缸控制系统设计
摘要
随着观赏热带鱼养殖普及率不断提高,鱼缸水环境与光照环境的稳定性直接影响热带鱼的生存状态、生长速率与存活周期。人工养殖模式下,水温波动、光照不足、水体浑浊超标等问题频发,极易造成热带鱼应激、生长迟缓甚至死亡,同时人工实时值守调控存在操作繁琐、调控滞后、参数把控不准、环境管控不连贯等诸多弊端,难以满足热带鱼精细化、常态化的养殖环境需求。针对传统鱼缸养殖管控智能化程度低、人工干预依赖性强、环境参数调控不及时的痛点,本文设计一款基于STM32F103C8T6单片机的热带鱼鱼缸智能控制系统。系统搭载DS18B20防水温度监测模块、光照监测模块与水体浑浊度监测模块,实现鱼缸核心环境参数的全天候实时采集与智能调控。其中,温度模块实时监测鱼缸水温,当水温低于设定最小值时自动启动加热设备升温,水温回升至设定最大值时自动停止加热,低温状态下同步触发本地声光报警;光照模块实时采集环境光照强度,光照数值低于阈值时自动开启补光设备,保障热带鱼适宜光照条件;浑浊度模块持续检测水体洁净度,当水体浊度超出设定最大值时,系统自动执行先抽水后进水的换水操作,同时触发声光预警提示水体异常。系统配备独立按键,支持用户自定义设置温度、光照、浊度各项控制阈值,手动调控加热、补光、进水、出水设备启停;搭配OLED显示屏实时本地可视化展示水温、光照强度、水体浊度等全部监测数据。同时系统集成WiFi通信模块,可将实时环境数据同步上传至手机终端,用户可通过手机端远程查看鱼缸运行状态、修改各项控制参数,并远程操控加热、补光、换水等设备开关。该系统彻底解决了传统热带鱼养殖人工值守成本高、环境调控滞后、参数管控不精准的问题,实现鱼缸水温、光照、水体洁净度的自动化监测、智能化调控与远程可视化管理,有效保障热带鱼养殖环境的稳定适宜,大幅提升鱼缸养殖的智能化与精细化水平,具备较高的实际应用价值与普及推广前景。
关键词:STM32单片机;热带鱼鱼缸;环境监测;智能调控;WiFi远程控制
Abstract
With the increasing popularity of ornamental tropical fish breeding, the stability of the water environment and light environment of the fish tank directly affects the survival state, growth rate and survival cycle of tropical fish. Under the artificial breeding mode, frequent problems such as water temperature fluctuation, insufficient light and excessive water turbidity can easily cause stress, slow growth and even death of tropical fish. Meanwhile, manual real-time monitoring and regulation has many drawbacks such as cumbersome operation, delayed regulation, inaccurate parameter control and discontinuous environmental management, which is difficult to meet the refined and normalized breeding environment requirements of tropical fish. Aiming at the pain points of low intelligence, high dependence on manual intervention and untimely environmental parameter regulation in traditional fish tank breeding, this paper designs an intelligent control system for tropical fish fish tank based on STM32F103C8T6 microcontroller (Project No.: dz-1416). Equipped with DS18B20 waterproof temperature monitoring module, light intensity monitoring module and water turbidity monitoring module, the system realizes all-weather real-time collection and intelligent regulation of core environmental parameters of the fish tank. The temperature module monitors the fish tank water temperature in real time. When the water temperature is lower than the set minimum value, the heating device is automatically started to heat up, and the heating device automatically stops when the water temperature rises to the set maximum value. Local acousto-optic alarm is triggered synchronously under low temperature state. The light module collects ambient light intensity in real time and automatically turns on the supplementary light equipment when the light value is lower than the threshold to ensure suitable light conditions for tropical fish. The turbidity module continuously detects water cleanliness. When the water turbidity exceeds the set maximum value, the system automatically performs the water changing operation of pumping water first and then filling water, and triggers acousto-optic early warning to prompt abnormal water body. The system is equipped with independent keys, which support users to customize and set various control thresholds of temperature, light and turbidity, and manually control the start and stop of heating, light supplement, water inlet and outlet equipment. The OLED display screen is matched to locally and visually display all monitoring data such as water temperature, light intensity and water turbidity in real time. At the same time, the system is integrated with a WiFi communication module, which can synchronously upload real-time environmental data to the mobile terminal. Users can remotely view the running state of the fish tank, modify various control parameters, and remotely control the switches of heating, light supplement, water changing and other equipment through the mobile terminal. The system completely solves the problems of high manual duty cost, delayed environmental regulation and inaccurate parameter control in traditional tropical fish breeding. It realizes automatic monitoring, intelligent regulation and remote visual management of fish tank water temperature, light and water cleanliness, effectively ensures the stability and suitability of the tropical fish breeding environment, greatly improves the intelligence and refinement level of fish tank breeding, and has high practical application value and popularization prospect.
Keywords:STM32 Microcontroller; Tropical Fish Tank; Environmental Monitoring; Intelligent Regulation; WiFi Remote Control
购买后可查看具体内容!