Sensor calibration method and apparatus, washing machine, and computer readable storage medium
Patent Information
- Application Number
- CN202510021504.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-07
- Publication Date
- 2026-08-21
- Estimated Expiration
- 2045-01-07
AI Technical Summary
随着时间的推移,传感器可能会因为累积的杂质、水垢或其他沉积物而变得不准确,影响其判断能力
[0014]本申请提供的传感器校准方法,能够获取洗衣设备中已经经过洗涤流程的目标洗涤次数以及相邻两次洗涤次数对应的第一浊度值和第二浊度值。根据第一浊度值以及第二浊度值,能够确定相邻两次洗涤过程中,变化的目标浊度值。根据该变化的目标浊度值,可以对传感器进行校准,避免传感器检测浊度值不准确,导致洗衣时出现衣物未洗净的错误判断。
Smart Images

Figure CN119686073B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of electrical technology, specifically to a sensor calibration method, apparatus, washing machine, and computer-readable storage medium. Background Technology
[0002] Turbidity sensors are used to detect the amount of dirt in wash water to assess the cleanliness of clothes and optimize washing cycles. Over time, the sensor may become inaccurate due to accumulated impurities, scale, or other deposits, affecting its judgment ability. In other words, prolonged washing of clothes can cause dirt to build up on the turbidity sensor. Even if the clothes are clean, the accumulated dirt can cause the turbidity value of the wash water detected by the turbidity sensor to be higher than expected, leading the washing machine to determine that the clothes are not clean. Therefore, this problem needs to be solved. Summary of the Invention
[0003] This application provides a sensor calibration method that can calibrate the turbidity value acquired by the sensor, thereby avoiding the erroneous judgment that the clothes are not clean.
[0004] In a first aspect, this application provides a sensor calibration method, which is applied to a turbidity sensor of a washing machine, the method comprising: Obtain the target number of washes, the first turbidity value, and the second turbidity value of the washing equipment; The target turbidity value is determined based on the target number of washes, the first turbidity value, and the second turbidity value; The initial turbidity value of the turbidity sensor is calibrated based on the target turbidity value.
[0005] In some embodiments of this application, obtaining the target number of washes, the first turbidity value, and the second turbidity value of the washing machine includes: Control the washing equipment to perform washing, and obtain the first washing number corresponding to the current washing and the third turbidity value corresponding to the current washing; Based on the third turbidity value and the fourth turbidity value corresponding to the previous wash, the first target difference is determined; Based on the first target difference and the first number of washes, the target number of washes, the first turbidity value, and the second turbidity value of the washing equipment are determined.
[0006] In some embodiments of this application, determining the target number of washes, the first turbidity value, and the second turbidity value of the washing machine based on the first target difference and the first number of washes includes: If the first target difference is greater than the first threshold and the first number of washes is less than or equal to the second threshold, continue to execute the steps of controlling the washing equipment to wash, and obtaining the first number of washes and the third turbidity value corresponding to the current wash of the washing equipment, until the first target difference is less than or equal to the first threshold and the first number of washes is less than or equal to the second threshold. The first number of washes is determined as the target number of washes, the third turbidity value is determined as the first turbidity value, and the fourth turbidity value is determined as the second turbidity value.
[0007] In some embodiments of this application, determining the target turbidity value based on the target number of washes, the first turbidity value, and the third turbidity value includes: If the target number of washes is greater than the second threshold, the first turbidity value, the second turbidity value, and the initial turbidity value are calculated to obtain the fifth turbidity value; The second turbidity value and the initial turbidity value are calculated to obtain the sixth turbidity value; The fifth turbidity value and the sixth turbidity value are added together to obtain the target turbidity value.
[0008] In some embodiments of this application, the calculation and processing of the first turbidity value, the second turbidity value, and the initial turbidity value to obtain a fifth turbidity value includes: The first turbidity value and the second turbidity value are calculated and processed to obtain the seventh turbidity value; The second target difference between the first turbidity value and the second turbidity value and the initial turbidity value are calculated and processed to obtain the eighth turbidity value; The seventh turbidity value and the eighth turbidity value are multiplied together to obtain the fifth turbidity value; The calculation and processing of the second turbidity value and the initial turbidity value to obtain the sixth turbidity value includes: Divide the second target difference and the initial turbidity value to obtain the ninth turbidity value; The sixth turbidity value is obtained by multiplying the ninth turbidity value and the initial turbidity value.
[0009] In some embodiments of this application, determining the target turbidity value based on the target number of washes, the first turbidity value, and the third turbidity value includes: If the target number of washes is less than or equal to the second threshold, the first turbidity value and the second turbidity value are added together to obtain the tenth turbidity value; The target turbidity value is obtained by dividing the tenth turbidity value by the first parameter.
[0010] In some embodiments of this application, after obtaining the target number of washes, the first turbidity value, and the second turbidity value of the washing machine, the method further includes: If the target number of washes exceeds the second threshold, an alarm message is output, which is used to prompt the user to clean the turbidity sensor.
[0011] Secondly, this application also provides a sensor calibration device, wherein the sensor calibration method is applied to a turbidity sensor of a washing machine, and the device includes: The acquisition module is used to acquire the target number of washes, the first turbidity value, and the second turbidity value of the washing equipment; The determining module is used to determine the target turbidity value based on the target number of washes, the first turbidity value, and the second turbidity value; The calibration module is used to calibrate the initial turbidity value of the turbidity sensor according to the target turbidity value.
[0012] Thirdly, this application also provides a washing machine, which includes a processor, a memory, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the steps in any of the sensor calibration methods described above.
[0013] Fourthly, this application also provides a computer-readable storage medium storing a computer program that is executed by a processor to implement the steps in any of the sensor calibration methods described above.
[0014] The sensor calibration method provided in this application can obtain the target number of washes that have already undergone the washing process in a washing machine, as well as the first turbidity value and the second turbidity value corresponding to two adjacent washes. Based on the first turbidity value and the second turbidity value, the target turbidity value that changes during two adjacent washes can be determined. Based on this changing target turbidity value, the sensor can be calibrated to avoid inaccurate turbidity detection by the sensor, which could lead to incorrect judgments that the clothes are not clean during washing. Attached Figure Description
[0015] To more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0016] Figure 1 This is a schematic diagram of a sensor calibration system provided in the embodiments of this application; Figure 2 This is a schematic flowchart of one embodiment of the sensor calibration method in this application; Figure 3 This is a schematic diagram of a functional module of the sensor calibration device in an embodiment of this application; Figure 4 This is a schematic diagram of the structure of the washing machine in an embodiment of this application. Detailed Implementation
[0017] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0018] In the description of this application, it should be understood that the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated. Therefore, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature. In the description of this application, "multiple" means two or more, unless otherwise explicitly specified.
[0019] In this application, the term "exemplary" is used to mean "used as an example, illustration, or description." Any embodiment described as "exemplary" in this application is not necessarily to be construed as being more preferred or advantageous than other embodiments. Furthermore, it is understood that in the specific embodiments of this application, user information, user data, and other related data are involved. When the above embodiments of this application are applied to specific products or technologies, user permission or consent is required, and the collection, use, and processing of related data must comply with the relevant laws, regulations, and standards of the relevant countries and regions.
[0020] To enable any person skilled in the art to implement and use this application, the following description is provided. In this description, details are set forth for purposes of explanation. It should be understood that those skilled in the art will recognize that this application can be implemented without using these specific details. In other instances, well-known structures and processes will not be described in detail to avoid obscuring the description of this application with unnecessary detail. Therefore, this application is not intended to be limited to the embodiments shown, but is consistent with the broadest scope of the principles and features disclosed in this application.
[0021] This application provides a sensor calibration method, apparatus, device, and storage medium, which are described in detail below.
[0022] Please see Figure 1 , Figure 1 This is a schematic diagram of a sensor calibration system provided in an embodiment of this application. The sensor calibration system may include a washing machine 100. Figure 1 The washing machine 100 in the application can be used to obtain the relevant control logic stored in the washing machine 100 in order to execute the sensor calibration method in this application.
[0023] In this embodiment of the application, the washing machine 100 may include, but is not limited to, a drum washing machine, a pulsator washing machine, etc.
[0024] It should be noted that, Figure 1 The schematic diagram of the sensor calibration system shown is merely an example. The sensor calibration system and scenario described in this application are intended to more clearly illustrate the technical solutions of this application and do not constitute a limitation on the technical solutions provided in this application. As those skilled in the art will know, with the evolution of sensor calibration systems and the emergence of new business scenarios, the technical solutions provided in this application are also applicable to similar technical problems.
[0025] like Figure 2 As shown, Figure 2 This is a schematic flowchart of one embodiment of the sensor calibration method in this application. The sensor calibration method is applied to the turbidity sensor of a washing machine and specifically includes the following steps 201-203: 201. Obtain the target number of washes, the first turbidity value, and the second turbidity value of the washing equipment; In some laundry appliances, if clothes are not cleaned properly during the washing process, water will be added again for washing. Therefore, in this embodiment, the target number of washes can be the total number of washes performed by the laundry appliance in one wash cycle. Furthermore, the first turbidity value and the second turbidity value can be the turbidity values of the wash water between two adjacent wash cycles after each wash cycle. For example, the first turbidity value corresponds to the completion of the previous wash cycle; the second turbidity value corresponds to the completion of the next wash cycle after the previous wash cycle. The turbidity values can be obtained by detecting them using a turbidity sensor.
[0026] 202. Determine the target turbidity value based on the target number of washes, the first turbidity value, and the second turbidity value.
[0027] When the target number of washes exceeds a certain threshold, it indicates that the washing machine has undergone a relatively long period of clothing cleaning, increasing the probability that the turbidity sensor is covered in dirt. Therefore, turbidity value calibration may be necessary. Thus, after the target number of washes exceeds a certain threshold, turbidity threshold detection can be used to measure the difference between the first and second turbidity values, i.e., the target turbidity value. If the difference is small, it indicates that the turbidity change of the washing water before and after washing is minimal. Normally, after washing, dirt from the clothes is washed into the water, and the dirt state of the washing water should change significantly compared to before washing. Alternatively, the washing water may remain relatively clear after washing, in which case the turbidity change is also relatively small. Therefore, when it's difficult to determine which scenario applies, and the number of washes is high, the turbidity value acquired by the turbidity sensor can be calibrated.
[0028] 203. Based on the target turbidity value, calibrate the initial turbidity value of the turbidity sensor.
[0029] In this embodiment of the application, as described above, if the target turbidity value is small, it indicates that the turbidity sensor has accumulated a lot of dirt or may be in a relatively clean state. In this case, the turbidity sensor can be initialized. For example, it can be changed to a default value.
[0030] It should be noted that, in the embodiments of this application, the initial turbidity value is a default turbidity value that the turbidity sensor sets after water is injected into the washing chamber each time the washing equipment is started.
[0031] Therefore, since the turbidity sensor may become contaminated with dirt, its detection of the washing water in the washing chamber after the washing machine is started again is not accurate. For example, if the user finishes washing clothes this time, when the washing machine is started again, the turbidity sensor cannot accurately detect the turbidity after the washing chamber has rotated for the first time and completed the first wash. Therefore, the initial turbidity value can be calibrated, for example, by appropriately reducing it. It should be emphasized that the reason for appropriately reducing it is that the turbidity sensor may be affected by dirt, so the actual detected turbidity may be higher. In this case, the acquired turbidity value can be appropriately reduced, for example, by 10%, 12%, 15%, etc., and the specific embodiments of this application do not limit it. It can be seen that the initial turbidity value is the turbidity value obtained after the washing chamber rotates for the first time and completes the first wash each time the washing machine is started. In subsequent processes, each time the washing chamber completes its rotation and the current number of washes is completed, the turbidity value collected by the turbidity sensor does not need to be calibrated. At this time, the normal judgment process can be followed, because during the washing process, the rolling of the washing water will also clean the turbidity sensor to a certain extent, possibly washing away the attached dirt.
[0032] In this way, when the calibrated turbidity value is used for subsequent turbidity detection of the washing water, the washing equipment will determine whether the clothes are clean based on the appropriately reduced turbidity value.
[0033] The sensor calibration method provided in this application can obtain the target number of washes that have already undergone the washing process in a washing machine, as well as the first turbidity value and the second turbidity value corresponding to two adjacent washes. Based on the first turbidity value and the second turbidity value, the target turbidity value that changes during two adjacent washes can be determined. Based on this changing target turbidity value, the sensor can be calibrated to avoid inaccurate turbidity detection by the sensor, which could lead to incorrect judgments that the clothes are not clean during washing.
[0034] To better implement the embodiments of this application, in one embodiment, obtaining the target number of washes, the first turbidity value, and the second turbidity value of the washing machine includes: Control the washing equipment to perform washing, and obtain the first washing number and the third turbidity value corresponding to the current washing of the washing equipment; determine the first target difference based on the third turbidity value and the fourth turbidity value corresponding to the previous washing; determine the target washing number, the first turbidity value and the second turbidity value of the washing equipment based on the first target difference and the first washing number.
[0035] The above embodiments provide a specific implementation method. However, after each washing sensor calibrates the washing chamber and washes the clothes, it is necessary to determine whether the clothes are clean based on the turbidity value. If the turbidity value is high and does not exceed the number of washes per cycle after each start of the washing machine, the washing machine will change the water and continue washing. Therefore, the third turbidity value can represent the turbidity value corresponding to each rotation and wash of the washing chamber. Similarly, the fourth turbidity value is the turbidity value corresponding to the previous wash. If the difference between the third and fourth turbidity values meets the conditions, that is, the first target difference is less than the set difference threshold, and the target number of washes also exceeds the upper limit of the number of washes per cycle, then the third turbidity value is used as the first turbidity value, and the fourth turbidity value is used as the second turbidity value. If the third turbidity value is determined as the first turbidity value and the fourth turbidity value is determined as the second turbidity value, then the current first wash count corresponding to the third turbidity value is the final wash count, and the final wash count is the target wash count after the current start of the washing machine.
[0036] It should be noted that, in this embodiment, the maximum number of washes per cycle can be 4, 5, etc., and this embodiment does not limit this. The set difference threshold can be set according to the actual situation, and this embodiment does not limit it either.
[0037] To better implement the embodiments of this application, in one embodiment, the target number of washes, the first turbidity value, and the second turbidity value of the washing machine are determined based on the first target difference and the first number of washes, including: If the first target difference is greater than the first threshold and the first number of washes is less than or equal to the second threshold, continue to execute the steps of controlling the washing equipment to wash, and obtaining the first number of washes and the third turbidity value corresponding to the current wash of the washing equipment, until the first target difference is less than or equal to the first threshold and the first number of washes is less than or equal to the second threshold; determine the first number of washes as the target number of washes, determine the third turbidity value as the first turbidity value, and determine the fourth turbidity value as the second turbidity value.
[0038] The above embodiments provide a scheme for determining based on a specific threshold, but do not limit its specific implementation. In this application embodiment, a scheme that limits the specific determination process is also provided.
[0039] Specifically, if the first target difference is greater than the first threshold, it indicates that the turbidity sensor can still detect significant turbidity changes. Therefore, the probability of the turbidity sensor becoming dirty is low, and the first number of washes is also less than the specified number of washes per cycle. Thus, the washing machine can continue cleaning the clothes to prevent them from being uncleaned. Once the target difference is less than or equal to the first threshold and the first number of washes is less than or equal to the second threshold, it indicates that the clothes are clean, and the cleaning process can be stopped at this point.
[0040] It should be noted that although the clothes may be washed clean, the turbidity sensor may become dirty, thus requiring turbidity value calibration. Specifically, the calibration procedure can be the same as in the above embodiments, and will not be repeated here.
[0041] To better implement the embodiments of this application, in one embodiment, determining the target turbidity value based on the target number of washes, the first turbidity value, and the second turbidity value includes: If the target number of washes is greater than the second threshold, the first turbidity value, the second turbidity value, and the initial turbidity value are calculated to obtain the fifth turbidity value; the second turbidity value and the initial turbidity value are calculated to obtain the sixth turbidity value; the fifth turbidity value and the sixth turbidity value are added together to obtain the target turbidity value.
[0042] The above embodiments provide a turbidity value calibration scheme, and the embodiments of this application also provide a calibration scheme.
[0043] Specifically, please refer to formula (1), which is shown below: Δ=(δn / Δ0)*Δ0+(1-(δn / Δ0))* (Δn+Δn+1) / 2……(1) It should be noted that in formula (1), (1-(δn / Δ0))* (Δn+Δn+1) / 2 is the fifth turbidity value; (δn / Δ0)*Δ0 is the sixth turbidity value; and Δ on the left side of the equal sign in formula (1) is the target turbidity value.
[0044] The fifth turbidity value is obtained by calculating and processing the first turbidity value, the second turbidity value, and the initial turbidity value, including: The first and second turbidity values are calculated and processed to obtain the seventh turbidity value, which can be referred to the (Δn+Δn+1) / 2 part of the above formula (1); The second target difference between the first turbidity value and the second turbidity value and the initial turbidity value are calculated and processed to obtain the eighth turbidity value. The part of (1-(δn / Δ0)) in the above formula (1) can be referred to. Multiply the seventh turbidity value and the eighth turbidity value to obtain the fifth turbidity value, which can be referred to as the multiplication of the two values in the above formula (1); The second turbidity value and the initial turbidity value are calculated to obtain the sixth turbidity value, which includes: Divide the second target difference and the initial turbidity value to obtain the ninth turbidity value, which can be referred to the (δn / Δ0) part of the above formula (1); Multiply the ninth turbidity value and the initial turbidity value to obtain the sixth turbidity value, which can be referred to as the (δn / Δ0)*Δ0 part of the above formula (1).
[0045] To better implement the embodiments of this application, in one embodiment, determining the target turbidity value based on the target number of washes, the first turbidity value, and the second turbidity value includes: If the target number of washes is less than or equal to the second threshold, the first turbidity value and the second turbidity value are added together to obtain the tenth turbidity value; the tenth turbidity value and the first parameter are divided to obtain the target turbidity value.
[0046] In this embodiment of the application, a scheme for calculating the target turbidity value is also provided, which can be referred to in formula (2) as follows: Δ= (Δn+Δn+1) / 2……(2) In formula (2), Δn is the first turbidity value, and Δn+1 is the second turbidity value. Δ is the target turbidity value.
[0047] To better implement the embodiments of this application, in one embodiment of this application, after obtaining the target number of washes, the first turbidity value, and the second turbidity value of the washing machine, the method further includes: If the target number of washes exceeds the second threshold, an alarm message is output to prompt the user to clean the turbidity sensor.
[0048] The above embodiments provide relevant implementation methods. However, if the turbidity sensor is contaminated with dirt and is not cleaned, it will continuously affect the cleaning process of the clothes. Therefore, if the target number of washes exceeds the second threshold, it means that the clothes cannot be cleaned. At this time, the washing machine can be stopped and an alarm message can be output to prompt the user to clean the turbidity sensor. After the user completes the cleaning of the turbidity sensor, they can provide feedback to the washing machine, and the washing machine can resume normal operation when it performs the cleaning task again.
[0049] It should be noted that, in this embodiment, the alarm information can be output through a voice signal prompting the cleaning sensor via the washing machine's speaker, or by displaying text about the cleaning sensor on the washing machine's control panel. Alternatively, if the washing machine communicates with the user's mobile phone via network, the user can be notified about the cleaning sensor via a mobile app or SMS. This embodiment does not limit the specific implementation of these methods.
[0050] To better implement the sensor calibration method in this application embodiment, this application embodiment also provides a sensor calibration device, which is applied to the turbidity sensor of a washing machine, such as... Figure 3 As shown, the device 300 includes: The acquisition module 301 is used to acquire the target number of washes, the first turbidity value, and the second turbidity value of the washing equipment; The determining module 302 is used to determine the target turbidity value based on the target number of washes, the first turbidity value, and the second turbidity value; The calibration module 303 is used to calibrate the initial turbidity value of the turbidity sensor according to the target turbidity value.
[0051] The sensor calibration device provided in this application can acquire the target number of washes already completed in the washing machine and the first and second turbidity values corresponding to two adjacent washes through the acquisition module 301. Then, the determination module 302 can determine the changed target turbidity value during two adjacent washes based on the first and second turbidity values. Finally, the calibration module 303 can calibrate the sensor based on the changed target turbidity value to avoid inaccurate turbidity detection by the sensor, which could lead to incorrect judgments that the clothes are not clean during washing.
[0052] In some embodiments of this application, the acquisition module 301 is specifically used for: Control the washing equipment to perform washing, and obtain the first washing cycle and the third turbidity value corresponding to the current washing cycle; The first target difference is determined based on the third turbidity value and the fourth turbidity value corresponding to the previous wash; Based on the first target difference and the first number of washes, the target number of washes, the first turbidity value, and the second turbidity value of the washing equipment are determined.
[0053] In some embodiments of this application, the acquisition module 301 is further configured to: If the first target difference is greater than the first threshold and the first number of washes is less than or equal to the second threshold, continue to execute the steps of controlling the washing equipment to wash and obtaining the first number of washes and the third turbidity value corresponding to the current wash of the washing equipment, until the first target difference is less than or equal to the first threshold and the first number of washes is less than or equal to the second threshold. The first number of washes is defined as the target number of washes, the third turbidity value is defined as the first turbidity value, and the fourth turbidity value is defined as the second turbidity value.
[0054] In some embodiments of this application, the determining module 302 is specifically used for: If the target number of washes is greater than the second threshold, the first turbidity value, the second turbidity value, and the initial turbidity value are calculated and processed to obtain the fifth turbidity value; The sixth turbidity value is obtained by calculating and processing the second turbidity value and the initial turbidity value; The fifth and sixth turbidity values are added together to obtain the target turbidity value.
[0055] In some embodiments of this application, the determining module 302 is further configured to: The first and second turbidity values are calculated and processed to obtain the seventh turbidity value; The second target difference between the first and second turbidity values and the initial turbidity value are calculated and processed to obtain the eighth turbidity value; The seventh and eighth turbidity values are multiplied together to obtain the fifth turbidity value; The second turbidity value and the initial turbidity value are calculated to obtain the sixth turbidity value, which includes: The second target difference and the initial turbidity value are divided to obtain the ninth turbidity value; The sixth turbidity value is obtained by multiplying the ninth turbidity value and the initial turbidity value.
[0056] In some embodiments of this application, the determining module 302 is further configured to: If the target number of washes is less than or equal to the second threshold, the first turbidity value and the second turbidity value are added together to obtain the tenth turbidity value; The target turbidity value is obtained by dividing the tenth turbidity value by the first parameter.
[0057] In some embodiments of this application, an alarm module may also be included, which is specifically used for: If the target number of washes exceeds the second threshold, an alarm message is output to prompt the user to clean the turbidity sensor.
[0058] This application also provides a washing machine, which includes a processor, a memory, and a computer program stored in the memory and executable on the processor. The processor executes the computer program to implement the steps of the sensor calibration method according to any one of the embodiments of this application. This washing machine integrates any one of the sensor calibration methods provided in the embodiments of this application, such as... Figure 4 As shown, it illustrates a structural schematic diagram of the washing machine involved in the embodiments of this application. Specifically: The washing machine may include components such as a processor 401 with one or more processing cores, a memory 402 with one or more computer-readable storage media, a power supply 403, and an input unit 404. Those skilled in the art will understand that... Figure 4 The washing machine structure shown does not constitute a limitation on the washing machine and may include more or fewer components than shown, or combine certain components, or have different component arrangements. Wherein: The processor 401 is the control center of the washing machine. It connects various parts of the washing machine via various interfaces and lines. By running or executing software programs and / or modules stored in the memory 402, and by calling data stored in the memory 402, it performs various functions and processes data, thereby providing overall monitoring of the washing machine. Optionally, the processor 401 may include one or more processing cores. The processor 401 may be a Central Processing Unit (CPU), or other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or any conventional processor. Preferably, the processor 401 may integrate an application processor and a modem processor. The application processor mainly handles the operating system, user interface, and applications, while the modem processor mainly handles wireless communication. It is understood that the modem processor may not be integrated into the processor 401.
[0059] The memory 402 can be used to store software programs and modules. The processor 401 executes various functional applications and data processing by running the software programs and modules stored in the memory 402. The memory 402 may mainly include a program storage area and a data storage area. The program storage area may store the operating system, application programs required for at least one function (such as sound playback function, image playback function, etc.), etc.; the data storage area may store data created based on the use of the washing machine, etc. In addition, the memory 402 may include high-speed random access memory, and may also include non-volatile memory, such as at least one disk storage device, flash memory device, or other volatile solid-state storage device. Accordingly, the memory 402 may also include a memory controller to provide the processor 401 with access to the memory 402.
[0060] The washing machine also includes a power supply 403 that supplies power to the various components. Preferably, the power supply 403 can be logically connected to the processor 401 through a power management system, thereby enabling functions such as charging, discharging, and power consumption management through the power management system. The power supply 403 may also include one or more DC or AC power supplies, a recharging system, a power fault detection circuit, a power converter or inverter, a power status indicator, or any other components.
[0061] The washing machine may also include an input unit 404, which can be used to receive input digital or character information, and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control.
[0062] Although not shown, the washing machine may also include a display unit, etc., which will not be described in detail here. Specifically, in this embodiment, the processor 401 in the washing machine loads the executable files corresponding to the processes of one or more applications into the memory 402 according to the following instructions, and the processor 401 runs the applications stored in the memory 402 to realize various functions, such as: Obtain the target number of washes, the first turbidity value, and the second turbidity value of the washing equipment; The target turbidity value is determined based on the target number of washes, the first turbidity value, and the second turbidity value. The initial turbidity value of the turbidity sensor is calibrated based on the target turbidity value.
[0063] Those skilled in the art will understand that all or part of the steps in the various methods of the above embodiments can be performed by instructions, or by instructions controlling related hardware. These instructions can be stored in a computer-readable storage medium and loaded and executed by a processor.
[0064] Therefore, embodiments of this application provide a computer-readable storage medium, which may include: read-only memory (ROM), random access memory (RAM), a magnetic disk, or an optical disk, etc. A computer program is stored thereon, and the computer program is loaded by a processor to execute the steps in any of the sensor calibration methods provided in embodiments of this application. For example, the computer program loaded by the processor can execute the following steps: Obtain the target number of washes, the first turbidity value, and the second turbidity value of the washing equipment; The target turbidity value is determined based on the target number of washes, the first turbidity value, and the second turbidity value. The initial turbidity value of the turbidity sensor is calibrated based on the target turbidity value.
[0065] In the above embodiments, the descriptions of each embodiment have different focuses. For parts not described in detail in a certain embodiment, please refer to the detailed descriptions of other embodiments above, which will not be repeated here.
[0066] In practice, each of the above units or structures can be implemented as an independent entity or can be arbitrarily combined to be implemented as the same or several entities. For the specific implementation of each of the above units or structures, please refer to the previous method embodiments, which will not be repeated here.
[0067] For details on the implementation of each of the above operations, please refer to the previous examples, which will not be repeated here.
[0068] The sensor calibration method and apparatus provided in the embodiments of this application have been described in detail above. Specific examples have been used to illustrate the principles and implementation methods of this application. The description of the above embodiments is only for the purpose of helping to understand the method and its core ideas. At the same time, for those skilled in the art, there will be changes in the specific implementation methods and application scope based on the ideas of this application. Therefore, the content of this specification should not be construed as a limitation of this application.
Claims
1. A sensor calibration method, characterized in that, The sensor calibration method is applied to the turbidity sensor of a washing machine, and the method includes: Obtain the target number of washes, the first turbidity value, and the second turbidity value of the washing equipment; The target turbidity value is determined based on the target number of washes, the first turbidity value, and the second turbidity value; The target turbidity value is determined based on the target number of washes, the first turbidity value, and the second turbidity value, including: If the target number of washes is greater than the second threshold, the first turbidity value, the second turbidity value, and the initial turbidity value of the turbidity sensor are calculated to obtain the fifth turbidity value. The second target difference and the initial turbidity value are calculated to obtain the sixth turbidity value; the second target difference is obtained based on the relationship between the first turbidity value and the second turbidity value. The fifth turbidity value and the sixth turbidity value are added together to obtain the target turbidity value; The initial turbidity value is calibrated based on the target turbidity value.
2. The sensor calibration method according to claim 1, characterized in that, The step of obtaining the target number of washes, the first turbidity value, and the second turbidity value of the washing equipment includes: Control the washing equipment to perform washing, and obtain the first washing number corresponding to the current washing and the third turbidity value corresponding to the current washing; Based on the third turbidity value and the fourth turbidity value corresponding to the previous wash, the first target difference is determined; Based on the first target difference and the first number of washes, the target number of washes, the first turbidity value, and the second turbidity value of the washing equipment are determined.
3. The sensor calibration method according to claim 2, characterized in that, The step of determining the target number of washes, the first turbidity value, and the second turbidity value of the washing equipment based on the first target difference and the first number of washes includes: If the first target difference is greater than the first threshold and the first number of washes is less than or equal to the second threshold, continue to execute the steps of controlling the washing equipment to wash, and obtaining the first number of washes and the third turbidity value corresponding to the current wash of the washing equipment, until the first target difference is less than or equal to the first threshold and the first number of washes is less than or equal to the second threshold. The first number of washes is determined as the target number of washes, the third turbidity value is determined as the first turbidity value, and the fourth turbidity value is determined as the second turbidity value.
4. The sensor calibration method according to claim 1, characterized in that, The step of calculating and processing the first turbidity value, the second turbidity value, and the initial turbidity value to obtain the fifth turbidity value includes: The first turbidity value and the second turbidity value are calculated and processed to obtain the seventh turbidity value; The second target difference between the first turbidity value and the second turbidity value and the initial turbidity value are calculated and processed to obtain the eighth turbidity value; The seventh turbidity value and the eighth turbidity value are multiplied together to obtain the fifth turbidity value; The calculation and processing of the second turbidity value and the initial turbidity value to obtain the sixth turbidity value includes: Divide the second target difference and the initial turbidity value to obtain the ninth turbidity value; The sixth turbidity value is obtained by multiplying the ninth turbidity value and the initial turbidity value.
5. The sensor calibration method according to claim 1, characterized in that, The step of determining the target turbidity value based on the target number of washes, the first turbidity value, and the second turbidity value includes: If the target number of washes is less than or equal to the second threshold, the first turbidity value and the second turbidity value are added together to obtain the tenth turbidity value; The target turbidity value is obtained by dividing the tenth turbidity value by the first parameter.
6. The sensor calibration method according to any one of claims 1 to 5, characterized in that, After obtaining the target number of washes, the first turbidity value, and the second turbidity value of the washing equipment, the method further includes: If the target number of washes exceeds the second threshold, an alarm message is output, which is used to prompt the user to clean the turbidity sensor.
7. A sensor calibration device, characterized in that, The sensor calibration device is used for the turbidity sensor of a washing machine, and the device includes: The acquisition module is used to acquire the target number of washes, the first turbidity value, and the second turbidity value of the washing equipment; The determining module is used to determine the target turbidity value based on the target number of washes, the first turbidity value, and the second turbidity value; The target turbidity value is determined based on the target number of washes, the first turbidity value, and the second turbidity value, including: If the target number of washes is greater than the second threshold, the first turbidity value, the second turbidity value, and the initial turbidity value of the turbidity sensor are calculated to obtain the fifth turbidity value. The second target difference and the initial turbidity value are calculated to obtain the sixth turbidity value; the second target difference is obtained based on the relationship between the first turbidity value and the second turbidity value. The fifth turbidity value and the sixth turbidity value are added together to obtain the target turbidity value; The calibration module is used to calibrate the initial turbidity value according to the target turbidity value.
8. A washing machine, characterized in that, The washing machine includes a processor, a memory, and a computer program stored in the memory and executable on the processor, the processor executing the computer program to implement the steps of the sensor calibration method according to any one of claims 1 to 6.
9. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that is executed by a processor to implement the steps of the sensor calibration method according to any one of claims 1 to 6.
Citation Information
Patent Citations
Laundry control method, intelligent washing machine and storage medium
CN111560732A
Washing process treatment method and device and electronic equipment
CN113930935A