| The Ganjiang River is one of the main rivers in Jiangxi Province.However,with the rapid economic development in the province,the improvement of industrialization and the influence of human activities,the water quality and safety of the Ganjiang River has become increasingly serious.Therefore,it is necessary to strengthen the monitoring and management of the water quality of the Ganjiang River.Traditional water quality monitoring is time-consuming and labor-intensive,and it is difficult to obtain and update water quality data in a timely and effective manner,while the water quality monitoring system based on embedded and modern Internet technology has the advantages of fast,timely,convenient and automated water quality monitoring.Therefore,in Ganjiang water quality monitoring has broad application prospects.On the basis of analyzing and summarizing the existing theories,methods and cases of domestic water quality monitoring,taking Ganjiang River water quality monitoring as the background,and combining the characteristics of Ganjiang water quality,the content of water quality monitoring parameters is determined as p H value,dissolved oxygen,conductivity and temperature.At the same time,considering the existing conditions and the feasibility of the design,a scheme based on STM32 microcontroller and Web technology is selected to build a remote monitoring system for the water quality of the Ganjiang River.The main research contents of this paper are as follows:(1)According to the development trend of water quality monitoring,a scheme of developing automatic water quality data collection function based on STM32 microcontroller is proposed,and the development of water quality remote monitoring platform is realized by combining with Web technology.Then analyze the functional requirements of the water quality remote monitoring system,design the overall structure of the system and the overall hardware structure.(2)Design the serial port circuit between the STM32 microcontroller,the water quality sensor and the wireless communication module according to the requirements,design each independent module circuit at the same time,and complete the corresponding software development according to the circuit design to realize the automatic collection and transmission of water quality data.(3)Analyze the needs of the Ganjiang water quality remote monitoring platform,select the appropriate platform architecture,and reasonably design the database and the overall structure of the platform.(4)The back-end development of the water quality remote monitoring platform is carried out by using Node JS and Express framework to realize the front-end request logic processing and the connection and interaction with the database.Using the Vue framework and Echarts chart framework,based on the MVC design concept,the frontend development of the water quality remote monitoring platform is completed on the browser,and the realized functions include water quality data browsing,statistics and water pollution reporting.The platform is perfectly compatible with PC and mobile devices,and has obvious advantages compared to the C/S architecture.(5)By collecting and arranging the water quality data of the Ganjiang River over the years,construct the water quality database of the Ganjiang River and classify the water quality data according to the surface water environmental quality standard(GB3838-2002).At the same time,the historical water quality data query function of the Ganjiang River is realized on the water quality remote monitoring platform. |