Method and device for adjusting rotating speed of motor
By obtaining air pressure information of the cleaning equipment environment, judging and adjusting the motor speed, the problem of shortening the motor service life in abnormal environments is solved, and effective protection and extended service life of the motor are achieved.
Patent Information
- Application Number
- CN202310594506.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-05-24
- Publication Date
- 2024-12-03
AI Technical Summary
In abnormal environments, the increase in motor speed leads to a shortening of the service life of the internal components of the motor, and the existing technology has not effectively solved this problem.
By obtaining the air pressure information of the environment where the cleaning equipment is located, we determine whether it is in an abnormal environment, and adjust the speed of the motor according to the environmental data to protect the motor.
It effectively improves the service life of the motor and reduces damage caused by environmental changes.
Smart Images

Figure CN119070695A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present invention relate to the field of motors, and in particular, to a method and device for adjusting the rotational speed of a motor. Background Art
[0002] In harsh external environments (for example, in high altitude and low air pressure environments), the constant motor power will cause the motor speed to increase, thereby affecting the service life of components such as the impeller inside the motor.
[0003] With regard to the problem in the related art that the service life of the motor is affected under abnormal conditions, no effective solution has been proposed in the related art. Summary of the invention
[0004] The embodiments of the present invention provide a method and a device for adjusting the rotation speed of a motor, so as to at least solve the problem existing in the related art that the service life of the motor is affected under abnormal conditions.
[0005] According to one embodiment of the present invention, a method for adjusting the motor speed is provided, comprising: obtaining air pressure information of an environment in which a cleaning device is located, wherein the cleaning device is provided with a motor, and the cleaning device has a cleaning function when driven by the motor; judging whether the cleaning device is in an abnormal environment based on the air pressure information; when the cleaning device is in the abnormal environment, determining environmental data of the abnormal environment; and adjusting or setting the speed of the motor based on the environmental data.
[0006] According to another embodiment of the present invention, there is also provided a device for adjusting the motor speed, including: a first acquisition module, used to acquire air pressure information of an environment in which a cleaning device is located, wherein the cleaning device is provided with a motor, and the cleaning device has a cleaning function when driven by the motor; a first judgment module, used to judge whether the cleaning device is in an abnormal environment based on the air pressure information; a first determination module, used to determine environmental data of the abnormal environment when the cleaning device is in the abnormal environment; and a first processing module, used to adjust or set the speed of the motor based on the environmental data.
[0007] In an exemplary embodiment, the above-mentioned first acquisition module includes one of the following: a first output unit, used to detect the altitude and / or air pressure value of the environment where the above-mentioned cleaning device is located through a detection device during the startup of the above-mentioned cleaning device, and output the above-mentioned air pressure information, wherein, during the startup of the above-mentioned cleaning device, the starting speed of the above-mentioned motor matches the above-mentioned air pressure information; a second output unit, used to detect the altitude and / or air pressure value of the environment where the above-mentioned cleaning device is located before the above-mentioned cleaning device is started, and output the above-mentioned air pressure information.
[0008] In an exemplary embodiment, the above-mentioned first determination module includes: a first determination unit, used to determine that the above-mentioned cleaning equipment is in an abnormal environment when the altitude in the above-mentioned air pressure information is greater than a preset altitude and / or the air pressure value in the above-mentioned air pressure information is less than a preset air pressure value; a second determination unit, used to determine the altitude and air pressure value in the above-mentioned abnormal environment as abnormal altitude and abnormal air pressure value.
[0009] In an exemplary embodiment, the first processing module includes: a first calculation unit, used to calculate the first difference between the abnormal altitude and the sea level; a third determination unit, used to determine a first power adjustment range corresponding to the first difference; a first setting unit, used to set the starting speed of the motor using the first power adjustment range, and when the cleaning device is turned on, control the motor to drive the cleaning function of the cleaning device according to the starting speed; or, a first adjustment unit, used to adjust the current speed of the motor using the first power adjustment range when the cleaning device is in a working state, so as to determine the working speed of the motor, and control the motor to drive the cleaning device to perform a cleaning operation according to the working speed.
[0010] In an exemplary embodiment, the above-mentioned first setting unit includes: a first setting subunit, used to set the first duty cycle of the above-mentioned motor using the above-mentioned first power adjustment range to set the first voltage and the first current of the above-mentioned motor; a first control subunit, used to control the starting speed of the above-mentioned motor using the above-mentioned first voltage and the above-mentioned first current.
[0011] In an exemplary embodiment, the above-mentioned first adjustment unit includes: a first adjustment sub-unit, used to use the above-mentioned first power adjustment amplitude to adjust the second duty cycle of the above-mentioned motor in real time, so as to adjust the second voltage and the second current of the above-mentioned motor in real time; a second adjustment sub-unit, used to use the real-time adjusted second voltage and the second current to adjust the operating speed of the above-mentioned motor in real time.
[0012] According to yet another embodiment of the present invention, there is provided a cleaning device, comprising the above-mentioned motor speed adjustment device.
[0013] According to yet another embodiment of the present invention, a computer-readable storage medium is provided, wherein a computer program is stored in the computer-readable storage medium, wherein the computer program is configured to execute the steps in any one of the above method embodiments when in motion.
[0014] According to another embodiment of the present invention, there is provided an electronic device, including a memory and a processor, wherein the memory stores a computer program, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.
[0015] Through the present invention, the air pressure information of the environment where the cleaning device is located is obtained, wherein a motor is provided in the cleaning device, and the cleaning device has a cleaning function under the drive of the motor; whether the cleaning device is in an abnormal environment is determined based on the air pressure information; when the cleaning device is in an abnormal environment, the environmental data of the abnormal environment is determined; and the speed of the motor is adjusted or set based on the environmental data. Since in the above method, when the air pressure in the environment changes, the speed of the motor is adjusted by adjusting the power of the motor, thereby protecting the motor and increasing the service life of the motor. Therefore, the problem of affecting the service life of the motor in an abnormal environment in the related art is solved, and the effect of effectively increasing the service life of the motor and reducing damage is achieved. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] Figure 1 is a hardware structure block diagram of a mobile terminal of a method for adjusting the motor speed according to an embodiment of the present invention;
[0017] Figure 2 is a flow chart of a method for adjusting the motor speed according to an embodiment of the present invention;
[0018] Figure 3 is a schematic diagram of adjusting the motor speed according to an embodiment of the present invention;
[0019] Figure 4 4 is a structural block diagram of a device for adjusting motor speed according to an embodiment of the present invention. DETAILED DESCRIPTION
[0020] Hereinafter, embodiments of the present invention will be described in detail with reference to the accompanying drawings and in combination with the embodiments.
[0021] It should be noted that the terms "first", "second", etc. 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.
[0022] The method embodiments provided in the embodiments of the present application can be executed in a mobile terminal, a computer terminal or a similar computing device. Taking running on a mobile terminal as an example, Figure 1 FIG. 1 is a block diagram of the hardware structure of a mobile terminal of the motor speed adjustment method according to an embodiment of the present invention. Figure 1 As shown, the mobile terminal may include one or more ( Figure 1 Only one is shown in the figure) a processor 102 (the processor 102 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA) and a memory 104 for storing data, wherein the mobile terminal may also include a transmission device 106 and an input / output device 108 for communication functions. It can be understood by those skilled in the art that Figure 1The structure shown is for illustration only and does not limit the structure of the mobile terminal. Figure 1 More or fewer components as shown, or with Figure 1 Different configurations are shown.
[0023] The memory 104 can be used to store computer programs, for example, software programs and modules of application software, such as the computer program corresponding to the motor speed adjustment method in the embodiment of the present invention. The processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, that is, to implement the above method. The memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include a memory remotely arranged relative to the processor 102, and these remote memories can be connected to the mobile terminal via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and a combination thereof.
[0024] The transmission device 106 is used to receive or send data via a network. The specific example of the above network may include a wireless network provided by a communication provider of the mobile terminal. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, referred to as NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 106 can be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.
[0025] In this embodiment, a method for adjusting the motor speed is provided. Figure 2 is a flow chart of a method for adjusting the motor speed according to an embodiment of the present invention, such as Figure 2 As shown, the process includes the following steps:
[0026] Step S202, obtaining air pressure information of an environment where the cleaning device is located, wherein the cleaning device is provided with a motor, and the cleaning device has a cleaning function when driven by the motor;
[0027] Step S204, determining whether the cleaning device is in an abnormal environment based on the air pressure information;
[0028] Step S206, when the cleaning device is in an abnormal environment, determining environmental data of the abnormal environment;
[0029] Step S208, adjusting or setting the rotation speed of the motor based on the environmental data.
[0030] A motor speed adjustment method in this embodiment can be applied to the scenario of protecting the motor of a cleaning device. The cleaning device includes a sweeping robot, a floor scrubber, a vacuum cleaner, etc. The cleaning device in this embodiment is described by taking a sweeping robot as an example. The sweeping robot includes one or more motors, and this embodiment is described by taking a sweeping robot including one motor as an example.
[0031] The abnormal environment in this embodiment can be an environment with a high altitude and low air pressure, for example, a plateau area. The environmental data can be a specific value, or a difference, a percentage, a range, etc. For example, the environmental data is an air pressure value, or an air pressure difference, which is the difference between normal air pressure and abnormal air pressure.
[0032] Optionally, the motor speed control mode includes controlling the motor power. The motor power is proportional to the motor speed, and the motor power is proportional to the altitude. The higher the altitude, the greater the motor power, and the greater the damage to the motor.
[0033] The execution subject of the above steps may be a terminal, a server, a specific processor provided in the terminal or the server, or a processor or processing device provided relatively independently from the terminal or the server, but is not limited thereto.
[0034] Through the above steps, the air pressure information of the environment where the cleaning device is located is obtained, wherein a motor is provided in the cleaning device, and the cleaning device has a cleaning function under the drive of the motor; whether the cleaning device is in an abnormal environment is determined based on the air pressure information; when the cleaning device is in an abnormal environment, the environmental data of the abnormal environment is determined; and the speed of the motor is adjusted or set based on the environmental data. Since in the above method, when the air pressure in the environment changes, the speed of the motor is adjusted by adjusting the power of the motor, thereby protecting the motor and increasing the service life of the motor. Therefore, the problem of affecting the service life of the motor in an abnormal environment existing in the related art is solved, and the effect of effectively increasing the service life of the motor and reducing damage is achieved.
[0035] In an exemplary embodiment, obtaining the air pressure information of the environment where the cleaning device is located includes: during the startup of the cleaning device, detecting the altitude and / or air pressure value of the environment where the cleaning device is located by a detection device, and outputting the air pressure information, wherein during the startup of the cleaning device, the starting speed of the motor matches the air pressure information. In this embodiment, the detection device can be a sensor for detecting air pressure, or it can be other devices that can detect other things. The number of detection devices can be one or more, and the positions where different detection devices are set can be different. When the number of detection devices is multiple, the air pressure of the environment can be determined according to the highest air pressure detected by multiple detection devices, or the air pressure of the environment can be determined according to the average air pressure detected by multiple detection devices. Optionally, the detection device can be set in the cleaning device, for example, the air pressure sensor is set in the sweeping robot. The detection device can also be set outside the cleaning device, for example, an air pressure sensor is set in the environment around the sweeping robot, or the air pressure detected by the outside is transmitted to the sweeping robot through a wireless signal. In addition, in the process of starting the cleaning device, the air pressure information can be obtained in this embodiment, so that the speed of the motor can be set, and after the motor is started, the cleaning function of the cleaning device can be controlled according to the speed matching the air pressure. Thereby the purpose of including a motor can be achieved.
[0036] In an exemplary embodiment, obtaining the air pressure information of the environment where the cleaning device is located includes: before the cleaning device is started, detecting the altitude and / or air pressure value of the environment where the cleaning device is located, and outputting the air pressure information. In this embodiment, the air pressure information can be obtained before the cleaning device is started, so that the speed of the motor can be set. After the motor is started, the cleaning function of the cleaning device can be controlled according to the speed matching the air pressure. Thereby, the purpose of effectively protecting the performance of the motor can be achieved.
[0037] In an exemplary embodiment, when the cleaning device is in an abnormal environment, the environmental data of the abnormal environment is determined, including: when the altitude in the air pressure information is greater than the preset altitude, and / or the air pressure value in the air pressure information is less than the preset air pressure value, it is determined that the cleaning device is in an abnormal environment; the altitude and air pressure value in the abnormal environment are determined as abnormal altitude and abnormal air pressure value. In this embodiment, if the cleaning device is in an environment where the air pressure is continuously decreasing, the air pressure value of the environment can be detected in real time, so that the speed of the motor can be adjusted in real time. Optionally, the preset altitude can be a certain interval value flexibly set based on the environment where the cleaning device is located, for example, between 1000-2000 meters; it can also be a fixed altitude value, such as 1000 meters. By comparing the air pressure value in the current environment with the normal air pressure value, the environment in which the cleaning device is located can be accurately determined.
[0038] In an exemplary embodiment, adjusting or setting the speed of the motor based on environmental data includes: calculating a first difference between the abnormal altitude and the sea level; determining a first power adjustment range corresponding to the first difference; using the first power adjustment range to set the starting speed of the motor, and when the cleaning device is turned on, controlling the motor to drive the cleaning function of the cleaning device according to the starting speed; or, when the cleaning device is in operation, using the first power adjustment range to adjust the current speed of the motor to determine the working speed of the motor, and controlling the motor to drive the cleaning device to perform the cleaning operation according to the working speed. In this embodiment, the motor power is adjusted step by step according to the altitude of the cleaning device until it is adjusted to the minimum power that can perform the cleaning function. For example, at an altitude of 2000 meters, the power is adjusted to 20% of the normal operation of the motor. If the motor speed is still very fast, it is reduced by another 20% until it drops to the minimum speed for the cleaning device to perform the cleaning operation, that is, it is necessary to ensure the most basic cleaning operation of the cleaning device. For example, after the motor speed is reduced, the cleaning gear of the cleaning device will also be reduced until it drops to the lowest gear. It should be noted that the higher the cleaning gear, the greater the suction, and the lower the gear, the smaller the suction. As the speed of the motor decreases, the suction force of the cleaning equipment will also decrease accordingly. However, while effectively controlling the speed of the motor, the basic cleaning operation of the cleaning equipment can also be guaranteed.
[0039] In an exemplary embodiment, the starting speed of the motor is set using the first power adjustment range, including: using the first power adjustment range to set the first duty cycle of the motor to set the first voltage and the first current of the motor; using the first voltage and the first current to control the starting speed of the motor. In this embodiment, the duty cycle refers to the proportion of the power-on time relative to the total time in a pulse cycle. Adjusting the first duty cycle of the motor includes reducing the speed of the motor by reducing the first duty cycle when the air pressure decreases. When the air pressure increases, the speed of the motor is increased by increasing the first duty cycle. For example, Figure 3 As shown, in a low-pressure environment, when the air pressure value detected by the air pressure sensor reaches 10% or more of the atmospheric pressure at an altitude of 0, the suction motor of the cleaning equipment will increase the speed to maintain power due to the influence of atmospheric pressure. The motor speed is calculated by the frequency speed measurement method or the periodic speed measurement method. In order to maintain the constant motor power, the motor control board increases the motor speed by increasing the duty cycle. When the motor speed increases to a certain extent, it will affect the service life of the motor. The duty cycle will be reduced to reduce the voltage and current, thereby reducing the motor power, which is used to reduce the motor speed, and then protect the motor and circuit components, reduce the temperature rise of the motor and components, and increase the service life of the motor and circuit components.
[0040] In an exemplary embodiment, the current speed of the motor is adjusted by using the first power adjustment range to determine the working speed of the motor, including: using the first power adjustment range to adjust the second duty cycle of the motor in real time to adjust the second voltage and second current of the motor in real time; using the second voltage and second current adjusted in real time to adjust the working speed of the motor in real time. In this embodiment, during the operation of the cleaning device, the rotation power is adjusted in real time based on the environment in which the cleaning device is located, so as to effectively maintain the performance of the motor.
[0041] In an exemplary embodiment, after adjusting or setting the speed of the motor based on environmental data, the method further includes: when the speed of the motor is within the warning speed range, issuing a warning message, wherein the warning message is used to warn that the cleaning function of the motor is abnormal, and the warning speed range includes the speed range of the motor driving the cleaning device to perform cleaning kinetic energy. In this embodiment, the warning message can be issued by the warning device, for example, the warning message is broadcasted by a voice device, or the warning message is displayed by the display frequency of the indicator light. In addition, the abnormal level can also be determined based on the environmental data; and a warning message corresponding to the abnormal level is issued. For example, when the speed of the motor exceeds 30% of the normal speed, the warning light in the cleaning device flashes at a high frequency to indicate that the speed of the motor is at a higher level of abnormality. Thereby, the abnormal level of the motor can be clearly displayed to prompt the user to turn off the cleaning device in time.
[0042] In an exemplary embodiment, after adjusting or setting the speed of the motor based on the environmental data, the method further includes: determining the real-time speed of the motor adjusted or set under the environmental data; and storing the environmental data and the real-time speed in correspondence. In this embodiment, the cleaning device can be connected to a cloud server, and the corresponding altitude, air pressure value, and adjusted speed can be stored in the cloud server, or in a local database. In this way, the data can be effectively recorded, and the speed of the cleaning device can be directly determined from the recorded data when the air pressure changes next time, so as to quickly adjust the speed of the motor.
[0043] In an exemplary embodiment, after adjusting or setting the speed of the motor based on the environmental data, the method further includes: obtaining the temperature value of the motor in real time while the motor is running; when the temperature value is greater than the preset temperature value, adjusting the power of the motor according to the third power adjustment range to adjust the speed of the motor. In this embodiment, while reducing the speed of the motor, it is also necessary to detect in real time whether the temperature of the motor continues to rise. If it continues to rise, it is necessary to continue to reduce the speed of the motor until it is adjusted to the minimum power that can perform the cleaning function, so that the speed of the motor can be effectively controlled without affecting the cleaning function of the cleaning device.
[0044] In an exemplary embodiment, when the temperature value is greater than the preset temperature value, the power of the motor is adjusted according to the third power adjustment range to adjust the speed of the motor, including: adjusting the third duty cycle of the motor to adjust the third voltage and the third current of the motor, wherein the adjusted third duty cycle corresponds to the first power adjustment range; controlling the speed of the motor according to the adjusted third voltage and the third current, wherein the speed of the motor has the ability to drive the cleaning function of the cleaning device. In this embodiment, the duty cycle is proportional to the current and the voltage. When the duty cycle decreases, the voltage and the current will also decrease, thereby reducing the speed of the motor and extending the service life of the motor.
[0045] In an exemplary embodiment, when the temperature value is greater than the preset temperature value, the power of the motor is adjusted according to the third power adjustment range to adjust the speed of the motor, and the method further includes: when the temperature of the motor rises by more than the preset range within the preset time period, and it is determined that the power of the motor within the preset time period is greater than the warning power value, the power of the motor is continued to be adjusted according to the third power adjustment range, wherein the warning power value includes the power of the motor when driving the cleaning device to perform the cleaning function. In this embodiment, if the temperature of the motor continues to rise, it is necessary to continue to reduce the speed of the motor until it is adjusted to the minimum power that can perform the cleaning function, so that the speed of the motor can be effectively controlled without affecting the cleaning function of the cleaning device.
[0046] Through the description of the above implementation methods, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course 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 invention is essentially or the M contributions to the prior art can be embodied in the form of a software product, and the computer software product is stored in a storage medium (such as ROM / RAM, disk, optical disk), including a number of instructions for a terminal device (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods described in each embodiment of the present invention.
[0047] In this embodiment, a device for adjusting the motor speed is also provided. Figure 4 is a structural block diagram of a device for adjusting the motor speed according to an embodiment of the present invention, such as Figure 4 As shown, the device comprises:
[0048] A first acquisition module 42 is used to acquire air pressure information of an environment where a cleaning device is located, wherein the cleaning device is provided with a motor, and the cleaning device has a cleaning function when driven by the motor;
[0049] A first judgment module 44 is used to judge whether the cleaning device is in an abnormal environment according to the air pressure information;
[0050] A first determination module 46, for determining environmental data of the abnormal environment when the cleaning device is in the abnormal environment;
[0051] The first processing module 48 is used to adjust or set the rotation speed of the motor based on the environmental data.
[0052] In an exemplary embodiment, the above-mentioned first acquisition module includes: a first output unit, which is used to detect the altitude and air pressure value of the environment where the above-mentioned cleaning equipment is located through a detection device during the startup of the above-mentioned cleaning equipment, and output the above-mentioned air pressure information, wherein, during the startup of the above-mentioned cleaning equipment, the starting speed of the above-mentioned motor matches the above-mentioned air pressure information.
[0053] In an exemplary embodiment, the first acquisition module includes one of the following:
[0054] A first output unit is used to detect the altitude and / or air pressure of the environment where the cleaning device is located by a detection device during the startup of the cleaning device, and output the air pressure information, wherein the starting speed of the motor matches the air pressure information during the startup of the cleaning device;
[0055] The second output unit is used to detect the altitude and / or air pressure value of the environment where the cleaning device is located before the cleaning device is started, and output the air pressure information.
[0056] In an exemplary embodiment, the first determining module includes:
[0057] A first determination unit, configured to determine that the cleaning device is in an abnormal environment when the altitude in the air pressure information is greater than a preset altitude and / or the air pressure value in the air pressure information is less than a preset air pressure value;
[0058] The second determining unit is used to determine the altitude and the air pressure value in the abnormal environment as the abnormal altitude and the abnormal air pressure value.
[0059] In an exemplary embodiment, the first processing module comprises:
[0060] A first calculation unit, used for calculating a first difference between the abnormal altitude and the sea level;
[0061] A third determining unit, configured to determine a first power adjustment amplitude corresponding to the first difference;
[0062] A first setting unit is used to set the starting speed of the motor by using the first power adjustment range, and when the cleaning device is turned on, control the motor to drive the cleaning function of the cleaning device according to the starting speed; or
[0063] The first adjustment unit is used to adjust the current speed of the motor using the first power adjustment range when the cleaning device is in operation, so as to determine the working speed of the motor, and control the motor to drive the cleaning device to perform a cleaning operation at the working speed.
[0064] In an exemplary embodiment, the first setting unit includes:
[0065] A first setting subunit, configured to set a first duty cycle of the motor by using the first power adjustment amplitude, so as to set a first voltage and a first current of the motor;
[0066] The first control subunit is used to control the starting speed of the motor by using the first voltage and the first current.
[0067] In an exemplary embodiment, the first adjustment unit comprises:
[0068] A first adjustment subunit, configured to adjust the second duty cycle of the motor in real time by using the first power adjustment amplitude, so as to adjust the second voltage and the second current of the motor in real time;
[0069] The second adjustment subunit is used to adjust the operating speed of the motor in real time by using the second voltage and the second current adjusted in real time.
[0070] In an exemplary embodiment, the device further includes: a first warning module, which is used to adjust or set the speed of the motor based on the environmental data, and then issue a warning message when the speed of the motor is within a warning speed range, wherein the warning message is used to warn that the cleaning function of the motor is abnormal, and the warning speed range includes the speed range in which the motor drives the cleaning device to perform cleaning kinetic energy.
[0071] In an exemplary embodiment, the above device further comprises:
[0072] A second determination module is used to determine the abnormality level according to the above environmental data;
[0073] The second warning module is used to issue a warning message corresponding to the above abnormal level.
[0074] In an exemplary embodiment, the above device further comprises:
[0075] A third determination module is used to determine the real-time speed of the motor adjusted or set under the environmental data after adjusting or setting the speed of the motor based on the environmental data;
[0076] The first storage module is used to store the above environmental data and the above real-time rotation speed in correspondence.
[0077] According to yet another embodiment of the present invention, there is provided a cleaning device, comprising the above-mentioned motor speed adjustment device.
[0078] It should be noted that the above modules can be implemented by software or hardware. For the latter, it can be implemented in the following ways, but not limited to: the above modules are all located in the same processor; or the above modules are located in different processors in any combination.
[0079] An embodiment of the present invention further provides a computer-readable storage medium, in which a computer program is stored, wherein the computer program is configured to execute the steps of any one of the above method embodiments when in motion.
[0080] In an exemplary embodiment, the computer-readable storage medium may include, but is not limited to, various media that can store computer programs, such as a USB flash drive, a read-only memory (ROM), a random-access memory (RAM), a mobile hard disk, a magnetic disk or an optical disk.
[0081] An embodiment of the present invention further provides an electronic device, including a memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.
[0082] In an exemplary embodiment, the electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the processor, and the input / output device is connected to the processor.
[0083] For specific examples in this embodiment, reference may be made to the examples described in the above embodiments and exemplary implementation modes, and this embodiment will not be described in detail herein.
[0084] Obviously, it should be understood by those skilled in the art that the modules or steps of the present invention described above can be implemented by a general-purpose computing device, they can be concentrated on a single computing device, or distributed on a network composed of all computing devices, they can be implemented by a program code executable by a computing device, so that they can be stored in a storage device and executed by the computing device, and in some cases, the steps shown or described can be executed in a different order than herein, or they can be made into individual integrated circuit modules, or all of the modules or steps therein can be made into a single integrated circuit module for implementation. Thus, the present invention is not limited to any particular combination of hardware and software.
[0085] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A method for adjusting the speed of a motor, characterized in that: include: Acquiring air pressure information of an environment where a cleaning device is located, wherein the cleaning device is provided with a motor, and the cleaning device has a cleaning function when driven by the motor; determining whether the cleaning device is in an abnormal environment according to the air pressure information; When the cleaning device is in the abnormal environment, determining environmental data of the abnormal environment; The speed of the motor is adjusted or set based on the environmental data.
2. The method according to claim 1, characterized in that Get the air pressure information of the environment where the cleaning equipment is located, including one of the following: During the start-up of the cleaning device, the altitude and / or air pressure value of the environment where the cleaning device is located is detected by a detection device, and the air pressure information is output, wherein during the start-up of the cleaning device, the starting speed of the motor matches the air pressure information; Before the cleaning device is started, the altitude and / or air pressure value of the environment where the cleaning device is located is detected, and the air pressure information is output.
3. The method according to claim 1, characterized in that When the cleaning device is in the abnormal environment, determining environmental data of the abnormal environment includes: When the altitude in the air pressure information is greater than a preset altitude, and / or the air pressure value in the air pressure information is less than a preset air pressure value, it is determined that the cleaning device is in an abnormal environment; The altitude and the air pressure value in the abnormal environment are determined as abnormal altitude and abnormal air pressure value.
4. The method according to claim 3, characterized in that Adjusting or setting the speed of the motor based on the environmental data includes: Calculating a first difference between the abnormal altitude and the sea level; Determining a first power adjustment amplitude corresponding to the first difference; The starting speed of the motor is set by using the first power adjustment range, and when the cleaning device is turned on, the motor is controlled to drive the cleaning function of the cleaning device according to the starting speed; or, When the cleaning device is in operation, the first power adjustment range is used to adjust the current rotation speed of the motor to determine the operating rotation speed of the motor, and the motor is controlled to drive the cleaning device to perform a cleaning operation at the operating rotation speed.
5. The method according to claim 4, characterized in that Using the first power adjustment range to set the starting speed of the motor includes: Using the first power adjustment amplitude to set a first duty cycle of the motor, so as to set a first voltage and a first current of the motor; The starting speed of the motor is controlled by using the first voltage and the first current.
6. The method according to claim 4, characterized in that Using the first power adjustment range to adjust the current speed of the motor to determine the working speed of the motor includes: Using the first power adjustment amplitude to adjust the second duty cycle of the motor in real time, so as to adjust the second voltage and the second current of the motor in real time; The operating speed of the motor is adjusted in real time using the second voltage and the second current adjusted in real time.
7. A motor speed adjustment device, characterized in that: include: A first acquisition module is used to acquire air pressure information of an environment where a cleaning device is located, wherein the cleaning device is provided with a motor, and the cleaning device has a cleaning function when driven by the motor; A first judgment module, used for judging whether the cleaning device is in an abnormal environment according to the air pressure information; A first determination module, configured to determine environmental data of the abnormal environment when the cleaning device is in the abnormal environment; The first processing module is used to adjust or set the rotation speed of the motor based on the environmental data.
8. A cleaning device, characterized in that: The invention comprises a device for adjusting the motor speed as claimed in claim 7.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, wherein the computer program implements the steps of the method described in any one of claims 1 to 6 when executed by a processor.
10. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the method described in any one of claims 1 to 6 are implemented.
