Water quality detection method and floating apparatus for microcontroller-based water quality detection

GB202418516D0Pending Publication Date: 2025-01-29FU TIANTUO
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
GB2024018516
Authority / Receiving Office
GB · GB
Patent Type
Applications
Current Assignee / Owner
Priority Date
2022-06-21
Filing Date
2023-04-26
Publication Date
2025-01-29

AI Technical Summary

Technical Problem

Existing water quality testing equipment has a complex structure, bulky size, and high cost when used in outdoor activities, and cannot adaptively adjust voltage parameters according to different water environments to reduce the generation of metal reactants, affecting detection accuracy.

Method used

A portable water quality detection floating device based on a microcontroller is used to apply alternating excitation voltage between the electrodes and use machine learning to adjust the voltage frequency and amplitude to reduce the generation of metal reactants and improve detection accuracy according to the electrode usage scenario.

Benefits of technology

It realizes a simple and portable water quality detection, which is suitable for outdoor use. It can adjust voltage parameters according to the electrode scene, improve detection accuracy and reduce equipment costs.

✦ Generated by Eureka AI based on patent content.
Patent Text Reader

Abstract

A water quality detection method and a floating apparatus for microcontroller-based water quality detection. The method comprises: acquiring a first detection value; adjusting frequency and amplitude of an excitation voltage; acquiring a second detection value; and representing a water quality situation at a second moment. The floating apparatus comprises a detection module, an indication module, an analysis module, a power supply module, a control module, and a carrier; the detection module is provided with a first electrode and a second electrode; the power supply module, the analysis module and the control module are integrated into a microcontroller. When a water quality detection program is executed, the power supply module applies an excitation voltage between the first electrode and the second electrode, the analysis module analyzes electrolyte content on the basis of a current, and the control module determines water quality, and controls the indication module to send out an intensity indication. The floating apparatus has simple structure, and is suitable for quickly detecting water quality during outdoor activities. In addition, the buoyancy device may adaptively adjust a voltage parameter on the basis of an electrode usage scenario, so as to reduce the generation of reactants, and thereby improve detection accuracy.
Need to check novelty before this filing date? Find Prior Art

Description

Water quality detection method and floating device for water quality detection based on microcontroller Technical Field

[0001] The present disclosure generally relates to the field of water quality detection technology, and more particularly to a water quality detection method and a microcontroller-based floating device for water quality detection. Background Art

[0002] As people's living standards improve, outdoor activities are becoming increasingly popular, and more people are pursuing high-quality outdoor activities. Some outdoor activities involve water, such as picnics or swimming. Therefore, to enhance these outdoor experiences, people often need to conduct rapid water quality testing. Furthermore, at some scientific research or engineering sites, where water quality testing requirements are not high, rapid water quality testing is also necessary.

[0003] In the prior art, patent application number CN202121013646.5 discloses a small unmanned boat for water quality detection, which can be applied to a variety of water environments and provide accurate and real-time data information for water quality monitoring; patent application number CN202010114821.3 discloses a water quality monitoring device and a water quality detection method, which can remotely control the movement of the water quality monitoring device online, perform water quality detection at multiple locations in the water area, and retain the water samples after detection, or directly collect water samples, without the need for users to go to the site for detection and sampling. The test results can also be transmitted to the user in real time, or retained on the water quality monitoring device, simplifying the water quality detection process, saving the user's time, and greatly reducing the workload. However, although the equipment used for accurate or real-time water quality detection in this type of prior art has high detection accuracy and can monitor in real time, most of them have complex structures, large volumes, and high costs. They are often used in large-scale scientific research or water quality monitoring projects, but are not suitable for the needs of ordinary people for water quality detection during outdoor activities.

[0004] In addition, the prior art usually uses the conductivity of water to judge the water quality, that is, the electrolysis of water is adopted. When electrolyzing water, metal ions such as calcium, magnesium, and iron in the water need to undergo electrochemical reactions on the surface of the electrolysis electrode, so it is easy to generate and attach various metal reactants on the electrode surface. The conductivity of these metal reactants is usually weaker than that of the electrode itself, or even has no conductivity. Therefore, if these metal reactants attached to the electrode surface are not removed, the accuracy of water quality detection will be seriously affected. The prior art usually uses alternating current as an electrolysis power source to reduce the generation of metal reactants, and adds a negative electrode to adsorb the metal reactants that have been generated. However, these methods of the prior art usually require higher requirements for the device, such as complex circuit design, and these methods of the prior art do not make specific adjustments to the electrolysis power source for different water quality conditions in the water area so that the generation of the aforementioned metal reactants can be adaptively adjusted according to the use scenario of the electrode to reduce the voltage parameters.

[0005] Therefore, it is particularly important to invent a device with a simple structure that can quickly detect water quality when people are outdoors, and can adaptively adjust voltage parameters according to the usage scenario of the electrode to reduce the generation of metal reactants and improve detection accuracy.

[0006] Summary of the Invention

[0007] The present disclosure is made in view of the above-mentioned state of the prior art, and its purpose is to provide a portable water quality detection floating device based on a microcontroller. The floating device has a simple structure and is suitable for people's needs to quickly detect water quality during outdoor activities. At the same time, it can adaptively adjust the voltage parameters according to the usage scenario of the electrode to reduce the generation of metal reactants and improve the detection accuracy.

[0008] To this end, the first aspect of the present disclosure provides a water quality detection method, which is a method for performing water quality detection using a microcontroller-based water quality detection floating device, the floating device including a first electrode and a second electrode, the floating device applying an alternating excitation voltage between the first electrode and the second electrode and analyzing the electrolyte content in the water based on the intensity of the current formed between the first electrode and the second electrode, the detection method including: in a preset time interval, using the floating device to perform detection to obtain a first detection value, the first detection value including the electrolyte content obtained from the water by the floating device at a first moment; characterizing the water quality at the first moment based on the first detection value; adjusting the frequency and amplitude of the excitation voltage based on the first detection value; performing detection based on the adjusted excitation voltage to obtain a second detection value, the second detection value including the electrolyte content obtained from the water by the floating device at a second moment; and characterizing the water quality at the second moment based on the second detection value.

[0009] In the first aspect of the present disclosure, by applying an alternating excitation voltage, the conductivity of the water body can be detected and the generation of reactants can be reduced; by obtaining the water quality detection value at the first moment (i.e., the first detection value) in a preset time interval and adaptively adjusting the excitation voltage based on the first detection value, the generation of metal reactants can be further reduced by adaptively adjusting the voltage parameters according to the usage scenario of the electrode; by adaptively adjusting the excitation voltage and then obtaining the water quality detection value at the second moment (i.e., the second detection value), the influence of metal reactants on the water quality detection value can be reduced, thereby improving the detection accuracy.

[0010] According to the water quality detection method of the present disclosure, the frequency and amplitude of the excitation voltage can optionally be adjusted based on the detection model and the first detection value. In this case, since the generation of metal reactants is related to the frequency and amplitude of the excitation voltage, the voltage parameters can be adaptively adjusted according to the usage scenario of the electrode to reduce the generation of reactants and obtain more accurate water quality detection values.

[0011] According to the water quality detection method involved in the present disclosure, optionally, the frequency and amplitude of the excitation voltage when the first electrode and the second electrode are energized and the formation of the metal reactant on the electrode surface is slowest within multiple unit times under multiple different electrolyte content conditions are obtained through machine learning, and the detection model is output. In this case, because machine learning has the advantages of identifying data trends and patterns that humans may miss and processing various data formats in a dynamic, large-capacity, and complex data environment, the correlation between the excitation voltage and the electrolyte content can be obtained through machine learning, which can reduce human intervention and improve the convenience and accuracy of calculations. Therefore, the floating device can obtain the frequency and amplitude of the excitation voltage corresponding to the slowest formation of the metal reactant based on the first detection value and the correlation (i.e., obtain the detection model), thereby adaptively adjusting the voltage parameters according to the usage scenario of the electrode, thereby reducing the generation of reactants and obtaining more accurate water quality detection values.

[0012] According to the water quality detection method involved in the present disclosure, optionally, the first moment and the second moment are within the preset time interval and the interval does not exceed the preset time interval. In this case, at least one first detection value can be obtained within the preset time interval, and at least one second detection value can be obtained by adaptively adjusting the voltage parameter according to the usage scenario of the electrode. The water quality is thus characterized by the second detection value, thereby improving the accuracy of water quality detection.

[0013] According to the water quality detection method involved in the present disclosure, optionally, there are multiple preset time intervals, and the multiple preset time intervals are different from each other. The preset time interval is selected based on the first detection value and multiple first detection values ​​and second detection values ​​are obtained in the multiple preset time intervals by using a sliding window method. In this case, the first detection value is obtained in multiple different preset time intervals using a sliding time window method (i.e., a sliding window method), and the frequency and amplitude of the excitation voltage are adjusted based on the first detection value, and the second detection value is obtained using the adjusted excitation voltage, thereby enabling the water quality detection method to be repeatedly and cyclically executed and accurate water quality detection values ​​to be obtained in real time.

[0014] According to the water quality detection method involved in the present disclosure, optionally, the first detection value is the electrolyte content obtained by the floating device from the first water area at the first moment, and the water quality at the first water area is characterized based on the first detection value. The second detection value is the electrolyte content obtained by the floating device from the second water area at the second moment, and the water quality at the second water area is characterized based on the second detection value. In this case, by detecting the first water area, the water quality of a single designated water area can be obtained, and by detecting the first water area and the second water area, the water quality at different locations in the water area can be obtained.

[0015] According to the water quality detection method of the present disclosure, the first detection value may also include a temperature value obtained from the water by the buoyancy device at the first moment, and the second detection value may also include a temperature value obtained from the water by the buoyancy device at the second moment. In this case, the excitation voltage can be adjusted based on the electrolyte content and the temperature value, thereby improving the accuracy of the water quality detection values ​​obtained after the excitation voltage is adjusted.

[0016] To this end, the second aspect of the present disclosure provides a floating device for water quality detection based on a microcontroller, the microcontroller having an executable water quality detection program, and the floating device performing water quality detection in accordance with any of the water quality detection methods described in the first aspect of the present disclosure when executing the water quality detection program, the floating device comprising a detection module, an indication module, an analysis module, a power module, a control module and a floatable carrier; the detection module, the indication module, the analysis module, the power module and the control module are installed on the carrier; the detection module, the indication module, the analysis module and the control module are electrically connected to each other and powered by the power module; the detection module has a first electrode and a second electrode arranged opposite to each other, and the detection module comprises a first electrode and a second electrode arranged opposite to each other, and the detection module comprises a first electrode and a second electrode arranged opposite to each other, and the detection module comprises a first electrode and a second electrode The module is configured such that, when detecting water quality, the first end of the first electrode and the first end of the second electrode are immersed in water, and the second end of the first electrode and the second end of the second electrode extend and are connected to the power module; the power module, the analysis module and the control module are integrated into the microcontroller, and can be operated as follows when the microcontroller executes the water quality detection program: the power module applies an excitation voltage between the second end of the first electrode and the second end of the second electrode, the analysis module analyzes the electrolyte content in the water based on the intensity of the current formed between the first electrode and the second electrode, the control module determines the water quality based on the electrolyte content, and controls the indication module to issue an intensity indication based on the water quality.

[0017] In the second aspect of the present disclosure, water quality can be detected through the detection module. Through the microcontroller integrated with the power module, the analysis module and the control module, in this case, the floating device can be controlled and the detection data can be obtained during water quality detection. In addition, the water quality can be indicated in real time and quickly through the indication module. Thus, a device with a simple structure can be obtained, which is suitable for people's needs to quickly detect water quality during outdoor activities.

[0018] According to the buoyancy device of the present disclosure, optionally, when the microcontroller executes the water quality detection program, the control module divides the water quality into multiple levels by setting preset values. In this case, by setting different preset values ​​and dividing the water quality conditions based on the different preset values, that is, by setting different detection accuracies for water quality detection, it is convenient for the user to select different detection accuracies for water quality detection according to different water environments.

[0019] According to the flotation device of the present disclosure, the indicator module may optionally include multiple indicators corresponding to the levels. When testing water quality, the control module controls the indicators corresponding to the levels to emit intensity indications based on the levels. In this case, the results of the water quality test can be obtained through the indicators, thereby making it easier for the user to judge the water quality test status through the indicators corresponding to different levels.

[0020] According to the floating device of the present disclosure, the indicator module optionally includes a rod-shaped support portion, one end of which is mounted on the portion of the carrier that floats on the water surface, and the indicator is mounted on the support portion. In this case, a user can conveniently observe the indicator on the support portion to obtain water quality detection results.

[0021] According to the flotation device of the present disclosure, the microcontroller optionally includes a display and a keypad, the display being used to display the preset value, and the keypad being used to input the preset value. In this case, a user can set the detection accuracy of the flotation device by inputting the preset value via the keypad, and can determine whether the input result is accurate by viewing the preset value displayed on the display. This facilitates the user to select different detection accuracies for water quality testing based on different water environments, thereby improving the user experience.

[0022] According to the buoyancy device of the present disclosure, optionally, the first electrode and the second electrode are in the shape of an elongated strip, the first end of the first electrode is parallel to the first end of the second electrode, and the first electrode and / or the second electrode are made of any conductive material such as metal or graphite, and the second end of the first electrode and the second end of the second electrode are wires. In this case, the parallelism between the first end of the first electrode and the first end of the second electrode facilitates the control module to calculate the conductivity coefficient between the first end of the first electrode and the first end of the second electrode, thereby improving the accuracy of water quality detection; in addition, the second end of the first electrode and the second end of the second electrode can connect the first end of the first electrode and the first end of the second electrode to a power supply module to obtain an excitation voltage, and can be wound through other mechanisms such as pulleys to allow the first end of the first electrode and the first end of the second electrode to be immersed in water at different depths.

[0023] According to the floating device of the present disclosure, the carrier can optionally be formed of a solid material having a density less than that of water, and the portion of the carrier that floats on the water surface can include a chamber for accommodating and securing the analysis module, the power module, and the control module. In this case, the floating device can remain afloat on the water surface, thereby facilitating a user to obtain water quality test results by observing an indicator on the floating device during water quality testing. Furthermore, this can reduce the impact of the water on the normal operation of the analysis module, power module, and control module during water quality testing.

[0024] The floating device of the present disclosure may optionally further include a power module mounted on the carrier, the power module being configured to drive the floating device through the water. In this case, the power module can be used to move the floating device to different locations in the water for testing and to move the floating device to a location convenient for retrieving the floating device.

[0025] The buoyancy device of the present disclosure may optionally further include a pulley module mounted on the carrier, the pulley module being configured to wind the second end of the first electrode and the second end of the second electrode so that the first end of the first electrode and the first end of the second electrode are immersed in the water at different depths. In this case, the pulley module enables the first end of the first electrode and the first end of the second electrode of the detection module to be placed in the water at different depths, thereby facilitating water quality testing at different depths by a user, thereby improving detection accuracy.

[0026] The buoyancy device of the present disclosure may optionally further include a remote controller for remotely controlling the power module to drive the buoyancy device in the water. In this case, the power module is controlled by the remote controller, thereby facilitating the user to adjust the position of the buoyancy device in the water.

[0027] The buoyancy device of the present disclosure may optionally further include a remote controller configured to remotely control the pulley module to wind around the second end of the first electrode and the second end of the second electrode so that the first end of the first electrode and the first end of the second electrode are located at different depths when immersed in water. In this case, controlling the pulley module via the remote controller facilitates a user's adjustment of the immersion depth of the detection module of the buoyancy device.

[0028] According to the present disclosure, a water quality detection method and a microcontroller-based portable water quality detection floating device can be provided. The floating device has a simple structure and is suitable for people's needs to quickly detect water quality during outdoor activities. At the same time, it can adaptively adjust the voltage parameters according to the usage scenario of the electrode to reduce the generation of reactants and improve the detection accuracy. BRIEF DESCRIPTION OF THE DRAWINGS

[0029] The present disclosure will now be explained in further detail, by way of example only, with reference to the accompanying drawings, in which:

[0030] FIG1 is a flow chart illustrating a detection method according to an example of the present disclosure.

[0031] FIG2 a is a schematic diagram illustrating embodiment 1 of a preset time interval in a detection method according to an example of the present disclosure.

[0032] FIG2 b is a schematic diagram illustrating Example 2 of a preset time interval in a detection method according to an example of the present disclosure.

[0033] FIG2 c is a schematic diagram showing Example 3 of the preset time interval in the detection method involved in the example of the present disclosure.

[0034] FIG3 is a schematic diagram showing an application scenario of a microcontroller-based water quality detection floating device according to an example of the present disclosure.

[0035] FIG4 is a schematic structural diagram showing a floating device for water quality detection based on a microcontroller according to an example of the present disclosure.

[0036] FIG5 is a structural block diagram showing a floating device for water quality detection based on a microcontroller according to an example of the present disclosure.

[0037] FIG6 a is a schematic diagram showing the electrical connections among a power supply module, an indication module, a detection module, an analysis module, and a control module in a floating device according to an example of the present disclosure.

[0038] FIG6 b is a schematic diagram showing the electrical connections among a power module, a control module, a power module, and a pulley module in a levitation device according to an example of the present disclosure.

[0039] FIG. 7 is a schematic diagram illustrating a detection principle of a detection module in a floating device according to an example of the present disclosure.

[0040] FIG8 is a schematic structural diagram showing an embodiment of a detection module in a floating device according to an example of the present disclosure.

[0041] FIG9 is a schematic structural diagram showing another embodiment of a detection module in a floating device according to an example of the present disclosure.

[0042] FIG10 is a schematic structural diagram showing another embodiment of a detection module in a floating device according to an example of the present disclosure.

[0043] FIG11 is a schematic diagram showing a working scenario of an indication module in a floating device according to an example of the present disclosure. DETAILED DESCRIPTION

[0044] The following will be combined with the accompanying drawings in the embodiments of the present disclosure to clearly and completely describe the technical solutions in the embodiments of the present disclosure. Obviously, the embodiments described are only part of the embodiments of the present disclosure, not all of them. Based on the embodiments of the present disclosure, all other embodiments filled in by ordinary technicians in this field without making creative efforts are within the scope of protection of the present disclosure.

[0045] It should be noted that the terms "first", "second", "third" and "fourth" in the specification and claims of the present disclosure and the above-mentioned drawings are used to distinguish different objects, rather than to describe a specific order. In addition, the terms "include" and "have" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but may optionally include steps or units that are not listed, or may optionally include other steps or units that are inherent to these processes, methods, products or devices. In the following description, the same symbols are given to the same components, and repeated descriptions are omitted. In addition, the drawings are only schematic diagrams, and the ratio of the sizes of the components to each other or the shapes of the components may be different from the actual ones.

[0046] A first aspect of the present disclosure provides a water quality detection method using a microcontroller-based portable water quality detection float device. For ease of description, the method is sometimes referred to as a detection method or method. FIG1 is a flow chart illustrating an example detection method of the present disclosure.

[0047] In some examples, the levitation device includes a first electrode and a second electrode. The levitation device applies an alternating excitation voltage between the first and second electrodes and analyzes the electrolyte content in water based on the intensity of the current generated between the first and second electrodes. In this case, applying the alternating excitation voltage can measure the conductivity of the water and reduce the formation of reactants. Specifically, the levitation device involved in this disclosure can refer to the description of the second aspect of this disclosure.

[0048] As shown in Figure 1, the water quality detection method involved in the present disclosure may include: obtaining a first detection value at a first moment (step S100); characterizing the water quality at the first moment based on the first detection value (step S200); adjusting the excitation voltage based on the first detection value (step S300); obtaining a second detection value based on the adjusted excitation voltage (step S400); and characterizing the water quality at the second moment based on the second detection value (step S500).

[0049] In some examples, steps S100 to S400 may be performed within a preset time interval. In other examples, step S500 may also be performed within a preset time interval.

[0050] In some examples, the first detection value and the second detection value may be acquired using a floating device.

[0051] In some examples, the first detection value may include the electrolyte content obtained from water by the floatation device at a first moment.

[0052] In some examples, "representation" can also be understood as meaning to express or represent. Specific representation forms or methods may include but are not limited to numerical values, light color indications, light intensity indications, sound indications, or image indications.

[0053] In some examples, step S200 may not be necessary. For example, when the flotation device is used for the first time (i.e., the flotation device has not been used before), since metal reactants and other scale have not yet formed on the surfaces of the electrodes, the first detection value can be used to represent the water quality. When the flotation device is not used for the first time (i.e., the flotation device has been used before), since metal reactants and other scale have already formed on the surfaces of the electrodes, using the first detection value to represent the water quality may not be accurate. In other words, in the present disclosure, only the second detection value can be used to represent the water quality.

[0054] In some examples, the alternating excitation voltage may refer to a voltage whose magnitude and direction change periodically over time.

[0055] In some examples, step S300 may specifically be to adjust the frequency and amplitude of the excitation voltage based on the first detection value.

[0056] In some examples, the second detected value includes the electrolyte content obtained from the water by the floatation device at the second moment.

[0057] In the detection method involved in the present disclosure, by obtaining the water quality detection value at the first moment (i.e., the first detection value) in a preset time interval and adaptively adjusting the excitation voltage based on the first detection value, the voltage parameters can be adaptively adjusted according to the usage scenario of the electrode to reduce the generation of metal reactants; by adaptively adjusting the excitation voltage and then obtaining the water quality detection value at the second moment (i.e., the second detection value), the voltage parameters can be adaptively adjusted according to the usage scenario of the electrode to reduce the generation of metal reactants and then continue to detect to obtain a more accurate water quality detection value, thereby improving the detection accuracy.

[0058] In addition, in step S300, the excitation voltage that needs to be adjusted can be the preferred excitation voltage corresponding to the slowest formation of metal reactants on the electrode surfaces of the first and second electrodes after power is applied, including the voltage frequency and amplitude. In this case, the excitation voltage can be adjusted in real time to reduce the formation of metal reactants on the electrode surfaces, thereby enabling the buoyancy device to obtain more accurate water quality detection values. In other words, the preferred excitation voltage can be pre-set in the water quality detection program of the buoyancy device and called when adjustments are made based on the first detection value. The corresponding optimal excitation voltage can be selected based on the first detection value. Thus, the second detection value can be obtained using the adjusted excitation voltage to represent the water quality, thereby improving the accuracy of the detection.

[0059] In addition, in some examples, the excitation voltage that needs to be adjusted can be obtained by machine learning. Specifically, the frequency and amplitude of the excitation voltage when the metal reactant is formed on the electrode surface at the slowest rate within a plurality of unit times after the first electrode and the second electrode are energized under a plurality of different electrolyte contents can be obtained by machine learning, and a detection model can be output. Since machine learning has the advantages of being able to identify data trends and patterns that humans may miss, and processing various data formats in a dynamic, large-capacity and complex data environment, in this case, the correlation between the excitation voltage and the electrolyte content can be obtained by machine learning, and the frequency and amplitude of the excitation voltage corresponding to the slowest formation of the metal reactant can be obtained based on the correlation (i.e., the detection model is obtained), thereby being able to adaptively adjust the voltage parameters according to the usage scenario of the electrode during water quality testing to reduce the generation of reactants and obtain more accurate water quality detection values.

[0060] In some examples, obtaining the excitation voltage that needs to be adjusted by machine learning can be carried out in a laboratory. Specifically, the first electrode and the second electrode can be placed in liquids with different electrolyte contents, and then the excitation voltage is applied, the formation of the metal reactant formed on the electrode surface is recorded, the excitation voltage is adjusted, and repeated n times. For example, according to common electrolyte compositions (such as at least one electrolyte containing iron ions, magnesium ions, sodium ions, calcium ions or potassium ions), it can be repeated at least 120 times (that is, related to the arrangement and combination of ion types and concentration levels, the more repetitions, the higher the accuracy), the recorded data is input into the machine learning detection model and the detection model is trained.

[0061] In some examples, liquids with different electrolyte contents may refer to different types of electrolytes. In other examples, liquids with different electrolyte contents may refer to different electrolyte contents. In other examples, liquids with different electrolyte contents may refer to different types and contents of electrolytes.

[0062] In some examples, machine learning methods may include, but are not limited to, at least one of a linear regression algorithm, a support vector machine algorithm, a nearest neighbor / k-nearest neighbor algorithm, a logistic regression algorithm, a decision tree algorithm, a k-means algorithm, a random forest algorithm, a naive Bayes algorithm, a dimensionality reduction algorithm, or a gradient boosting algorithm.

[0063] In some examples, the detection model can be at least one of a coefficient, a function, a curve, or an image reflecting the correlation between the excitation voltage, the detection value, and the metal reactant. In some examples, the detection model can be preset in the levitation device in the form of a program.

[0064] In some examples, the frequency and amplitude of the excitation voltage can be adjusted based on the detection model and the first detection value. In this case, the voltage parameters can be adaptively adjusted according to the usage scenario of the electrode to reduce the generation of reactants and obtain more accurate water quality detection values.

[0065] Figure 2a is a schematic diagram illustrating embodiment 1 of a preset time interval in a detection method according to an example of the present disclosure. Figure 2b is a schematic diagram illustrating embodiment 2 of a preset time interval in a detection method according to an example of the present disclosure. Figure 2c is a schematic diagram illustrating embodiment 3 of a preset time interval in a detection method according to an example of the present disclosure.

[0066] As shown in Figure 2a, Figure 2b or Figure 2c, in some examples, the first moment and the second moment can be located in a preset time interval and the interval does not exceed the preset time interval. For example, multiple t1 (i.e., the first moment) and t2 (i.e., the second moment) can be located in a preset time interval n1, n2, n3... or n respectively and the interval between the two does not exceed any preset time interval. In this case, it is possible to obtain at least one first detection value within the preset time interval and adaptively adjust the voltage parameter according to the usage scenario of the electrode to obtain at least one second detection value, thereby characterizing the water quality through the second detection value and improving the accuracy of water quality detection.

[0067] In some examples, there may be multiple preset time intervals, and the multiple preset time intervals may be different from each other. For example, the preset time interval n1 may be 1 second, the preset time interval n2 may be 5 seconds, and the preset time interval n3 may be 10 seconds.

[0068] As shown in FIG2a, in some examples, two adjacent preset time intervals can be independent of each other, that is, non-continuous or non-overlapping. In this case, the buoyancy device can be used to perform water quality testing in different independent time periods, and more accurate water quality test values ​​can be obtained.

[0069] As shown in FIG. 2 b , in other examples, two adjacent preset time intervals may be continuous.

[0070] As shown in Figure 2c, in other examples, two adjacent preset time intervals may be continuous and have overlapping areas. In this case, the first moment in a preset time interval can be used as the second moment of the previous preset time interval, or the previous second moment can be used as the first moment of the next preset time interval, and multiple water quality detection values ​​can be obtained by using a sliding window method, thereby enabling continuous water quality detection. For example, t1 (i.e., the first moment) of the preset time interval n2 can be used as t2 (i.e., the second moment) of the preset time interval n1, and t2 (i.e., the second moment) of the preset time interval n1 can be used as t1 (i.e., the first moment) of the preset time interval n2.

[0071] In some examples, the embodiments shown in Figures 2a, 2b, and 2c can all obtain multiple water quality detection values ​​by using a sliding window method. In this case, appropriate preset time intervals can be selected based on different detection models to perform continuous water quality detection, thereby obtaining continuous water quality conditions.

[0072] In some examples, the preset time intervals can be designed based on a detection model, that is, the preset time intervals can be selected based on the detection model. For example, when a small amount of metal reactants are formed on the electrode surface of the levitation device, the intervals between the preset time intervals can be less than 5 seconds. When a large amount of metal reactants are formed on the electrode surface of the levitation device, the intervals between the preset time intervals can be greater than 5 seconds.

[0073] In some examples, a preset time interval can be selected based on the first detection value, and multiple first and second detection values ​​can be obtained in the multiple preset time intervals using a sliding window method. In this case, the first detection value is obtained in multiple different preset time intervals using a sliding time window method (i.e., a sliding window method), and the frequency and amplitude of the excitation voltage are adjusted based on the first detection value. The second detection value is then obtained using the adjusted excitation voltage. In this way, the water quality detection method can be repeatedly and cyclically executed to obtain accurate water quality detection values ​​in real time.

[0074] In some examples, the first detection value may also be the electrolyte content obtained by the floatation device at the first moment from the first water area, and the water quality of the first water area is characterized based on the first detection value. In this case, the water quality of a single designated water area can be obtained.

[0075] In some examples, the first detection value may also include a temperature value obtained by the floatation device from the water at the first moment. In this case, the excitation voltage can be adjusted based on the electrolyte content and the temperature value, thereby improving the accuracy of the water quality detection value obtained after the excitation voltage is adjusted.

[0076] In some examples, the second detection value may also be the electrolyte content obtained by the floatation device at the second water location at the second moment, and the water quality at the second water location may be represented based on the second detection value. In this case, by detecting the first water location and the second water location, the water quality at different locations in the water area can be obtained.

[0077] In some examples, the second detection value may also include a temperature value obtained by the float device from the water at the second moment. In this case, the water quality can be accurately obtained.

[0078] A second aspect of the present disclosure relates to a microcontroller-based floatation device for water quality detection, hereinafter sometimes referred to as the floatation device. In some examples, the floatation device may include an executable water quality detection program. In some examples, when executing the water quality detection program, the floatation device may perform water quality detection using any of the detection methods described in the first aspect of the present disclosure.

[0079] FIG3 is a schematic diagram illustrating an application scenario of a microcontroller-based water quality detection buoyancy device 1 according to an example of the present disclosure. FIG4 is a schematic diagram illustrating the structure of a microcontroller-based water quality detection buoyancy device 1 according to an example of the present disclosure. FIG5 is a block diagram illustrating the structure of a microcontroller-based water quality detection buoyancy device 1 according to an example of the present disclosure. FIG6a is a schematic diagram illustrating the electrical connections between the power supply module 302, the indication module 20, the detection module 10, the analysis module 301, and the control module 303 in the buoyancy device 1 according to an example of the present disclosure. FIG6b is a schematic diagram illustrating the electrical connections between the power supply module 302, the control module 303, the power module 50, and the pulley module 60 in the buoyancy device 1 according to an example of the present disclosure.

[0080] As shown in Figures 4 and 5 , the floating device 1 of the present disclosure may be a portable water quality detection floating device 1 based on a microcontroller 30. The floating device 1 may include a detection module 10, an indication module 20, a microcontroller 30, and a floatable carrier 40.

[0081] In some examples, the microcontroller 30 may include an analysis module 301, a power module 302, and a control module 303. In other words, in some examples, the power module 302, the analysis module 301, and the control module 303 may be integrated into the microcontroller 30 (described in detail later).

[0082] In some examples, the detection module 10 , the indication module 20 , the analysis module 301 , the power module 302 , and the control module 303 may be installed on a carrier 40 .

[0083] As shown in Figure 6a, in some examples, the detection module 10, the indication module 20, the analysis module 301, and the control module 303 can be electrically connected to each other. In some examples, the power supply module 302 can be used to power the detection module 10, the indication module 20, the analysis module 301, and the control module 303.

[0084] In some examples, the detection module 10 (described in detail later) can be used to detect the electrolyte content in water. The detection principle of the detection module 10 can be: first, by applying an excitation voltage to the detection module 10, the detection module 10 contacts the water body to form a conductive circuit, and then the magnitude of the current formed between the detection module 10 and the water body is obtained to judge the conductivity of the water quality (i.e., conductivity, indicating the electrolyte content). Finally, based on the conductivity of the water quality, that is, based on the electrolyte content, the water quality is judged. Generally, the higher the electrolyte content in the water, the worse the water quality.

[0085] In some examples, the indication module 20 (described in detail later) can be used to indicate the water quality, for example, through sound, light intensity, or indicator light color.

[0086] In some examples, the analysis module 301 can be used to obtain the magnitude of the current formed between the detection module 10 and the water body. In some examples, the analysis module 301 can input the obtained information about the magnitude of the current into the control module 303.

[0087] In some examples, the control module 303 can be used to control the operation of the indication module 20 according to the information about the current magnitude of the detection module 10 obtained by the analysis module 301 .

[0088] In some examples, the power module 302 can be used to power the indication module 20, the detection module 10, the analysis module 301, and the control module 303. For example, the power module 302 can power the detection module 10 so that the detection module 10 obtains the excitation voltage required for water quality detection.

[0089] In some examples, a buoyant carrier 40 (described in detail later) can enable the buoyancy device 1 to float on the water surface. In some examples, the carrier 40 can be used to carry and install electronic components such as the detection module 10, the indicator module 20, the analysis module 301, the power module 302, and the control module 303, enabling the buoyancy device 1 to float on the water surface to perform water quality testing.

[0090] As shown in Figures 4 and 5, in some examples, the floating device 1 may further include a power module 50 (described in detail later), a pulley module 60 (described in detail later), and a remote controller 70 (described in detail later). As shown in Figure 6b, in some examples, the power module 302, the control module 303, the power module 50, and the pulley module 60 may be electrically connected to each other. In this case, the control module 303 can control the power module 50 and the pulley module 60, and the power module 302 can supply power to the control module 303, the power module 50, and the pulley module 60, thereby facilitating a user to perform water quality testing in different water areas and at different depths using the floating device 1.

[0091] In the present disclosure, a detection module 10 can detect water bodies (i.e., water quality). A microcontroller 30, which integrates a power module 302, an analysis module 301, and a control module 303, can control a floating device 1 during water quality testing and obtain detection data. Furthermore, an indicator module 20 quickly and in real time indicates water quality. Furthermore, a power module 50, a pulley module 60, and a remote controller 70 allow users to easily control the floating device 1 to perform water quality testing at different locations and depths. This results in a device with a simple structure that is suitable for people's needs for rapid water quality testing during outdoor activities.

[0092] The following further describes in detail the various components of the floating device 1 involved in the present disclosure.

[0093] As shown in FIG. 4 and FIG. 5 , in some examples, the levitation device 1 may include a microcontroller 30 .

[0094] As shown in FIG5 , in some examples, the microcontroller 30 may be integrated with a power module 302, an analysis module 301, and a control module 303. The microcontroller 30 involved in the present disclosure is also called a microcontroller unit (MCU). Microcontrollers can be classified from different aspects: based on the data bus width, they can be divided into 8-bit, 16-bit, and 32-bit machines; based on the memory structure, they can be divided into Harvard structure and Von Neumann structure; based on the type of embedded program memory, they can be divided into OTP, mask, EPROM / EEPROM, and flash memory; based on the instruction structure, they can be divided into CISC (Complex Instruction Set Computer) and RISC (Reduced Instruction Set Computer).

[0095] In some examples, the microcontroller 30 involved in the present disclosure may adopt a microcontroller including but not limited to the PIC series, ARM series, 8051 series, AVR series, and MSP series 30. For example, the microcontroller 30 involved in the present disclosure may include: STM32F103x, ATmega328, PIC16F877A, Attiny85, MSP430, ESP8266, ESP32, ATMEGA32U4, STM8, LPC1768 and other microcontrollers.

[0096] In some examples, the analysis module 301 can be at least one of a data input port, a digital-to-analog / analog-to-digital conversion circuit, and a signal amplification circuit of the microcontroller 30. In some examples, the analysis module 301 can be electrically connected to the detection module 10. In this case, the analysis module 301 can obtain the current signal or data of the detection module 10.

[0097] In some examples, the control module 303 may be a control chip or a logic operator of the microcontroller 30. In this case, the control module 303 may be used to control the operation of the indication module 20 according to the current information of the detection module 10 obtained by the analysis module 301.

[0098] In some examples, the microcontroller 30 of the present disclosure may include an executable water quality detection program. In some examples, the water quality detection program can be pre-edited and embedded in the microcontroller 30, or it can be edited in real time on-site. In this case, the pre-edited water quality detection program can be packaged and embedded in batches on the storage medium of the microcontroller 30, thereby facilitating mass production of portable water quality detection buoyancy devices 1 with consistent functionality. Furthermore, by editing the water quality detection program in real time on-site, users can easily program the buoyancy device 1 to meet different water quality detection scenarios, such as setting the detection duration and accuracy.

[0099] In some examples, when the microcontroller 30 executes the water quality detection program, the control module 303 can divide the water quality into multiple levels by setting preset values. In this case, by setting different preset values ​​and dividing the water quality conditions based on the different preset values, that is, setting different detection accuracies to perform water quality detection, it is convenient for users to select different detection accuracies to perform water quality detection according to different water environments. For example: the TDS (Total Dissolved Solids) value of natural water is generally 30ppm to 300ppm, while the TDS value of sewage is usually above 300ppm. For example, the preset value can be set to any one or more of 30ppm, 60ppm, 100ppm, 150ppm, 200ppm, 250ppm, 300ppm, etc. For example, when the preset value is 150ppm, 0ppm to 60ppm can be set as the first level, indicating good water quality, 60ppm to 120ppm can be set as the second level, indicating average water quality, and above 150ppm can be set as the third level, indicating poor water quality; for example, when the preset value is 300ppm, 0ppm to 200ppm can be set as the first level, indicating good water quality, 200ppm to 300ppm can be set as the second level, indicating average water quality, and above 300ppm can be set as the third level, indicating poor water quality.

[0100] In some examples, when the microcontroller 30 executes the water quality detection program, the floating device 1 can perform water quality detection using any detection method in the first aspect of the present disclosure.

[0101] In some examples, the microcontroller 30 may include a display and buttons (not shown). The display may be used to display preset values, and the buttons may be used to enter the preset values. In this case, the user can set the detection accuracy of the float device 1 by entering the preset value via the button, and determine whether the entered result is accurate by displaying the preset value on the display. This facilitates the user to select different detection accuracies for water quality testing based on different water environments, thereby improving the user experience. In some examples, the display may also be used to display the water quality. For example, if the water quality is preset to be represented by a number or letter, the displayed number or letter represents the corresponding water quality.

[0102] In some examples, the power module 302 may include a power supply and a power control circuit. In some examples, the power supply may be removably mounted in the microcontroller 30. In this case, the power supply may be used to provide electrical energy, and the power control circuit may control the power supply to provide corresponding voltages or currents based on different electronic components. For example, it may provide an alternating voltage to the detection module 10 for detecting water quality, or it may provide a stable DC operating voltage to the control module 303.

[0103] In some examples, the analysis module 301, the power module 302, and the display of the microcontroller 30 can be controlled by the control module 303. In this case, the control module 303 can be programmed to control the operating states of the analysis module 301, the power module 302, and the display.

[0104] FIG7 is a schematic diagram illustrating the detection principle of the detection module 10 in the floating device 1 according to an example of the present disclosure. FIG8 is a schematic diagram illustrating the structure of an embodiment of the detection module 10 in the floating device 1 according to an example of the present disclosure. FIG9 is a schematic diagram illustrating the structure of another embodiment of the detection module 10 in the floating device 1 according to an example of the present disclosure. FIG10 is a schematic diagram illustrating the structure of yet another embodiment of the detection module 10 in the floating device 1 according to an example of the present disclosure.

[0105] As described above, the floating device 1 may include a detection module 10 .

[0106] As shown in FIG7 , FIG8 , or FIG9 , in some examples, the detection module 10 may include a first electrode 101 and a second electrode 102 arranged opposite each other. In some examples, the first electrode 101 and the second electrode 102 are in the shape of elongated strips. In some examples, the first electrode 101 may include a first end 1011 and a second end 1012. In some examples, the second electrode 102 may include a first end 1021 and a second end 1022.

[0107] As shown in FIG8 or FIG9 , in some examples, when testing water quality, the detection module 10 can be configured such that the first end 1011 of the first electrode 101 and the first end 1021 of the second electrode 102 are immersed in water, and the second end 1012 of the first electrode 101 and the second end 1022 of the second electrode 102 extend and are connected to the power module 302. In this case, the detection module 10 can be brought into contact with the water to form a circuit loop, and after applying an excitation voltage to the first electrode 101 and the second electrode 102, the current generated between the detection module 10 and the water can be collected. The magnitude of the generated current can then be analyzed by the analysis module 301, thereby obtaining the water quality test results.

[0108] In some examples, the first end 1011 of the first electrode 101 and the first end 1021 of the second electrode 102 may be substantially parallel. In this case, the parallelism between the first end 1011 of the first electrode 101 and the first end 1021 of the second electrode 102 can facilitate the control module 303 to calculate the conductance between the first end 1011 of the first electrode 101 and the first end 1021 of the second electrode 102, thereby improving the accuracy of water quality detection.

[0109] As shown in FIG. 8 or FIG. 9 , in some examples, the first end 1011 of the first electrode 101 and the first end 1021 of the second electrode 102 may be at least one of two substantially parallel and identically shaped cylinders, rectangular bodies, or sheet-shaped conductors.

[0110] In some examples, the first end 1011 of the first electrode 101 and the first end 1021 of the second electrode 102 can be made of a conductive material such as metal or graphite. In some examples, the second end 1012 of the first electrode 101 and the second end 1022 of the second electrode 102 can be conductive wires, such as soft conductive wires. In some examples, the second end 1012 of the first electrode 101 and the second end 1022 of the second electrode 102 can be made of a conductive material with low resistivity. In this case, the first ends of the two electrodes are immersed in water and can be used to chemically react with electrolytes in the water to generate current after applying an excitation voltage. In addition, the second ends of the two electrodes can be extended and connected to the power module 302 and can be electrically connected to the analysis module 301. As a result, the excitation power can be applied to the first ends of the two electrodes via the second ends of the two electrodes, and the current generated between the detection module 10 and the water body after the excitation power is applied can be obtained through the analysis module 301. In addition, the second end 1012 of the first electrode 101 and the second end 1022 of the second electrode 102 can connect the first end 1011 of the first electrode 101 and the first end 1021 of the second electrode 102 to the power module 302 to obtain an excitation voltage, and can be wound through other mechanisms such as pulleys to allow the first end 1011 of the first electrode 101 and the first end 1021 of the second electrode 102 to be immersed in water at different depths. In addition, when the resistivity of the second ends of the two electrodes is lower, the conductivity is stronger, thereby improving the accuracy of detecting electrolytes in the water.

[0111] In some examples, the second end 1012 of the first electrode 101 and the second end 1022 of the second electrode 102 can be wound around the pulley module 60. In some examples, the first end 1011 of the first electrode 101 and the first end 1021 of the second electrode 102 of the detection module 10 can be placed at different depths in water by controlling the pulley module 60. This facilitates the user to detect water bodies at different depths and improves detection accuracy.

[0112] As shown in Figure 10, in some examples, the first end 1011 of the first electrode 101 and the first end 1021 of the second electrode 102 may have a parallel portion 11 and a non-parallel portion 12. In some examples, the parallel portions 11 of the two electrodes may be in direct contact with the water body, that is, exposed in the water body. In some examples, the non-parallel portions 12 of the two electrodes may be gradually converged and connected to the second ends of the two electrodes to be energized, and the outside of the non-parallel portions 12 may be wrapped with insulating material, that is, not in contact with the water body. In some examples, the second end 1012 of the first electrode 101 and the second end 1022 of the second electrode 102 are both wrapped with insulating material and confined to an insulating soft sleeve 13. In this case, the cable setting can be reduced to facilitate users to use the floating device 1 to detect water quality.

[0113] In some examples, the excitation voltage applied to the two electrodes of the detection module 10 may be a direct current voltage or an alternating current voltage. Preferably, the voltage applied to the two electrodes of the detection module 10 may be an alternating current voltage (alternating voltage). In this case, the alternating excitation voltage can cause each of the two electrodes to repeatedly undergo oxidation or reduction reactions when in contact with water, thereby reducing the problem of polarization of the two electrodes of the detection module 10.

[0114] In some examples, the detection module 10 measures the conductivity of the water body by an electrode method. The specific calculation principle of the electrode method for measuring the conductivity of the water body can be:

[0115] According to Ohm's law, when the temperature is constant, R=ρL / S

[0116] Where R is the resistance of the water between the two electrodes of the detection module 10, ρ is the resistivity, L is the distance between the two electrodes (see Figure 7), and S is the cross-sectional area of ​​the parallel portion 11 of the two electrodes (see Figure 7). Since S and L are fixed, L / S is a constant, called the conductivity constant Q, that is, R = ρQ

[0117] Conductance T and resistance R are inversely proportional, that is, T = 1 / R

[0118] The conductivity K is inversely proportional to the resistivity ρ, that is, K = 1 / ρ

[0119] From the above formulas, we can obtain: K = 1 / ρ = Q / R.

[0120] Therefore, in some examples, an excitation voltage is applied to the first ends of the two electrodes of the detection module 10 immersed in water, and the small current generated between the two electrodes of the detection module 10 and the water body is obtained by the analysis module 301. In this case, the conductivity of the water body can be obtained through the electrode method, thereby determining the electrolyte content in the water and judging the water quality.

[0121] In some examples, using the electrode method, the two electrodes of the detection module 10 can be calibrated with a standard solution to obtain the conductivity constant Q of the two electrodes of the detection module 10, and then water quality testing can be performed to obtain the resistance R of the water body, and finally the conductivity K of the water body can be obtained.

[0122] In this embodiment, the content of aqueous electrolytes can refer to the total dissolved solids (TDS) in the water, and the unit of measurement is milligrams per liter (mg / L), which indicates how many milligrams of dissolved solids are dissolved in 1 liter of water. TDS can be used to measure all solid substances dissolved in water, including minerals, salts, and tiny metal substances dissolved in water. In some examples, the unit of measurement of TDS can be ppm (parts per million). In some examples, the salt content in the solution can be inferred by conductivity. The purer the water, the fewer soluble solids, the greater the resistance, and the lower the conductivity (or conductivity). Therefore, pure water can hardly conduct electricity. In some examples, the TDS value is directly related to the conductivity. The TDS value is generally 0.55 times the conductivity, that is, TDS = 0.55K. In this case, the TDS value of the water body can be obtained by the detection module 10 and the analysis module 301, thereby obtaining the water quality.

[0123] In some examples, the detection module 10 and the analysis module 301 can obtain the TDS value of the water body, and the analysis module 301 can transmit the TDS value generated data to the control module 303. In this case, the control module 303 can control the indication module 20 to issue a corresponding intensity indication based on the TDS value, that is, the water quality. This can facilitate the user's judgment of the water quality and enhance the experience of outdoor wading sports.

[0124] As shown in Figures 4 and 5, in some examples, the floating device 1 may include an indication module 20. Figure 11 is a schematic diagram showing a working scenario of the indication module 20 in the floating device 1 according to an example of the present disclosure.

[0125] As shown in Figure 11, in some examples, the indicator module 20 may include a rod-shaped support portion 201, one end of which may be mounted on the portion of the carrier 40 that floats above the water surface. An indicator 202 may be mounted on the support portion 201. In some examples, the indicator 202 may be a colored light-emitting device. In this case, the user can easily observe the indicator 202 on the support portion 201 to obtain information about the water quality test results.

[0126] In some examples, the indicator 202 may also be any other device capable of feature recognition, such as a sound-generating device capable of sound recognition.

[0127] As shown in Figure 11, in some examples, the indicator module 20 may include multiple indicators 202, and each of these indicators 202 may correspond to the aforementioned water quality levels. When testing water quality, the control module 303 controls the intensity of the corresponding indicator 202 based on the level. For example, the indicator 202 may use red, yellow, and green light sources to correspond to good, fair, and poor water quality, respectively. In this case, the results of the water quality test can be obtained through the indicator 202, thereby making it easier for the user to determine the water quality status using the indicator 202 corresponding to each level.

[0128] In some examples, the indicator 202 may not be mounted on the carrier 40. For example, the indicator 202 may be integrated with the remote control 70 and wirelessly communicate with the control module 303. In this case, the user may not be bothered by the indicator 202 when performing water quality testing in open waters, thereby improving convenience.

[0129] As shown in FIG. 4 and FIG. 5 , in some examples, the floating device 1 may include a carrier 40 .

[0130] In some examples, the carrier 40 can be made of a solid material with a density less than that of water, such as foam or light plastic. In this case, the floatation device 1 can always float on the water surface, thereby making it easier for the user to obtain the water quality test results by observing the indicator 202 of the floatation device 1 when performing water quality testing in open water.

[0131] In some examples, carrier 40 can be used to mount detection module 10, indicator module 20, analysis module 301, power module 302, and control module 303. In some examples, carrier 40 can also be used to mount other components of floating device 1, such as power module 50 and pulley module 60. In this case, floating device 1 can float on the water surface and protect its components from the influence of the water.

[0132] As shown in FIG4 , in some examples, the portion of the carrier 40 that floats above the water surface may include a chamber 401. Chamber 401 may be used to house and secure the microcontroller 30 (including the analysis module 301, power module 302, and control module 303). In some examples, chamber 401 may be a sealed space. In some examples, chamber 401 of the carrier 40 may be sealed after accommodating and securing the various electronic components of the buoyancy device 1, such as the analysis module 301, power module 302, and control module 303. In this case, chamber 401 can reduce the impact of water on the normal operation of the analysis module 301, power module 302, and control module 303 of the buoyancy device 1 during water quality testing.

[0133] As shown in Figure 4, in some examples, the carrier 40 can be in the shape of a boat. In this case, it can give the user an aesthetic feeling, and the boat body can also cooperate with the power module 50 to move more smoothly in the water.

[0134] In some examples, the shape of the carrier 40 can be any shape. In this case, the shape of the carrier 40 can be designed according to the various components of the floating device 1, thereby facilitating the floating device 1 to detect water quality.

[0135] In some examples, the size of the carrier 40 can be designed to be no more than 50 cm in length, width, and height. In this case, it can be easily carried by the user. For example, the floating device 1 in the form of a ship's hull can be designed to be no more than 30 cm in length, no more than 15 cm in width, and no more than 40 cm in height (the sum of the support portion 201 and the carrier 40).

[0136] As shown in FIG. 4 and FIG. 5 , in some examples, the floating device 1 may further include a power module 50 .

[0137] As shown in FIG4 , in some examples, a power module 50 is installed in the carrier 40 to drive the floating device 1 to travel in the water. In this case, the power module 50 can be used to move the floating device 1 to different locations in the water for inspection and to move the floating device 1 to a location convenient for retrieving the floating device 1 for recovery.

[0138] In some examples, power module 50 may include a motor and a propeller.

[0139] In some examples, the power module 50 can drive the floating device 1 through the water using at least one of airflow or water flow. For example, when using airflow, the propeller can be designed on the carrier 40 of the floating device 1 and not in contact with the water surface. The airflow generated when the propeller is activated drives the floating device 1 through the water. For another example, when using water flow, the propeller can be designed below the carrier 40 of the floating device 1 and immersed in the water. The water flow generated when the propeller is activated drives the floating device 1 through the water.

[0140] In some examples, the power module 50 can be controlled by the control module 303. In other examples, the power module 50 can be controlled by the remote controller 70. In this case, the power module 50 can be remotely controlled to drive the floating device 1 to move in the water, thereby facilitating the user to control the floating device 1 to perform water quality testing in different areas of the water.

[0141] As shown in FIG. 4 and FIG. 5 , in some examples, the floating device 1 may further include a pulley module 60 .

[0142] As shown in FIG4 , in some examples, a pulley module 60 is mounted on the carrier 40 of the floating device 1 and is used to wind around the second end 1012 of the first electrode 101 and the second end 1022 of the second electrode 102 of the detection module 10, so that the first end 1011 of the first electrode 101 and the first end 1021 of the second electrode 102 are located at different depths when immersed in water. In some examples, the pulley module 60 can be used to position the first end 1011 of the first electrode 101 and the first end 1021 of the second electrode 102 of the detection module 10 at different depths in water. This facilitates detection of water bodies at different depths.

[0143] In some examples, the pulley module 60 can be controlled by the control module 303. In other examples, the pulley module 60 can be controlled by the remote controller 70. In this case, the pulley module 60 can be remotely controlled to place the first end 1011 of the first electrode 101 and the first end 1021 of the second electrode 102 of the detection module 10 at different depths in the water, thereby facilitating the user's control of the floating device 1 to perform water quality testing at different depths in the water.

[0144] As shown in Figures 3 and 5, in some examples, the buoyancy device 1 may further include a remote control 70. In some examples, the remote control 70 can be used to remotely control the power module 50 to drive the portable buoyancy device 1 in the water. In some examples, the remote control 70 can be used to remotely control the pulley module 60 to wind around the second end 1012 of the first electrode 101 and the second end 1022 of the second electrode 102 so that the first end 1011 of the first electrode 101 and the first end 1021 of the second electrode 102 are located at different depths when immersed in the water. In this case, controlling the power module 50 and the pulley module 60 via the remote control 70 facilitates the user's adjustment of the position of the buoyancy device 1 in the water and the depth to which the detection module 10 of the buoyancy device 1 is immersed in the water.

[0145] In some examples, the remote controller 70 may be a general remote control device, or may be an electronic device with control functions such as a user's mobile phone or tablet computer.

[0146] In some examples, the remote controller 70 can also control the operation of the microcontroller 30. For example, when the user controls the floating device 1 to reach a specified area in the water and controls the two electrodes of the detection module 10 to reach a specified water depth through the remote controller 70, the remote controller 30 can also be used to control the microcontroller 30 to start or pause the water quality detection task of the floating device 1.

[0147] According to the present disclosure, a water quality detection method and a floating device 1 for water quality detection based on a microcontroller 30 can be provided. The floating device 1 has a simple structure and is suitable for people's needs to quickly detect water quality during outdoor activities. At the same time, it can adaptively adjust the voltage parameters according to the usage scenario of the electrode to reduce the generation of reactants and improve the detection accuracy.

[0148] Although the present disclosure has been described in detail above with reference to the accompanying drawings and examples, it will be understood that the above description does not limit the present disclosure in any form. Those skilled in the art may modify and alter the present disclosure as needed without departing from the spirit and scope of the present disclosure, and such modifications and alterations are all within the scope of the present disclosure.

Claims

1. A water quality detection method using a microcontroller-based water quality detection float device, wherein the float device comprises a first electrode and a second electrode. The float device applies an alternating excitation voltage between the first electrode and the second electrode and analyzes the electrolyte content in the water based on the intensity of the current formed between the first electrode and the second electrode. The method is characterized in that: The detection method comprises: During a preset time interval, the buoyancy device is used to perform detection to obtain a first detection value, the first detection value including the electrolyte content obtained from the water by the buoyancy device at a first moment; the water quality at the first moment is characterized based on the first detection value; the frequency and amplitude of the excitation voltage are adjusted based on the first detection value; detection is performed based on the adjusted excitation voltage to obtain a second detection value, the second detection value including the electrolyte content obtained from the water by the buoyancy device at a second moment; the water quality at the second moment is characterized based on the second detection value.

2. The water quality detection method according to claim 1, wherein The frequency and amplitude of the excitation voltage are adjusted based on a detection model and the first detection value.

3. The water quality detection method according to claim 2, characterized in that: The frequency and amplitude of the excitation voltage when the first electrode and the second electrode are energized and the metal reactants formed on the electrode surface are slowest within multiple unit times under multiple different electrolyte contents are obtained by machine learning, and the detection model is output.

4. The water quality detection method according to claim 1, wherein The first moment and the second moment are located in the preset time interval and the interval between them does not exceed the preset time interval.

5. The water quality detection method according to claim 4, characterized in that: There are multiple preset time intervals, and the multiple preset time intervals are different from each other. The preset time interval is selected based on the first detection value, and multiple first detection values ​​and second detection values ​​are obtained in the multiple preset time intervals through a sliding window method.

6. The water quality detection method according to claim 1, characterized in that: The first detection value is the electrolyte content obtained by the floating device from the first water area at the first moment, and the water quality of the first water area is characterized based on the first detection value. The second detection value is the electrolyte content obtained by the floating device from the second water area at the second moment, and the water quality of the second water area is characterized based on the second detection value.

7. The water quality detection method according to claim 6, characterized in that: The first detection value also includes a temperature value obtained by the floating device from the water at the first moment, and the second detection value also includes a temperature value obtained by the floating device from the water at the second moment.

8. A floating device for water quality detection based on a microcontroller, wherein the microcontroller has an executable water quality detection program, and when the floating device executes the water quality detection program, it performs water quality detection according to the water quality detection method according to any one of claims 1 to 7, characterized in that: The floating device includes a detection module, an indication module, an analysis module, a power module, a control module and a floatable carrier; The detection module, the indication module, the analysis module, the power module and the control module are installed on the carrier; The detection module, the indication module, the analysis module and the control module are electrically connected to each other and powered by the power module; The detection module comprises a first electrode and a second electrode arranged opposite to each other, and the detection module is configured such that, when detecting water quality, a first end of the first electrode and a first end of the second electrode are immersed in water, and a second end of the first electrode and a second end of the second electrode extend and are connected to the power module; The power module, the analysis module and the control module are integrated into the microcontroller, and can be operated as follows when the microcontroller executes the water quality detection program: the power module applies an excitation voltage between the second end of the first electrode and the second end of the second electrode, the analysis module analyzes the electrolyte content in the water based on the intensity of the current formed between the first electrode and the second electrode, the control module judges the water quality based on the electrolyte content, and controls the indication module to issue an intensity indication based on the water quality.

9. The floating device according to claim 8, characterized in that: When the microcontroller executes the water quality detection program, the control module divides the water quality into multiple levels by setting preset values.

10. The floating device according to claim 9, characterized in that: The indication module has a plurality of indicators corresponding to the levels one by one. When detecting water quality, the control module controls the indicators corresponding to the levels to issue intensity indications based on the levels.

11. The floating device according to claim 10, characterized in that: The indicator module includes a rod-shaped support portion, one end of the support portion is mounted on a portion of the carrier that floats on the water surface, and the indicator is mounted on the support portion.

12. The floating device according to claim 9, characterized in that The microcontroller has a display and a key, wherein the display is used to display the preset value, and the key is used to input the preset value.

13. The floating device according to claim 8, characterized in that The first electrode and the second electrode are in the shape of long strips, the first end of the first electrode is parallel to the first end of the second electrode, and the first electrode and / or the second electrode are made of any conductive material such as metal or graphite, and the second end of the first electrode and the second end of the second electrode are wires.

14. The floating device according to claim 8, characterized in that The carrier is made of a solid material with a density lower than that of water, and a portion of the carrier floating on the water surface has a cavity, and the cavity is used to accommodate and fix the analysis module, the power module and the control module.

15. The floating device according to claim 8, characterized in that It also includes a power module installed on the carrier, and the power module is used to drive the floating device to move in the water.

16. The floating device according to claim 13, characterized in that The invention further comprises a pulley module installed on the carrier, wherein the pulley module is used to wind the second end of the first electrode and the second end of the second electrode so that the first end of the first electrode and the first end of the second electrode are immersed in water at different depths.

17. The floating device according to claim 15, characterized in that It also includes a remote controller, which is used to remotely control the power module to drive the floating device to move in the water.

18. The floating device according to claim 16, wherein: A remote controller is also included for remotely controlling the pulley module to wind the second end of the first electrode and the second end of the second electrode so that the first end of the first electrode and the first end of the second electrode are located at different depths when immersed in water.