Method for controlling electric motor by trigger
09726729 · 2017-08-08
Assignee
Inventors
Cpc classification
B25F5/00
PERFORMING OPERATIONS; TRANSPORTING
International classification
Abstract
An example method for controlling an electric motor in an electric tool includes detecting travel of the trigger, selecting a smoothing coefficient N according to travel of the trigger in a predetermined time, driving the electric motor with an output duty ratio which is figured out by a formula in which the smoothing coefficient N is a denominator so as to cause the output duty ratio to be lesser than a preset duty ratio. The methods described will decrease the current impact on electric motors when users pull the trigger.
Claims
1. A method for controlling an electric motor by a trigger, comprising: detecting a first position value which corresponds to a position of the trigger at a start of a predetermined time; detecting a second position value which corresponds to the position of the trigger at an end of the predetermined time; calculating a difference value between the first position value and the second position value; determining whether the difference value is greater than 0; selecting a smoothing coefficient according to the difference value when the difference value is greater than 0; calculating an output duty ratio in accordance with the equation:
2. The method of the claim 1, further comprising presetting a plurality of preset duty ratios which correspond to a plurality of positions of the trigger.
3. The method of the claim 2, further comprising driving the electric motor with the preset duty ratio when the difference value ΔL is less than or equal to 0.
4. The method of the claim 1, further comprising presetting a plurality of value ranges for the difference value wherein one value range corresponds to one smoothing coefficient and the smoothing coefficient is selected according to a correspondence with the value range which the difference value falls within.
5. The method of the claim 4, wherein the smoothing coefficient which corresponds to a greater difference value is greater than the smoothing coefficient which corresponds to a lesser difference value.
6. The method of the claim 1, further comprising presetting a plurality of travel ranges for travels of the trigger wherein one travel range corresponds to one smoothing coefficient and the smoothing coefficient is selected according to the correspondence with the travel range which the travel of the trigger falls within.
7. The method of the claim 6, wherein the smoothing coefficient when the trigger moves fast is greater than the smoothing coefficient when the trigger moves slowly.
8. A method of controlling an electric motor by a trigger, comprising: detecting travel of the trigger; selecting a smoothing coefficient according to travel of the trigger in a predetermined time; calculating an output duty ratio in accordance with the equation:
9. The method of the claim 8, further comprising presetting a plurality of preset duty ratios which correspond to a plurality of positions of the trigger.
10. A method of controlling an electric motor by a trigger, comprising: ascertaining a first duty ratio which corresponds to a position of the trigger at a start of a predetermined time; ascertaining a second duty ratio which corresponds to a position of the trigger at an end of the predetermined time; calculating a difference value between the first duty ratio and the second duty ratio; determining whether the difference value is greater than 0; selecting a smoothing coefficient according to the difference value when the difference value is greater than 0; calculating an output duty ratio in accordance with the equation
11. The method of the claim 10, further comprising presetting a plurality of preset duty ratios which correspond to a plurality of positions of the trigger.
12. The method of the claim 10, further comprising driving the electric motor with the second duty ratio when the difference value ΔD is less than or equal to 0.
13. The method of the claim 10, further comprising presetting a plurality of value ranges for the difference value wherein one value range corresponds to one smoothing coefficient and the smoothing coefficient is selected according to the correspondence with the value range which the difference value falls within.
14. The method of the claim 10, wherein the smoothing coefficient which corresponds to a greater difference value is greater than the smoothing coefficient which corresponds to a lesser difference value.
15. The method of the claim 10, wherein the minimum of the smoothing coefficients is 1.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
(1)
(2)
(3)
(4) The drawings described herein are for illustrative purposes only of exemplary embodiments and not all possible implementations, and are not intended to limit the scope of the present disclosure. Corresponding reference numerals indicate corresponding parts throughout the several views of the drawings.
DETAILED DESCRIPTION
(5) The following description of the preferred embodiments is merely exemplary in nature and is in no way intended to limit the invention hereinafter claimed, its application, or uses.
(6) As shown in
(7) The electric tool 10 is also provided with a power source 13, a MCU 14 and a drive switch 15. The power source 13 is configured to provide electric energy for the electric motor 11. The MCU 14 is provided for controlling the drive switch 15 according to the signals of the trigger switch 12 which are sent to the MCU 14. The MCU 14 can switch the drive switch 15 on or off in a certain duty ratio by sending signals to the drive switch 15. The drive switch 15 is connected between the electric motor 11 and the power source 13 and, when the drive switch 15 is on, the electric motor 11 connects to the power source 13 so as to cause a current to pass through the electric motor 11.
(8) As shown in
(9) 101: detecting a first position value which corresponds to the position of the trigger 12a;
(10) 102: waiting for a predetermined time;
(11) 103: detecting a second position value which corresponds to the position of the trigger 12a;
(12) 104: calculating a difference value between the first position value and the second position value in accordance with the equation ΔL=L2−L1, wherein ΔL stands for the difference value, L1 stands for the first position value, and L2 stands for the second position.
(13) 105: determining whether the difference value is greater than 0 and, when the difference value is greater than 0, moving to step 106, and, when the difference value is less than or equal to 0, moving to step 109;
(14) 106: selecting a smoothing coefficient N according to the difference value;
(15) 107: calculating an output duty ratio in accordance with the equation:
(16)
(17) Wherein D.sub.N stands for the output duty ratio, D.sub.N−1 stands for the output duty ratio which is calculated in the last calculation, N stands for the smoothing coefficient, and D.sub.R stands for a preset duty ratio according to the position of the trigger 12a.
(18) 108: driving the electric motor 11 with the output duty ratio and then returning to step 101; and
(19) 109: driving the electric motor 11 with the preset duty ratio and then returning to step 101.
(20) The steps above are performed by the electric tool 10 as shown in
(21) The predetermined time may be a very short time, such as a millisecond, a microsecond and so on. The predetermined time may be depended on the presetting of the manufacturer and the clock frequency of the MCU.
(22) The MCU 14 can detect the position values by detecting the signals of the trigger switch 12 which corresponds to the positions of the trigger 12a. The MCU 14 can also perform the timing, calculating, determining and outputting control signal with a duty ratio to the drive switch 15. Certainly, these steps can also be performed by different device of an electric tool 10.
(23) The method can also be performed by using other parameter which correspond to the positions of the trigger 12a, such as strength of the signals from the trigger switch 12.
(24) The trigger switch 12 can generate signals which correspond to the positions of the trigger 12a, and the MCU 14 can output signals for driving the electric motor with a duty ratio only according to the correspondence between the duty ratio and the signal from the trigger switch 12 if the difference value is less than or equal to 0.
(25) The duty ratios which depend only on the positions of the trigger 12a are defined as the true duty ratios. The preset duty ratios depend only on the positions of the trigger 12a rather than the speed of movement of the trigger 12a.
(26) The method as shown in
(27) The method may further preset a plurality of value ranges for the difference value. The MCU 14 stores the dates of the value ranges, smoothing coefficients and the correspondence between them.
(28) When the difference value falls in one of the value ranges, the method selects the smoothing coefficient according to the correspondence between smoothing coefficients and the value ranges.
(29) The smoothing coefficient which corresponds to the greater difference value is greater than the smoothing coefficient which corresponds to the lesser difference value. By using this measure, the duty ratio for driving the motor will be effectively controlled when the trigger 12a is pulled fast.
(30) As shown in
(31) 201: detecting a first duty ratio D1 which corresponds to the position of the trigger;
(32) 202: waiting for a predetermined time;
(33) 203: detecting a second duty ratio D2 which corresponds to the position of the trigger;
(34) 204: calculating a difference value between the first duty ratio and the second duty ratio in accordance with the equation ΔD=D2−D1, wherein ΔD stands for the difference value, D1 stands for the first duty ratio, and D2 stands for the second duty ratio.
(35) 205: determining whether the difference value is greater than 0 and, when the difference value is greater than 0 moving to step 206 and, when the difference value is less than or equal to 0, moving to step 209;
(36) 206: selecting a smoothing coefficient N according to the difference value.
(37) 207: calculating an output duty ratio in accordance with the equation:
(38)
(39) wherein D stands for the output duty ratio, D1 stands for the first duty ratio, ΔD stands for the difference value, and N stands for the smoothing coefficient.
(40) 208: driving the electric motor 11 with the output duty ratio and then returning to step 201;
(41) 209: driving the electric motor 11 with the second duty ratio and then returning to step 201.
(42) If it is the first time performing step 207, D1 is set to 0.
(43) The method as shown in
(44) The trigger switch 12 can generate signals which correspond to the positions of the trigger 12a. The MCU 14 can receive the signals from the trigger switch 12 and figure out the preset duty ratios that correspond with the positions of the trigger 12a.
(45) The first duty ratio and the second duty ratio may be the duty ratio of the trigger switch 12 or the duty ratio of the drive switch 15.
(46) Similar to the previous method, this method may also further preset a plurality of value ranges for the difference value. The MCU 14 stores the dates of the value ranges, smoothing coefficients and the correspondence between them. When the difference value falls in one of the value ranges, the method selects the smoothing coefficient according to the correspondence between smoothing coefficients and the value ranges.
(47) In this method, the smoothing coefficient which corresponds to the greater difference value is also greater than the smoothing coefficient which corresponds to the lesser difference value, and the minimum of the smoothing coefficients is 1.
(48) Summarily, the methods which are described above may include some additional steps as following: detecting the travel of the trigger 12a; selecting a smoothing coefficient N according to the travel of the trigger 12a in a predetermined time; driving the electric motor 11 with the output duty ratio D.sub.N which is figured out by a formula that the smoothing coefficient N to be a denominator so as to cause the output duty ratio D.sub.N to be less than the preset duty ratio.
(49) The above illustrates and describes basic principles, main features and advantages of the present invention. Those skilled in the art should appreciate that the above embodiments do not limit the claimed invention in any form. Technical solutions obtained by equivalent substitution or equivalent variations all fall within the scope of the claimed invention.