Washing machine control method, washing machine and computer readable storage medium
By obtaining the motor speed and drum angle in the washing machine and adjusting the motor driving direction to utilize the load gravity potential energy, the resource loss problem during the startup process is solved, achieving higher energy-saving effects and motor start success rate.
Patent Information
- Application Number
- CN202410159077.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-02-04
- Publication Date
- 2025-08-05
AI Technical Summary
In the prior art, there is resource loss during the startup process of the washing machine, resulting in poor energy saving effect, and a large margin is required to be reserved to ensure the startup success rate.
By obtaining the motor's starting speed command and the rotation angle of the drum, we can determine whether the current speed and angle meet the conditions. If it is not met, change the motor driving direction to use the load gravity potential energy to drive the drum to rotate and reduce resource losses.
It improves the energy-saving effect of the washing machine, reduces resource losses during startup, and ensures the smooth start of the motor.
Smart Images

Figure CN120425548A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of motor drive, and particularly to a control method for a washing machine, a washing machine and a computer-readable storage medium. Background Art
[0002] In order to prevent the phenomenon of motor blockage or startup failure in the washing mode and ensure the startup success rate of the drum washing machine motor, during the motor design process, it is necessary to consider the maximum load startup state of the washing machine and reserve a large motor margin so that the motor can be started smoothly. However, the drum washing machine operates in a non-full load state most of the time, which causes waste of motor resources. Therefore, it is crucial to balance the startup success rate of the drum washing machine motor and save motor resources.
[0003] In the related art, by first controlling the motor to rotate in the reverse direction by a certain angle when starting the motor, the center of gravity of the load is lifted by a certain height in the reverse direction. When rotating in the startup rotation direction, the gravitational potential energy of the load is used to drive the drum to rotate. With the help of inertia, it is beneficial to the motor startup. At the same time, the gravitational potential energy of the load is converted into the kinetic energy of the motor rotation, which can reduce the output power of the driver, thereby improving the startup success rate of the drum washing machine motor and saving motor resources.
[0004] However, with the control scheme of the related art, regardless of the situation, the washing machine will first rotate in the direction opposite to the startup rotation direction when starting, and then rotate in the startup rotation direction. There is a situation of resource loss during the startup process of the washing machine, resulting in poor energy-saving effect of the washing machine. Summary of the Invention
[0005] Embodiments of the present application aim to reduce resource loss during the startup process of the washing machine and improve the energy-saving effect of the washing machine by providing a control method for a washing machine, a washing machine and a computer-readable storage medium.
[0006] The present application provides a control method for a washing machine, and the control method for the washing machine includes:
[0007] Obtain the startup speed command of the motor and control the motor to drive the drum in the first direction;
[0008] Obtain the absolute value of the current speed of the motor and the current relative rotation angle of the drum;
[0009] If the absolute value of the current speed is less than the preset speed and the current relative rotation angle is less than the preset angle, control the motor to drive the drum in the second direction, where the second direction and the first direction are opposite directions.
[0010] Optionally, the control method for the washing machine further includes:
[0011] When the absolute value of the current rotational speed is greater than the preset rotational speed, or when the current relative rotational angle is greater than the preset angle, control the motor to continuously drive the drum in the first direction.
[0012] Optionally, the step of obtaining the absolute value of the current rotational speed of the motor and the current relative rotational angle of the drum includes:
[0013] Obtain the current rotational speed of the motor and the current rotational angle of the drum;
[0014] Based on the initial rotational speed and the current rotational speed of the motor, obtain the absolute value of the rotational speed;
[0015] And, based on the initial angle and the current rotational angle of the drum, determine the current relative rotational angle of the drum, where the initial angle is the angle when the drum starts to rotate.
[0016] Optionally, after the step of obtaining the starting rotational speed command of the motor and controlling the motor to drive the drum in the first direction, it further includes:
[0017] Obtain the absolute value of the current rotational speed of the motor and the continuous rotation time;
[0018] When the absolute value of the current rotational speed is less than the preset rotational speed and the continuous rotation time is greater than the first preset time, control the motor to drive the drum in the second direction;
[0019] When the absolute value of the current rotational speed is greater than the preset rotational speed, or when the continuous rotation time is greater than the second preset time, control the motor to continuously drive the drum in the first direction;
[0020] Where the second preset time is greater than the first preset time.
[0021] Optionally, the step of obtaining the absolute value of the current rotational speed of the motor and the continuous rotation time includes:
[0022] Obtain the initial rotation time and the current rotation time of the motor;
[0023] Based on the initial rotation time and the current rotation time of the motor, determine the continuous rotation time of the motor.
[0024] Optionally, controlling the motor to drive the drum in the second direction includes:
[0025] Control the motor to drive the drum to rotate a set angle in the second direction;
[0026] Or, control the motor to continuously drive the drum in the second direction.
[0027] Optionally, after controlling the motor to drive the drum to rotate by a set angle in the second direction, the method further includes:
[0028] Controlling the motor to continuously drive the drum in the first direction.
[0029] Optionally, the control method of the washing machine further includes:
[0030] Obtaining the driving direction associated with the starting speed command, where the driving direction includes the set direction, or the direction in which the motor drives the drum under the previous starting speed command;
[0031] Determining the driving direction as the first direction of the motor, and controlling the motor to drive the drum in the first direction.
[0032] In addition, to achieve the above object, the present application further provides a washing machine including: a drum, a motor for driving the drum to rotate, a memory, a processor, and a control program of the washing machine stored on the memory and executable on the processor. When the control program of the washing machine is executed by the processor, the steps of the above control method of the washing machine are implemented.
[0033] In addition, to achieve the above object, the present application further provides a computer-readable storage medium, on which a control program of the washing machine is stored. When the control program of the washing machine is executed by a processor, the steps of the above control method of the washing machine are implemented.
[0034] In the technical solution of a control method of a washing machine, a washing machine, and a computer-readable storage medium provided in an embodiment of the present application, when obtaining a starting speed command of a motor, first control the motor to drive the drum in the first direction; then, obtain the absolute value of the current speed of the motor and the current relative rotation angle of the drum. If the absolute value of the current speed is less than a preset speed and the current relative rotation angle is less than a preset angle, control the motor to drive the drum in the second direction. Since when the drum changes from the first direction to the second direction, the gravitational potential energy of the load drops to drive the drum to rotate, and due to inertia, the motor can drive the drum in the second direction, enabling the motor to start smoothly; and compared with the related art that directly drives the drum to move in the reverse direction, the present application uses the absolute value of the current speed and the current relative rotation angle of the drum as judgment conditions to determine whether the motor needs to drive the drum in the second direction. When it is determined that the drum needs to be driven in the second direction, drive the drum in the second direction, reducing resource consumption during the start-up process of the washing machine and improving the energy-saving effect of the washing machine. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] Figure 1 It is a schematic flowchart of the first embodiment of the control method of the washing machine of the present application;
[0036] Figure 2 Schematic flowchart of the second embodiment of the control method for the washing machine of the present application;
[0037] Figure 3 Schematic flowchart of the fourth embodiment of the control method for the washing machine of the present application;
[0038] Figure 4 Schematic structural diagram of the washing machine of the present application;
[0039] Figure 5 Schematic diagram of a rotation of the drum of the present application;
[0040] Figure 6 Another schematic diagram of a rotation of the drum of the present application;
[0041] Figure 7 Another schematic diagram of a rotation of the drum of the present application.
[0042] The realization of the purpose of the present application, functional features and advantages will be further described in conjunction with the embodiments and with reference to the accompanying drawings. The above-mentioned accompanying drawings are only diagrams of one embodiment, rather than the whole of the invention. Detailed implementation manners
[0043] To better understand the above technical solutions, exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although the exemplary embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided so that the present disclosure can be more thoroughly understood and the scope of the present disclosure can be fully conveyed to those skilled in the art.
[0044] In view of the above problems, the present application proposes a control method for a washing machine. The main technical solutions include: obtaining a starting speed command of the motor, and controlling the motor to drive the drum in a first direction; obtaining the absolute value of the current speed of the motor and the current relative rotation angle of the drum; if the absolute value of the current speed is less than a preset speed and the current relative rotation angle is less than a preset angle, controlling the motor to drive the drum in a second direction, where the second direction and the first direction are opposite directions. Since when the drum changes from the first direction to the second direction, the gravitational potential energy of the load decreases to drive the rotation of the drum, and due to inertia, the motor can drive the drum in the second direction, enabling the motor to start smoothly; and compared with the related art that directly drives the drum to move in the reverse direction, the present application uses the absolute value of the current speed and the current relative rotation angle of the drum as judgment conditions to determine whether the motor needs to drive the drum in the second direction. When it is determined that the drum needs to be driven in the second direction, the drum is driven in the second direction, reducing the resource consumption during the startup process of the washing machine and improving the energy-saving effect of the washing machine.
[0045] Such as Figure 1As shown, in the first embodiment of the present application, the control method of the washing machine of the present application includes the following steps:
[0046] Step S110, obtain the starting speed command of the motor, and control the motor to drive the drum in the first direction.
[0047] In this embodiment, the first direction is the rotation direction of the motor, including the forward rotation direction or the reverse rotation direction of the motor. In this case, the relationship between the rotation direction of the motor and the rotation direction of the drum can be set according to the actual situation. For example, it can be set that when the motor rotates forward, the drum rotates counterclockwise, and when the motor rotates backward, the drum rotates clockwise; or it can be set that when the motor rotates forward, the drum rotates clockwise, and when the motor rotates backward, the drum rotates counterclockwise.
[0048] Optionally, the washing machine has a control panel, and the control panel is provided with trigger buttons for different washing machine functions, including the start trigger button of the washing machine. The start trigger button is associated with a starting speed command, and the corresponding starting speed command is obtained by triggering the start trigger button of the washing machine. Or, the starting speed command can also be obtained by other means, such as generating the starting speed command through a remote control. Or, a communication connection relationship between the washing machine and a smart device is established in advance. An application program of the washing machine is installed on the smart device, and the application program can be used for setting the working mode of the washing machine or setting the washing parameters. Each working mode is associated with a corresponding starting speed command. By triggering the corresponding working mode, the corresponding starting speed command is obtained, and then the motor is controlled to drive the drum. Or, a reservation duration can also be set, and after reaching this reservation duration, the starting speed command is automatically obtained. Through the above methods, the ways of obtaining the starting speed command are enriched, making the start of the washing machine more intelligent.
[0049] Optionally, when obtaining the starting speed command, the first direction can be determined according to the starting speed command, and the motor is controlled to drive the drum in the first direction, that is, it is determined whether the first direction of the motor is forward or reverse by the starting speed command.
[0050] Optionally, obtain the driving direction associated with the starting speed command, determine the driving direction as the first direction of the motor, and control the motor to drive the drum in the first direction.
[0051] Exemplarily, a corresponding set direction can be set in advance for the starting speed command. By obtaining the set direction associated with the starting speed command, the set direction is determined as the first direction of the motor, and the motor is controlled to drive the drum in the set direction.
[0052] Exemplarily, when triggering the starting speed command, determine the first direction according to the previous starting speed command, that is, determine the direction of the motor driving the drum under the previous starting speed command as the driving direction associated with the current starting speed command, and control the motor to drive the drum in the direction of the motor driving the drum under the previous starting speed command.
[0053] Step S120, obtain the absolute value of the current speed of the motor and the current relative rotation angle of the drum.
[0054] Step S130, if the absolute value of the current speed is less than the preset speed and the current relative rotation angle is less than the preset angle, control the motor to drive the drum in the second direction, where the second direction and the second direction are opposite directions.
[0055] Optionally, the preset angle and the preset speed can be set according to the actual situation. For example, they can be determined according to the previous starting speed command. Or they can be set according to multiple experiments during factory production. Or different preset speeds and preset angles correspond to different working modes of the washing machine. For example, the preset speed and preset angle corresponding to the washing mode are different from those corresponding to the dehydration mode, so as to be able to set appropriate preset speeds and preset angles for different working modes, making the start of the washing machine more accurate in different working modes.
[0056] Optionally, the preset angle can be set to 90°.
[0057] In this embodiment, when the washing machine starts, in the related art, it will first rotate in the direction opposite to the starting rotation direction, and then rotate in the starting rotation direction. There is a situation of resource loss during the starting process of the washing machine, resulting in poor energy-saving effect of the washing machine. In this application, when obtaining the starting speed command of the motor, first control the motor to drive the drum in the first direction. Then obtain the absolute value of the current speed of the motor and the current relative rotation angle of the drum. If the absolute value of the current speed is less than the preset speed and the current relative rotation angle is less than the preset angle, then control the motor to drive the drum in the second direction.
[0058] Optionally, the second direction is opposite to the first direction. When the first direction is the forward rotation direction, the second direction is the reverse rotation direction. When the second direction is the reverse rotation direction, the first direction is the forward rotation direction.
[0059] Exemplarily, when the first direction is the forward rotation direction, the second direction is the reverse rotation direction.
[0060] When the motor rotates forward, the drum rotates counterclockwise. When the motor rotates backward, the drum rotates clockwise. In this case, if the absolute value of the current rotational speed is less than the preset rotational speed and the current relative rotational angle is less than the preset angle, the drum rotates counterclockwise first and then clockwise.
[0061] When the motor rotates forward, the drum rotates clockwise. When the motor rotates backward, the drum rotates counterclockwise. In this case, if the absolute value of the current rotational speed is less than the preset rotational speed and the current relative rotational angle is less than the preset angle, the drum rotates clockwise first and then counterclockwise.
[0062] Exemplarily, when the first direction is the reverse rotation direction, the second direction is the forward rotation direction.
[0063] When the motor rotates backward, the drum rotates counterclockwise. When the motor rotates forward, the drum rotates clockwise. In this case, if the absolute value of the current rotational speed is less than the preset rotational speed and the current relative rotational angle is less than the preset angle, the drum rotates counterclockwise first and then clockwise.
[0064] When the motor rotates backward, the drum rotates clockwise. When the motor rotates forward, the drum rotates counterclockwise. In this case, if the absolute value of the current rotational speed is less than the preset rotational speed and the current relative rotational angle is less than the preset angle, the drum rotates clockwise first and then counterclockwise.
[0065] In summary, by setting different motor and drum rotation strategies, the start control of washing machines in different scenarios can be satisfied.
[0066] Refer to Figure 5 and Figure 6 When obtaining the start rotational speed command of the motor, the motor first drives the drum to rotate counterclockwise. If the absolute value of the current rotational speed is less than the preset rotational speed and the current relative rotational angle is less than the preset angle, the motor then drives the drum to rotate clockwise.
[0067] In this embodiment, according to the above technical solution, when obtaining the starting speed command of the motor, first control the motor to drive the drum in the first direction; then, obtain the absolute value of the current speed of the motor and the current relative rotation angle of the drum. If the absolute value of the current speed is less than the preset speed and the current relative rotation angle is less than the preset angle, control the motor to drive the drum in the second direction. Since when the drum changes from the first direction to the second direction, the gravitational potential energy of the load drops to drive the drum to rotate, and due to inertia, the motor can be made to drive the drum in the second direction, enabling the motor to start smoothly; and compared with the related technology of directly driving the drum to move in the reverse direction, in this application, the absolute value of the current speed and the current relative rotation angle of the drum are used as judgment conditions to determine whether the motor needs to drive the drum in the second direction. When it is determined that the drum needs to be driven in the second direction, drive the drum in the second direction, reducing the resource consumption during the startup process of the washing machine and improving the energy-saving effect of the washing machine.
[0068] Further, based on the above embodiment, in the second embodiment of the present application, referring to Figure 2 , the control method of the washing machine of the present application further includes:
[0069] Step S210, if the absolute value of the current speed is greater than the preset speed, or, the current relative rotation angle is greater than the preset angle, control the motor to continuously drive the drum in the first direction.
[0070] Referring to Figure 7 , when obtaining the starting speed command of the motor, the motor drives the drum to rotate counterclockwise. If the absolute value of the current speed is greater than the preset speed, or, the current relative rotation angle is greater than the preset angle, the motor drives the drum to continue to rotate counterclockwise. Compared with the related technology of directly driving the drum to move in the reverse direction, in this application, the absolute value of the current speed and the current relative rotation angle of the drum are used as judgment conditions to determine whether the motor needs to drive the drum in the second direction. When it is determined that the drum does not need to be driven in the second direction, control the motor to continuously drive the drum in the first direction, reducing the resource consumption during the startup process of the washing machine and improving the energy-saving effect of the washing machine.
[0071] Further, based on the first embodiment and the second embodiment, in the third embodiment of the present application, step S120 includes:
[0072] Step S121, obtain the current speed of the motor and the current rotation angle of the drum.
[0073] In this embodiment, the current speed of the motor can be detected by a speed sensor, and the current rotation angle of the drum can be detected by an angle sensor.
[0074] Optionally, during the process of the motor driving the drum in the first direction, the current rotational speed of the motor and the current rotational angle of the drum can be detected in real time.
[0075] Optionally, during the process of the motor driving the drum in the first direction, the rotational speed of the motor within a certain preset time period can also be obtained from this process, and then the average rotational speed can be calculated based on the rotational speed of the motor obtained within the preset time period to obtain the current rotational speed of the motor.
[0076] Optionally, the current rotational speed of the motor and the current rotational angle of the drum can also be determined based on the historical starting rotational speed instruction. Specifically, during the process of the motor driving the drum to rotate under the historical starting rotational speed instruction, the rotational speed of the motor and the rotational angle of the drum at each moment are recorded, forming a mapping table between the moment, the rotational speed of the motor, and the rotational angle of the drum. The rotational speed and the rotational angle corresponding to the current moment can be obtained from this mapping table. The rotational speed and the rotational angle can be used as reference quantities for the current rotational speed and the current rotational angle to verify whether the currently obtained rotational speed and rotational angle are accurate, or to perform error compensation on the currently obtained current rotational speed and current rotational angle, thereby improving the accuracy of the current rotational speed of the motor and the current rotational angle of the drum.
[0077] Step S122: Obtain the absolute value of the rotational speed based on the initial rotational speed and the current rotational speed of the motor.
[0078] In this embodiment, the absolute value of the current rotational speed refers to the amount of change in the rotational speed of the motor from the initial rotational speed to the current rotational speed. The initial rotational speed when the motor is stationary and the drum is stationary before the trigger start rotational speed instruction is obtained through a rotational speed sensor, and the absolute value of the difference between the current rotational speed and the initial rotational speed is obtained to obtain the absolute value of the current rotational speed.
[0079] Step S123: Determine the current relative rotational angle of the drum based on the initial angle and the current rotational angle of the drum, where the initial angle is the angle when the drum starts to rotate.
[0080] In this embodiment, the current relative rotational angle refers to the amount of change in the angle of the drum from the initial angle to the current rotational angle. The initial angle of the drum corresponding to when the motor is stationary and the drum is stationary before the trigger start rotational speed instruction is obtained through an angle sensor, and the absolute value of the difference between the initial angle of the drum and the current rotational angle of the drum is obtained to obtain the current relative rotational angle of the drum.
[0081] Optionally, the initial angle is defaulted to 0°.
[0082] Furthermore, based on the first embodiment, in the fourth embodiment of the present application, referring to Figure 3 , after step S110, it includes:
[0083] Step S310, obtain the absolute value of the current rotational speed of the motor and the continuous rotation time.
[0084] Optionally, obtain the initial rotation time and the current rotation time of the motor; determine the continuous rotation time of the motor according to the initial rotation time and the current rotation time of the motor.
[0085] Optionally, the washing machine is also provided with a timer, which is used to record the current rotation time and the initial rotation time of the motor. The current rotational speed and the initial rotational speed of the motor can be detected by a speed sensor.
[0086] Optionally, the absolute value of the rotational speed refers to the change in rotational speed between the initial rotational speed and the current rotational speed of the motor. The initial rotational speed when the motor is stationary and the drum is stationary before the trigger start rotational speed instruction can be obtained through a rotational speed sensor, and the absolute value of the difference between the current rotational speed and the initial rotational speed is used to obtain the absolute value of the current rotational speed.
[0087] Optionally, the continuous rotation time is the duration of rotation in the same direction as the first direction of the motor starting and running. The initial rotation time when the motor is stationary and the drum is stationary can be recorded by a timer, and the continuous rotation time is obtained according to the difference between the current rotation time and the initial rotation time.
[0088] Step S320, if the absolute value of the current rotational speed is less than the preset rotational speed and the continuous rotation time is greater than the first preset time, control the motor to drive the drum in the second direction.
[0089] Step S330, if the absolute value of the current rotational speed is greater than the preset rotational speed or the continuous rotation time is greater than the second preset time, control the motor to continuously drive the drum in the first direction.
[0090] Optionally, the preset rotational speed, the first preset time, and the second preset time can be set according to the actual situation. For example, they can be determined according to the previous start rotational speed instruction. Or they can be set according to multiple experiments during factory production. Or different preset rotational speeds, first preset times, and second preset times correspond to different working modes of the washing machine. For example, the preset rotational speed, the first preset time, and the second preset time corresponding to the washing mode are different from those corresponding to the dehydration mode, so as to be able to set appropriate preset rotational speeds, first preset times, and second preset times for different working modes, making the start of the washing machine more accurate in different working modes.
[0091] According to the above technical solution, this embodiment makes the control of the washing machine more intelligent and energy-saving by determining the direction of the motor driving the drum based on the absolute value of the rotational speed and the continuous rotation time.
[0092] In other embodiments, the weight of the object to be washed in the drum can also be detected, and the direction of the motor driving the drum can be determined according to the weight of the object to be washed. For example, when the weight of the object to be washed is greater than a preset weight, the motor is controlled to drive the drum in a second direction. When the weight of the object to be washed is less than the preset weight, it is determined that the operating conditions are met, and the motor is controlled to continue driving the drum in a first direction.
[0093] In other embodiments, the direction of the motor driving the drum can also be jointly determined according to the absolute value of the current speed of the motor, the current relative rotation angle of the drum, the continuous rotation time, and the weight of the object to be washed. Specifically, when the absolute value of the motor speed is greater than the preset speed, the current relative rotation angle is greater than the preset angle, the continuous rotation time is greater than a second preset time, and the weight of the object to be washed is less than the preset weight, the motor is controlled to drive the drum in a first direction; otherwise, when one of the conditions is not met, the motor is controlled to drive the drum in a second direction.
[0094] Further, based on the above embodiments, in the fifth embodiment of the present application, controlling the motor to drive the drum in a second direction in step S130 includes:
[0095] Step S131, controlling the motor to drive the drum to rotate a set angle in a second direction.
[0096] In this embodiment, the set angle can be set according to the actual situation. For example, the set angle is greater than 90° and less than 270°.
[0097] Optionally, referring to Figure 5 , when obtaining the starting speed command, first control the motor to drive the drum to rotate in a first direction. At this time, the drum rotates counterclockwise. If the absolute value of the current speed is less than the preset speed and the current relative rotation angle is less than the preset angle, control the motor to drive the drum to rotate a set angle in a second direction. At this time, the rotation direction of the drum changes from counterclockwise to clockwise. After rotating the set angle, the gravitational potential energy of the load is used to drive the drum to rotate, and due to inertia, the motor can continuously drive the drum in a first direction. At this time, the rotation direction of the drum changes from clockwise to counterclockwise, enabling the motor to start smoothly.
[0098] Alternatively, step S132, controlling the motor to continuously drive the drum in the second direction.
[0099] In this embodiment, referring to Figure 6When obtaining the starting speed command, first control the motor to drive the drum to rotate in the first direction. At this time, the drum rotates counterclockwise. If the absolute value of the current speed is less than the preset speed and the current relative rotation angle is less than the preset angle, control the motor to continuously drive the drum in the second direction. At this time, the rotation direction of the drum changes from counterclockwise to clockwise and continues to rotate in the clockwise direction. Since the gravitational potential energy of the load decreases to drive the drum to rotate when the drum changes from the first direction to the second direction, the motor can be continuously driven in the second direction under the action of inertia, enabling the motor to start smoothly.
[0100] An embodiment of the control method of the washing machine is provided in the embodiments of the present application. It should be noted that although the logical order is shown in the flowchart, in some cases, the steps shown or described may be executed in a different order than here.
[0101] Based on the same inventive concept, the present application also provides a washing machine. The washing machine includes a drum and a motor for driving the drum to rotate.
[0102] Refer to Figure 4 , Figure 4 FIG. is a schematic structural diagram of the hardware operating environment of the washing machine involved in the solution of the embodiment of the present application. The washing machine further includes: a processor 1001, such as a CPU, a memory 1005, a user interface 1003, a network interface 1004, and a communication bus 1002. Among them, the communication bus 1002 is used to realize the connection and communication between these components. The user interface 1003 may include a display screen. Optionally, the user interface 1003 may further include a standard wired interface and a wireless interface. The network interface 1004 may optionally include a standard wired interface and a wireless interface (such as a WI-FI interface). The memory 1005 may be a high-speed RAM memory or a stable memory, such as a disk memory. The memory 1005 may optionally be a storage device independent of the aforementioned processor 1001.
[0103] Those skilled in the art can understand that Figure 4 the structure of the washing machine shown in
[0104] such as Figure 4 shown, the memory 1005 as a storage medium may include an operating system, a network communication module, a user interface module, and a control program of the washing machine. Among them, the operating system is a program for managing and controlling the hardware and software resources of the washing machine, and the control program of the washing machine and the operation of other software or programs.
[0105] In Figure 4In the washing machine shown, the user interface 1003 is mainly used to connect to a terminal and communicate data with the terminal; the network interface 1004 is mainly used to connect to a background server and communicate data with the background server; the processor 1001 can be used to call the control program of the washing machine stored in the memory 1005.
[0106] In this embodiment, the washing machine includes: a memory 1005, a processor 1001, and a control program of the washing machine stored on the memory and executable on the processor, where:
[0107] When the processor 1001 calls the control program of the washing machine stored in the memory 1005, the following operations are performed:
[0108] Obtain the starting speed instruction of the motor, and control the motor to drive the drum in a first direction;
[0109] Obtain the absolute value of the current speed of the motor and the current relative rotation angle of the drum;
[0110] If the absolute value of the current speed is less than a preset speed and the current relative rotation angle is less than a preset angle, control the motor to drive the drum in a second direction, where the second direction and the first direction are opposite directions.
[0111] When the processor 1001 calls the control program of the washing machine stored in the memory 1005, the following operations are performed:
[0112] If the absolute value of the current speed is greater than the preset speed, or, the current relative rotation angle is greater than the preset angle, control the motor to continuously drive the drum in the first direction.
[0113] When the processor 1001 calls the control program of the washing machine stored in the memory 1005, the following operations are performed:
[0114] Obtain the current speed of the motor and the current rotation angle of the drum;
[0115] Based on the initial speed and the current speed of the motor, obtain the absolute value of the speed;
[0116] And, based on the initial angle and the current rotation angle of the drum, determine the current relative rotation angle of the drum, where the initial angle is the angle when the drum starts to rotate.
[0117] When the processor 1001 calls the control program of the washing machine stored in the memory 1005, the following operations are performed:
[0118] Obtain the absolute value of the current speed of the motor and the continuous rotation time;
[0119] If the absolute value of the current rotation speed is less than the preset rotation speed, and the continuous rotation time is greater than the first preset time, control the motor to drive the drum in the second direction;
[0120] If the absolute value of the current rotation speed is greater than the preset rotation speed, or the continuous rotation time is greater than the second preset time, control the motor to continuously drive the drum in the first direction;
[0121] Among them, the second preset time is greater than the first preset time.
[0122] When the processor 1001 calls the control program of the washing machine stored in the memory 1005, the following operations are performed:
[0123] Obtain the initial rotation time and the current rotation time of the motor;
[0124] Determine the continuous rotation time of the motor according to the initial rotation time and the current rotation time of the motor.
[0125] When the processor 1001 calls the control program of the washing machine stored in the memory 1005, the following operations are performed:
[0126] Control the motor to drive the drum to rotate a set angle in the second direction;
[0127] Alternatively, control the motor to continuously drive the drum in the second direction.
[0128] When the processor 1001 calls the control program of the washing machine stored in the memory 1005, the following operations are performed:
[0129] Control the motor to continuously drive the drum in the first direction.
[0130] When the processor 1001 calls the control program of the washing machine stored in the memory 1005, the following operations are performed:
[0131] Obtain the driving direction associated with the starting rotation speed instruction, where the driving direction includes a set direction, or the direction in which the motor drives the drum under the previous starting rotation speed instruction;
[0132] Determine the driving direction as the first direction of the motor, and control the motor to drive the drum in the first direction.
[0133] Based on the same inventive concept, an embodiment of the present application further provides a computer-readable storage medium. The computer-readable storage medium stores a control program of a washing machine. When the control program of the washing machine is executed by a processor, each step of the control method of the washing machine as described above is implemented, and the same technical effects can be achieved. To avoid repetition, it will not be elaborated here.
[0134] Since the storage medium provided in the embodiments of the present application is the storage medium used to implement the methods in the embodiments of the present application, based on the methods introduced in the embodiments of the present application, those skilled in the art can understand the specific structure and variations of the storage medium, so it will not be elaborated here. Any storage medium used in the methods of the embodiments of the present application falls within the scope protected by the present application.
[0135] It should be noted that in this text, the term "comprising", "including" or any other variant thereof is intended to cover non-exclusive inclusion, so that a process, method, article or system including a series of elements not only includes those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such a process, method, article or system. Without further limitation, an element defined by the statement "including one..." does not exclude the existence of another identical element in the process, method, article or system including that element.
[0136] The serial numbers of the above embodiments of the present application are only for description and do not represent the superiority or inferiority of the embodiments.
[0137] Through the description of the above embodiments, those skilled in the art can clearly understand that the above embodiment methods can be implemented by means of software plus a necessary general hardware platform. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, in essence or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium as described above (such as ROM / RAM, magnetic disk, optical disc), and includes several instructions to enable a terminal device (which can be a mobile phone, computer, server, TV, or network device, etc.) to execute the methods described in various embodiments of the present application.
[0138] The above are only the preferred embodiments of the present application, and do not limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made by using the content of the specification and drawings of the present application, or directly or indirectly applied in other related technical fields, is equally included in the patent protection scope of the present application.
Claims
1. A method for controlling a washing machine, characterized in that: The control method of the washing machine includes: Obtaining a starting speed instruction of the motor and controlling the motor to drive the drum in a first direction; Obtaining the absolute value of the current rotation speed of the motor and the current relative rotation angle of the drum; If the absolute value of the current rotation speed is less than the preset rotation speed and the current rotation relative angle is less than the preset angle, the motor is controlled to drive the drum in a second direction, wherein the second direction and the second direction are opposite directions.
2. The control method of the washing machine according to claim 1, wherein: The control method of the washing machine further includes: If the absolute value of the current rotation speed is greater than the preset rotation speed, or the current rotation relative angle is greater than the preset angle, the motor is controlled to continuously drive the drum in the first direction.
3. The control method of the washing machine according to claim 2, wherein: The step of obtaining the current absolute value of the motor's rotation speed and the current relative rotation angle of the drum includes: Obtaining the current rotation speed of the motor and the current rotation angle of the drum; Obtaining the absolute value of the speed according to the initial speed and the current speed of the motor; And, according to the initial angle of the drum and the current rotation angle, the current relative rotation angle of the drum is determined, wherein the initial angle is the angle when the drum starts to rotate.
4. The control method of the washing machine according to claim 1, wherein: After the step of obtaining the starting speed instruction of the motor and controlling the motor to drive the drum in the first direction, the method further includes: Obtaining the current absolute value of the motor's rotation speed and the continuous rotation time; If the absolute value of the current rotation speed is less than the preset rotation speed, and the continuous rotation time is greater than a first preset time, controlling the motor to drive the drum in a second direction; If the absolute value of the current rotation speed is greater than the preset rotation speed, or the continuous rotation time is greater than a second preset time, controlling the motor to continuously drive the drum in the first direction; The second preset time is greater than the first preset time.
5. The control method of the washing machine according to claim 4, wherein: The step of obtaining the current absolute value of the motor speed and the continuous rotation time includes: Obtaining the initial rotation time and current rotation time of the motor; The continuous rotation time of the motor is determined according to the initial rotation time of the motor and the current rotation time.
6. The control method of a washing machine according to any one of claims 1 to 5, characterized in that: The controlling the motor to drive the drum in the second direction comprises: Controlling the motor to drive the drum to rotate in a second direction by a set angle; Alternatively, the motor is controlled to continuously drive the drum in the second direction.
7. The control method of the washing machine according to claim 6, wherein: After controlling the motor to drive the drum to rotate in the second direction by a set angle, the method further includes: The motor is controlled to continuously drive the roller in a first direction.
8. The control method of the washing machine according to claim 1, wherein: The control method of the washing machine further includes: Obtaining a driving direction associated with the startup speed instruction, wherein the driving direction includes a set direction, or a direction in which the motor drives the drum under the last startup speed instruction; The driving direction is determined as a first direction of the motor, and the motor is controlled to drive the drum in the first direction.
9. A washing machine, characterized in that: The washing machine comprises: roller; a motor for driving the drum to rotate; The washing machine further includes: a memory, a processor, and a washing machine control program stored in the memory and running on the processor. When the washing machine control program is executed by the processor, the steps of the washing machine control method according to any one of claims 1 to 8 are implemented.
10. A computer-readable storage medium, characterized in that The computer-readable storage medium stores a control program for a washing machine, and when the control program for the washing machine is executed by a processor, the steps of the control method for a washing machine according to any one of claims 1 to 8 are implemented.