Patent Description:
At present, most of electric tools, for example, a handheld electric drill, have a function of performing intelligent control according to a working condition. An existing handheld electric drill usually has two functions, the first function is to drive an electric motor by electric power to drill a hole, and the second function is to drive an electric motor by electric power to assemble a fastener. Regarding the function of assembling a fastener, a processor inside the electric tool performs an automatic shutdown operation according to a position of the driven fastener, so that the electric tool can shut down automatically when the fastener just reaches a preset position, and an operator does not need to interfere manually.

During actual use, the fastener penetrates through various types of materials and suffers indefinite factors such as variant manual operations, resulting in a complicated actual working condition of the electric motor. A technical solution disclosed in the prior art cannot adapt to different working conditions accurately and shut down at a preset position in any different working condition, causing reduced efficiency of an automatic fastening operation.

<CIT> discloses a method of controlling operation of a power tool comprising monitoring, by a controller, torque applied to the output spindle when the clutch setting is in the drive mode by sampling current delivered to an electric motor; storing a sequence of current measurements most recently sampled; determining a slope for the sequence of current measurements; interrupting, by the controller, transmission of torque to the output spindle based at least in part on the slope of the sequence of current measurements. Averaged current measurements may be used to determine the rate of current change.

<CIT> discloses a drill with a screwdriver attachment, in which a control circuit controls the speed of rotation of the motor through a time delay circuit and a triac. The control circuit uses the time delay information and information inputted from a rotational speed sensor to monitor the current in the motor or a parameter related at least in part to current in the motor. When a change corresponding to an increase in the rate of change of current in the motor is detected, the control circuit stops the motor to provide an automatic torque control feature for a screwdriving operation.

<CIT> discloses a control method and a control apparatus for an electric tool.

The present invention intends to overcome a defect that the control solution of the electric tool in the prior art has a high misjudgment rate.

In view of this, the present invention provides a control method for an electric tool according to claim <NUM>. The method comprises: obtaining parameters characterizing an output shaft load during a running process of an electric tool; calculating the average values of the parameters characterizing an output shaft load according to a composite average algorithm, wherein the composite average algorithm comprises a combination of at least two different types of average algorithms; calculating slope values of currents according to the average values of the parameters characterizing the output shaft load; and interrupting torque output of the electric tool according to the slope values of currents.

Optionally, the composite average algorithm is a combination of an arithmetical average algorithm and a sliding average algorithm.

Optionally, the step of calculating average values of the parameters characterizing the output shaft load according to a composite average algorithm comprises: calculating average parameters of the parameters characterizing the output shaft load by using an arithmetical average algorithm; and calculating average values of the average parameters by using the sliding average algorithm.

Optionally, the step of calculating average values of the average parameters by using the sliding average algorithm specifically comprises: iterating calculation of average values of the average parameters for N times by using the sliding average algorithm, wherein N≥<NUM>, and a specific iteration operation is to take a result of previous average computation as a data source of next average computation.

Optionally, the step of calculating slope values of the parameters characterizing the output shaft load according to the average values of the parameters characterizing the output shaft load comprises: determining time points corresponding to the average values of two neighboring parameters characterizing the output shaft load; and calculating slope values of the parameters characterizing the output shaft load by using a method of dividing a difference between the average values of the two neighboring parameters characterizing the output shaft load by a difference between the corresponding time points.

Optionally, the step of calculating slope values of the parameters characterizing the output shaft load according to the average values of the parameters characterizing the output shaft load comprises: determining time points corresponding to the average values of two neighboring parameters characterizing the output shaft load; calculating primary slope values of the parameters characterizing the output shaft load by using a method of dividing a difference between the average values of the two neighboring parameters characterizing the output shaft load by a difference between the corresponding time points; and calculating average slope values of the primary slope values by using an average algorithm.

Optionally, the average algorithm performs primary arithmetical average computation.

According to the present invention, the step of interrupting torque output of the electric tool according to the slope values of the parameters characterizing the output shaft load comprises: determining a slope threshold and a triggering condition according to a load of the electric tool; comparing calculated slope values of N neighboring parameters characterizing the output shaft load with the slope threshold respectively; and determining whether a comparison result meets the triggering condition, and when the comparison result meets the triggering condition, interrupting torque output of the electric tool.

According to the present invention, when the load of the electric tool is greater than a first load, the slope threshold is a first slope threshold, when the load of the electric tool is less than the first load, the slope threshold is a second slope threshold, and the second slope threshold is less than the first slope threshold.

Optionally, when the load of the electric tool is greater than the first load, the triggering condition is that the slope values of the parameters characterizing the output shaft load calculated at N continuous time points are all greater than the first slope threshold.

Optionally, when the load of the electric tool is less than the first load, the triggering condition is that the slope values of the parameters characterizing the output shaft load calculated at the first M time points among the N continuous time points are all greater than the second slope threshold, and at least a part of the slope values of the parameters characterizing the output shaft load calculated at the latter N-M time points are less than the second slope threshold.

Optionally, the slope thresholds comprise at least three different slope thresholds, and the triggering conditions corresponding to at least a part of the different slope thresholds are not the same.

Correspondingly, the present invention further provides a control apparatus for an electric tool according to claim <NUM>, and the apparatus comprises: an obtaining unit, configured to obtain parameters characterizing an output shaft load during a running process of an electric tool; an average parameter calculation unit, configured to calculate average values of the parameters characterizing the output shaft load according to a composite average algorithm, wherein the composite average algorithm comprises a combination of at least two average algorithms; a slope value calculation unit, configured to calculate slope values of currents according to the average values of the parameters characterizing the output shaft load; and an execution unit, configured to interrupt torque output of the electric tool according to the slope values of the parameters characterizing the output shaft load.

Optionally, the average parameter calculation unit comprises: an arithmetical average calculation unit, configured to calculate average parameters of the parameters characterizing the output shaft load by using an arithmetical average algorithm; and a sliding average calculation unit, configured to calculate average values of average parameters by using a sliding average algorithm.

Optionally, the steps of calculating average values of average parameters by using a sliding average algorithm specifically comprises: iterating calculation of the average values of the average parameters for N times by using the sliding average algorithm, wherein N≥<NUM>, and a specific iteration operation is to take a result of previous average computation as a data source of next average computation.

Optionally, the slope value calculation unit comprises: a time determining unit, configured to determine time points corresponding to the average values of two neighboring parameters characterizing the output shaft load; and a difference calculation unit, configured to calculate slope values of the parameters characterizing the output shaft load by using a method of dividing a difference between the average values of the two neighboring parameters characterizing the output shaft load by a difference between two corresponding time points.

Optionally, the slope value calculation unit comprises: a time determining unit, configured to determine time points corresponding to the average values of two neighboring parameters characterizing the output shaft load; a difference calculation unit, configured to calculate primary slope values of the parameters characterizing the output shaft load by using a method of dividing a difference between the average values of the two neighboring parameters characterizing the output shaft load by a difference between the corresponding time points; and an average slope value calculation unit, configured to calculate average slope values of the primary slope values by using the average algorithm.

According to the present invention, the execution unit comprises: an execution condition setting unit, configured to determine a slope threshold and a triggering condition according to a load of the electric tool; a slope comparison unit, configured to compare the calculated slope values of the N neighboring parameters characterizing the output shaft load with the slope threshold respectively; a judging unit, configured to determine whether a comparison result meets the triggering condition, and interrupt torque output of the electric tool when the comparison result meets the triggering condition.

Optionally, when the load of the electric tool is less than the first load, the triggering condition is that the slope values of the parameters characterizing the output shaft load calculated at the first M time points among N continuous time points are all greater than the second slope threshold, and at least a part of the slope values of the parameters characterizing the output shaft load calculated at the latter N-M time points are less than the second slope threshold.

The present invention further provides an electric tool according to claim <NUM>, comprising: an electric motor and an output shaft, wherein the electric motor is configured to drive the output shaft to move and the electric tool further comprises: a parameter collection unit, configured to collect parameters characterizing an output shaft load during a running process of the electric motor; and the above control apparatus for an electric tool.

Optionally, the electric tool further comprises: a mode setting apparatus, configured to set working modes of the electric motor; wherein the control apparatus controls the electric motor in a predetermined working mode.

Optionally, the working modes comprise at least a drilling mode and a screwdriver mode, wherein the screwdriver mode is used as the predetermined working mode.

Optionally, the mode setting apparatus comprises: a key unit, configured to receive a user operation; and a mode selection unit, configured to set the working mode of the electric motor according to the user operation.

A control method and an apparatus for an electric tool according to the present invention calculate average current values through a composite average algorithm and calculate slope values according to a plurality of average current values. The slope values calculated in this manner can reflect an actual working condition of an electric motor more accurately, and the slope values are used as a judgment basis of torque output and control, thereby reducing a misjudgment rate of a shutdown control and enhancing efficiency of an automatic fastening operation of the electric tool.

The electric tool according to an embodiment of the present invention comprises a current signal collection circuit, configured to collect running currents of an electric motor in real time, and a control apparatus is configured to calculate average current values through a composite average algorithm and calculate slope values according to a plurality of average current values. The slope value calculated in this manner can reflect an actual working condition of the electric motor more accurately, and the slope values are used as a judgment basis of torque output and control, thereby reducing a misjudgment rate of a shutdown control and enhancing efficiency of an automatic fastening operation.

To describe the specific implementations of the present invention or the technical solution of the prior art more clearly, the accompanying drawings required by description of the specific implementations or the prior art are described briefly as follows.

The technical solutions of the present invention will be described clearly and completely with reference to the accompanying drawings. The described embodiments are some embodiments, instead of all embodiments, helping to understand the invention as claimed in claims <NUM> and <NUM>.

Firstly, a first concept is described in detail as follows with reference to <FIG>.

According to an embodiment under the first concept, a control method for an electric motor of an electric tool is provided, and the method may be performed by a processor in the electric tool, and <FIG> shows a first preferred embodiment of the control method. In this embodiment, the control method for an electric motor includes the following steps.

S1: Obtain current values during a running process of the electric tool. Besides the current values, voltage values, power values, and so on may also be obtained, and any parameters that can characterize an output shaft load are feasible. The current values are used as an example. A current collection circuit may be used to collect n current values I<NUM>. In when the electric motor of the electric tool rotates to reach a certain time point. Then, the processor obtains the current values. In addition, since an inrush current phenomenon occurs when the electric motor is just turned on, running current values obtained in the solution should be current values collected after the inrush current phenomenon ends. For example, the collection circuit may wait for a while to avoid the inrush current phenomenon, then begin to collect current values, and send the current values to the processor to perform following computation.

S2: Calculate average current values according to a composite average algorithm. The composite average algorithm includes a combination of at least two average algorithms. There are various types of average algorithms, such as an arithmetical average algorithm, a sliding average algorithm, a geometrical average algorithm, a weighing average algorithm and so on. The present composite average algorithm can use a combination of any two of the plurality of average algorithms to calculate average values. For example, firstly, a certain algorithm is used to calculate average values, secondly, another algorithm is used to calculate average values again based on a calculation result of the first algorithm, and so on, and the average calculation may be performed at least twice. To enhance calculation efficiency, a combination of the arithmetical average algorithm and the sliding average algorithm is preferably used in this embodiment as the foregoing composite average algorithm.

The quantity of current values, the quantity of calculated average current values, and the quantity of times of average calculation used during the foregoing calculation process may be set as required and according to computation capability and data storage capability of the processor and a memory.

S3: Calculate slope values of the currents according to the average current values. That is, calculate a plurality of slope values K<NUM>. Kn according to the plurality of average current values I<NUM>. The slopes may be calculated through a plurality of methods. For example, a linear regression method and a difference method are both feasible. To facilitate following determining, the calculated slope values may be magnified for a predetermined quantity of times.

S4: Interrupt torque output of the electric tool according to the slope values of the currents. Data such as a slope value when a fastener reaches an expected position may be measured through experiments, and a condition for interrupting the torque output is determined according to experimental data. For example, a threshold range or a change trend of the slope value is set according to the experimental data. When the slope value falls in a set threshold range or the change trend meets a predetermined change trend, the electric motor is controlled to stop torque output. A torque may be interrupted by one or more different methods, including, but not limited to, interrupting a power provided for the electric motor, reducing the power provided for the electric motor, braking the electric motor efficiently, or motivating a mechanical clutch disposed between the electric motor and an output mandrel. In an exemplary embodiment, a torque is interrupted by braking the electric motor, thereby setting the fastener at an expected position.

The control method for an electric motor of an electric tool according to an embodiment calculates average current values through the composite average algorithm and calculates slope values according to the plurality of average current values. The slope values calculated in this manner can reflect an actual working condition of the electric motor more accurately, and subsequently, the slope values may be used as a judgment basis for controlling torque output, reduce a misjudgment rate of a shutdown control, and enhance efficiency of an automatic fastening operation.

<FIG> is a flowchart of a control method for an electric tool according to a second preferred embodiment under the first concept. This embodiment is different from the first preferred embodiment in that, in this embodiment, a step corresponding to step S2 in the first preferred embodiment may further include the following sub-steps.

S21: Use the arithmetical average algorithm to calculate average current values I of the currents I. It is assumed that n actual current values I<NUM>. In during a running process are collected in a certain time period. If an average value is calculated for every three values, several arithmetical average values I<NUM>=(I<NUM>+I<NUM>+I<NUM>)/<NUM>, I<NUM>=(I<NUM>+I<NUM>+I<NUM>)/<NUM>,. , In=(In-<NUM>+I n-<NUM>+In)/<NUM> may be obtained. If an average value is calculated for every five values, several arithmetical average values I<NUM>=(I<NUM>+I<NUM>+I<NUM>+I<NUM>+I<NUM>)/<NUM>, I<NUM>= (I<NUM>+I<NUM>+I<NUM>+I<NUM>+I<NUM>)/<NUM>,. , and In=(In-<NUM>+I n-<NUM>+I n-<NUM>+I n-<NUM>+In)/<NUM> may be obtained.

S22: Use the sliding average algorithm to calculate average values of the average current values I. That is, the sliding average calculation is performed based on the result of the arithmetical average calculation. If the sliding average calculation is performed for every three average current values I, several sliding average values I'<NUM>=( I<NUM>+ I<NUM>+ I<NUM>)/<NUM>, I'<NUM>=( I<NUM>+ I<NUM>+ I<NUM>)/<NUM>,. , and I'n=( In-<NUM>+ I n-<NUM>+ In)/<NUM> may be obtained. If the sliding average calculation is performed for every five average current values I, several sliding average values I'<NUM>=( I<NUM>+ I<NUM>+ I<NUM>+ I<NUM>+ I<NUM>)/<NUM>, I'<NUM>=( I<NUM>+ I<NUM>+ I<NUM>+ I<NUM>+ I<NUM>)/<NUM>,. , and I'n=( In-<NUM>+ I n-<NUM>+ I n-<NUM>+ I n-<NUM>+ In)/<NUM> may be obtained. In other implementations, the sliding average algorithm may also be used to calculate average current values firstly, and then the arithmetical average algorithm is used to calculate average values of average current values. That is, the sequence of performing steps S21 and S22 is not limited in the embodiments.

The average current values calculated sequentially according to the arithmetical average algorithm and the sliding average algorithm can reflect an actual working condition of the electric motor more accurately and provide more reliable data for a following shutdown control.

Furthermore, to enhance credibility of the current values, the sliding average calculation may be performed a plurality of times in step S22. That is, the sliding average algorithm is used to iterate calculation of average values of the average current values I for N times, wherein N≥<NUM>, and the specific iteration operation is to take a result of previous average computation as a data source of next average computation.

Specifically, I<NUM>'. In' obtained in step S22 are results of the first sliding average calculation, and a next iteration calculation is performed depending on the results, so as to obtain second sliding average current values I"<NUM>=( I'<NUM>+ I'<NUM>+ I'<NUM>+ I'<NUM>+ I'<NUM>)/<NUM>, I"<NUM>=( I'<NUM>+ I'<NUM>+ I'<NUM>+ I'<NUM>+ I'<NUM>)/<NUM>,. , and I"n=( I'n-<NUM>+ I 'n-<NUM>+ I 'n-<NUM>+ I' n-<NUM>+ I'n)/<NUM>. In a similar way, on the basis of this, the third sliding average calculation may also be performed to obtain I‴<NUM>=( I"<NUM>+ I"<NUM>+ I"<NUM>+ I"<NUM>+ I"<NUM>)/<NUM>, I‴<NUM>=( I"<NUM>+ I"<NUM>+ I"<NUM>+ I"<NUM>+ I"<NUM>)/<NUM>,. , and I‴n=( I"n-<NUM>+ I" n-<NUM>+ I" n-<NUM>+ I" n-<NUM>+ I"n)/<NUM>. The actual quantity of iteration times may be considered with reference to an actual fluctuation condition of currents and computation costs. In this embodiment, N=<NUM>, that is, iteration is performed three times to obtain finally required average current values I‴<NUM>.

If the value of N is <NUM>, iteration is performed twice, that is, I"<NUM>. I"n are taken as final results.

This embodiment is further different from the first preferred embodiment in that, in this embodiment, a step corresponding to step S3 in the first preferred embodiment further includes the following sub-steps.

S31: Determine time points corresponding to two neighboring average current values, so as to determine a time t between calculating the two neighboring average current values.

S32: Use a method of dividing a difference between two neighboring average current values by a difference between corresponding time points to calculate a slope value of the currents. That is, the slope value Ki=( I‴i- I‴i-<NUM>)/t, and t represents a time between calculating I‴I and calculating I‴i-<NUM>.

More preferably, the slope value may also be calculated by using a mean algorithm. <FIG> is another preferred flowchart of calculating a slope value. That is, a step corresponding to step S3 in the first preferred embodiment may further include the following sub-steps.

S'<NUM>: Determine time points corresponding to two neighboring average current values.

S'<NUM>: Use a method of dividing a difference between two neighboring average current values by a difference between corresponding time points to calculate primary slope values of the currents. Step S'<NUM> and step S'<NUM> are the same as step S31 and step S32, and after a period of time, a plurality of slope values k<NUM>. kn may be calculated.

S'<NUM>: Use the average algorithm to calculate average slope values of the primary slope values. For example, if an average value is calculated for every five values, K=(ki+. +ki+<NUM>)/<NUM>, and furthermore, if an average value is calculated for every three values, K=(ki+. +ki+<NUM>)/<NUM>.

The foregoing preferred solution uses slope values calculated at a plurality of time points to perform average computation to obtain finally required slope values, and the average slope values are closer to an actual working condition and can enhance accuracy of a following shutdown control operation. To enhance the computation efficiency, during the foregoing process of calculating average slope values, this embodiment preferably performs primary arithmetical average computation.

In this embodiment, a step corresponding to step S4 in the first preferred embodiment may include the following sub-steps.

S41: Determine a slope threshold and a triggering condition according to a load of the electric tool. The load may be a current power value or current value of the electric motor or another value of a parameter reflecting an output shaft load, or a current value calculated in the foregoing step. For example, the average current value at a certain time calculated in step S21 or step S22 is Ij, and according to Ij, a slope threshold may be determined specifically through a table look-up manner, that is, a slope threshold comparison table is preset, different average current value ranges correspond to different slope thresholds, and then, a most suitable slope threshold may be determined according to an actual working condition, so as to modify a value of a counter more accurately, be closer to the actual working condition, and then further enhance efficiency of a shutdown control.

The triggering condition in this embodiment is a condition related to the slope value. A person skilled in the art can understand that, the triggering condition of the electric tool usually is not a simple threshold comparison result obtained by one comparison, but a series of comparison results obtained by a plurality of continuous comparisons. Furthermore, for a different working condition, the triggering condition is also different. Therefore, there is a plurality of types of triggering conditions in the art, and the triggering condition, similar to the slope threshold, may also be determined according to a current load condition.

Furthermore, when the load of the electric tool is greater than the first load, the slope threshold is determined as the first slope threshold, and when the load of the electric tool is less than the first load, the slope threshold is determined as the second slope threshold. The second slope threshold is less than the first slope threshold. That is, when the load is large, the slope threshold is large, and when the load is small, the slope threshold is small.

Furthermore, when the load of the electric tool is greater than the first load, the triggering condition is that the slope values of the currents calculated at the N continuous time points are all greater than the first slope threshold. For example, the slope values K calculated at the five time points i ms, (i+<NUM>) ms, (i+<NUM>) ms, (i+<NUM>) ms are all greater than the slope threshold, and then torque output is interrupted.

When the load of the electric tool is less than the first load, the triggering condition is that the slope values of the currents calculated at the first M time points among the N continuous time points are all greater than the second slope threshold, and at least a part of the slope values of the currents calculated at the latter N-M time points are less than the second slope threshold. For example, the slope values K calculated at the three time points i ms, (i+<NUM>) ms, and (i+<NUM>) ms are all greater than the slope threshold, and the slope values K calculated at the two time points (i+<NUM>) ms and (i+<NUM>) ms are both less than the slope threshold, and then, torque output is interrupted.

In the preferred solution, different slope thresholds and shutdown triggering conditions are set for different working conditions, so as to adapt to different working environments, thereby enhancing accuracy and efficiency of an automatic control operation.

Preferably, the slope thresholds include at least three different slope thresholds, and the triggering conditions corresponding to at least a part of different slope thresholds are different. For example, three different slope thresholds are Kx, Ky, and Kz, Kx may correspond to a first triggering condition, and Ky and Kz correspond to a second triggering condition. More preferably, three to nine different slope thresholds are set according to different working conditions. When nine different slope thresholds K<NUM>-K<NUM> are set according to the load, K<NUM> and K<NUM> correspond to the same triggering condition, K<NUM>-K<NUM> correspond to the same triggering condition, and K<NUM>, K<NUM>, K<NUM>, and K<NUM> correspond to different triggering conditions respectively. Of course, other corresponding relations are also possible and will not be listed one by one herein.

S42: Compare the calculated slope values of the N neighboring currents with the slope threshold respectively. For example, K=<NUM> at the ith ms after the electric motor begins to run, K=<NUM> at the (i+<NUM>)th ms, K=<NUM> at the (i+<NUM>)th ms, K=<NUM> at the (i+<NUM>)th ms, and K=<NUM> at the (i+<NUM>)th ms, and relations between K and the slope threshold are determined respectively at the five time points, i ms, (i+<NUM>) ms, (i+<NUM>) ms, and (i+<NUM>) ms. According to the plurality of K, it can be known that, the cycle for calculating the slope value in this embodiment is <NUM>, that is, an average slope value is calculated every <NUM>, and in other preferred manners, the calculation cycle may be set according to hardware performance and actual demand. For example, <NUM>, <NUM>, or a shorter or longer calculation cycle is feasible, and the calculation cycle is not limited.

S43: Determine whether a comparison result meets the triggering condition, and interrupt the torque output of the electric tool when the comparison result meets the triggering condition. After the slope threshold is determined, in a series of comparisons as described above, the slope values at some time points may be possibly greater than the slope threshold, the slope values at other time points may be possibly less than the slope threshold, and the series of comparison results may form a comparison result change trend of slopes and thresholds, and if the change trend meets the shut-down condition determined before, torque output is interrupted.

In a specific embodiment, a counter may be used to measure the change trend of a relation between slope values and thresholds. Specifically, after the slope values are compared with the threshold, the value of the counter may be modified according to the comparison results, that is, the value of the counter is increased or reduced, and at the same time, the values of the counter at the foregoing five time points are recorded respectively.

It is assumed that K=<NUM> at the ith ms, K=<NUM> at the (i+<NUM>)th ms, K=<NUM> at the (i+<NUM>)th ms, K=<NUM> at the (i+<NUM>)th ms, and K=<NUM> at the (i+<NUM>)th ms, the slope threshold is <NUM>, the initial value of the counter is <NUM>, and the modification rule is to add <NUM> when the slope value is greater than <NUM>, subtract <NUM> when the slope value is less than <NUM>, and when the value of the counter is <NUM>, no subtraction is performed. The values of the counter at the foregoing five time points are sequentially <NUM>, <NUM>, <NUM>, <NUM>, and <NUM>, and it can be learned that the value of the counter is increased continuously, and the change trend of the value of the counter may serve as the foregoing triggering condition.

Another embodiment under the first concept further provides a controlling apparatus for an electric tool, and as shown in <FIG>, the apparatus includes:.

The control apparatus for an electric motor of an electric tool according to an embodiment of the present invention calculates average current values through the composite average algorithm, and calculates slope values according to the plurality of average current values. The calculated slope values can reflect the actual working condition of the electric motor more accurately, and may be used as a judgment basis for controlling torque output subsequently, thereby reducing a misjudgment rate of a shutdown control and enhancing efficiency of an automatic fastening operation.

Preferably, the composite average algorithm used by the average parameter calculation unit <NUM> of the apparatus is a combination of an arithmetical average algorithm and a sliding average algorithm.

Preferably, the average parameter calculation unit <NUM> may include:.

The average current values calculated sequentially according to the arithmetical average algorithm and the sliding average algorithm in the preferred solution can reflect the actual working condition of the electric motor more accurately, and provide more reliable data for a following shutdown control.

Furthermore, to enhance the credibility of the current values, the sliding average calculation unit uses the sliding average algorithm to iterate calculation of average values of the average current values I for N times, wherein N≥<NUM>, and the specific iteration operation is to take a result of previous average computation as a data source of next average computation.

In a preferred implementation, the slope value calculation unit <NUM> may include:.

In another preferred implementation, the slope value calculation unit <NUM> may include:.

Furthermore, the average algorithm used by the average slope value calculation unit preferably performs primary arithmetical average computation.

According to the present invention, the execution unit <NUM> includes:.

Furthermore, when a load of the electric tool is greater than a first load, the slope threshold is a first slope threshold, when the load of the electric tool is less than a first load, the slope threshold is a second slope threshold, and the second slope threshold is less than the first slope threshold.

When the load of the electric tool is greater than the first load, the triggering condition is that the slope values of the currents calculated at the N continuous time points are all greater than the first slope threshold.

When the load of the electric tool is less than the first load, the triggering condition is that the slope values of the currents calculated at the first M time points among the N continuous time points are all greater than the second slope threshold, and at least a part of the slope values of the currents calculated at the latter N-M time points are less than the second slope threshold.

Preferably, the slope thresholds include at least three different slope thresholds, and the triggering conditions corresponding to at least a part of different slope thresholds are different.

Another embodiment under the first concept further provides an electric tool, and as shown in <FIG>, the tool includes an electric motor <NUM>, a drilling bit <NUM>, a parameter collection unit <NUM>, and the control apparatus <NUM> for an electric tool provided in the foregoing embodiments. The electric motor <NUM> is configured to drive the drilling bit <NUM> to rotate. The parameter collection unit <NUM> is configured to collect parameters of the electric motor <NUM> characterizing an output shaft load, and with reference to the foregoing embodiments, the parameters may be current values. The control apparatus <NUM> for an electric tool may obtain current values collected by the parameter collection unit <NUM>, and perform a control operation as described in the foregoing embodiments on the electric motor.

For example, when the control apparatus <NUM> determines and calculates the current values collected by parameter collection unit <NUM>, as described in the foregoing embodiments, and determines that an interruption condition is met, the control apparatus <NUM> may send a control instruction for interrupting torque output to the electric motor <NUM>, so as to make the electric motor <NUM> stop rotation.

The control apparatus <NUM> may be a central processing unit (CPU), a microcontroller, a field-programmable gate array (FPGA), and so on. The members may be disposed in a housing of the electric tool as shown in <FIG>.

To avoid an inrush current phenomenon, the parameter collection unit <NUM> may monitor whether the electric motor <NUM> is started and collect running current values of the electric motor <NUM> continuously after waiting for a predetermined time period when the electric motor <NUM> is started.

Regarding the electric tool according to an embodiment, the current signal collection circuit may collect running currents of the electric motor in real time, and the control apparatus calculates average current values through the composite average algorithm, and calculates slope values according to the plurality of average current values. Thus, the calculated slope values can reflect an actual working condition of the electric motor more accurately, and subsequently, the slope values may be used as a judgment basis for controlling torque output of the electric motor, reduce a misjudgment rate of a shutdown control, and enhance efficiency of an automatic fastening operation.

In a preferred implementation, the electric tool may further include:
a mode setting apparatus <NUM>, configured to set a working mode of the electric motor <NUM>. The control apparatus <NUM> controls the electric motor in a predetermined working mode, and the mode setting apparatus <NUM> sets a working mode of the electric motor <NUM> through the control apparatus <NUM>.

Furthermore, the foregoing working modes include at least a drilling mode and a screwdriver mode, and in this embodiment, the screwdriver mode is used as the predetermined working mode.

Preferably, the mode setting apparatus <NUM> may include a key unit <NUM> configured to receive a user operation and a mode selection unit configured to set the working mode of the electric motor according to the user operation. The key unit <NUM> may be disposed at a position shown in <FIG>, so that a user can operate conveniently. In this embodiment, the key unit <NUM> has two keys respectively corresponding to the drilling mode and the screwdriver mode. The mode selection unit may be set inside the housing, the two keys may send an electric signal to the mode selection unit respectively, and according to the received electric signal, the mode selection unit sends a mode setting instruction to the electric motor <NUM> to set a working mode of the electric motor <NUM>.

In the foregoing embodiments, the control method, the control apparatus and the electric tool all determine a load condition of an output shaft of a current electric tool through obtaining current values of the electric tool during a running process, and perform a corresponding control according to a working condition reflected by the load condition. In other embodiments, the load condition of the output shaft of the current electric tool may also be obtained through obtaining various parameters of the electric motor of the electric tool during a running process, such as a rotation speed of the electric motor, a voltage of the electric motor, a voltage change of a power supply and a torque of an output shaft, and a corresponding control is performed according to a working condition reflected by the load condition. That is, the control method and the control apparatus provided can also calculate average values of parameters characterizing an output shaft load according to the composite average algorithm through obtaining parameters characterizing the output shaft load, calculate the slope values according to the average values, and interrupt torque output of the electric tool according to the slope values.

Accordingly, the electric tool includes a sensor configured to collect parameters characterizing the output shaft load.

Obviously, the embodiments are only to describe the examples clearly, instead of limiting the implementations. A person of ordinary skill in the art can further make other different forms of variations or modifications on the basis of the foregoing description. The implementations cannot be listed exhaustively herein.

Claim 1:
A control method for an electric tool, comprising:
obtaining parameters characterizing an output shaft load during a running process of an electric tool;
calculating average values of the parameters characterizing the output shaft load according to a composite average algorithm, wherein the composite average algorithm comprises a combination of at least two different types of average algorithms;
calculating slope values of the parameters characterizing the output shaft load according to the average values of the parameters characterizing the output shaft load; and
interrupting torque output of the electric tool according to the slope values of the parameters characterizing the output shaft load,
wherein the step of interrupting torque output of the electric tool according to the slope values of the parameters characterizing the output shaft load comprises:
determining a slope threshold and a triggering condition according to a load of the electric tool;
comparing calculated slope values of N neighboring parameters characterizing the output shaft load with the slope threshold respectively; and
determining whether a comparison result meets the triggering condition, and when the comparison result meets the triggering condition, interrupting torque output of the electric tool, and
characterised in that
when the load of the electric tool is greater than a first load, the slope threshold is a first slope threshold, when the load of the electric tool is less than the first load, the slope threshold is a second slope threshold, and the second slope threshold is less than the first slope threshold.