Liquid level sensor calibration method, device, electronic device and storage medium
By calculating the temperature difference value of the thermistor and calibrating the liquid level sensor, the problem of inaccurate measurement of the liquid level sensor is solved, ensuring the accuracy of the liquid level sensor, and avoiding the risk of dry burning of the heating device.
Patent Information
- Application Number
- CN202210382399.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-04-12
- Publication Date
- 2025-05-13
- Estimated Expiration
- 2042-04-12
AI Technical Summary
When liquid level sensors are present before use, it may cause inaccurate measurements, which may cause the heating device to burn, causing safety hazards.
By obtaining the resistance change of the thermistor, the temperature difference value is calculated. When the temperature difference is greater than the threshold, the preset calibration height and the liquid level height measurement value of the liquid level sensor are obtained. If it does not match, the liquid level sensor will be calibrated based on the calibration height.
Ensure that the liquid level sensor can accurately measure the liquid level height in the laundry washing device, avoid dry burning of the heating device, and improve safety.
Smart Images

Figure CN114812758B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of sensor technology, and in particular to a calibration method, device, electronic equipment and storage medium for a liquid level sensor. Background Art
[0002] For laundry washing devices with heating function, a thermistor sensor is usually installed to detect the actual temperature reached during the laundry treatment process. In order to ensure the normal operation of the heating device, it is necessary to ensure that the heater is completely immersed in water.
[0003] In the related art, the liquid level in the washing device can be determined by a liquid level sensor, and then whether the heating device is completely submerged in water. The liquid level sensor determines the liquid level in the laundry washing device through the principle of a communicating vessel. If there is liquid in the communicating vessel before it is used, the liquid level sensor may measure the liquid level inaccurately, which may cause the heating device to dry burn and cause safety hazards. Therefore, how to calibrate the liquid level sensor has become a key research direction. Summary of the invention
[0004] The present disclosure aims to solve one of the technical problems in the related art at least to some extent.
[0005] The first embodiment of the present disclosure provides a method for calibrating a liquid level sensor, comprising:
[0006] Obtaining a first resistance value of the thermistor at a current moment and a second resistance value at a previous moment adjacent to the current moment;
[0007] Determining a temperature difference corresponding to the thermistor according to the first resistance value and the second resistance value;
[0008] In response to the temperature difference being greater than a first threshold, obtaining a preset calibration height and a liquid level measurement value measured by the liquid level sensor at a current moment;
[0009] In the event that the measured liquid level value does not match the calibrated height, the liquid level sensor is calibrated based on the calibrated height.
[0010] Optionally, calibrating the liquid level sensor based on the calibrated height includes:
[0011] Obtaining the actual frequency of the liquid level sensor at the current moment;
[0012] Determining the standard frequency corresponding to the calibration height according to a preset mapping curve;
[0013] The actual frequency of the liquid level sensor is calibrated based on the frequency difference between the actual frequency and the standard frequency.
[0014] Optionally, when the liquid level measurement value does not match the calibrated height, calibrating the liquid level sensor based on the calibrated height includes:
[0015] When the liquid level measurement value does not match the calibrated height, and the difference between the calibrated height and the liquid level measurement value is less than a second threshold, the liquid level sensor is calibrated based on the calibrated height.
[0016] Optionally, after the liquid level measurement value does not match the calibrated height, the method further includes:
[0017] When the difference between the calibrated height and the liquid level measurement value is greater than or equal to the second threshold, a liquid level sensor fault warning message is output.
[0018] Optionally, after calibrating the liquid level sensor according to the calibrated height, the method further includes:
[0019] The amount of water injected into the washing device is determined based on the output value of the calibrated liquid level sensor.
[0020] A second aspect of the present disclosure provides a calibration device for a liquid level sensor, comprising:
[0021] A first acquisition module, used to acquire a first resistance value of the thermistor at a current moment and a second resistance value at a previous moment adjacent to the current moment;
[0022] A first determining module, configured to determine a temperature difference corresponding to the thermistor according to the first resistance value and the second resistance value;
[0023] A second acquisition module, configured to acquire a preset calibration height and a liquid level measurement value measured by the liquid level sensor at a current moment in response to the temperature difference being greater than a first threshold;
[0024] The calibration module is used to calibrate the liquid level sensor based on the calibrated height when the height measurement value does not match the calibrated height.
[0025] Optionally, the calibration module is specifically used to:
[0026] Obtaining the actual frequency of the liquid level sensor at the current moment;
[0027] Determining the standard frequency corresponding to the calibration height according to a preset mapping curve;
[0028] The actual frequency of the liquid level sensor is calibrated based on the frequency difference between the actual frequency and the standard frequency.
[0029] Optionally, the calibration module is specifically used to:
[0030] When the liquid level measurement value does not match the calibrated height, and the difference between the calibrated height and the liquid level measurement value is less than a second threshold, the liquid level sensor is calibrated based on the calibrated height.
[0031] Optionally, also include:
[0032] The early warning module is used to output a fault early warning message of the liquid level sensor when the difference between the calibrated height and the liquid level measurement value is greater than or equal to the second threshold.
[0033] Optionally, also include:
[0034] The second determination module is used to determine the water injection amount in the washing device based on the output value of the calibrated liquid level sensor.
[0035] The third aspect of the present disclosure provides an electronic device, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the program, the calibration method of the liquid level sensor provided in the first aspect of the present disclosure is implemented.
[0036] The fourth aspect of the present disclosure provides a computer-readable storage medium storing a computer program. When the computer program is executed by a processor, the calibration method of the liquid level sensor provided in the first aspect of the present disclosure is implemented.
[0037] The fifth aspect of the present disclosure provides a computer program product. When an instruction processor in the computer program product executes, the calibration method of the liquid level sensor provided in the first aspect of the present disclosure is implemented.
[0038] The calibration method, device, electronic device and storage medium of the liquid level sensor provided by the present disclosure have the following beneficial effects:
[0039] In the disclosed embodiment, the first resistance value of the thermistor at the current moment and the second resistance value at the previous moment adjacent to the current moment are first obtained, and then the temperature difference value corresponding to the thermistor is determined according to the first resistance value and the second resistance value. When the temperature difference value is greater than the first threshold value, the preset calibration height and the liquid level height measurement value measured by the liquid level sensor at the current moment are obtained, and finally, when the liquid level height measurement value does not match the calibration height, the liquid level sensor is calibrated based on the calibration height. Thus, when the temperature difference value measured by the thermistor is greater than the first threshold value and the calibration height does not match the liquid level height measurement value, the liquid level sensor is calibrated according to the calibration height, so that the liquid level sensor can accurately measure the water injection amount in the laundry washing device.
[0040] Additional aspects and advantages of the present disclosure will be given in part in the following description and in part will be obvious from the following description or learned through practice of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] The above and / or additional aspects and advantages of the present disclosure will become apparent and easily understood from the following description of the embodiments in conjunction with the accompanying drawings, in which:
[0042] Figure 1 A schematic flow chart of a method for calibrating a liquid level sensor provided in one embodiment of the present disclosure;
[0043] Figure 2 A schematic flow chart of a method for calibrating a liquid level sensor provided by another embodiment of the present disclosure;
[0044] Figure 3 A schematic flow chart of a method for calibrating a liquid level sensor provided in one embodiment of the present disclosure;
[0045] Figure 4 A schematic flow chart of a method for calibrating a liquid level sensor provided by another embodiment of the present disclosure;
[0046] Figure 5 A schematic structural diagram of a calibration device for a liquid level sensor provided in another embodiment of the present disclosure;
[0047] Figure 6 A block diagram of an exemplary electronic device suitable for implementing embodiments of the present disclosure is shown. DETAILED DESCRIPTION
[0048] Embodiments of the present disclosure are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to be used to explain the present disclosure, and should not be construed as limiting the present disclosure.
[0049] The following describes the calibration method, device, electronic device and storage medium of the liquid level sensor according to the embodiments of the present disclosure with reference to the accompanying drawings.
[0050] Figure 1 A schematic flow chart of a method for calibrating a liquid level sensor provided in an embodiment of the present disclosure.
[0051] The embodiment of the present disclosure takes the calibration method of the liquid level sensor being configured in a calibration device of the liquid level sensor as an example. The calibration device of the liquid level sensor can be applied to any electronic device so that the electronic device can perform the calibration function of the liquid level sensor.
[0052] like Figure 1 As shown, the calibration method of the liquid level sensor may include the following steps:
[0053] Step 101, obtaining a first resistance value of the thermistor at a current moment and a second resistance value at a previous moment adjacent to the current moment.
[0054] It should be noted that in the disclosed embodiments, since the clothes washing device with heating function is usually equipped with a thermistor sensor, after the clothes washing device is started, if the water level does not reach the position of the thermistor, the resistance value of the thermistor is the resistance value corresponding to the room temperature, and when the water level in the clothes washing device reaches the position of the thermistor, the resistance value of the thermistor is the resistance value corresponding to the water temperature. Since there is a temperature difference between the room temperature and the water temperature, when the water level reaches the position of the thermistor, the resistance value of the thermistor will change, and then after detecting that the resistance value of the thermistor has changed, the liquid level sensor can be calibrated according to the calibrated height of the thermistor.
[0055] Among them, thermistor is a sensor resistor whose resistance value changes with the change of temperature. According to the temperature coefficient, it is divided into positive temperature coefficient thermistor (Positive Temperature Coefficient thermistor, PTCthermistor) and negative temperature coefficient thermistor (Negative Temperature Coefficient thermistor, NTC thermistor). The resistance value of positive temperature coefficient thermistor increases with the increase of temperature, while the resistance value of negative temperature coefficient thermistor decreases with the increase of temperature.
[0056] Optionally, in the embodiment of the present disclosure, the type of the thermistor may be a positive temperature coefficient thermistor or a negative temperature coefficient thermistor, which is not limited in the present disclosure.
[0057] The first resistance value may be the resistance value of the thermistor at the current moment, and the second resistance value may be the resistance value of the thermistor at the previous moment. For example, the second resistance value may be the resistance value 2 seconds before the current moment.
[0058] Step 102: determining a temperature difference corresponding to the thermistor according to the first resistance value and the second resistance value.
[0059] It is understandable that, according to the temperature characteristic curve corresponding to the thermistor, the first temperature corresponding to the first resistance value of the thermistor and the second temperature corresponding to the second resistance value can be determined, and then the difference between the first temperature and the second temperature can be determined.
[0060] Step 103, in response to the temperature difference being greater than the first threshold, obtaining a preset calibration height and a liquid level measurement value measured by the liquid level sensor at the current moment.
[0061] The first threshold may be a preset threshold, for example, the first threshold may be 1 degree or 1.5 degrees, which is not limited in the present disclosure.
[0062] The preset calibration height may be the position of the thermistor in the laundry washing device.
[0063] It can be understood that when the temperature difference is greater than the first threshold, it means that the first resistance of the thermistor is the resistance measured by the thermistor at water temperature, and the second resistance of the thermistor is the resistance measured by the thermistor at room temperature. That is, the temperature difference is greater than the first threshold, indicating that the water level in the laundry washing device has just reached the position where the thermistor is located. Then, the preset calibration height and the liquid level height measurement value measured by the liquid level sensor at the current moment can be obtained.
[0064] Step 104: When the measured liquid level height does not match the calibrated height, calibrate the liquid level sensor based on the calibrated height.
[0065] It is understandable that when the measured value of the liquid level does not match the calibrated height, it means that there may be an error in the output value of the liquid level sensor. Therefore, the liquid level sensor can be calibrated according to the calibration scale corresponding to the thermistor. That is, the parameters of the liquid level sensor can be adjusted so that the measured value of the liquid level measured by the liquid level sensor at the current moment matches the calibrated height. This makes the water level in the laundry washing device measured by the liquid level sensor more accurate, thereby avoiding the inaccurate output value of the liquid level sensor, which causes the heating device in the laundry washing device to be in a dry-burning state.
[0066] In the disclosed embodiment, the first resistance value of the thermistor at the current moment and the second resistance value at the previous moment adjacent to the current moment are first obtained, and then the temperature difference value corresponding to the thermistor is determined according to the first resistance value and the second resistance value. When the temperature difference value is greater than the first threshold value, the preset calibration height and the liquid level height measurement value measured by the liquid level sensor at the current moment are obtained, and finally, when the liquid level height measurement value does not match the calibration height, the liquid level sensor is calibrated based on the calibration height. Thus, when the temperature difference value measured by the thermistor is greater than the first threshold value and the calibration height does not match the liquid level height measurement value, the liquid level sensor is calibrated according to the calibration height, so that the liquid level sensor can accurately measure the water injection amount in the laundry washing device.
[0067] Figure 2 A flow chart of a method for calibrating a liquid level sensor provided by another embodiment of the present disclosure is shown as follows: Figure 2 As shown, the calibration method of the liquid level sensor may include the following steps:
[0068] Step 201, obtaining a first resistance value of the thermistor at a current moment and a second resistance value at a previous moment adjacent to the current moment.
[0069] Step 202, determining a temperature difference corresponding to the thermistor according to the first resistance value and the second resistance value.
[0070] Step 203, in response to the temperature difference being greater than the first threshold, obtaining a preset calibration height and a liquid level measurement value measured by the liquid level sensor at the current moment.
[0071] The specific implementation forms of steps 201 to 203 may refer to the detailed descriptions in other embodiments of the present disclosure and will not be described in detail here.
[0072] Step 204: when the measured liquid level height does not match the calibrated height, obtain the actual frequency of the liquid level sensor at the current moment.
[0073] It is understandable that for a liquid level sensor whose output value is frequency, the water level can be determined based on the frequency output by the liquid level sensor. Therefore, when the measured value of the liquid level does not match the calibrated height, that is, when there is an error in the liquid level measured by the liquid level sensor, the actual frequency of the liquid level sensor at the current moment can be further obtained.
[0074] Step 205: Determine the standard frequency corresponding to the calibration height according to the preset mapping curve.
[0075] The preset mapping curve is a mapping curve between the frequency corresponding to the liquid level sensor and the liquid level height, that is, each frequency corresponds to a liquid level height.
[0076] The standard frequency may be an output frequency of the liquid level sensor corresponding to a case where the liquid level measured by the liquid level sensor is equal to the calibrated height.
[0077] Step 206: calibrate the actual frequency of the liquid level sensor based on the frequency difference between the actual frequency and the standard frequency.
[0078] It is understandable that after obtaining the standard frequency and the actual frequency, the error of the liquid level sensor can be determined according to the frequency difference between the actual frequency and the standard frequency, and then the actual frequency of the liquid level sensor can be calibrated based on the frequency difference. That is, the frequency difference can be superimposed on the output frequency of the liquid level sensor to obtain the calibrated frequency.
[0079] Optionally, the frequency difference between the actual frequency and the standard frequency can be a positive value or a negative value, which is not limited in the present disclosure. For example, if the frequency difference is a positive value, the frequency difference can be added to the output frequency of the liquid level sensor to obtain a calibrated frequency, and then the liquid level in the washing device is determined based on the calibrated frequency.
[0080] Step 207, determining the amount of water injected into the washing device based on the output value of the calibrated liquid level sensor.
[0081] It can be understood that after the liquid level sensor is calibrated, the amount of water injected into the washing device can be accurately determined based on the output value of the calibrated liquid level sensor.
[0082] In the disclosed embodiment, the first resistance value of the thermistor at the current moment and the second resistance value at the previous moment adjacent to the current moment are first obtained, and then the temperature difference value corresponding to the thermistor is determined based on the first resistance value and the second resistance value. When the temperature difference value is greater than the first threshold value, the preset calibration height and the liquid level measurement value measured by the liquid level sensor at the current moment are obtained, and then when the liquid level measurement value does not match the calibration height, the actual frequency of the liquid level sensor at the current moment and the standard frequency corresponding to the calibration height are obtained, and the water injection amount in the washing device is determined based on the output value of the calibrated liquid level sensor. Thus, when the liquid level measurement value does not match the calibration height, the frequency of the liquid level sensor can be calibrated, and then the water injection amount in the washing device can be accurately determined based on the calibrated liquid level sensor, so as to avoid the inaccurate measurement of the water injection amount due to the error of the liquid level sensor, thereby causing the heating device to be in a dry-burning state or the washing device to overflow.
[0083] Figure 3 A flow chart of a method for calibrating a liquid level sensor provided by another embodiment of the present disclosure is shown as follows: Figure 3 As shown, the calibration method of the liquid level sensor may include the following steps:
[0084] Step 301, obtaining a first resistance value of the thermistor at a current moment and a second resistance value at a previous moment adjacent to the current moment.
[0085] Step 302, determining a temperature difference corresponding to the thermistor according to the first resistance value and the second resistance value.
[0086] Step 303: in response to the temperature difference being greater than the first threshold, obtaining a preset calibration height and a liquid level measurement value measured by the liquid level sensor at the current moment.
[0087] The specific implementation forms of steps 301 to 303 may refer to the detailed descriptions in other embodiments of the present disclosure and will not be described in detail here.
[0088] Step 304: when the height measurement value does not match the calibrated height and the difference between the calibrated height and the liquid level measurement value is less than a second threshold, calibrate the liquid level sensor based on the calibrated height.
[0089] It should be noted that, when the height measurement value does not match the calibrated height, the liquid level sensor may have an error, or the liquid level sensor may fail to measure the liquid level. Therefore, when the height measurement value does not match the calibrated height, it can be further determined whether the liquid level sensor has an error or a failure based on the relationship between the difference between the calibrated height and the liquid level measurement value and the second threshold.
[0090] The second threshold value may be a preset threshold value, such as 1 cm, 2 cm, etc., which is not limited in the present disclosure. For example, if the second threshold value is 1 cm, and the difference between the calibration height and the liquid level measurement value is less than 1 cm, the liquid level sensor may be calibrated according to the calibration height.
[0091] Step 305: When the height measurement value does not match the calibrated height, and the difference between the calibrated height and the liquid level measurement value is greater than or equal to a second threshold, output a liquid level sensor fault warning message.
[0092] It can be understood that when the difference in the liquid level measurement values is greater than or equal to the second threshold, it indicates that the liquid level sensor may be faulty. Therefore, fault warning information of the liquid level sensor can be output to prompt the user of the washing device or the inspector of the washing device that the liquid level sensor is faulty.
[0093] Optionally, the fault warning information may be a sound warning. Alternatively, for a smart washing device, the fault warning information may be a fault message sent to an associated device (eg, a mobile phone) of the washing device.
[0094] In the disclosed embodiment, the first resistance value of the thermistor at the current moment and the second resistance value at the previous moment adjacent to the current moment are first obtained, and then the temperature difference value corresponding to the thermistor is determined based on the first resistance value and the second resistance value. When the temperature difference value is greater than the first threshold value, the preset calibration height and the liquid level height measurement value measured by the liquid level sensor at the current moment are obtained. Finally, when the height measurement value does not match the calibration height, it is determined whether the liquid level sensor has an error or a fault according to whether the difference between the calibration height and the liquid level height measurement value is less than the second threshold value. In this way, the cause of the inaccuracy of the liquid level sensor can be accurately determined. If the liquid level sensor has an error, the liquid level sensor can be calibrated according to the calibration height. If the liquid level sensor fails, an early warning message can be issued in a timely manner.
[0095] Figure 4 A flow chart of a method for calibrating a liquid level sensor provided by another embodiment of the present disclosure is shown as follows: Figure 4 As shown, the calibration method of the liquid level sensor may include the following steps:
[0096] Step 401, start the washing program.
[0097] Step 402, determining whether the temperature difference measured by the thermistor is greater than a first threshold, if so, executing step 403, if not, executing step 408.
[0098] Step 403, obtaining the set calibration height and the liquid level height measurement value measured by the liquid level sensor at the current moment.
[0099] Step 404, determine whether the measured liquid level height matches the calibrated height, if so, execute step 405; if not, execute step 408.
[0100] Step 405 , determining whether the difference between the calibrated height and the liquid level measurement value is less than a second threshold value, if so, executing step 406 ; if not, executing step 407 .
[0101] Step 406, calibrate the liquid level sensor based on the calibration height.
[0102] Step 407: output a liquid level sensor fault warning message.
[0103] Step 408: Fill water to the target water level.
[0104] In the disclosed embodiment, the liquid level sensor may be calibrated during the washing process, so that the liquid level sensor may accurately determine the amount of water injected into the washing device.
[0105] In order to implement the above embodiments, the present disclosure also proposes a calibration device for a liquid level sensor.
[0106] Figure 5 A schematic diagram of the structure of a calibration device for a liquid level sensor provided in an embodiment of the present disclosure.
[0107] like Figure 5 As shown, the calibration device 500 of the liquid level sensor may include: a first determination module 510 , a second determination module 520 , and a first sending module 530 .
[0108] A first acquisition module 510, used to acquire a first resistance value of the thermistor at a current moment and a second resistance value at a previous moment adjacent to the current moment;
[0109] A first determination module 520, configured to determine a temperature difference corresponding to the thermistor according to the first resistance value and the second resistance value;
[0110] A second acquisition module 530, for acquiring a preset calibration height and a liquid level measurement value measured by the liquid level sensor at a current moment in response to the temperature difference being greater than a first threshold;
[0111] The calibration module 540 is used to calibrate the liquid level sensor based on the calibrated height when the height measurement value does not match the calibrated height.
[0112] Optionally, the calibration module 540 is specifically used for:
[0113] Get the actual frequency of the liquid level sensor at the current moment;
[0114] According to the preset mapping curve, determine the standard frequency corresponding to the calibration height;
[0115] Based on the frequency difference between the actual frequency and the standard frequency, the actual frequency of the liquid level sensor is calibrated.
[0116] Optionally, the calibration module 540 is specifically used for:
[0117] When the measured value of the liquid level does not match the calibrated height, and the difference between the calibrated height and the measured value of the liquid level is less than a second threshold, the liquid level sensor is calibrated based on the calibrated height.
[0118] Optionally, also include:
[0119] The early warning module is used to output a liquid level sensor fault early warning message when the difference between the calibrated height and the liquid level measurement value is greater than or equal to a second threshold.
[0120] Optionally, also include:
[0121] The second determination module is used to determine the water injection amount in the washing device based on the output value of the calibrated liquid level sensor.
[0122] The functions and specific implementation principles of the above modules in the embodiments of the present disclosure can be referred to the above method embodiments, and will not be repeated here.
[0123] The calibration device of the liquid level sensor of the disclosed embodiment first obtains the first resistance value of the thermistor at the current moment and the second resistance value at the previous moment adjacent to the current moment, then determines the temperature difference value corresponding to the thermistor based on the first resistance value and the second resistance value, and obtains the preset calibration height and the liquid level height measurement value measured by the liquid level sensor at the current moment when the temperature difference value is greater than the first threshold value, and finally calibrates the liquid level sensor based on the calibration height when the liquid level height measurement value does not match the calibration height. Thus, when the temperature difference value measured by the thermistor is greater than the first threshold value and the calibration height does not match the liquid level height measurement value, the liquid level sensor is calibrated based on the calibration height, so that the liquid level sensor can accurately measure the water injection amount in the laundry washing device.
[0124] In order to implement the above embodiments, the present disclosure further proposes an electronic device, including: a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the program, the calibration method of the liquid level sensor proposed in the above embodiments of the present disclosure is implemented.
[0125] In order to implement the above embodiments, the present disclosure further proposes a computer-readable storage medium storing a computer program. When the computer program is executed by a processor, the calibration method of the liquid level sensor proposed in the above embodiments of the present disclosure is implemented.
[0126] In order to implement the above embodiments, the present disclosure further proposes a computer program product. When the instruction processor in the computer program product executes, the calibration method of the liquid level sensor proposed in the above embodiments of the present disclosure is implemented.
[0127] Figure 6 A block diagram of an exemplary electronic device suitable for implementing embodiments of the present disclosure is shown. Figure 6 The electronic device 12 shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.
[0128] like Figure 6 As shown, the electronic device 12 is in the form of a general purpose computing device. The components of the electronic device 12 may include, but are not limited to: one or more processors or processing units 16, a system memory 28, and a bus 18 that connects various system components (including the system memory 28 and the processing unit 16).
[0129] The bus 18 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, a graphics acceleration port, a processor or a local bus using any of a variety of bus structures. For example, these architectures include but are not limited to Industry Standard Architecture (ISA) bus, Micro Channel Architecture (MAC) bus, Enhanced ISA bus, Video Electronics Standards Association (VESA) local bus and Peripheral Component Interconnection (PCI) bus.
[0130] The electronic device 12 typically includes a variety of computer system readable media. These media can be any available media that can be accessed by the electronic device 12, including volatile and non-volatile media, removable and non-removable media.
[0131] The memory 28 may include computer system readable media in the form of volatile memory, such as random access memory (RAM) 30 and / or cache memory 32. The electronic device 12 may further include other removable / non-removable, volatile / non-volatile computer system storage media. By way of example only, the storage system 34 may be used to read and write non-removable, non-volatile magnetic media ( Figure 6 not shown, usually called a "hard drive"). Although Figure 6 Not shown in the figure, a disk drive for reading and writing a removable non-volatile disk (e.g., a "floppy disk"), and an optical disk drive for reading and writing a removable non-volatile optical disk (e.g., a compact disc read only memory (CD-ROM), a digital versatile disc read only memory (DVD-ROM), or other optical media) may be provided. In these cases, each drive may be connected to the bus 18 via one or more data medium interfaces. The memory 28 may include at least one program product having a set (e.g., at least one) of program modules configured to perform the functions of the various embodiments of the present disclosure.
[0132] A program / utility 40 having a set (at least one) of program modules 42 may be stored, for example, in the memory 28, such program modules 42 including but not limited to an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment. The program modules 42 generally perform the functions and / or methods of the embodiments described in the present disclosure.
[0133] The electronic device 12 may also communicate with one or more external devices 14 (e.g., keyboards, pointing devices, displays 24, etc.), may also communicate with one or more devices that enable a user to interact with the electronic device 12, and / or may communicate with any device that enables the electronic device 12 to communicate with one or more other computing devices (e.g., network cards, modems, etc.). Such communication may be performed via an input / output (I / O) interface 22. Furthermore, the electronic device 12 may also communicate with one or more networks (e.g., a local area network (LAN), a wide area network (WAN), and / or a public network, such as the Internet) via a network adapter 20. As shown, the network adapter 20 communicates with other modules of the electronic device 12 via a bus 18. It should be understood that, although not shown in the figure, other hardware and / or software modules may be used in conjunction with the electronic device 12, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.
[0134] The processing unit 16 executes various functional applications and data processing by running programs stored in the system memory 28, such as implementing the methods mentioned in the above embodiments.
[0135] The technical solution disclosed in the present invention first obtains the first resistance value of the thermistor at the current moment and the second resistance value at the previous moment adjacent to the current moment, then determines the temperature difference value corresponding to the thermistor based on the first resistance value and the second resistance value, and when the temperature difference value is greater than the first threshold value, obtains the preset calibration height and the liquid level height measurement value measured by the liquid level sensor at the current moment, and finally calibrates the liquid level sensor based on the calibration height when the liquid level height measurement value does not match the calibration height. Thus, when the temperature difference value measured by the thermistor is greater than the first threshold value and the calibration height does not match the liquid level height measurement value, the liquid level sensor is calibrated based on the calibration height, so that the liquid level sensor can accurately measure the water injection amount in the laundry washing device.
[0136] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" etc. 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 disclosure. In this specification, the schematic representations of the above terms do 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. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, without contradiction.
[0137] 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. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one of the features. In the description of the present disclosure, "plurality" means at least two, such as two, three, etc., unless otherwise clearly and specifically defined.
[0138] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, segment or portion of code that includes one or more executable instructions for implementing the steps of a custom logical function or process, and the scope of the preferred embodiments of the present disclosure includes additional implementations in which functions may not be performed in the order shown or discussed, including performing functions in a substantially simultaneous manner or in reverse order depending on the functions involved, which should be understood by technicians in the technical field to which the embodiments of the present disclosure belong.
[0139] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as an ordered list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by an instruction execution system, device or apparatus (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 apparatus and execute instructions), or in combination with these instruction execution systems, devices or apparatuses. 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 apparatus, or in combination with these instruction execution systems, devices or apparatuses. More specific examples of computer-readable media (a non-exhaustive list) include the following: an electrical connection with one or more wires (electronic device), a portable computer disk box (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), a fiber optic 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.
[0140] It should be understood that the various parts of the present disclosure can be implemented in hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, multiple steps or methods can be implemented in software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, any one of the following technologies known in the art or a combination thereof can be used to implement: 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.
[0141] A person skilled in the art may understand that all or part of the steps in the method for implementing the above-mentioned embodiment may be completed by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, which, when executed, includes one or a combination of the steps of the method embodiment.
[0142] In addition, each functional unit in each embodiment of the present disclosure may be integrated into a processing module, or each unit may exist physically separately, or two or more units may be integrated into one module. The above-mentioned integrated module may be implemented in the form of hardware or in the form of a software functional module. If the integrated module is implemented in the form of a software functional module and sold or used as an independent product, it may also be stored in a computer-readable storage medium.
[0143] The storage medium mentioned above may be a read-only memory, a disk or an optical disk, etc. Although the embodiments of the present disclosure have been shown and described above, it can be understood that the above embodiments are exemplary and cannot be understood as limitations of the present disclosure. A person of ordinary skill in the art may change, modify, replace and modify the above embodiments within the scope of the present disclosure.
Claims
1. A method for calibrating a liquid level sensor, characterized in that: include: Obtaining a first resistance value of the thermistor at a current moment and a second resistance value at a previous moment adjacent to the current moment; Determining a temperature difference corresponding to the thermistor according to the first resistance value and the second resistance value; In response to the temperature difference being greater than a first threshold, obtaining a preset calibration height and a liquid level measurement value measured by the liquid level sensor at a current moment; In the event that the measured liquid level value does not match the calibrated height, the liquid level sensor is calibrated based on the calibrated height.
2. The method according to claim 1, characterized in that: The step of calibrating the liquid level sensor based on the calibrated height includes: Obtaining the actual frequency of the liquid level sensor at the current moment; Determining the standard frequency corresponding to the calibration height according to a preset mapping curve; The actual frequency of the liquid level sensor is calibrated based on the frequency difference between the actual frequency and the standard frequency.
3. The method according to claim 1, characterized in that When the liquid level measurement value does not match the calibrated height, calibrating the liquid level sensor based on the calibrated height includes: When the liquid level measurement value does not match the calibrated height, and the difference between the calibrated height and the liquid level measurement value is less than a second threshold, the liquid level sensor is calibrated based on the calibrated height.
4. The method according to claim 3, characterized in that After the liquid level measurement value does not match the calibrated height, the method further includes: When the difference between the calibrated height and the liquid level measurement value is greater than or equal to the second threshold, the liquid level sensor fault warning message is output.
5. The method according to any one of claims 1 to 4, characterized in that: After calibrating the liquid level sensor according to the calibrated height, the method further comprises: The amount of water injected into the washing device is determined based on the output value of the calibrated liquid level sensor.
6. A calibration device for a liquid level sensor, characterized in that: include: A first acquisition module, used to acquire a first resistance value of the thermistor at a current moment and a second resistance value at a previous moment adjacent to the current moment; A first determining module, configured to determine a temperature difference corresponding to the thermistor according to the first resistance value and the second resistance value; A second acquisition module, configured to acquire a preset calibration height and a liquid level height measurement value measured by the liquid level sensor at a current moment in response to the temperature difference being greater than a first threshold; The calibration module is used to calibrate the liquid level sensor based on the calibrated height when the height measurement value does not match the calibrated height.
7. The device according to claim 6, characterized in that The calibration module is specifically used for: Obtaining the actual frequency of the liquid level sensor at the current moment; Determining the standard frequency corresponding to the calibration height according to a preset mapping curve; The actual frequency of the liquid level sensor is calibrated based on the frequency difference between the actual frequency and the standard frequency.
8. The device according to claim 6, characterized in that The calibration module is specifically used for: When the liquid level measurement value does not match the calibrated height, and the difference between the calibrated height and the liquid level measurement value is less than a second threshold, the liquid level sensor is calibrated based on the calibrated height.
9. The device according to claim 8, characterized in that Also includes: The early warning module is used to output a fault early warning message of the liquid level sensor when the difference between the calibrated height and the liquid level measurement value is greater than or equal to the second threshold.
10. The device according to any one of claims 6 to 9, characterized in that: Also includes: The second determination module is used to determine the water injection amount in the washing device based on the output value of the calibrated liquid level sensor.
11. An electronic device, characterized in that: The invention comprises a memory, a processor and a computer program stored in the memory and executable on the processor. When the processor executes the program, the calibration method of the liquid level sensor as claimed in any one of claims 1 to 5 is implemented.
12. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the calibration method of the liquid level sensor as described in any one of claims 1 to 5 is implemented.
13. A computer program product, characterized in that The invention comprises a computer program, which, when executed by a processor, implements the calibration method of the liquid level sensor according to any one of claims 1 to 5.
Citation Information
Patent Citations
Temperature compensation method for water level sensor for washing machine and washing machine employing temperature compensation method
CN106521888A
Boiler liquid level measuring system and boiler liquid level measuring method
CN107957283A