Water processor self-adaptive adjustment method, electronic device, water processor

By adaptively adjusting the operating frequency range of the water processor, the problem of inconsistent electromagnetic field intensity caused by resonant frequency deviation in electromagnetic pulse vibration is solved, achieving stable power output and improving water treatment effects.

CN118289863BActive Publication Date: 2024-09-03RUINA INTELLIGENT EQUIP CO LTD
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202410731463.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-06
Publication Date
2024-09-03
Estimated Expiration
2044-06-06

AI Technical Summary

Technical Problem

When existing water processors use electromagnetic pulse vibration to clean impurities on the water pipe wall, since the resonant frequency is affected by the error in inductance and capacitance values, the electromagnetic field intensity is inconsistent, which affects the water treatment effect.

Method used

Through the adaptive adjustment method, the working frequency range of the water processor is determined and adjusted, the working current is obtained, the resonant frequency is calculated, and the frequency range is adjusted to keep the average current within the preset range to ensure stable power output.

Benefits of technology

It achieves stable power output of the water processor, improves the water treatment effect, overcomes the problems of resonant frequency deviation and inconsistent electromagnetic field intensity, and improves product consistency and adaptability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118289863B
    Figure CN118289863B
Patent Text Reader

Abstract

The present invention discloses a method for adaptively adjusting a water processor, an electronic device, and a water processor. The method comprises: controlling the working frequency of the water processor to change in a determined first frequency interval, and obtaining a first working current of the water processor each time the working frequency changes; obtaining the resonant frequency of the water processor according to the first working current, and determining a second frequency interval according to the resonant frequency; controlling the working frequency of the water processor to change in the current second frequency interval, and obtaining a second working current of the water processor each time the working frequency changes; obtaining a first average current according to the second working current, and comparing the first average current with a preset current interval; if the first average current is within the preset current interval, controlling the water processor to operate according to the second frequency interval; if the first average current is not within the preset current interval, adjusting the second frequency interval, and returning to the step of controlling the working frequency of the water processor to change in the current second frequency interval.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of water processors, and in particular to a water processor self-adaptive adjustment method, electronic equipment, and a water processor. Background Art

[0002] In order to prevent impurities from being deposited on the water pipe wall, the related technology usually uses electromagnetic pulse vibration to clean the impurities on the water pipe wall. Since the pipeline has high requirements for the strength of the electromagnetic pulse, the LC oscillation circuit is usually used to achieve the output of the electromagnetic field, and then act on the pipeline. The resonant frequency is mainly affected by the inductance and capacitance. Generally, the capacitance error of the selected capacitor is about ±3%. The resonant frequency is affected by the winding process and the magnetic flux of the ferrite core, which will cause the resonant frequency point to shift, resulting in different electromagnetic field strengths output by the water processor, poor product consistency, and affecting the water treatment effect. Summary of the invention

[0003] The present invention aims to solve one of the technical problems in the related art at least to a certain extent. To this end, the first object of the present invention is to propose a water processor adaptive adjustment method to achieve stable power output of the water processor and ensure the effect of water treatment.

[0004] A second objective of the present invention is to provide an electronic device.

[0005] The third object of the present invention is to provide a water treatment device.

[0006] To achieve the above-mentioned purpose, an embodiment of the first aspect of the present invention proposes a method for adaptively adjusting a water processor, the method comprising: determining a first frequency interval; controlling the working frequency of the water processor to change in the first frequency interval, and obtaining a first working current of the water processor each time the working frequency changes; obtaining the resonant frequency of the water processor based on the first working current, and determining a second frequency interval based on the resonant frequency; controlling the working frequency of the water processor to change in a current second frequency interval, and obtaining a second working current of the water processor each time the working frequency changes; obtaining a first average current based on the second working current, and comparing the first average current with a preset current interval; if the first average current is within the preset current interval, controlling the water processor to operate according to the second frequency interval; if the first average current is not within the preset current interval, adjusting the second frequency interval, and returning to the step of controlling the working frequency of the water processor to change in the current second frequency interval.

[0007] To achieve the above objectives, a second aspect of the present invention proposes an electronic device, comprising a memory, a processor, and a computer program stored in the memory and running on the processor, wherein when the computer program is executed by the processor, the above-mentioned water processor adaptive adjustment method is implemented.

[0008] To achieve the above-mentioned object, a third aspect of the present invention provides a water processor, including the above-mentioned electronic device.

[0009] According to the adaptive adjustment method for a water processor, an electronic device, and a water processor of an embodiment of the present invention, a first frequency interval is first determined, and then the operating frequency of the water processor is controlled to change within the first frequency interval, and a first operating current of the water processor is obtained each time the operating frequency changes. After obtaining the first operating current, the resonant frequency of the water processor is calculated based on the first operating current, and then a second frequency interval is determined based on the resonant frequency. After determining the second frequency interval, the operating frequency of the water processor is controlled to change within the second frequency interval, and a second operating current of the water processor is obtained each time the operating frequency changes to obtain a first average current. The average current is compared with a preset current interval to adjust the second frequency interval, and then the second operating current of the water processor is readjusted according to the adjusted second frequency interval, thereby achieving stable power output of the water processor and ensuring the effect of water treatment.

[0010] Additional aspects and advantages of the present invention will be given in part in the following description and in part will be obvious from the following description, or will be learned through practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS

[0011] Figure 1 is a flow chart of a method for adaptively adjusting a water processor according to one or more embodiments of the present invention;

[0012] Figure 2 is a flow chart of an adaptive adjustment method for a water processor according to an example of the present invention;

[0013] Figure 3 The flowchart of the adaptive adjustment method of the water processor of another example of the present invention. DETAILED DESCRIPTION

[0014] The following describes the water processor adaptive adjustment method, electronic device, and water processor of the embodiments of the present invention with reference to the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements with the same or similar functions. The embodiments described with reference to the accompanying drawings are exemplary and should not be construed as limiting the present invention.

[0015] Figure 1 The present invention is a flowchart of a method for adaptively adjusting a water processor according to one or more embodiments of the present invention.

[0016] like Figure 1 As shown, the water processor adaptive adjustment method includes:

[0017] S11, determining a first frequency interval.

[0018] S12, controlling the operating frequency of the water processor to change within a first frequency interval, and obtaining a first operating current of the water processor each time the operating frequency changes.

[0019] S13, obtaining the resonant frequency of the water treatment device according to the first working current, and determining a second frequency range according to the resonant frequency.

[0020] S14, controlling the operating frequency of the water processor to change within the current second frequency interval, and obtaining the second operating current of the water processor each time the operating frequency changes.

[0021] S15, obtaining a first average current according to the second operating current, and comparing the first average current with a preset current range.

[0022] S16: If the first average current is within the preset current range, control the water processor to operate according to the second frequency range.

[0023] S17, if the first average current is not within the preset current range, the second frequency range is adjusted, and the process returns to the step of controlling the operating frequency of the water processor to change within the current second frequency range.

[0024] Therefore, first determine the first frequency interval, and then control the working frequency of the water processor to change within the first frequency interval, and obtain the first working current of the water processor each time the working frequency changes. After obtaining the first working current, calculate the resonant frequency of the water processor according to the first working current, and then determine the second frequency interval according to the resonant frequency. After determining the second frequency interval, control the working frequency of the water processor to change within the second frequency interval, and obtain the second working current of the water processor each time the working frequency changes. Calculate the first average current based on the second working current, and compare the preset current interval with the first average current to determine whether the preset current interval condition is met. If the condition is met, there is no need to adjust the second frequency interval. If not, adjust the second frequency interval, and then readjust the second working current of the water processor according to the adjusted second frequency interval, that is, adjust the first average current, so as to achieve stable power output of the water processor and ensure the effect of water treatment.

[0025] In one or more embodiments of the present invention, controlling the operating frequency of the water treatment process to change in the first frequency range includes: controlling the operating frequency of the water treatment process to change from the lower limit value of the first frequency range to the upper limit value of the first frequency range, or from the upper limit value of the first frequency range to the lower limit value of the first frequency range, or from the lower limit value of the first frequency range to the upper limit value of the first frequency range, and then from the upper limit value of the first frequency range to the lower limit value of the first frequency range, according to a first preset step size.

[0026] Specifically, the frequency interval is first initialized to determine the first frequency interval [F1, F2]. The first frequency interval [F1, F2] is the output frequency interval of the water treatment device controller. For example, if the water treatment device is composed of components such as a single-chip microcomputer, an LC oscillation circuit, a current sampling chip or an operational amplifier sampling resistor, an inductor coil, a ferrite module, etc., then the first frequency interval [F1, F2] is the output frequency interval of the single-chip microcomputer.

[0027] After determining the first frequency interval, it is also necessary to determine a frequency change step length w, and use the frequency change step length w as the first preset step length.

[0028] Furthermore, the operating frequency of the water processor is controlled to step from F1 to F2 according to w, or from F2 to F1 according to w, and after each step, the power supply current on the water processor bus is sampled to obtain a first operating current. After the step is completed, the lowest first operating current is used as the lower limit of the interval, and the highest first operating current is used as the upper limit of the interval to obtain the first operating current interval.

[0029] In one or more embodiments of the present invention, obtaining the resonant frequency of the water treatment device according to the first working current includes: taking the working frequency corresponding to the maximum first working current as the resonant frequency.

[0030] Specifically, after controlling the working frequency of the water treatment device to step from F1 to F2 according to w, or stepping from F2 to F1 according to w, all the first working currents obtained by sampling are obtained, and the first working current interval is obtained based on all the first working currents obtained, and the maximum value of the first working current interval, that is, the maximum first working current, is obtained, and the working frequency corresponding to the maximum first working current is used as the resonant frequency.

[0031] In one or more embodiments of the present invention, the working frequency of the water processor is controlled at least twice to change from the lower limit value of the first frequency interval to the upper limit value of the first frequency interval according to the first preset step size, wherein the resonant frequency of the water processor is obtained according to the first working current, including: when the working frequency of the water processor is controlled at least once to change from the lower limit value of the first frequency interval to the upper limit value of the first frequency interval according to the first preset step size, a Kalman filter algorithm is used to obtain a corresponding first current estimate value according to the first working current obtained at each change, and the average value of the first current estimate value is calculated to obtain a second average current; when the working frequency of the water processor is controlled at least another time to change from the lower limit value of the first frequency interval to the upper limit value of the first frequency interval according to the first preset step size, a Kalman filter algorithm is used to obtain a corresponding second current estimate value according to the first working current obtained at each change, and the working frequency corresponding to the first second current estimate value greater than the second average current is used as the resonant frequency.

[0032] Specifically, in order to achieve the acquisition of the resonant frequency of the water treatment process, the above-mentioned control of the working frequency of the water treatment process changes in the first frequency range. It can not only be set to control the working frequency of the water treatment process to change from the lower limit value of the first frequency range to the upper limit value of the first frequency range according to the first preset step size, or from the upper limit value of the first frequency range to the lower limit value of the first frequency range, but can also be set to control the working frequency of the water treatment process to change from the lower limit value of the first frequency range to the upper limit value of the first frequency range according to the first preset step size at least twice.

[0033] If the operating frequency of the water processor is controlled to change in the first frequency interval at least twice, the operating frequency of the water processor is controlled to change from the lower limit value of the first frequency interval to the upper limit value of the first frequency interval according to the first preset step length, then the operating frequency of the water processor can be controlled at least once to change from the lower limit value of the first frequency interval to the upper limit value of the first frequency interval according to the first preset step length. At this time, the Kalman filter algorithm is used to obtain the corresponding first current estimation value according to the first working current obtained at each change, and the average value of the first current estimation value is calculated to obtain the second average current.

[0034] In order to achieve the above-mentioned use of the Kalman filter algorithm to obtain the second average current, first, set the following parameters: gain coefficient kalman_gain, estimate value estimate, error covariance error_covariance, process noise process_noise, measurement noise measurement_noise, preset current maximum value Current_max, current current value Current, last current value Last_current, current summation parameter Current_sum, average current avg_current, resonant frequency fmax, preset current deviation value Current_dev, number of cycles Count, current frequency Current_freq, frequency correction parameter Freq_cor.

[0035] Among them, Current is the above-mentioned first working current, estimate is the above-mentioned first current estimation value, and avg_current is the above-mentioned second average current.

[0036] The initial value of the error covariance error_covariance is 1, the initial value of the process noise process_noise is 0.001, the initial value of the measurement noise measurement_noise is 0.1, and the initial value given by the last current value Last_current is 0.01.

[0037] First, when the working frequency of the water processor is controlled to change from the lower limit value F1 of the first frequency interval to the upper limit value F2 of the first frequency interval according to the first preset step length w at least once, the Kalman filter algorithm is used to obtain the corresponding first current estimate value estimate according to the first working current Current obtained at each change, specifically:

[0038] The operating frequency of the water processor is controlled to start from F1 and step to F2 according to the first preset step length w. When the operating frequency steps from F1 to F2, the water processor is considered to have executed a cycle. Each time a cycle is executed, the single-chip microcomputer obtains the first operating current and uses the first operating current as the current current value Current, and determines whether |Current-Last_current| is greater than Current_dev. If it is greater than Current_dev, the current Current is invalid, and the current Current is updated to Last_current. If it is not greater than the preset value, the current Current is valid, and Last_current is updated to the current Current.

[0039] Furthermore, the error covariance error_covariance is updated according to the following formula:

[0040] error_covariance=error_covariance+process_noise.

[0041] That is, the sum of the current error covariance and the process noise is calculated, and the calculated result is used as the new error covariance, thereby updating the error covariance.

[0042] After updating the error covariance, the new gain coefficient kalman_gain is obtained according to the following formula:

[0043] kalman_gain=error_covariance / (error_covariance+measurement_noise).

[0044] After obtaining the new gain coefficient, the new estimated value estimate is obtained according to the following formula:

[0045] estimate=estimate+kalman_gain×(Last_current-estimate).

[0046] Moreover, at this time, the new error covariance error_covariance can be obtained according to the following formula:

[0047] error_covariance=error_covariance×(1-kalman_gain).

[0048] At this time, the estimated value estimate may be used as the first current estimated value.

[0049] After obtaining the new estimated value estimate, the new current summation parameter Current_sum is obtained according to the following formula:

[0050] Current_sum=Current_sum+estimate.

[0051] At this time, the number of loops is increased by 1.

[0052] After the number of cycles reaches Count, the average value of the first current estimate value estimate can be calculated to obtain the second average current avg_current, which is specifically:

[0053] Calculate avg_current=Current_sum / Count, and use the calculated avg_current as the second average current.

[0054] After the second average current is calculated, it is necessary to control the working frequency of the water processor at least once to change from the lower limit value F1 of the first frequency interval to the upper limit value F2 of the first frequency interval according to the first preset step length w.

[0055] At this time, it is necessary to use the Kalman filter algorithm again to obtain the corresponding second current estimation value estimate1 according to the first working current Current obtained at each change.

[0056] The specific method for obtaining the second current estimation value estimate1 can refer to the above method for obtaining the first current estimation value, that is, Last_current is also updated according to Current, and the following formula is used:

[0057] error_covariance=error_covariance+process_noise,

[0058] kalman_gain=error_covariance / (error_covariance+measurement_noise),

[0059] estimate1=estimate1+kalman_gain×(Last_current-estimate),

[0060] error_covariance=error_covariance×(1-kalman_gain).

[0061] After obtaining the second current estimate value estimate1, determine whether the second current estimate value estimate1 is greater than the second average current avg_current. If it is greater than the second average current avg_current, use the operating frequency corresponding to the current second current estimate value estimate1 as the resonant frequency fmax. If it is not greater than, continue to execute the loop until it is greater than avg_current.

[0062] In one or more embodiments of the present invention, when the working frequency of the water treatment device is controlled to change from the lower limit value of the first frequency range to the upper limit value of the first frequency range according to the first preset step size at least once, the Kalman filtering algorithm is used to obtain the corresponding first current estimation value based on the first working current obtained at each change, and the average value of the first current estimation value is calculated to obtain the second average current.

[0063] When the working frequency of the water processor is controlled to change from the lower limit value of the first frequency range to the upper limit value of the first frequency range according to the third preset step size at least another time, the Kalman filter algorithm is used to obtain the corresponding second current estimation value based on the first working current obtained at each change, and the working frequency corresponding to the first second current estimation value greater than the second average current is used as the resonant frequency.

[0064] In one or more embodiments of the present invention, a Kalman filter algorithm is used to obtain a corresponding second current estimation value based on the first operating current obtained at each change, and the resonant frequency is obtained based on an operating frequency corresponding to the first second current estimation value that is greater than the second average current.

[0065] After obtaining the first second current estimation value greater than the second average current, the second current estimation value needs to be corrected according to the frequency correction parameter Freq_cor to obtain the resonant frequency. Specifically, the sum of the resonant frequency corresponding to the second current estimation value and the frequency correction coefficient Freq_cor is calculated, and the calculation result is used as the final resonant frequency, that is, the calculation formula fmax=fmax+Freq_cor is used to update the resonant frequency.

[0066] In one or more embodiments of the present invention, controlling the operating frequency of the water processor to change in the second frequency range includes: controlling the operating frequency of the water processor to change according to a second preset step size, first from the lower limit value of the second frequency range to the upper limit value of the second frequency range, and then from the upper limit value of the second frequency range to the lower limit value of the second frequency range; or controlling the operating frequency of the water processor to change according to a second preset step size, first from the upper limit value of the second frequency range to the lower limit value of the second frequency range, and then from the lower limit value of the second frequency range to the upper limit value of the second frequency range.

[0067] In one or more embodiments of the present invention, adjusting the second frequency interval includes: comparing the first average current with an upper limit and a lower limit of a preset current interval, and adjusting the second frequency interval according to the comparison result.

[0068] In one or more embodiments of the present invention, the second frequency interval is [F-width1, F+width2], F is the resonant frequency, that is, the above-mentioned fmax, and width1 and width2 are preset constants. In other words, the operating frequency of the water processor is controlled to change within [F-width1, F+width2], and the operating current of the water processor is obtained each time the operating frequency changes, and the operating current is used as the second operating current, and then the above-mentioned method of obtaining the second average current according to the first operating current is adopted, and the first average current is obtained by using the second operating current.

[0069] The first average current is compared with an upper limit and a lower limit of a preset current interval, and the second frequency interval is adjusted according to the comparison result, including:

[0070] If the first average current is less than the lower limit of the preset current interval, width1 is reduced by the first preset value and width2 is reduced by the second preset value, or width1 is reduced by the first preset value and width2 remains unchanged, or width1 remains unchanged and width2 is reduced by the second preset value.

[0071] If the first average current is greater than the upper limit of the preset current interval, width1 is increased by the first preset value and width2 is increased by the second preset value, or width1 is increased by the first preset value and width2 remains unchanged, or width1 remains unchanged and width2 is increased by the second preset value.

[0072] If the first average current is within the preset current range, width1 and width2 are not adjusted. The above-mentioned conditional judgment ensures that the first average current is within the preset current range, thereby determining that the output power of the water processor is stable.

[0073] See also Figure 2 First, initialize the frequency interval to obtain the first frequency interval, control the working frequency of the water processor to change in the first frequency interval, and obtain the first working current of the water processor each time the working frequency changes, and use the working frequency corresponding to the maximum first working current as the resonant frequency F. According to the resonant frequency F and two preset constants width1 and width2, obtain the second frequency interval [F-width1, F+width2].

[0074] The operating frequency of the water processor is controlled to change within the second frequency interval to obtain an average current, and the average current is used as the first average current. If the first average current is not within the preset current interval, the values ​​of width1 and width2 are corrected.

[0075] If the first average current is within the preset current interval, it is determined that the output power of the water processor is stable, and the second frequency interval is determined to be [F-width1, F+width2].

[0076] It should be noted that various situations may occur in the actual application of the water treatment device. For example, as the running time goes by, the ferrite component will produce a certain temperature rise, which will cause the resonance point to shift and may cause the average current to change. Therefore, it is necessary to continuously obtain the first average current and judge in real time whether the first average current meets the conditions. If the newly obtained first average current does not meet the conditions, at this time, correct the values ​​of width1 and width2. The judgment of whether the first average current meets the conditions can be to judge whether the first average current does not meet the preset current interval, or to judge whether the first average current is within the preset current range that the circuit can operate for a long time. In this way, fault-tolerant adjustment can be achieved to prevent the water treatment device circuit from being affected by changes in the external environment or other factors.

[0077] Moreover, the second frequency interval is adjusted according to the first average current, and the average power consumption is calculated in real time according to the first average current, and the actual power consumption is compared with the preset power consumption in real time, and the size of width_1 and width_2 is continuously adjusted until the actual power consumption reaches the preset power consumption. Thus, adaptive power regulation and frequency adaptive regulation are realized, and the damage to the hardware circuit caused by the uncertainty of the resonant frequency and the inability to adaptively adjust the power is solved, and the heating problem of the annular ferrite with different diameters is solved by adaptively adjusting the power to reduce energy loss.

[0078] In one or more embodiments of the present invention, before returning to the step of controlling the working frequency of the water treatment device to change in the current second frequency range, the method also includes: determining that the current second frequency range is in a preset frequency conversion range; wherein, if the current second frequency range is not in the preset frequency conversion range, adjusting the preset frequency conversion range so that the current second frequency range is in the adjusted preset frequency conversion range.

[0079] Adjusting the second frequency interval according to the preset current interval, and determining that the current second frequency interval is in the preset variable frequency interval, and if the current second frequency interval is not in the preset variable frequency interval, adjusting the preset variable frequency interval, can be implemented by the following program:

[0080] void Pwm_Logicfunction()

[0081] {

[0082] bool flag = true; / / Define a flag to determine whether the condition is met

[0083] int lower_limit = 140000; / / An example of presetting the lower limit of the frequency conversion range

[0084] int upper_limit = 185000; / / An example of presetting the upper limit of the frequency conversion range

[0085] while(flag)

[0086] {

[0087] avg_current = Get_Avg_Current(); / / Call the function to calculate the average current

[0088] if(avg_current>2.5f&&avg_current<3.0f){ / / If the average current is greater than 2.5 amps and less than 3 amps, that is, in this example, the first preset current is 2.5 amps and the second preset current is 3 amps

[0089] flag = false; / / Set the flag to false

[0090] }

[0091] else if(avg_current<= 2.5f || avg_current>= 3.0f){ / / If the average current is not between 2.5 and 3

[0092] while(flag){

[0093] if(avg_current<= 2.5f){ / / If the average current is less than or equal to 2.5 amps

[0094] width_1 -= 1000; / / Reduce the value of width_1

[0095] width_2 -= 1000; / / Reduce the value of width_2

[0096] }

[0097] else if(avg_current>= 3.0f){ / / If the average current is greater than or equal to 3 amps

[0098] width_1 += 1000; / / Increase the value of width_1

[0099] width_2 += 1000; / / Increase the value of width_2

[0100] }

[0101] if(F - width_1<lower_limit || F + width_2> upper_limit){ / / If the second frequency range is not within the preset frequency conversion range, expand the frequency conversion range

[0102] lower_limit -= 1000;

[0103] upper_limit += 1000;

[0104] }

[0105] avg_current = Get_Avg_Current(); / / Re-obtain the average current

[0106] if(avg_current>2.5f&&avg_current<3.0f){ / / If the average current is between 2.5 and 3, exit the loop

[0107] flag = false;

[0108] }

[0109] }

[0110] }

[0111] }

[0112] Combine the following Figure 3 The example shown is used for illustration.

[0113] exist Figure 3 In the example shown, a first frequency interval [F1, F2] and a first preset step length w are first given, and the operating frequency of the water processor is changed from F1 to F2.

[0114] When the frequency changes from F1 to F2, the bus current value K is read each time the frequency changes by one value as a first working current, and the bus first working current interval change range corresponding to the first frequency interval [F1, F2] can be counted as [K1, K2]. The first working current can be the bus current of the water processor.

[0115] The first working currents of the bus are sorted and compared to find out the frequency F corresponding to the maximum current value, where F is the resonant frequency in the circuit.

[0116] Given width1 and width2, the circuit executes the second frequency interval [F-width1, F+width2] to obtain the first average current K5.

[0117] If the first average current does not meet the preset current range, the preset adjustment function Pwm_Logicfunction() is called to adjust width1 and width2 according to the preset frequency upper limit parameter Fmax, frequency lower limit parameter Fmin, the maximum current Kmax that the circuit can operate for a long time, the minimum current Kmin that the circuit can operate for a long time, width1, and width2.

[0118] The first average current is continuously monitored, and when the first average current does not meet the condition, width1 and width2 are readjusted.

[0119] In summary, the adaptive adjustment method for the water processor of the embodiment of the present invention first determines a first frequency range, and then controls the working frequency of the water processor to change within the first frequency range, and obtains the first working current of the water processor each time the working frequency changes. After obtaining the first working current, the resonant frequency of the water processor is calculated according to the first working current, and then the second frequency range is determined according to the resonant frequency. After determining the second frequency range, the working frequency of the water processor is controlled to change within the second frequency range, and the second working current of the water processor is obtained each time the working frequency changes, so as to adjust the second frequency range according to the preset current range, and then readjust the second working current of the water processor according to the adjusted second frequency range. In actual product production, the parameters of the inductor coil are affected by the winding process and the magnetic permeability of the ferrite core. Moreover, changes in the numerical values ​​of the inductor parameters and changes in the inductor parameters caused by the temperature rise of the ferrite during operation will affect the use effect of the product. At this time, if the parameters cannot be adaptively detected and adjusted, the resonant frequency of the oscillation circuit cannot be determined, it is difficult to adjust the output power of the product, and the output intensity of the electromagnetic field of the same model cannot be guaranteed. The consistency of the products is poor and the use effects are different. Therefore, through the above method, the uncertainty of the inductor parameters that cannot be solved by traditional circuits is overcome, and adaptive power adjustment and resonant frequency calculation methods are designed according to the circuit conditions. The offset of the inductor parameters caused by the temperature rise of the ferrite during the operation of the product is also adaptively adjusted to ensure the stability of the product output power and the signal intensity of the electromagnetic field, thereby ensuring the use effect of the water processor, improving the adaptability of the water processor, and greatly reducing the installation and adjustment costs of the water processor.

[0120] Furthermore, the present invention provides an electronic device.

[0121] In an embodiment of the present invention, the electronic device includes a memory, a processor, and a computer program stored in the memory and running on the processor. When the computer program is executed by the processor, the above-mentioned water processor adaptive adjustment method is implemented.

[0122] The electronic device of the embodiment of the present invention implements the above-mentioned water processor adaptive adjustment method, first determines the first frequency range, and then controls the working frequency of the water processor to change within the first frequency range, and obtains the first working current of the water processor each time the working frequency changes. After obtaining the first working current, the resonant frequency of the water processor is calculated according to the first working current, and then the second frequency range is determined according to the resonant frequency. After determining the second frequency range, the working frequency of the water processor is controlled to change within the second frequency range, and the second working current of the water processor is obtained each time the working frequency changes, and the first average current is calculated, so as to judge whether to adjust the second frequency range based on the comparison of the first average current with the preset current range, and then readjust the second working current of the water processor according to the adjusted second frequency range. In actual product production, the parameters of the inductor coil are affected by the winding process and the magnetic permeability of the ferrite core. Moreover, changes in the numerical values ​​of the inductor parameters and changes in the inductor parameters caused by the temperature rise of the ferrite during operation will affect the use effect of the product. At this time, if the parameters cannot be adaptively detected and adjusted, the resonant frequency of the oscillation circuit cannot be determined, it is difficult to adjust the output power of the product, and the output intensity of the electromagnetic field of the same model cannot be guaranteed. The consistency of the products is poor and the use effects are different. Therefore, through the above method, the uncertainty of the inductor parameters that cannot be solved by traditional circuits is overcome, and adaptive power adjustment and resonant frequency calculation methods are designed according to the circuit conditions. The offset of the inductor parameters caused by the temperature rise of the ferrite during the operation of the product is also adaptively adjusted to ensure the stability of the product output power and the signal intensity of the electromagnetic field, thereby ensuring the use effect of the water processor, improving the adaptability of the water processor, and greatly reducing the installation and adjustment costs of the water processor.

[0123] Furthermore, the present invention provides a water treatment device.

[0124] In an embodiment of the present invention, a water processor includes the above-mentioned electronic device.

[0125] The water processor of the embodiment of the present invention, through the electronic device of the above embodiment, first determines the first frequency range, and then controls the working frequency of the water processor to change within the first frequency range, and obtains the first working current of the water processor each time the working frequency changes. After obtaining the first working current, the resonant frequency of the water processor is calculated according to the first working current, and then the second frequency range is determined according to the resonant frequency. After determining the second frequency range, the working frequency of the water processor is controlled to change within the second frequency range, and the second working current of the water processor is obtained each time the working frequency changes, so as to calculate the first average current according to the second working current, and judge whether to adjust the second frequency range by comparing the first average current with the preset current range, and then readjust the second working current of the water processor according to the adjusted second frequency range. In actual product production, the parameters of the inductor coil are affected by the winding process and the magnetic permeability of the ferrite core. Moreover, changes in the numerical values ​​of the inductor parameters and changes in the inductor parameters caused by the temperature rise of the ferrite during operation will affect the use effect of the product. At this time, if the parameters cannot be adaptively detected and adjusted, the resonant frequency of the oscillation circuit cannot be determined, it is difficult to adjust the output power of the product, and the output intensity of the electromagnetic field of the same model cannot be guaranteed. The consistency of the products is poor and the use effects are different. Therefore, through the above method, the uncertainty of the inductor parameters that cannot be solved by traditional circuits is overcome, and adaptive power adjustment and resonant frequency calculation methods are designed according to the circuit conditions. The offset of the inductor parameters caused by the temperature rise of the ferrite during the operation of the product is also adaptively adjusted to ensure the stability of the product output power and the signal intensity of the electromagnetic field, thereby ensuring the use effect of the water processor, improving the adaptability of the water processor, and greatly reducing the installation and adjustment costs of the water processor.

[0126] It should be noted that the logic and / or steps represented in the flowchart or described in other ways herein can be considered as a sequenced list of executable instructions for implementing logical functions, and can be specifically implemented in any computer-readable medium for use by an instruction execution system, device or equipment (such as a computer-based system, a system including a processor, or other system that can fetch instructions from an instruction execution system, device or equipment and execute instructions), or in combination with these instruction execution systems, devices or equipment. For the purpose of this specification, "computer-readable medium" can be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution system, device or equipment, or in combination with these instruction execution systems, devices or equipment. More specific examples (non-exhaustive list) of computer-readable media include the following: an electrical connection portion with one or more wirings (electronic device), a portable computer disk box (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and editable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium may even be paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium and then editing, interpreting or processing in other suitable ways if necessary, and then stored in a computer memory.

[0127] It should be understood that the various parts of the present invention can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiment, multiple steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. If implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.

[0128] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "examples", "specific examples", or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner.

[0129] In the description of this specification, the terms "center", "longitudinal", "lateral", "length", "width", "thickness", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside", "outside", "clockwise", "counterclockwise", "axial", "radial", "circumferential" and the like indicate orientations or positional relationships based on the orientations or positional relationships shown in the accompanying drawings, and do not indicate or imply that the referred device or element must have a specific orientation, be constructed and operated in a specific orientation, and cannot be understood as a limitation on the present invention.

[0130] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In the description of the present invention, the meaning of "plurality" is at least two, such as two, three, etc., unless otherwise clearly and specifically defined.

[0131] In the description of this specification, unless otherwise specified, the terms "installed", "connected", "connected", "fixed" and the like should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection or an indirect connection through an intermediate medium, it can be the internal connection of two elements or the interaction relationship between two elements, unless otherwise clearly defined. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.

[0132] In the present invention, unless otherwise clearly specified and limited, a first feature being "above" or "below" a second feature may mean that the first and second features are in direct contact, or the first and second features are in indirect contact through an intermediate medium. Moreover, a first feature being "above", "above" or "above" a second feature may mean that the first feature is directly above or obliquely above the second feature, or simply means that the first feature is higher in level than the second feature. A first feature being "below", "below" or "below" a second feature may mean that the first feature is directly below or obliquely below the second feature, or simply means that the first feature is lower in level than the second feature.

[0133] Although the embodiments of the present invention have been shown and described above, it is to be understood that the above embodiments are exemplary and are not to be construed as limitations of the present invention. A person skilled in the art may change, modify, replace and vary the above embodiments within the scope of the present invention.

Claims

1. A method for adaptively adjusting a water treatment device, It is characterized in that The method comprises: determining a first frequency interval; Controlling the operating frequency of the water processor to change within the first frequency interval, and obtaining a first operating current of the water processor each time the operating frequency changes; Obtaining a resonant frequency of the water treatment device according to the first working current, and determining a second frequency range according to the resonant frequency; Controlling the operating frequency of the water processor to change within a current second frequency interval, and obtaining a second operating current of the water processor each time the operating frequency changes; Obtaining a first average current according to the second working current, and comparing the first average current with a preset current range; If the first average current is within the preset current range, controlling the water processor to operate according to the second frequency range; If the first average current is not within the preset current interval, adjusting the second frequency interval, and returning to the step of controlling the operating frequency of the water processor to change within the current second frequency interval; The controlling the operating frequency of the water processor to change within the first frequency range includes: Controlling the operating frequency of the water processor to change from the lower limit value of the first frequency interval to the upper limit value of the first frequency interval, or from the upper limit value of the first frequency interval to the lower limit value of the first frequency interval, or from the lower limit value of the first frequency interval to the upper limit value of the first frequency interval, and then from the upper limit value of the first frequency interval to the lower limit value of the first frequency interval according to a first preset step length; Controlling the operating frequency of the water processor at least twice to change from a lower limit value of the first frequency interval to an upper limit value of the first frequency interval according to a first preset step length, wherein obtaining the resonant frequency of the water processor according to the first operating current includes: When the operating frequency of the water processor is controlled to change from the lower limit value of the first frequency interval to the upper limit value of the first frequency interval according to the first preset step length at least once, a Kalman filter algorithm is used to obtain a corresponding first current estimation value according to the first operating current obtained at each change, and an average value of the first current estimation value is calculated to obtain a second average current; When the working frequency of the water processor is controlled to change from the lower limit value of the first frequency range to the upper limit value of the first frequency range according to the first preset step size at least another time, the Kalman filter algorithm is used to obtain the corresponding second current estimation value based on the first working current obtained during each change, and the working frequency corresponding to the first second current estimation value greater than the second average current is used as the resonant frequency.

2. The water treatment device adaptive adjustment method according to claim 1, It is characterized in that The step of obtaining the resonant frequency of the water treatment device according to the first working current includes: The operating frequency corresponding to the maximum first operating current is used as the resonant frequency.

3. The water treatment device adaptive adjustment method according to claim 1, It is characterized in that The controlling the operating frequency of the water processor to change within the second frequency range includes: Controlling the operating frequency of the water processor to change according to a second preset step length, first from the lower limit value of the second frequency interval to the upper limit value of the second frequency interval, and then from the upper limit value of the second frequency interval to the lower limit value of the second frequency interval; Alternatively, the operating frequency of the water processor is controlled according to a second preset step size, first changing from the upper limit value of the second frequency interval to the lower limit value of the second frequency interval, and then changing from the lower limit value of the second frequency interval to the upper limit value of the second frequency interval.

4. The water treatment device adaptive adjustment method according to claim 3, It is characterized in that The adjusting the second frequency interval includes: The first average current is compared with an upper limit and a lower limit of the preset current interval, and the second frequency interval is adjusted according to the comparison result.

5. The water treatment device adaptive adjustment method according to claim 4, It is characterized in that The second frequency interval is [F-width1, F+width2], where F is the resonant frequency, and width1 and width2 are preset constants, wherein comparing the first average current with an upper limit and a lower limit of the preset current interval, and adjusting the second frequency interval according to the comparison result, comprises: If the first average current is less than the lower limit of the preset current interval, width1 is reduced by a first preset value and width2 is reduced by a second preset value, or width1 is reduced by the first preset value and width2 remains unchanged, or width1 remains unchanged and width2 is reduced by the second preset value; If the first average current is greater than the upper limit of the preset current interval, width1 is increased by the first preset value and width2 is increased by the second preset value, or width1 is increased by the first preset value and width2 remains unchanged, or width1 remains unchanged and width2 is increased by the second preset value.

6. The water treatment device adaptive adjustment method according to claim 4, It is characterized in that Before returning to the step of controlling the operating frequency of the water processor to change within the current second frequency interval, the method further includes: Determining that the current second frequency interval is in a preset frequency conversion interval; If the current second frequency interval is not within the preset frequency conversion interval, the preset frequency conversion interval is adjusted so that the current second frequency interval is within the adjusted preset frequency conversion interval.

7. An electronic device, It is characterized in that The method comprises a memory, a processor and a computer program stored in the memory and running on the processor. When the computer program is executed by the processor, the method for adaptively adjusting a water processor according to any one of claims 1 to 6 is implemented.

8. A water treatment device, It is characterized in that Comprising the electronic device as claimed in claim 7.

Citation Information

Patent Citations

  • Coil-winding type electronic induction water processing circuit and water processing method thereof

    CN102838214A

  • Power control and current harmonic compensation method of bidirectional AC / DC converter

    CN111900755A

  • Oscillation circuit, adjusting method thereof and water treater

    CN116667788A

  • Application of smart ultrasonic blade technology

    EP3536258A1

  • Grid connected converter system

    KR1020150030022A