Washing machine water inlet control method and device based on PID control and medium
By measuring clothing characteristic information and using PID control algorithms, the amount of water entering the washing machine is accurately controlled, solving the problem of inaccurate washing water in the existing technology, improving the cleaning effect and reducing water waste.
Patent Information
- Application Number
- CN202310355322.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-04-04
- Publication Date
- 2024-10-15
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
The determination of the washing water volume in existing washing machines is not accurate enough, which affects the washing effect, and there is a problem of water waste.
By measuring the weight, material and height of the clothes to be cleaned, the target water inflow is calculated, and the PID control algorithm is used to accurately control the water inflow to ensure that the water inflow is stopped when the water level difference is within the preset error threshold.
It achieves precise control of the amount of water entering the washing machine, improves the clothes cleaning effect, and reduces water waste.
Smart Images

Figure CN118773873A_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the field of electrical appliance technology, and specifically relates to a washing machine water inlet control method, device and medium based on PID control. Background Art
[0002] Nowadays, almost every household uses a washing machine to wash clothes. You can inject a suitable amount of water into the washing machine to wash the clothes.
[0003] In the prior art, a user can select a low water level, a medium water level or a high water level according to a water level button to inject a corresponding amount of washing water into the washing machine, or the washing machine directly injects a default amount of washing water into the washing machine to wash the clothes.
[0004] However, the amount of washing water determined by this method is not accurate enough, which affects the washing effect of the washing machine. Summary of the invention
[0005] The present application provides a washing machine water inlet control method, device and medium based on PID control, which is used to solve the technical problem in the prior art that the determined washing water amount is not accurate enough to affect the washing effect of the washing machine.
[0006] In a first aspect, the present application provides a method for controlling water inlet of a washing machine, the method comprising:
[0007] Determine characteristic information of the clothes to be washed, the characteristic information including: weight information, material information, and height information of the clothes to be washed in the tub;
[0008] Determine a target water intake according to the weight information, the material information, and the height information;
[0009] Determining a target water level according to the target water inflow;
[0010] Acquire the current water level of the washing machine, and calculate the water level difference between the current water level and the target water level;
[0011] Determine the water intake amount through a PID control algorithm according to the water level difference;
[0012] controlling water inlet to the washing machine according to the water inlet amount;
[0013] When the water level difference is less than or equal to a preset error threshold, the washing machine is controlled to stop taking in water and wash the laundry.
[0014] In the above preferred technical solution of the washing machine water inlet control method, the water inlet amount is determined by a PID control algorithm according to the water level difference, including:
[0015] Determine the calculation parameters of the PID control algorithm according to the characteristic information or the water level difference, wherein the calculation parameters include: a proportional coefficient, an integral coefficient, and a differential coefficient of the PID control algorithm;
[0016] The water level difference is used as the input of the PID control algorithm, and the output of the PID control algorithm is determined as the water inflow.
[0017] In the above preferred technical solution of the washing machine water inlet control method, the calculation parameters of the PID control algorithm are determined according to the characteristic information or the water level difference, including:
[0018] The characteristic information or the water level difference is input into a pre-trained neural network model, and the pre-trained neural network model outputs the calculation parameter.
[0019] In the above preferred technical solution of the washing machine water inlet control method, the step of determining the calculation parameters of the PID control algorithm according to the characteristic information or the water level difference value further includes:
[0020] Determine a first weight weight, a first material weight, a first height weight, and a first water level difference weight respectively according to the weight information, the material information, the height information, and the water level difference;
[0021] The calculation parameters are determined according to the correspondence between the weight information and the proportional coefficient and the first weight weight, the correspondence between the material information and the proportional coefficient and the first material weight, the correspondence between the height information and the proportional coefficient and the first height weight, the correspondence between the water level difference and the proportional coefficient and the first water level difference weight.
[0022] In the above preferred technical solution of the washing machine water inlet control method, the step of determining the target water inlet amount according to the weight information, the material information and the height information includes:
[0023] Determine a second weight, a second material weight, and a second height weight according to the weight information, the material information, and the height information;
[0024] The target water inflow volume is determined based on the correspondence between the weight information and the target water inflow volume and the second weight weight, the correspondence between the material information and the target water inflow volume and the second material weight, and the correspondence between the height information and the target water inflow volume and the second height weight.
[0025] In the above preferred technical solution of the method for controlling water inlet of a washing machine, the step of obtaining the current water level of the washing machine and calculating the water level difference between the current water level and the target water level includes:
[0026] Within a first preset time period when water inlet is started, a plurality of groups of current water levels are measured by a water level sensor at intervals of a second preset time period;
[0027] Calculate the average water level of several groups of current water levels;
[0028] The water level difference between the water level average value and the target water level is calculated.
[0029] In the above preferred technical solution of the method for controlling water inlet of a washing machine, the step of determining characteristic information of the clothes to be washed includes:
[0030] Measuring the height information of the laundry to be washed in the tub by a height sensor;
[0031] Measuring the weight information of the laundry to be washed by a weight sensor;
[0032] The material information of the clothes to be washed is determined according to the material selection information input by the user or the image recognition result of the clothes to be washed, wherein the material selection information is used to indicate the material of the clothes to be washed.
[0033] In the above preferred technical solution of the washing machine water inlet control method, when the water level difference is less than or equal to the preset error threshold, the method further includes:
[0034] Turn off the power of the water level sensor, the height sensor, and the weight sensor.
[0035] In a second aspect, the present application provides a washing machine water inlet control device based on PID control, the device comprising:
[0036] The first determination module is used to:
[0037] Determining characteristic information of the clothes to be washed, the characteristic information including: weight information, material information, and height information of the clothes to be washed;
[0038] The second determination module is used for:
[0039] Determine a target water intake according to the weight information, the material information, and the height information;
[0040] Determining a target water level according to the target water inflow;
[0041] Acquire the current water level of the washing machine, and calculate the water level difference between the current water level and the target water level;
[0042] PID control module for:
[0043] Determine the water intake amount through a PID control algorithm according to the water level difference;
[0044] controlling water inlet to the washing machine according to the water inlet amount;
[0045] When the water level difference is less than or equal to a preset error threshold, the washing machine is controlled to stop taking in water and wash the laundry.
[0046] In a third aspect, the present application provides a washing machine water inlet control device based on PID control, the device comprising: a height sensor, a weight sensor, a water level sensor, a memory and a processor;
[0047] The height sensor is used to measure the height information of the clothes to be washed;
[0048] The weight sensor is used to measure the weight information of the clothes to be washed;
[0049] The water level sensor is used to measure the current water level of the washing machine;
[0050] The memory is used to store computer programs;
[0051] The processor is used to execute the computer program stored in the memory to implement the washing machine water inlet control method based on PID control as described above.
[0052] In a fourth aspect, the present application provides a readable storage medium having a computer program stored thereon; the computer program is used to implement the washing machine water inlet control method based on PID control as described above.
[0053] The washing machine water inlet control method, device and medium based on PID control provided in the present application, after calculating the accurate water inlet volume according to the weight information, material information and height information of the clothes to be washed in the barrel, further accurately controls the water inlet volume through the PID control algorithm, thereby improving the clothing washing effect and reducing the waste of water resources by accurately controlling the water volume. BRIEF DESCRIPTION OF THE DRAWINGS
[0054] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0055] Figure 1 is a flow chart of a washing machine water inlet control method provided by an embodiment of the present application;
[0056] Figure 2It is a schematic diagram of PID control provided in an embodiment of the present application;
[0057] Figure 3 It is a flow chart of a method for determining water inflow according to characteristic information and water level difference provided in an embodiment of the present application;
[0058] Figure 4 Schematic diagram of a washing machine water inlet control device based on PID control provided in an embodiment of the present application;
[0059] Figure 5 It is a schematic diagram of a washing machine water inlet control device based on PID control provided in an embodiment of the present application.
[0060] The above drawings have shown clear embodiments of the present application, which will be described in more detail later. These drawings and text descriptions are not intended to limit the scope of the present application in any way, but to illustrate the concept of the present application to those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION
[0061] In order to make the purpose, technical solutions and advantages of this application clearer, the technical solutions in this application will be clearly and completely described below in conjunction with the drawings in this application. Obviously, the described embodiments are part of the embodiments of this application, not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0062] The terms "first", "second", "third", "fourth", etc. (if any) in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the numbers used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in sequences other than those illustrated or described herein, for example.
[0063] In the embodiments of the present application, the words "exemplary" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way.
[0064] The amount of water entering the washing machine has a great impact on the washing effect of clothes: too much water entering will cause the detergent to be diluted, thus affecting the washing effect, and will also cause a waste of water resources; too little water entering will lead to uneven and insufficient washing of clothes. If the material of the clothes is special, the clothes may be damaged due to friction between the clothes and the inner wall of the washing machine.
[0001] In the prior art, the user can select a low water level, a middle water level or a high water level according to the water level button to inject the washing water corresponding to the low water level, the middle water level or the high water level into the washing machine, or the washing machine directly injects the default washing water into the washing machine to wash the clothes. However, the type and weight of the clothes that the user wants to wash may be different each time, and the simple water level division cannot meet the actual needs of the user.
[0002] Therefore, in order to solve the problem of inaccurate water intake of washing machines in the prior art, the technical concept of the present application is to measure the weight information, material information, and height information of the clothes to be washed in the washing machine, and calculate the optimal target water intake of the clothes to be washed based on these data. At the same time, the PID control algorithm is used to control the water intake of the washing machine to ensure that the error between the actual water intake of the washing machine and the target water intake is small, thereby achieving the purpose of accurately controlling the water intake of the washing machine.
[0003] The technical solution of the present application and how the technical solution of the present application solves the above-mentioned technical problems are described in detail below with specific embodiments. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present application will be described below in conjunction with the accompanying drawings.
[0004] A possible embodiment of the present application provides a method for controlling water inlet of a washing machine. Figure 1 : is a flow chart of a washing machine water inlet control method provided in an embodiment of the present application, such as Figure 1 As shown, the method includes:
[0005] S101, determining characteristic information of the clothes to be washed, the characteristic information including: weight information, material information, and height information of the clothes to be washed in the tub;
[0006] The material selection information is used to indicate the material of the clothes to be washed, the weight information of the clothes to be washed indicates the weight of the clothes to be washed before absorbing water, and the height information of the clothes to be washed in the drum indicates the height of the clothes to be washed in the washing machine drum before absorbing water.
[0007] Optionally, the height information of the clothes to be washed in the barrel can be measured by a height sensor, and the weight information of the clothes to be washed can be measured by a weight sensor; the height information of the clothes to be washed can also be measured by a laser or infrared device.
[0008] Optionally, the material information of the laundry to be washed can be determined based on the material selection information input by the user or the image recognition result of the laundry to be washed. The washing machine can be provided with a laundry material selection function button for the user to input the laundry material, and the laundry material selection function button can be a button installed on the washing machine or a virtual button displayed on the display screen.
[0009] Optionally, the material of clothing may also be determined by determining the water absorption rate of the clothing.
[0010] Optionally, in order to help users intuitively understand the amount of water required for washing clothes, the weight information, material information, and height information of the clothes in the barrel may be displayed on the display screen of the washing machine.
[0011] S102, determining a target water intake according to weight information, material information, and height information;
[0012] The target water intake is the optimal washing water intake for the laundry to be washed.
[0013] Optionally, a formula for determining the target water intake volume may be constructed based on the weight information, material information, and height information of the laundry to be washed in the tub, including:
[0014] Determine a second weight weight, a second material weight, and a second height weight according to the weight information, the material information, and the height information;
[0015] The target water inflow is determined based on the correspondence between the weight information and the target water inflow and the second weight weight, the correspondence between the material information and the target water inflow and the second material weight, and the correspondence between the height information and the target water inflow and the second height weight.
[0016] For example, the formula for determining the target water intake may be:
[0017] F(x)=a1×f1(x)+a2×f2(x)+a3×f3(x);
[0018] Among them, F(x) is the target water inlet, a1, a2, a3 are the second weight, the second material weight, and the second height weight respectively, f1(x), f2(x), f3(x) are the correspondence between weight information and target water inlet, the correspondence between material information and target water inlet, and the correspondence between height information and target water inlet respectively.
[0019] Specifically, in the correspondence between material information and target water intake, the independent variables may be: water absorption rate of the laundry determined according to the material information of the laundry, and water absorption speed of the laundry determined according to the material information of the laundry.
[0020] The target water inlet corresponding to different weight information, material information, and height information can also be input into the GPT model, the GPT model can be trained as a target water inlet query model, and the target water inlet query model can be deployed on a cloud server. After measuring the weight information, material information, and height information, the washing machine sends query information containing weight information, material information, and height information to the background target water inlet query model, and the target water inlet query model gives the target water inlet.
[0021] S103, determining a target water level according to a target water inflow;
[0022] It should be understood that it is difficult to measure the amount of water in a washing machine, so the target water inflow needs to be converted into a target water level. The same target water inflow may have different target water levels on different washing machine models.
[0023] S104, obtaining the current water level of the washing machine, and calculating the water level difference between the current water level and the target water level;
[0024] In this step, the current water level can be measured by a water level sensor or by calculating the water inflow time.
[0025] Optionally, when measuring the current water level using a water level sensor, obtaining the current water level of the washing machine and calculating the water level difference between the current water level and the target water level include:
[0026] Within a first preset time period when water inlet is started, a plurality of sets of current water levels are measured by the water level sensor at intervals of a second preset time period;
[0027] Calculate the average water level of several groups of current water levels;
[0028] Calculate the water level difference between the average water level and the target water level.
[0029] The purpose of setting the first preset time is to control the time it takes for the washing machine to take on water. In this embodiment, the first preset time is equivalent to the longest cycle of the washing machine taking on water. If the longest cycle of the washing machine taking on water is not controlled, the washing machine may take on water for a long time despite high accuracy, which will also reduce the user experience. Experiments have shown that near the target water inflow, the effect of a small error on the washing effect can be ignored. The purpose of setting the second preset time is to ensure the accuracy of water inflow control. For example, when water is taken in through the water inlet valve, the shorter the time interval for measuring the water level, the higher the accuracy of water inflow control.
[0030] The first preset time length and the second preset time length can be determined according to actual needs. For example, the first preset time length can be 8 minutes, and the second preset time length can be 0.5 minutes.
[0031] The purpose of calculating the average water level of several groups of current water levels is to eliminate the error of the water level sensor.
[0032] S105, determining the water intake amount through a PID control algorithm according to the water level difference;
[0033] S106, controlling water inlet to the washing machine according to the water inlet amount;
[0034] Specifically, when the current water level is measured once at intervals of the second preset time period within the first preset time period for starting water inlet in S104, the water level difference can be calculated once and the water inlet amount can be determined by the PID control algorithm.
[0035] Specifically, a PID algorithm program may be built into the washing machine, or a PID controller may be added to the washing machine, and the PID control algorithm may be executed by the PID controller. Figure 2 is a schematic diagram of PID control provided in the embodiment of the present application, such as Figure 2 As shown, the calculated water level difference is input into the proportional regulation, differential regulation and integral regulation of the PID control, the PID control outputs the water inflow, and the water inflow actuator inflows water according to the water inflow calculated by the PID control. The measuring element can measure the current water level of the washing machine at intervals of the second preset time within the first preset time and calculate the water level difference between the current water level and the target water level and feed it back to the PID control.
[0036] S107: When the water level difference is less than or equal to a preset error threshold, the washing machine is controlled to stop taking in water and wash the laundry.
[0037] This embodiment calculates the accurate water intake according to the weight information, material information and height information of the clothes to be washed in the barrel, and especially accurately controls the water intake through the PID control algorithm, thereby improving the clothing washing effect and reducing the waste of water resources by accurately controlling the water volume.
[0038] The inventors also considered that in actual application scenarios, taking into account time costs, equipment costs, etc., especially in the face of application scenarios in which the water intake is calculated once every second preset time within a first preset time, the PID control algorithm has a limited number of calculations of the water intake, so it is necessary to consider how to improve the accuracy of the water intake control within the limited number of PID control algorithm calculations. Since the clothes to be washed have different weights, heights, and materials, it is necessary to adjust the calculation parameters of the PID control algorithm, namely the proportional coefficient, integral coefficient, and differential coefficient. Because the water level of clothes to be washed with different weights, heights, and materials may be different for the same water intake, it is necessary to reduce the error between the washing machine water level and the target water level within the limited number of PID control algorithm calculations. At the same time, the calculated PID parameters are more reliable, the control system stability, and real-time performance are enhanced, and accurate control of the water volume is achieved to avoid waste of water resources and reduced cleanliness of clothes caused by excessive or insufficient water injection.
[0039] In a possible embodiment of the present application, a method for determining water inflow according to characteristic information and water level difference is provided. Figure 3 is a flow chart of a method for determining water inflow according to characteristic information and water level difference provided in an embodiment of the present application, such as Figure 3 As shown, the method includes:
[0040] S301, determining a first weight weight, a first material weight, a first height weight, and a first water level difference weight respectively according to the weight information, the material information, the height information, and the water level difference;
[0041] In this step, the determined first weight weight, first material weight, first height weight, and first water level difference weight respectively reflect the influence of the weight, material, and height of the clothes to be washed on the proportional coefficient, the integral coefficient, and the differential coefficient.
[0042] S302, determining the calculation parameters according to the correspondence between the weight information and the calculation parameters and the first weight weight, the correspondence between the material information and the calculation parameters and the first material weight, the correspondence between the height information and the calculation parameters and the first height weight, the correspondence between the water level difference and the calculation parameters and the first water level difference weight;
[0043] This step is actually to construct a weight calculation formula for the calculation parameters. The material information can be converted into the water absorption rate of the clothes to be washed and substituted into the weight calculation formula as the independent variable. For example, in a possible weight calculation formula for the calculation parameters, the first water level difference weight can be set to 2, the first material weight to 3, the first height weight to 0.5, and the first weight weight to 0.8. The water level difference, the water absorption rate of the clothes to be washed, the height in the washing machine barrel, and the weight are multiplied by the corresponding weights respectively, and the results are accumulated to calculate the proportional coefficient of the PID control.
[0044] Optionally, when the current water level is measured once at intervals of a second preset time period within the first preset time period for starting water intake in S104, the calculation parameters of the PID control algorithm can be calculated once.
[0045] S303: Using the water level difference as the input of the PID control algorithm, and determining the output of the PID control algorithm as the water inflow.
[0046] In a possible embodiment of the present application, another method for determining water inflow according to characteristic information and water level difference is provided, the method comprising:
[0047] The characteristic information or water level difference is input into the pre-trained neural network model, and the pre-trained neural network model outputs the calculation parameters.
[0048] In a possible embodiment of the present application, when the water level difference is less than or equal to a preset error threshold, and a water level sensor is used to measure the current water level of the washing machine, a height sensor is used to measure the height information of the clothes to be washed in the tub, and a weight sensor is used to measure the weight information of the clothes to be washed, the washing machine water inlet control method based on PID control further includes:
[0049] Turn off the power of the water level sensor, height sensor, and weight sensor.
[0050] The purpose of this setting is to turn off the power supply of the sensor after the washing machine has finished filling with water to avoid wasting electricity.
[0051] In a possible embodiment of the present application, a washing machine water inlet control device based on PID control is provided. Figure 4 Schematic diagram of a washing machine water inlet control device based on PID control provided in an embodiment of the present application, such as Figure 4 As shown, the washing machine water inlet control device 40 based on PID control includes: a first determination module 401, a second determination module 402, and a PID control module 403;
[0052] The first determining module 401 is used to:
[0053] Determine characteristic information of the clothes to be washed, the characteristic information including: weight information, material information, and height information of the clothes to be washed;
[0054] The second determining module 402 is used to:
[0055] Determine the target water intake based on weight information, material information, and height information;
[0056] Determine the target water level according to the target water inflow;
[0057] Get the current water level of the washing machine and calculate the water level difference between the current water level and the target water level;
[0058] The PID control module 403 is used to:
[0059] Determine the water intake through PID control algorithm according to the water level difference;
[0060] Control the water inlet of the washing machine according to the water inlet amount;
[0061] When the water level difference is less than or equal to a preset error threshold, the washing machine is controlled to stop taking in water and wash the clothes to be washed.
[0062] In a possible embodiment of the present application, a washing machine water inlet control device based on PID control is provided. Figure 5 Schematic diagram of a washing machine water inlet control device based on PID control provided in an embodiment of the present application, such as Figure 5 As shown, a washing machine water inlet control device 50 based on PID control includes: a height sensor 501, a weight sensor 502, a water level sensor 503, a memory 504 and a processor 505, and the height sensor 501, the weight sensor 502, the water level sensor 503, the memory 504 and the processor 505 are connected via a bus 506.
[0063] The height sensor 501 is used to measure the height information of the clothes to be washed;
[0064] The weight sensor 502 is used to measure the weight information of the clothes to be washed;
[0065] The water level sensor 503 is used to measure the current water level of the washing machine;
[0066] The memory 504 is used to store computer programs;
[0067] The processor 505 is used to execute the computer program stored in the memory 504 to implement the washing machine water inlet control method based on PID control as described above.
[0068] The specific implementation process of the processor 505 can be found in the above method embodiment, and its implementation principle and technical effect are similar, so this embodiment will not be repeated here.
[0069] In the above Figure 5In the illustrated embodiment, it should be understood that the processor may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), etc. A general-purpose processor may be a microprocessor or any conventional processor. The steps of the method disclosed in the invention may be directly implemented as being executed by a hardware processor, or may be executed by a combination of hardware and software modules in the processor.
[0070] The memory may include a high-speed memory (Random Access Memory, RAM), and may also include a non-volatile memory (Non-volatile Memory, NVM), such as at least one disk memory.
[0071] The bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus, etc. The bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, the bus in the drawings of this application is not limited to only one bus or type of bus.
[0072] In a possible embodiment of the present application, a readable storage medium is further provided, on which a computer program is stored; the computer program is used to implement the washing machine water inlet control method based on PID control as described above.
[0073] The computer-readable storage medium mentioned above can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk. The readable storage medium can be any available medium that can be accessed by a general or special-purpose computer.
[0074] An exemplary readable storage medium is coupled to a processor so that the processor can read information from the readable storage medium and write information to the readable storage medium. Of course, the readable storage medium can also be a component of the processor. The processor and the readable storage medium can be located in an application specific integrated circuit (Application Specific Integrated Circuits, referred to as ASIC). Of course, the processor and the readable storage medium can also exist in the device as discrete components.
[0075] The division of the units is only a logical function division, and there may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, which may be electrical, mechanical or other forms.
[0076] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0077] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
[0078] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc., which can store program codes.
[0079] Those skilled in the art can understand that all or part of the steps of implementing the above-mentioned method embodiments can be completed by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When the program is executed, the steps of the above-mentioned method embodiments are executed; and the aforementioned storage medium includes: ROM, RAM, disk or optical disk and other media that can store program codes.
[0080] So far, the technical solution of the present application has been described in conjunction with the preferred embodiments shown in the accompanying drawings. However, it is easy for those skilled in the art to understand that the protection scope of the present application is obviously not limited to these specific embodiments, and the above embodiments are only used to illustrate the technical solution of the present application rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein by equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present application.
Claims
1. A method for controlling water inlet of a washing machine, It is characterized in that The method comprises: Determine characteristic information of the clothes to be washed, the characteristic information including: weight information, material information, and height information of the clothes to be washed in the tub; Determine a target water intake according to the weight information, the material information, and the height information; Determining a target water level according to the target water inflow; Acquire the current water level of the washing machine, and calculate the water level difference between the current water level and the target water level; Determine the water intake amount through a PID control algorithm according to the water level difference; controlling water inlet to the washing machine according to the water inlet amount; When the water level difference is less than or equal to a preset error threshold, the washing machine is controlled to stop taking in water and wash the laundry.
2. The method according to claim 1, It is characterized in that Determining the water intake amount by using a PID control algorithm according to the water level difference includes: Determine the calculation parameters of the PID control algorithm according to the characteristic information or the water level difference, wherein the calculation parameters include: a proportional coefficient, an integral coefficient, and a differential coefficient of the PID control algorithm; The water level difference is used as the input of the PID control algorithm, and the output of the PID control algorithm is determined as the water inflow.
3. The method according to claim 2, It is characterized in that Determining the calculation parameters of the PID control algorithm according to the characteristic information or the water level difference includes: The characteristic information or the water level difference is input into a pre-trained neural network model, and the pre-trained neural network model outputs the calculation parameter.
4. The method according to claim 2, It is characterized in that The step of determining the calculation parameters of the PID control algorithm according to the characteristic information or the water level difference value further includes: Determine a first weight weight, a first material weight, a first height weight, and a first water level difference weight respectively according to the weight information, the material information, the height information, and the water level difference; The calculation parameters are determined according to the correspondence between the weight information and the calculation parameters and the first weight weight, the correspondence between the material information and the calculation parameters and the first material weight, the correspondence between the height information and the calculation parameters and the first height weight, the correspondence between the water level difference and the calculation parameters and the first water level difference weight.
5. The method according to claim 1, It is characterized in that The step of determining the target water intake according to the weight information, the material information, and the height information includes: Determine a second weight, a second material weight, and a second height weight according to the weight information, the material information, and the height information; The target water inflow volume is determined based on the correspondence between the weight information and the target water inflow volume and the second weight weight, the correspondence between the material information and the target water inflow volume and the second material weight, and the correspondence between the height information and the target water inflow volume and the second height weight.
6. The method according to claims 1 to 5, It is characterized in that The obtaining of the current water level of the washing machine and calculating the water level difference between the current water level and the target water level comprises: Within a first preset time period when water inlet is started, a plurality of groups of current water levels are measured by a water level sensor at intervals of a second preset time period; Calculate the average water level of several groups of current water levels; The water level difference between the water level average value and the target water level is calculated.
7. The method according to claim 6, It is characterized in that The step of determining characteristic information of the laundry to be washed includes: Measuring the height information of the laundry to be washed in the tub by a height sensor; Measuring the weight information of the laundry to be washed by a weight sensor; The material information of the clothes to be washed is determined according to the material selection information input by the user or the image recognition result of the clothes to be washed, wherein the material selection information is used to indicate the material of the clothes to be washed.
8. The method according to claim 7, It is characterized in that When the water level difference is less than or equal to a preset error threshold, the method further includes: Turn off the power of the water level sensor, the height sensor, and the weight sensor.
9. A washing machine water inlet control device based on PID control, It is characterized in that The device comprises: The first determination module is used to: Determining characteristic information of the clothes to be washed, the characteristic information including: weight information, material information, and height information of the clothes to be washed; The second determination module is used for: Determine a target water intake according to the weight information, the material information, and the height information; Determining a target water level according to the target water inflow; Acquire the current water level of the washing machine, and calculate the water level difference between the current water level and the target water level; PID control module for: Determine the water intake amount through a PID control algorithm according to the water level difference; controlling water inlet to the washing machine according to the water inlet amount; When the water level difference is less than or equal to a preset error threshold, the washing machine is controlled to stop taking in water and wash the laundry.
10. A washing machine water inlet control device based on PID control, It is characterized in that The device comprises: a height sensor, a weight sensor, a water level sensor, a memory and a processor; The height sensor is used to measure the height information of the clothes to be washed; The weight sensor is used to measure the weight information of the clothes to be washed; The water level sensor is used to measure the current water level of the washing machine; The memory is used to store computer programs; The processor is used to execute the computer program stored in the memory to implement the washing machine water inlet control method based on PID control as described in any one of claims 1 to 8.
11. A readable storage medium, It is characterized in that The readable storage medium stores a computer program; the computer program is used to implement the washing machine water inlet control method based on PID control as described in any one of claims 1 to 8.
