A brushless motor driving method, device and computer readable storage medium
By changing the driving frequency at intervals when the brush motor is running, it disperses electromagnetic radiation energy and reduces noise interference, solving the problems of electromagnetic radiation and noise interference during the operation of the brush motor and protecting the environment and human health.
Patent Information
- Application Number
- CN202110116572.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2018-12-29
- Publication Date
- 2024-08-27
- Estimated Expiration
- 2038-12-29
AI Technical Summary
Existing brush motors produce a large amount of electromagnetic radiation and noise interference during operation, which affects daily life and harms health.
By randomly generating an initial driving frequency within the first preset frequency range, and generating a new driving frequency within the second preset frequency range after a preset period of time, the brushed motor is controlled to run at the new frequency and the electromagnetic radiation energy is dispersed , to prevent electromagnetic radiation peaks and noise interference.
It effectively reduces the electromagnetic radiation peak and noise interference when the brush motor is running, prevents the superposition of electromagnetic radiation energy at the same frequency, avoids noise generation, and protects the surrounding environment and human health.
Smart Images

Figure CN113452292B
Abstract
Description
Technical Field
[0001] The embodiments of the present invention relate to the field of mechanical control, and in particular to a brushed motor driving method, device and computer-readable storage medium. Background Art
[0002] The motor is a machine that converts electrical energy into mechanical energy. It has good speed regulation performance and is widely used in electric traction. According to its structure, the motor can be divided into two types: brushed and brushless. Among them, the brushed motor introduces the positive and negative poles of the power supply to the commutator of the rotor through the brush. The commutator is connected to the coil on the rotor. The polarity of the coil is constantly alternating and forms a force with the fixed magnetic field to rotate. Due to the simple manufacturing of brushed motors, low technical threshold and low cost, its application in people's lives is becoming more and more extensive. From automobile motors to small household sweepers, brushed motors can be used to drive.
[0003] However, the inventors of the present invention have found that the brushed motors in the prior art will generate a large amount of electromagnetic radiation and noise interference to the surrounding space during operation, which will not only affect people's daily lives, but also damage the health of people around them. Summary of the invention
[0004] The purpose of the embodiments of the present invention is to provide a brushed motor driving method, device and computer-readable storage medium to reduce the electromagnetic radiation peak and noise interference generated by the brushed motor during operation.
[0005] To solve the above technical problems, an embodiment of the present invention provides a brushed motor driving method, comprising the following steps: randomly generating an initial driving frequency within a first preset frequency range; controlling the brushed motor to operate at the initial driving frequency; generating a new driving frequency within a second preset frequency range at every preset time interval, and controlling the brushed motor to operate at the new driving frequency.
[0006] An embodiment of the present invention also provides a brushed motor driving device, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the aforementioned brushed motor driving method.
[0007] An embodiment of the present invention further provides a computer-readable storage medium storing a computer program, wherein the computer program implements the aforementioned brushed motor driving method when executed by a processor.
[0008] Compared with the prior art, the embodiment of the present invention generates a new driving frequency at each preset time interval after generating an initial driving frequency and controlling the brushed motor to operate at the initial driving frequency, and then controls the brushed motor to operate at the new driving frequency. Since the driving frequency of the brushed motor changes at each preset time interval, the energy of the electromagnetic radiation generated when the brushed motor is running can be dispersed at different frequencies, preventing the brushed motor from running at the same driving frequency for a long time and causing the energy of the electromagnetic radiation generated to be superimposed at the frequency, avoiding excessive peak energy of the electromagnetic radiation, and effectively reducing the peak value of the electromagnetic radiation generated by the brushed motor when it is running. In addition, the driving frequency of the brushed motor changes at each preset time interval, which can also prevent the operating frequency of the brushed motor from resonating with the structure of the housing of the brushed motor and other structures, avoiding large noise, and effectively reducing the noise interference generated by the brushed motor during operation.
[0009] In addition, before a new driving frequency is generated within the second preset frequency range at each interval of the preset duration, it also includes: obtaining the product of the initial driving frequency and the preset upper limit ratio as the theoretical upper limit value of the second preset frequency range; setting the upper limit value of the second preset frequency range to the theoretical upper limit value; obtaining the product of the initial driving frequency and the preset lower limit ratio as the theoretical lower limit value of the second preset frequency range; determining whether the theoretical lower limit value is greater than or equal to 20,000 Hz; if so, setting the lower limit value of the second preset frequency range to the theoretical lower limit value; if not, setting the lower limit value of the second preset frequency range to 20,000 Hz. The theoretical upper limit value and the theoretical lower limit value of the second preset frequency range are calculated respectively by the initial driving frequency, the preset upper limit ratio and the preset lower limit ratio. When the theoretical lower limit value is less than 20,000 Hz, the lower limit value of the second preset frequency range is set to 20,000 Hz. Since vibrations below 20,000 Hz will produce sounds audible to the human ear, setting the lower limit value of the second preset frequency range to not less than 20,000 Hz can effectively prevent the brushed motor from generating strong noise interference to the human ear.
[0010] In addition, the preset upper limit ratio is not less than 110% and not more than 120%, and the preset lower limit ratio is not less than 80% and not more than 90%.
[0011] In addition, the preset upper limit ratio and the preset lower limit ratio are generated by a random function.
[0012] In addition, before controlling the brushed motor to operate at the new driving frequency, the method further includes: determining whether the new driving frequency is the same as the current driving frequency of the brushed motor; if so, regenerating the new driving frequency, and then executing the method of controlling the brushed motor to operate at the new driving frequency; if not, directly executing the method of controlling the brushed motor to operate at the new driving frequency. Before controlling the brushed motor to operate at the new driving frequency, a step of determining whether the new driving frequency is the same as the current driving frequency of the brushed motor is added, and regenerating the new driving frequency when it is determined to be the same, to prevent the driving frequency of the brushed motor from taking the same value twice or more times without changing, thereby more effectively reducing the electromagnetic radiation peak and noise interference generated by the brushed motor during operation.
[0013] In addition, the first preset frequency range is greater than or equal to 20,000 Hz. The first preset frequency range is set to be greater than or equal to 20,000 Hz to prevent the initial driving frequency from being less than 20,000 Hz, which may cause noise interference during the operation of the brushed motor.
[0014] In addition, the initial driving frequency is generated by a random function, and the new driving frequency is generated by the random function. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] Figure 1 is a flow chart of a brushed motor driving method provided by a first embodiment of the present invention;
[0016] Figure 2 is a flow chart of a brushed motor driving method provided by a second embodiment of the present invention;
[0017] Figure 3 Flow chart of the brushed motor driving method provided by the third embodiment of the present invention
[0018] Figure 4 4 is a schematic structural diagram of a brushed motor driving device provided by a fourth embodiment of the present invention. DETAILED DESCRIPTION
[0019] In order to make the purpose, technical scheme and advantages of the embodiments of the present invention clearer, the embodiments of the present invention will be described in detail below with reference to the accompanying drawings. However, it can be understood by those skilled in the art that in the embodiments of the present invention, many technical details are provided to enable readers to better understand the present invention. However, even without these technical details and various changes and modifications based on the following embodiments, the technical scheme claimed in the present invention can be implemented.
[0020] The first embodiment of the present invention relates to a brushed motor driving method. The specific process is as follows Figure 1As shown, the following steps are included:
[0021] Step S101: randomly generating an initial driving frequency within a first preset frequency range.
[0022] Specifically, in this step, the first preset frequency range is a value range of a preset initial driving frequency, and the first preset frequency range can be flexibly set according to the actual situation of the brushed motor, such as model parameters of the brushed motor, usage scenarios, etc.
[0023] Further, in this step, the initial driving frequency is generated by a random function within the first preset frequency range. It is understandable that the method of randomly generating the initial driving frequency within the first preset frequency range is not limited to using a random function, and other methods such as a random number table method can also be used, which can be selected according to actual needs.
[0024] In addition, in this step, the first preset frequency range is greater than or equal to 20,000 Hz. Since 20,000 Hz is the highest frequency of sound that can be heard by the human ear, the first preset frequency range is set to be greater than or equal to 20,000 Hz to prevent the brushed motor from producing sound that can be heard by the human ear, effectively reducing the noise generated by the brushed motor when it is running. It should be noted that the first preset frequency range being greater than or equal to 20,000 Hz is only a preferred embodiment, and the first preset frequency range is not limited to this value range. It can be flexibly set according to actual needs. For example, if the brushed motor is set in an area away from people, its driving frequency can also be less than 20,000 Hz.
[0025] Step S102: controlling the brushed motor to operate at an initial driving frequency.
[0026] Specifically, in this step, after the initial driving frequency is generated in step S101, the initial driving frequency is input into the microcontroller unit of the brushed motor; the microcontroller unit controls the field effect transistor driving circuit of the brushed motor to control the brushed motor to operate at the initial driving frequency.
[0027] Step S103: generating a new driving frequency within a second preset frequency range at intervals of a preset time.
[0028] Specifically, in this embodiment, the so-called preset duration is the duration of the pre-set device, and this duration can be flexibly set according to actual needs. The so-called interval preset duration, generating a new driving frequency within the second preset frequency range, is that after the brushed motor runs at the initial driving frequency for a preset duration, a new driving frequency is generated within the second preset frequency range.
[0029] Further, in this embodiment, the method for generating a new driving frequency within the second preset frequency range is the same as the method for generating the initial driving frequency within the first preset frequency range, that is, it is randomly generated within the second preset frequency range by a random function. It is understandable that the method for generating a new driving frequency within the second preset frequency range may be different from the method for generating the initial driving frequency within the first preset frequency range, and other methods may be used to randomly generate a new driving frequency. The specific method can be flexibly selected according to actual needs.
[0030] In addition, it should be noted that the second preset value range may be the same as or different from the first preset value range, and may be selected according to actual conditions. In this embodiment, the second preset value range is a value range selected in advance according to actual needs.
[0031] Step S104: Control the brushed motor to operate at the new driving frequency, and return to step S103.
[0032] Specifically, in this step, after the new driving frequency is generated in step S103, the brushed motor is controlled to operate at the new driving frequency. It is understandable that the method of controlling the brushed motor to operate at the new driving frequency is substantially the same as that in step S102, and will not be described in detail here. It should be noted that in this step, after the brushed motor is controlled to operate at the new driving frequency for a preset time, the process returns to step S103, where the driving frequency is changed.
[0033] Compared with the prior art, the brushed motor driving method provided in the first embodiment of the present invention controls the brushed motor to operate at a new driving frequency by presetting the duration of each interval, thereby dispersing the electromagnetic radiation energy generated by the brushed motor during operation to different frequencies, preventing the electromagnetic radiation energy from accumulating at the same frequency and causing an electromagnetic radiation peak, which has an adverse effect on the surrounding environment. In addition, the brushed motor is controlled to operate at a new driving frequency by presetting the duration of each interval, preventing other parts of the brushed motor, such as the housing, from resonating with the rotor, effectively reducing the noise of the brushed motor during operation.
[0034] A second embodiment of the present invention relates to a brushed motor driving method. Figure 2 As shown, the following steps are included:
[0035] Step S201: randomly generating an initial driving frequency within a first preset frequency range.
[0036] Step S202: Control the brushed motor to operate at an initial driving frequency.
[0037] Step S203: Calculate and obtain a second preset value range according to the initial driving frequency.
[0038] Specifically, in this step, a preset upper limit ratio and a preset lower limit ratio are pre-set, and after the initial driving frequency is obtained in step S201. First, according to the initial driving frequency and the preset upper limit ratio, the theoretical upper limit value of the second preset value range is calculated, and the upper limit value of the second preset frequency range is set to the calculated theoretical upper limit value; then, according to the initial driving frequency and the preset lower limit ratio, the theoretical lower limit value of the second preset value range is calculated. Since a large noise will be generated when the driving frequency of the brushed motor is less than 20,000 Hz, it is also necessary to compare the calculated theoretical lower limit value with 20,000 Hz. If the calculated theoretical lower limit value is greater than or equal to 20,000 Hz, the lower limit value of the second preset frequency range is set to the calculated theoretical lower limit value; if the calculated theoretical lower limit value is less than 20,000 Hz, the lower limit value of the second preset frequency range is set to 20,000 Hz.
[0039] Preferably, in this step, the preset upper limit ratio is not less than 110% and not more than 120%, and the preset lower limit ratio is not less than 80% and not more than 90%.
[0040] In addition, in this step, the preset upper limit ratio and the preset lower limit ratio are both obtained by a random function. It can be understood that obtaining by a random function is only an example of a method for randomly generating a preset upper limit ratio and a preset lower limit ratio provided in this embodiment. In actual application, other methods can also be used, which are not listed here one by one.
[0041] Step S204: generating a new driving frequency within a second preset frequency range at intervals of a preset time.
[0042] Step S205: Control the brushed motor to operate at the new driving frequency, and return to step S204.
[0043] Since steps S201 , S202 , S204 , and S205 in this embodiment are substantially the same as steps S101 - S104 in the first embodiment, they will not be described in detail herein.
[0044] Compared with the prior art, the brushed motor driving method provided in the second embodiment of the present invention controls the brushed motor to operate at a new driving frequency by presetting the duration of each interval, thereby dispersing the electromagnetic radiation energy generated by the brushed motor during operation to different frequencies, preventing the electromagnetic radiation energy from accumulating at the same frequency and causing an electromagnetic radiation peak, which has an adverse effect on the surrounding environment. In addition, the brushed motor is controlled to operate at a new driving frequency by presetting the duration of each interval, preventing other parts of the brushed motor, such as the housing, from resonating with the rotor, effectively reducing the noise of the brushed motor during operation. In addition, the second preset frequency range is calculated by the initial driving frequency, the preset upper limit ratio and the preset lower limit ratio to prevent the difference between two consecutive randomly obtained driving frequencies from being too large, causing the brushed motor to be damaged during the rapid conversion of the driving frequency.
[0045] A third embodiment of the present invention relates to a method for driving a brushed motor. Figure 3 As shown, the following steps are included:
[0046] Step S301: randomly generating an initial driving frequency within a first preset frequency range.
[0047] Step S302: Control the brushed motor to operate at an initial driving frequency.
[0048] Step S303: generating a new driving frequency within a second preset frequency range at intervals of a preset time.
[0049] Step S304: determine whether the new driving frequency is the same as the current driving frequency of the brushed motor, if so, execute step S305; if not, execute step S306.
[0050] Specifically, in this step, after a new driving frequency is generated within the second preset frequency range, it is first determined whether the new driving frequency is the same as the current driving frequency of the brushed motor. If they are the same, step S305 is executed; if they are not the same, step S306 is executed.
[0051] Step S305: regenerate a new driving frequency within the second preset frequency range, and return to execute step S304.
[0052] Specifically, in this step, since the new driving frequency is determined to be the same as the current driving frequency of the brushed motor in step S304, in order to change the driving frequency of the brushed motor, in this step, a new driving frequency is regenerated within the second preset frequency range, and the process returns to step S304 for further determination.
[0053] Step S306: Control the brushed motor to operate at the new driving frequency, and return to step S303.
[0054] Since steps S301 , S302 , S303 , and S306 in this embodiment are substantially the same as steps S101 - S104 in the first embodiment, they will not be described in detail herein.
[0055] Compared with the prior art, the brushed motor driving method provided in the second embodiment of the present invention controls the brushed motor to operate at a new driving frequency by presetting the duration of each interval, thereby dispersing the electromagnetic radiation energy generated by the brushed motor during operation to different frequencies, preventing the electromagnetic radiation energy from accumulating at the same frequency and causing an electromagnetic radiation peak, which has an adverse effect on the surrounding environment. In addition, the brushed motor is controlled to operate at a new driving frequency by presetting the duration of each interval, preventing other parts of the brushed motor, such as the housing, from resonating with the rotor, effectively reducing the noise of the brushed motor during operation. In addition, before controlling the brushed motor to operate at a new driving frequency, step S304 is added to determine whether the new driving frequency is the same as the current driving frequency of the brushed motor, and when it is determined that the two are the same, step S305 is executed to regenerate a new driving frequency, and the process returns to step S304 for another determination until the new driving frequency is different from the current driving frequency of the brushed motor. Step S306 is then executed to control the brushed motor to operate at the new driving frequency to prevent the driving frequency of the brushed motor from not changing due to taking the same value for two or more consecutive times, thereby more effectively reducing the electromagnetic radiation peak and noise interference generated by the brushed motor during operation.
[0056] A fourth embodiment of the present invention relates to a brushed motor driving device, such as Figure 4 As shown, it includes: at least one processor 401; and a memory 402 that is communicatively connected to the at least one processor 401; wherein the memory 402 stores instructions that can be executed by the at least one processor 401, and the instructions are executed by the at least one processor 401 so that the at least one processor 401 can execute the brushed motor driving method as described above.
[0057] The memory 402 and the processor 401 are connected in a bus manner, and the bus may include any number of interconnected buses and bridges, and the bus connects various circuits of one or more processors 401 and the memory 402 together. The bus can also connect various other circuits such as peripheral devices, voltage regulators, and power management circuits, which are well known in the art and are therefore not further described herein. The bus interface provides an interface between the bus and the transceiver. The transceiver can be one element or multiple elements, such as multiple receivers and transmitters, providing a unit for communicating with various other devices on a transmission medium. The data processed by the processor 401 is transmitted on a wireless medium via an antenna, and further, the antenna also receives data and transmits the data to the processor 401.
[0058] The processor 401 is responsible for managing the bus and general processing, and can also provide various functions, including timing, peripheral interfaces, voltage regulation, power management and other control functions. The memory 402 can be used to store data used by the processor 401 when performing operations.
[0059] A fifth embodiment of the present invention relates to a computer-readable storage medium storing a computer program, which implements the above method embodiment when executed by a processor.
[0060] That is, those skilled in the art can understand that all or part of the steps in the above-mentioned embodiment method can be completed by instructing the relevant hardware through a program, and the program is stored in a storage medium, including several instructions to enable a device (which can be a single-chip microcomputer, chip, etc.) or a processor to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.
[0061] Those skilled in the art will appreciate that the above-mentioned embodiments are specific examples for implementing the present invention, and in actual applications, various changes may be made thereto in form and detail without departing from the spirit and scope of the present invention.
Claims
1. A brushless motor driving method, It is characterized in that The following steps are involved: Randomly generate an initial driving frequency within a first preset frequency range; Controlling the brushed motor to operate at the initial driving frequency; A second preset frequency range is calculated based on the initial driving frequency, wherein a preset lower limit ratio is preset; and a product of the initial driving frequency and the preset lower limit ratio is obtained as a theoretical lower limit value of the second preset frequency range; At each preset time interval, a new driving frequency is generated within the second preset frequency range, and the brushed motor is controlled to operate at the new driving frequency; The second preset frequency range also includes a preset upper limit ratio, and the product of the initial driving frequency and the preset upper limit ratio is taken as the theoretical upper limit value of the second preset frequency range, and the upper limit value of the second preset frequency range is set to the theoretical upper limit value; The preset upper limit ratio and the preset lower limit ratio are generated by a random function; The initial driving frequency is generated by a random function, and the new driving frequency is generated by the random function.
2. The brushed motor driving method according to claim 1, It is characterized in that Determining whether the theoretical lower limit value is greater than or equal to 20000 Hz; If yes, the lower limit value of the second preset frequency range is set to the theoretical lower limit value; if no, the lower limit value of the second preset frequency range is set to 20000 Hz.
3. The brushed motor driving method according to claim 1, It is characterized in that The preset upper limit ratio is not less than 110% and not more than 120%, and the preset lower limit ratio is not less than 80% and not more than 90%.
4. The brushed motor driving method according to claim 1, It is characterized in that Before controlling the brushed motor to operate at the new driving frequency, the method further includes: Determining whether the new driving frequency is the same as the current driving frequency of the brushed motor; If yes, regenerate the new driving frequency, and then control the brushed motor to operate at the new driving frequency; If not, directly controlling the brushed motor to operate at the new driving frequency is performed.
5. The brushed motor driving method according to claim 1, It is characterized in that The first preset frequency range is greater than or equal to 20,000 Hz.
6. A brushed motor drive device, It is characterized in that include: at least one processor; as well as, a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the brushed motor driving method according to any one of claims 1 to 5.
7. A computer-readable storage medium storing a computer program, It is characterized in that When the computer program is executed by a processor, the brushed motor driving method according to any one of claims 1 to 5 is implemented.
Citation Information
Patent Citations
System and method to reduce acoustic noise in screw compressors
CN101010515A
Motor control equipment and motor control system
CN103378775A
Inverter control method and system for eco-friendly vehicle
CN103780111A
Method and device for controlling driving frequency of compressor
CN104362861A
A method for driving a compressor and a device for driving a compressor
CN104410347A
