| With the rapid development of Internet of Things technology,smart home applications have become increasingly widespread.In this context,smart ecological fish tanks have received much attention as an emerging smart home product.This system uses multiple sensors to monitor water quality in real-time and collects and processes data through an embedded system to achieve automatic regulation and control of water quality.In addition,the system also integrates automatic feeding,aeration,and lighting functions,effectively maintaining the ecological environment in the fish tank,improving fish survival rates and health.The design plan uses the STM32F407ZGT6 microcontroller chip as the system core,utilizing Internet of Things technology,and designing through embedded systems,sensor technology,communication technology,and control algorithms to complete the experimental design.Through experimental verification and actual application,the system has been proven to have high stability,reliability,and practicality,meeting the practical needs of fish farming.The entire system is divided into two parts.The first part is to use the control module with STM32F407ZGT6 as the core to complete the acquisition and storage of data from various sensors.Meanwhile,various relays are used to control external devices such as aeration and water exchange,and the collected data is sent to the cloud platform through a Wi Fi module.The second part is to use a mobile app to receive data on various parameters collected in the fish tank and send relevant command operations.The collected data parameters are displayed in real-time on the mobile app,allowing users to set corresponding parameters on the mobile app to complete the control of various hardware modules and achieve remote automatic control of the fish tank.Finally,the assembled smart fish tank was tested and operated,and the system was stable and reliable during operation,achieving automatic water exchange,automatic feeding,aeration,and temperature control functions.In addition,the mobile terminal can receive data collected by sensors in real-time,and the hardware modules will complete the corresponding functions according to the program settings after adjusting the parameter values on the mobile app.When the water quality parameters exceed the set threshold,the system will automatically control the hardware modules to adjust the water quality.When the environmental light intensity exceeds the set threshold,the system will turn on or off the lighting module according to the current parameters.The final test results showed that the system runs smoothly as a whole,and each hardware module operates normally,achieving all functional requirements of the smart ecological fish tank system. |