CN114337467B - Method for adjusting motor rotation speed and computer storage medium - Google Patents

Method for adjusting motor rotation speed and computer storage medium Download PDF

Info

Publication number
CN114337467B
CN114337467B CN202111592532.5A CN202111592532A CN114337467B CN 114337467 B CN114337467 B CN 114337467B CN 202111592532 A CN202111592532 A CN 202111592532A CN 114337467 B CN114337467 B CN 114337467B
Authority
CN
China
Prior art keywords
voltage
threshold value
speed regulating
voltage signal
end point
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202111592532.5A
Other languages
Chinese (zh)
Other versions
CN114337467A (en
Inventor
刘扬波
张建伟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
On Bright Electronics Shanghai Co Ltd
Original Assignee
On Bright Electronics Shanghai Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by On Bright Electronics Shanghai Co Ltd filed Critical On Bright Electronics Shanghai Co Ltd
Priority to CN202111592532.5A priority Critical patent/CN114337467B/en
Priority to TW111105476A priority patent/TWI784880B/en
Publication of CN114337467A publication Critical patent/CN114337467A/en
Application granted granted Critical
Publication of CN114337467B publication Critical patent/CN114337467B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02TCLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO TRANSPORTATION
    • Y02T10/00Road transport of goods or passengers
    • Y02T10/60Other road transportation technologies with climate change mitigation effect
    • Y02T10/72Electric energy management in electromobility

Landscapes

  • Control Of Electric Motors In General (AREA)

Abstract

The embodiment of the invention discloses a method for adjusting the rotating speed of a motor and a computer storage medium, wherein the method comprises the following steps: acquiring a starting point voltage initial threshold value and an end point voltage initial threshold value for the speed regulating mechanism; acquiring a speed regulation voltage signal from a speed regulation mechanism; determining a starting point voltage updating threshold value for the speed regulating mechanism according to the magnitude comparison relation between the minimum value of the speed regulating voltage signal and the starting point voltage initial threshold value; determining an end point voltage updating threshold value for the speed regulating mechanism according to the magnitude comparison relation between the maximum value of the speed regulating voltage signal and the end point voltage initial threshold value; and controlling the speed regulating mechanism to regulate the motor rotation speed according to the starting point voltage updating threshold value and the end point voltage updating threshold value. Through the technical scheme, the judging threshold value can be automatically adjusted, and the situation that the motor cannot be shut down or the motor cannot reach the maximum rotation speed and the like due to the abnormality of the speed regulating voltage signal is prevented, so that the service life of the electric tool is prolonged.

Description

Method for adjusting motor rotation speed and computer storage medium
Technical Field
The present invention relates generally to a method and computer storage medium for adjusting motor speed.
Background
In general, a user of an electric tool adjusts the rotational speed of a motor by a speed adjusting mechanism, and the mechanical movement of the speed adjusting mechanism causes a change in an electric signal, which can be converted into a speed adjusting voltage signal.
Wherein, speed regulating mechanism has following characteristics: (1) includes a mechanically moving part and an electronic part; (2) The regulated voltage signal is affected by both mechanical and electronic components. After long-term use of the power tool, both the mechanically moving parts and the electronic parts of the governor mechanism may age. These aged components can produce abnormal governor voltage signals; these abnormal speed regulation voltage signals can cause the motor to fail to meet the expectations of users, thereby affecting the overall function of the electric tool.
Disclosure of Invention
The embodiment of the invention provides a method for adjusting the rotating speed of a motor and a computer storage medium, which are used for automatically adjusting a judgment threshold value based on the relation between the minimum value and the maximum value of a speed regulating voltage signal and a starting point voltage initial threshold value and an ending point voltage initial threshold value by sampling the speed regulating voltage signal in real time, so that the whole machine failure caused by the abnormality of the speed regulating signal is avoided, and the service life of an electric tool is effectively prolonged.
A first embodiment of the present invention provides a method for adjusting a rotational speed of a motor, the method comprising: acquiring a starting point voltage initial threshold value and an end point voltage initial threshold value for the speed regulating mechanism; acquiring a speed regulation voltage signal from the speed regulation mechanism; determining a starting point voltage updating threshold value for the speed regulating mechanism according to the magnitude comparison relation between the minimum value of the speed regulating voltage signal and the starting point voltage initial threshold value; determining an end point voltage updating threshold value for the speed regulating mechanism according to the magnitude comparison relation between the maximum value of the speed regulating voltage signal and the end point voltage initial threshold value; and controlling the speed regulating mechanism to regulate the motor rotation speed according to the starting point voltage updating threshold value and the end point voltage updating threshold value.
According to the method provided by the first embodiment of the present invention, determining the starting point voltage update threshold for the speed regulating mechanism according to the magnitude comparison relation between the minimum value of the speed regulating voltage signal and the starting point voltage initial threshold includes: when the minimum value of the speed regulating voltage signal is smaller than the starting voltage initial threshold value, the starting voltage initial threshold value is used as the starting voltage updating threshold value; and when the minimum value of the speed regulating voltage signal is larger than or equal to the initial threshold value of the starting voltage, taking the minimum value of the speed regulating voltage signal as the initial voltage updating threshold value.
According to the method provided by the first embodiment of the present invention, determining the end point voltage update threshold for the speed regulating mechanism according to the magnitude comparison relation between the maximum value of the speed regulating voltage signal and the end point voltage initial threshold includes: when the maximum value of the speed regulating voltage signal is larger than the initial threshold value of the end point voltage, the initial threshold value of the end point voltage is used as the updating threshold value of the end point voltage; and when the maximum value of the speed regulating voltage signal is smaller than or equal to the initial threshold value of the end point voltage, taking the maximum value of the speed regulating voltage signal as the update threshold value of the end point voltage.
The method provided according to the first embodiment of the present invention further includes: updating the initial threshold value of the starting voltage to the updated threshold value of the starting voltage, and storing the updated initial threshold value of the starting voltage; updating the initial threshold value of the end point voltage to the updated threshold value of the end point voltage, and storing the updated initial threshold value of the end point voltage.
According to a first embodiment of the present invention, there is provided a method of acquiring a regulated voltage signal from the regulating mechanism comprising: and acquiring a speed regulating voltage when the speed regulating mechanism is displaced from an initial position so as to be used as the minimum value of the speed regulating voltage signal.
According to the method provided by the first embodiment of the present invention, acquiring the speed-regulating voltage signal from the speed regulating mechanism further includes: and carrying out noise elimination treatment on the speed regulating voltage when the speed regulating mechanism is displaced from the initial position.
According to a first embodiment of the present invention, there is provided a method of acquiring a regulated voltage signal from the regulating mechanism comprising: and after the minimum value of the speed regulating voltage signal is larger than or equal to the initial threshold value of the starting voltage, acquiring the speed regulating voltage when the slope change of the speed regulating voltage signal meets the preset condition so as to be used as the maximum value of the speed regulating voltage signal.
According to the method provided by the first embodiment of the present invention, acquiring the speed-regulating voltage signal from the speed regulating mechanism further includes: and performing noise elimination processing on the speed regulating voltage when the slope change of the speed regulating voltage signal meets the preset condition.
According to the method provided by the first embodiment of the present invention, determining the end point voltage update threshold for the speed regulating mechanism according to the magnitude comparison relation between the maximum value of the speed regulating voltage signal and the end point voltage initial threshold includes: and when the frequency that the maximum value of the speed regulating voltage signal is smaller than or equal to the initial threshold value of the end point voltage exceeds a preset threshold value, taking the maximum value of the speed regulating voltage signal as the update threshold value of the end point voltage.
A second embodiment of the invention provides a computer storage medium having instructions stored thereon, which when executed by one or more processors, cause the one or more processors to perform a method for adjusting a rotational speed of a motor as described in the first aspect.
The method for adjusting the rotating speed of the motor and the computer storage medium provided by the embodiment of the invention can automatically adjust the judging threshold value, prevent the situation that the motor cannot be shut down or the motor cannot reach the maximum rotating speed and the like caused by the abnormality of the speed regulating voltage signal, and further prolong the service life of the electric tool.
Drawings
In order to more clearly illustrate the technical solution of the embodiments of the present invention, the drawings that are needed to be used in the embodiments of the present invention will be briefly described, and it is possible for a person skilled in the art to obtain other drawings according to these drawings without inventive effort.
FIG. 1 illustrates a method of regulating motor speed provided by the prior art;
fig. 2 is a schematic structural view of a sliding rheostat type speed regulation mechanism according to an embodiment of the present invention;
FIG. 3 is a schematic view showing a Hall sensor type speed regulating mechanism according to another embodiment of the present invention;
FIG. 4 is a schematic diagram showing the relationship between the initial voltage threshold and the displacement distance of the governor mechanism;
FIG. 5 is a schematic diagram showing the relationship between an abnormal governor voltage signal and a voltage initial threshold;
FIG. 6 is a schematic diagram showing the relationship between an abnormal governor voltage signal and a voltage initial threshold;
FIG. 7 is a schematic diagram showing the relationship between an abnormal governor voltage signal and a voltage initial threshold;
fig. 8 is a flow chart of a method for adjusting a rotation speed of a motor according to an embodiment of the present invention; and
fig. 9 shows a specific flowchart of a method for adjusting a rotational speed of a motor according to an embodiment of the present invention.
Detailed Description
Features and exemplary embodiments of various aspects of the present invention will be described in detail below, and in order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention will be described in further detail below with reference to the accompanying drawings and the detailed embodiments. It should be understood that the specific embodiments described herein are merely configured to illustrate the invention and are not configured to limit the invention. It will be apparent to one skilled in the art that the present invention may be practiced without some of these specific details. The following description of the embodiments is merely intended to provide a better understanding of the invention by showing examples of the invention.
It is noted that relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising … …" does not exclude the presence of other like elements in a process, method, article or apparatus that comprises the element.
In the prior art, with the development of semiconductor technology, many electric tools employ a micro control unit (Microcontroller Unit, MCU) to adjust the rotation speed of the motor. The specific flow is shown in fig. 1, fig. 1 shows a method for adjusting the rotation speed of a motor provided in the prior art, which includes the following steps: s110, mechanically moving a speed regulating mechanism; s112, the mechanical movement of the speed regulating mechanism brings about the change of a speed regulating voltage signal; s114, sampling a speed regulation voltage signal by using the MCU; s116, adjusting the output voltage of the execution circuit through the MCU according to the change of the sampled speed regulation voltage signal; and S118, based on the adjustment of the output voltage, realizing the change of the motor rotation speed.
However, both the mechanically moving parts and the electronic parts of the governor mechanism may age after a long period of use of the power tool. These aged components can produce abnormal governor voltage signals; these abnormal speed regulation voltage signals can cause the motor to fail to meet the expectations of users, thereby affecting the overall function of the electric tool.
In order to solve the problems in the prior art, the embodiment of the invention provides a sliding rheostat type speed regulating mechanism and a Hall sensor type speed regulating mechanism. The following first describes a slide varistor type speed regulating mechanism according to an embodiment of the present invention.
As an example, fig. 2 shows a schematic structural diagram of a sliding varistor type speed regulating mechanism according to an embodiment of the present invention. As shown in fig. 2, the sliding rheostat type speed regulation mechanism may include a resistor R1, a sliding rheostat, and a trigger switch, wherein the switch is closed after the speed regulation mechanism is displaced from an initial position, and the closed switch may supply power to a motor control circuit or an MCU circuit, or wake up the MCU in a standby state.
In some embodiments, when the speed adjusting mechanism mechanically moves, the mechanical moving rod synchronously drives the conductive brush to move, and the variable voltage signal Vsp can be obtained after the variable resistance voltage is divided because different moving positions correspond to different resistances.
As an example, fig. 3 shows a schematic structural diagram of a hall sensor type speed regulating mechanism according to another embodiment of the present invention. As shown in fig. 3, the hall sensor type speed regulating mechanism may include a resistor R1, a hall sensor, and a trigger switch, wherein when the speed regulating mechanism is displaced from an initial position, the switch is closed, and the closed switch may supply power to a motor control circuit or an MCU circuit, or wake up the MCU in a standby state.
When the speed regulating mechanism mechanically moves, the mechanical moving rod of the speed regulating mechanism synchronously changes the relative position between the permanent magnet and the Hall sensor, so that the magnetic flux density at the Hall sensor is changed, and the output voltage Vsp of the Hall sensor is changed.
It should be noted that in the embodiment shown in fig. 2 and 3, the displacement distance of the speed regulating mechanism is denoted as L, the speed regulating voltage signal of the speed regulating mechanism is denoted as Vsp, and there is a certain correspondence therebetween, for example, fig. 4 shows a schematic diagram of the relationship between the voltage initial threshold value of the speed regulating mechanism and the displacement distance.
As shown in fig. 4, the abscissa represents the displacement distance L, the ordinate represents the regulating voltage signal Vsp, and the correspondence between the two is represented by a curve S 0 Curve S 0 Is typically monotonically increasing, for simplicity, in FIG. 4, curve S 0 Shown as a straight line, where the trigger point refers to the point at which the governor mechanism is displaced from the initial position such that the switch is closed.
As an example, when the MCU detects that the regulated voltage signal Vsp is greater than V 1 When the motor starts to work, V 1 Called initial threshold of starting voltage; when the MCU detects that the speed regulating voltage signal Vsp is greater than V 2 When the motor is in the highest-speed working condition, V 2 Referred to as the initial threshold of the endpoint voltage. And the starting point voltage initial threshold V 1 And an initial threshold value V of the end point voltage 2 The corresponding displacement distance between can be considered as the effective travel of the governor mechanism.
As shown in fig. 4, the starting point voltage initial threshold V 1 Corresponding to distance L 1 Initial threshold V of endpoint voltage 2 Corresponding to distance L 2 From distance L 1 To distance L 2 Is considered to be the effective travel of the governor mechanism.
Common causes of aging for speed governors may be as follows: (1) During use of the power tool, vibration of the entire machine can cause degradation of the speed switch seal structure and can cause dust in the environment that can accumulate in the electrical components, thereby introducing parasitic impedance; (2) The impedance of the contact point is increased due to the long-term reciprocating motion of the speed regulating switch; (3) The insulation skin, welding spots and the like of the electric signal connecting wire can generate impedance change or dust accumulation in the long-term use process, so that the connection impedance is deviated. These factors may cause deviations in the governor voltage signal that may cause the motor to fail to stop, or the motor to reach a maximum set speed during the active stroke, or the motor to neither stop nor reach a maximum set speed during the active stroke, as will be described in more detail below.
Because of the diversity of speed regulating mechanisms and the diversity of faults, the following main speed regulating voltage signals are classified into the following types according to the variation characteristics of the speed regulating voltage signals:
first, fig. 5 shows a schematic diagram of the relationship between the abnormal governor voltage signal and the voltage initial threshold values (e.g., the starting point voltage initial threshold value and the ending point voltage initial threshold value).
In the embodiment shown in fig. 5, the regulated voltage signal Vsp is overall higher, e.g., curve S 1 Deviating from curve S in the y-axis 0 Minimum value V of speed regulating voltage signal 1 * Greater than the initial threshold V of the starting voltage 1 . As depicted in fig. 4, when the MCU detects that the regulated voltage signal Vsp is greater than V 1 When the MCU detects that the speed regulating voltage signal Vsp is greater than V 2 And when the motor is in the highest-speed working condition. In the embodiment shown in FIG. 5, since the regulated voltage signal Vsp is always greater than V 1 For example, the minimum value of the regulated voltage signal is greater than V 1 Therefore, the MCU judges that the speed regulating mechanism is not reset, and under the condition, the motor is not stopped, and the whole machine is not stopped.
Next, fig. 6 shows a schematic diagram of the relationship between the abnormal governor voltage signal and the voltage initial threshold values (e.g., the starting point voltage initial threshold value and the ending point voltage initial threshold value).
In the embodiment shown in fig. 6, the regulated voltage signal Vsp is generally low, such as curve S 2 Deviating downwards from curve S along y-axis 0 Maximum value V of speed regulating voltage signal 2 * Less than the initial threshold V of the end point voltage 2 . As depicted in fig. 4, when the MCU detects that the regulated voltage signal Vsp is greater than V 1 When the MCU detects that the speed regulating voltage signal Vsp is greater than V 2 And when the motor is in the highest-speed working condition. At the position ofIn the embodiment shown in FIG. 6, since the regulated voltage signal Vsp is always less than V 2 For example, the maximum value of the regulated voltage signal is less than V 2 Therefore, the MCU judges that the speed regulating mechanism does not reach the maximum stroke, the motor does not work at the maximum set rotating speed, and the whole machine is in an effective stroke and does not reach the maximum set rotating speed.
Again, fig. 7 shows a schematic diagram of the relationship between the abnormal governor voltage signal and the voltage initial thresholds (e.g., the starting voltage initial threshold and the ending voltage initial threshold).
In the embodiment shown in FIG. 7, the regulated voltage signal Vsp remains in monotonically increasing relationship, such as curve S 3 Deviating from curve S in the y-axis 0 The difference from the embodiment shown in fig. 6 is that the minimum value and the maximum value of the regulated voltage signal Vsp in the embodiment shown in fig. 6 are respectively greater than V 1 And V 2 While the minimum value of the regulated voltage signal Vsp in the embodiment shown in fig. 7 is greater than V 1 And a maximum value less than V 2 The failure of the whole machine is represented by that in the effective stroke, the motor can not stop, and the maximum set rotating speed can not be reached.
In order to solve one or more of the above situations, such as the inability of the motor to shut down or the inability to reach the maximum set rotational speed, caused by abnormal situations of the governor signal, an embodiment of the present invention provides a method for adjusting the rotational speed of the motor, as shown in fig. 8, fig. 8 shows a flow chart of the method for adjusting the rotational speed of the motor provided by the embodiment of the present invention, including: s810, acquiring a starting point voltage initial threshold value and an end point voltage initial threshold value for the speed regulating mechanism; s812, acquiring a speed regulation voltage signal from a speed regulation mechanism; s814, determining a starting point voltage updating threshold value for the speed regulating mechanism according to the magnitude comparison relation between the minimum value of the speed regulating voltage signal and the starting point voltage initial threshold value; s816, determining an end point voltage updating threshold value for the speed regulating mechanism according to the magnitude comparison relation between the maximum value of the speed regulating voltage signal and the end point voltage initial threshold value; and S818, controlling the speed regulating mechanism to regulate the motor rotation speed according to the starting point voltage updating threshold value and the end point voltage updating threshold value.
As a means ofOne example, in S810, after the MCU is started, an initial threshold V is set to a starting point voltage within a nonvolatile Memory (e.g., read-Only Memory (ROM)) 1 And an initial threshold value V of the end point voltage 2 And reading the abnormal flag bit of the speed regulating signal.
As an example, in S812, the MCU may sample the governor voltage signal of the governor mechanism and determine the minimum value V of the governor voltage signal SP_MIN And maximum value V SP_MAX
As an example, in S814, the minimum value V of the governor voltage signal is set to SP_MIN With an initial threshold V of the starting voltage 1 A comparison is made to determine a starting point voltage update threshold for the governor mechanism.
Specifically, S814 may include: if the minimum value V of the regulating voltage signal SP_MIN Less than the initial threshold V of the starting voltage 1 If so, the updating program is not started, and the program operates normally, for example, the starting point voltage is set to be the initial threshold value V 1 Updating a threshold value as a starting point voltage; if the minimum value V of the regulating voltage signal SP_MIN Greater than or equal to the initial threshold V of the starting voltage 1 When the speed regulation signal is abnormal, the flag bit of the speed regulation signal is set, a threshold value updating program is entered, and the minimum value V of the speed regulation voltage signal is obtained SP_MIN As the starting voltage update threshold, that is, the starting voltage is initialized to the threshold V 1 Updating to the minimum value V of the speed regulating voltage signal SP_MIN
As an example, in S816, the maximum value V of the regulated voltage signal is set SP_MAX With initial threshold V of end point voltage 2 A comparison is made to determine an end point voltage update threshold for the governor mechanism.
Specifically, S816 may include: if the maximum value V of the regulated voltage signal SP_MAX Greater than the initial threshold V of the end point voltage 2 When the updating program is not started, the program normally operates, e.g. the final voltage is initially threshold V 2 Updating a threshold value as an end point voltage; if the maximum value V of the regulated voltage signal SP_MAX Less than or equal to the initial threshold V of the end point voltage 2 When it is, then enter the threshold value moreNew program to make maximum value V of speed-regulating voltage signal SP_MAX As an end point voltage update threshold, that is, an end point voltage initial threshold V 2 Updating to the maximum value V of the speed regulating voltage signal SP_MAX . In other embodiments, when the maximum value V of the regulated voltage signal SP_MAX Less than or equal to the initial threshold V of the end point voltage 2 After the number of times exceeds a preset threshold (e.g., N), entering a threshold updating program to make the maximum value V of the speed regulating voltage signal SP_MAX The threshold is updated as the endpoint voltage.
In some embodiments, the method further comprises: at the initial threshold V of the starting voltage 1 After updating the threshold value for the starting voltage, the updated initial threshold value for the starting voltage is stored in the nonvolatile memory, and the initial threshold value V for the end voltage is stored 2 After updating the threshold value to the end point voltage, the updated initial threshold value of the end point voltage is stored in a nonvolatile memory.
In some embodiments, the method further comprises: after the MCU is started, the updated initial threshold value of the starting voltage and the updated initial threshold value of the end voltage stored in the nonvolatile memory are read, and the above steps are repeated.
In some embodiments, after the MCU detects the trigger point, the governor voltage signal at that time is recorded for use as the minimum value V of the governor voltage signal SP_MIN Wherein the trigger point is the point when the speed regulating mechanism is displaced from the initial position. In other embodiments, the noise cancellation processing is performed on the speed-adjusting voltage when the speed-adjusting mechanism is displaced from the initial position, and the speed-adjusting voltage signal subjected to the noise cancellation processing is taken as the minimum value V of the speed-adjusting voltage signal SP_MIN
In some embodiments, after the abnormal flag bit of the speed regulation signal is set, the relation between the slope change of the speed regulation voltage signal and the preset condition is judged, and the speed regulation voltage signal when the slope change meets the preset condition is recorded to be used as the maximum value V of the speed regulation voltage signal SP_MAX . In other embodiments, the noise cancellation process is performed on the regulated voltage signal when the slope change satisfies the preset condition, andthe speed regulating voltage signal processed by noise elimination is taken as the maximum value V of the speed regulating voltage signal SP_MAX
The above process may be performed in an iterative manner, and the voltage judgment threshold value is updated and stored. And when the MCU is reset, the last recorded threshold value is read, and when the threshold value condition is met, the motor is enabled to normally operate.
Fig. 9 shows a specific flowchart of a method for adjusting a rotational speed of a motor according to an embodiment of the present invention. As shown in fig. 9, the method may include the steps of: s910, initializing the MCU; s912, initializing threshold V for starting point voltage stored in non-volatile memory after initialization of MCU 1 Initial threshold V of endpoint voltage 2 Reading the abnormal flag bit of the speed regulating signal; s914, sampling the speed-adjusting voltage signal Vsp; s916, detecting whether a trigger signal occurs, if the trigger signal is detected, the flow proceeds to S918, and if the trigger signal is not detected, the flow proceeds to S924: s918, when the trigger signal is detected, performing noise elimination processing on the speed-regulating voltage signal at the moment to use the speed-regulating voltage signal subjected to the noise elimination processing as the minimum value V of the speed-regulating voltage signal SP_MIN The method comprises the steps of carrying out a first treatment on the surface of the S920, judging the minimum value V of the speed-regulating voltage signal SP_MIN Whether or not it is smaller than the initial threshold value V of the starting voltage 1 If yes, go to S922, if no, go to S932; s922, the program runs normally; s932, setting the abnormal flag bit of the speed regulation signal, entering a threshold updating program, and initializing the starting voltage to a threshold V 1 Updating to the minimum value V of the speed regulating voltage signal SP_MIN The method comprises the steps of carrying out a first treatment on the surface of the S924, judging whether the abnormal flag bit of the speed regulating signal is 1 when the trigger signal is not detected, if so, proceeding to S926, otherwise proceeding to S922; s922, if the abnormal flag bit of the speed regulation signal is not 1, the program runs normally; s926, if the speed regulation signal abnormal flag bit is 1, judging whether the slope change of the speed regulation voltage signal meets the preset condition, if so, proceeding to S928, otherwise proceeding to S922; s928, in case the slope change of the speed regulation voltage signal satisfies the preset conditionThe speed regulating voltage signal is subjected to noise elimination processing to take the speed regulating signal subjected to noise elimination processing as the maximum value V of the speed regulating voltage signal SP_MAX The method comprises the steps of carrying out a first treatment on the surface of the S930, determining the maximum value V of the speed-regulating voltage signal SP_MAX Whether or not it is greater than the initial threshold value V of the end point voltage 2 If yes, the flow proceeds to S922, if no, the flow proceeds to S932; s932, if the maximum value V of the regulating voltage signal SP_MAX Less than or equal to the initial threshold V of the end point voltage 2 Then enter a threshold updating program to initiate the threshold value V of the end point voltage 2 Updating to the maximum value V of the speed regulating voltage signal SP_MAX
Embodiments of the present invention also provide a computer storage medium having instructions stored thereon that, when executed by one or more processors, cause the one or more processors to perform a method for adjusting motor speed as described above.
In summary, the method for adjusting the rotation speed of the motor and the computer storage medium provided by the embodiments of the present invention can determine whether the initial threshold value of the starting voltage and the initial threshold value of the end voltage need to be updated according to the relationship between the minimum value and the maximum value of the speed regulating voltage signal and the initial threshold value of the starting voltage and the initial threshold value of the end voltage, so as to prevent situations such as that the motor cannot be powered off and/or the motor cannot reach the maximum rotation speed.
By analyzing the abnormal condition of the speed regulating voltage signal and updating the initial threshold value of the starting voltage and the initial threshold value of the end voltage, the service lives of the speed regulating mechanism and the whole machine can be prolonged.
It should be noted that the above embodiments are described by way of example with respect to a motor, however, the above method is equally applicable to other power tool speed regulation applications other than motors without departing from the spirit and scope of the present invention.
It should be understood that the invention is not limited to the particular arrangements and instrumentality described above and shown in the drawings. For the sake of brevity, a detailed description of known methods is omitted here. In the above embodiments, several specific steps are described and shown as examples. However, the method processes of the present invention are not limited to the specific steps described and shown, and those skilled in the art can make various changes, modifications and additions, or change the order between steps, after appreciating the spirit of the present invention.
The functional blocks shown in the above-described structural block diagrams may be implemented in hardware, software, firmware, or a combination thereof. When implemented in hardware, it may be, for example, an electronic circuit, an Application Specific Integrated Circuit (ASIC), suitable firmware, a plug-in, a function card, or the like. When implemented in software, the elements of the invention are the programs or code segments used to perform the required tasks. The program or code segments may be stored in a machine readable medium or transmitted over transmission media or communication links by a data signal carried in a carrier wave. A "machine-readable medium" may include any medium that can store or transfer information. Examples of machine-readable media include electronic circuitry, semiconductor memory devices, ROM, flash memory, erasable ROM (EROM), floppy disks, CD-ROMs, optical disks, hard disks, fiber optic media, radio Frequency (RF) links, and the like. The code segments may be downloaded via computer networks such as the internet, intranets, etc.
It should also be noted that the exemplary embodiments mentioned in this disclosure describe some methods or systems based on a series of steps or devices. However, the present invention is not limited to the order of the above-described steps, that is, the steps may be performed in the order mentioned in the embodiments, or may be performed in a different order from the order in the embodiments, or several steps may be performed simultaneously.
In the foregoing, only the specific embodiments of the present invention are described, and it will be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working processes of the systems, modules and units described above may refer to the corresponding processes in the foregoing method embodiments, which are not repeated herein. It should be understood that the scope of the present invention is not limited thereto, and any equivalent modifications or substitutions can be easily made by those skilled in the art within the technical scope of the present invention, and they should be included in the scope of the present invention.

Claims (10)

1. A method for adjusting a rotational speed of an electric motor, comprising:
acquiring a starting point voltage initial threshold value and an end point voltage initial threshold value for the speed regulating mechanism;
acquiring a speed regulation voltage signal from the speed regulation mechanism;
determining a starting point voltage updating threshold value for the speed regulating mechanism according to the magnitude comparison relation between the minimum value of the speed regulating voltage signal and the starting point voltage initial threshold value;
determining an end point voltage updating threshold value for the speed regulating mechanism according to the magnitude comparison relation between the maximum value of the speed regulating voltage signal and the end point voltage initial threshold value; and
and controlling the speed regulating mechanism to regulate the rotating speed of the motor according to the starting point voltage updating threshold value and the end point voltage updating threshold value.
2. The method of claim 1, wherein determining a starting point voltage update threshold for the governor mechanism based on a magnitude comparison between a minimum value of the governor voltage signal and the starting point voltage initial threshold comprises:
when the minimum value of the speed regulating voltage signal is smaller than the starting voltage initial threshold value, the starting voltage initial threshold value is used as the starting voltage updating threshold value; and
and when the minimum value of the speed regulating voltage signal is larger than or equal to the initial threshold value of the starting voltage, taking the minimum value of the speed regulating voltage signal as the updating threshold value of the starting voltage.
3. The method of claim 1, wherein determining an end point voltage update threshold for the governor mechanism based on a magnitude comparison between a maximum value of the governor voltage signal and the initial end point voltage threshold comprises:
when the maximum value of the speed regulating voltage signal is larger than the initial threshold value of the end point voltage, the initial threshold value of the end point voltage is used as the updating threshold value of the end point voltage; and
and when the maximum value of the speed regulating voltage signal is smaller than or equal to the initial threshold value of the end point voltage, taking the maximum value of the speed regulating voltage signal as the update threshold value of the end point voltage.
4. The method as recited in claim 1, further comprising:
updating the initial threshold value of the starting voltage to the updated threshold value of the starting voltage, and storing the updated initial threshold value of the starting voltage;
updating the initial threshold value of the end point voltage to the updated threshold value of the end point voltage, and storing the updated initial threshold value of the end point voltage.
5. The method of claim 1, wherein acquiring the governor voltage signal from the governor mechanism comprises:
and acquiring a speed regulating voltage when the speed regulating mechanism is displaced from an initial position so as to be used as the minimum value of the speed regulating voltage signal.
6. The method of claim 5, wherein acquiring the governor voltage signal from the governor mechanism further comprises:
and carrying out noise elimination treatment on the speed regulating voltage when the speed regulating mechanism is displaced from the initial position.
7. The method of claim 1, wherein acquiring the governor voltage signal from the governor mechanism comprises:
and after the minimum value of the speed regulating voltage signal is larger than or equal to the initial threshold value of the starting voltage, acquiring the speed regulating voltage when the slope change of the speed regulating voltage signal meets the preset condition so as to be used as the maximum value of the speed regulating voltage signal.
8. The method of claim 7, wherein acquiring the governor voltage signal from the governor mechanism further comprises:
and performing noise elimination processing on the speed regulating voltage when the slope change of the speed regulating voltage signal meets the preset condition.
9. The method of claim 1, wherein determining an end point voltage update threshold for the governor mechanism based on a magnitude comparison between a maximum value of the governor voltage signal and the initial end point voltage threshold comprises:
and when the frequency that the maximum value of the speed regulating voltage signal is smaller than or equal to the initial threshold value of the end point voltage exceeds a preset threshold value, taking the maximum value of the speed regulating voltage signal as the update threshold value of the end point voltage.
10. A computer storage medium having instructions stored thereon, which when executed by one or more processors, cause the one or more processors to perform the method for adjusting motor speed of any of claims 1 to 9.
CN202111592532.5A 2021-12-23 2021-12-23 Method for adjusting motor rotation speed and computer storage medium Active CN114337467B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202111592532.5A CN114337467B (en) 2021-12-23 2021-12-23 Method for adjusting motor rotation speed and computer storage medium
TW111105476A TWI784880B (en) 2021-12-23 2022-02-15 Method and computer storage medium for adjusting motor speed

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111592532.5A CN114337467B (en) 2021-12-23 2021-12-23 Method for adjusting motor rotation speed and computer storage medium

Publications (2)

Publication Number Publication Date
CN114337467A CN114337467A (en) 2022-04-12
CN114337467B true CN114337467B (en) 2024-01-12

Family

ID=81054396

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111592532.5A Active CN114337467B (en) 2021-12-23 2021-12-23 Method for adjusting motor rotation speed and computer storage medium

Country Status (2)

Country Link
CN (1) CN114337467B (en)
TW (1) TWI784880B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6518719B1 (en) * 1999-11-16 2003-02-11 Makita Corporation Power tools with operating speed control circuit
JP2011200058A (en) * 2010-03-23 2011-10-06 Hitachi Automotive Systems Ltd Driving device for brushless motor
JP2014045654A (en) * 2013-12-12 2014-03-13 Hitachi Automotive Systems Ltd Drive unit of brushless motor
CN106020131A (en) * 2015-03-31 2016-10-12 德马吉森精机株式会社 System and method for fine-tuning speed selection for reducing machine chatter
JP2017192207A (en) * 2016-04-13 2017-10-19 株式会社日立製作所 Dynamo-electric machine system and control method of dynamo-electric machine system
WO2018102872A1 (en) * 2016-12-08 2018-06-14 University Of Technology Sydney Sensorless ac motor controller
JP2018182786A (en) * 2017-04-03 2018-11-15 株式会社島津製作所 Motor abnormality detector of vacuum pump and vacuum pump system
JP2019158315A (en) * 2018-03-16 2019-09-19 三菱重工サーマルシステムズ株式会社 Step-out detection device, duct type air conditioner with the same, step-out detection method and step-out detection program

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004352163A (en) * 2003-05-30 2004-12-16 Advics:Kk Control device for pump driving motor
US7065437B2 (en) * 2003-08-21 2006-06-20 Delphi Technologies, Inc. Current limit for an electric machine
JP5112956B2 (en) * 2008-05-30 2013-01-09 株式会社マキタ Rechargeable power tool
EP2501033B1 (en) * 2011-03-15 2018-02-14 Johnson Controls Technology Company Control systems and methods for electronically commutated motors
EP2530273B1 (en) * 2011-06-01 2020-04-08 Joseph Vögele AG Construction machine with automatic ventilator rotation speed regulator
TW201445870A (en) * 2012-09-21 2014-12-01 Ya De Li Technology Inc Intelligent motor controller, control method, tag-on circuit and remote control thereof
CN111211715B (en) * 2018-11-22 2023-04-25 杭州先途电子有限公司 Motor control method and system and controller
CN112737422B (en) * 2021-01-20 2022-11-29 河南城建学院 Cloud computing-based motor equipment speed regulation control method

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6518719B1 (en) * 1999-11-16 2003-02-11 Makita Corporation Power tools with operating speed control circuit
JP2011200058A (en) * 2010-03-23 2011-10-06 Hitachi Automotive Systems Ltd Driving device for brushless motor
JP2014045654A (en) * 2013-12-12 2014-03-13 Hitachi Automotive Systems Ltd Drive unit of brushless motor
CN106020131A (en) * 2015-03-31 2016-10-12 德马吉森精机株式会社 System and method for fine-tuning speed selection for reducing machine chatter
JP2017192207A (en) * 2016-04-13 2017-10-19 株式会社日立製作所 Dynamo-electric machine system and control method of dynamo-electric machine system
WO2018102872A1 (en) * 2016-12-08 2018-06-14 University Of Technology Sydney Sensorless ac motor controller
JP2018182786A (en) * 2017-04-03 2018-11-15 株式会社島津製作所 Motor abnormality detector of vacuum pump and vacuum pump system
JP2019158315A (en) * 2018-03-16 2019-09-19 三菱重工サーマルシステムズ株式会社 Step-out detection device, duct type air conditioner with the same, step-out detection method and step-out detection program

Also Published As

Publication number Publication date
TW202327254A (en) 2023-07-01
TWI784880B (en) 2022-11-21
CN114337467A (en) 2022-04-12

Similar Documents

Publication Publication Date Title
JP6164449B2 (en) Opening / closing body pinching detection device and opening / closing body device
US6426604B1 (en) Power window controlling device
KR100486582B1 (en) Stroke detecting apparatus and method for reciprocating compressor
US8704476B2 (en) Method and device for detecting an entrapment situation
KR102060218B1 (en) Method and apparatus for determining the position of a motor-driven actuating part
US9257928B2 (en) Control device for stepping motor and control method for stepping motor
US20140176039A1 (en) Motor control device and control method of stepping motor
KR100480118B1 (en) Stroke detecting apparatus and method for reciprocating compressor
CN114337467B (en) Method for adjusting motor rotation speed and computer storage medium
US20220090431A1 (en) Open/close control device, open/close control system, open/close control method, and program
CN103956940A (en) Against-wind start control method and device of direct current motor in outdoor unit of air conditioner
US8198843B2 (en) Motor control apparatus and motor control method
JP7060681B2 (en) Vehicle open / close body control device
CN112787566A (en) Control method and system
EP3794722B1 (en) Mechatronic assembly for driving or positioning an external member
JP7496771B2 (en) Switching control device and switching control method
CN113839605B (en) Motor rotation speed control method and device
CN115037199A (en) Direct current motor control method and storage medium
JP2005328635A (en) Controller of switched reluctance motor
CN112787567B (en) Control method and system
JP2007181330A (en) Motor control device and control method
CN108631655B (en) Intelligent power module of motor control device
KR101996672B1 (en) Pinch detection apparatus and method of anti-pinch system for vehicle sunroof
US9112443B2 (en) Current controlled actuator driver with improved accuracy at low current
US11139761B2 (en) Control apparatus and motor

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant