Electric tool control method, electric tool and computer readable storage medium

By calculating the total energy consumed by the power tool and controlling it to stop working when the threshold is reached, the problem of relying on manual evaluation of the power tool operation completion is solved, and the fine control of the power tool and the improvement of the working efficiency is achieved.

CN119834171APending Publication Date: 2025-04-15JIANGSU DONGCHENG TOOLS TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411980287.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-31
Publication Date
2025-04-15

AI Technical Summary

Technical Problem

The completion of existing power tool jobs depends on manual evaluation, which makes labor requirements high and difficult to control work efficiency and accuracy, especially when fine work is required.

Method used

By obtaining the operating current and operating voltage of the motor, determining the current and number of rotations, calculating the total energy consumed, and controlling the power tool to stop working when the total energy consumed reaches or exceeds the preset threshold.

Benefits of technology

It realizes fine control of power tools, reduces the requirements for user experience, improves work efficiency and work accuracy, and thus improves the working quality of power tools.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119834171A_ABST
    Figure CN119834171A_ABST
Patent Text Reader

Abstract

The invention provides an electric tool control method, an electric tool and a computer readable storage medium. The electric tool control method comprises the following steps: acquiring working current and working voltage of a motor; and determining the consumed current according to the working current and the no-load current threshold. When the consumed current is larger than 0, the number of rotation turns of the motor is obtained so as to determine at least one operation time period; and calculating the total consumed energy according to the consumed current, the working voltage and the operation time period. When the total consumed energy is larger than or equal to the preset energy threshold value, the electric tool is controlled to stop working. The electric tool can be precisely controlled, and the working quality and the working efficiency of the electric tool can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of electric tools, and in particular to an electric tool control method, an electric tool and a computer-readable storage medium. Background Art

[0002] With the rapid development of science and technology, power tools have been widely used in various industries. With their high efficiency and environmental protection, they have significantly improved the efficiency of operations. However, in related technologies, the completion of power tool operations still relies on manual evaluation, so the requirements for manual labor are high, and as the working hours increase, it is difficult for the same worker to maintain the same work level. At the same time, when facing objects that require delicate operations, the operating accuracy of power tools is difficult to control, which affects the work quality and efficiency of power tools. Summary of the invention

[0003] In order to address the deficiencies of the prior art, the present application provides an electric tool control method, an electric tool and a computer-readable storage medium to achieve fine control of the electric tool and improve work efficiency.

[0004] The technical solution of this application is as follows:

[0005] In a first aspect, the present application provides a method for controlling an electric tool, wherein the electric tool includes a motor, and the method includes: obtaining a working current and a working voltage of the motor. Determining a current consumption according to the working current and a no-load current threshold. When the current consumption is greater than 0, obtaining the number of rotations of the motor to determine at least one operating period. Calculating the total energy consumption according to the current consumption, the working voltage, and the operating period. When the total energy consumption is greater than or equal to a preset energy threshold, controlling the electric tool to stop working.

[0006] In one embodiment, the total energy consumption is calculated according to the consumed current, the operating voltage and the operating time period, including: calculating the current average and the voltage average of the consumed current and the operating voltage in each operating time period, and calculating the total energy consumption according to the voltage average and the current average in all operating time periods.

[0007] In one embodiment, the total energy consumption is calculated based on the voltage average, the current average and the operating time, including: obtaining the start delay time, the pause delay time and the number of starts and pauses of the power tool in each operating period. The start energy deviation value and the pause energy deviation value in the corresponding operating period are determined based on the start delay time, the pause delay time, the number of starts, the current average, the no-load current threshold and the voltage average. The initial value of the total energy in the corresponding operating period is calculated based on the voltage average, the current average and the operating period. The total energy consumption is calculated based on the initial value of the total energy in each operating period, the start energy deviation value and the pause energy deviation value.

[0008] In one embodiment, the starting energy deviation value and the pause energy deviation value in the corresponding operation period are determined according to the starting delay time, the pause delay time, the number of starts, the current mean, the no-load current threshold and the voltage mean, including: calculating the current deviation value of the current mean and the no-load current threshold in each operation period. The starting energy deviation value is determined according to the voltage mean, the current deviation value, the starting delay time and the number of starts in each operation period. The pause energy deviation value is determined according to the voltage mean, the current deviation value, the pause delay time and the number of pauses in each operation period.

[0009] In one embodiment, the total energy consumption is calculated according to the total energy initial value, the startup energy deviation value and the pause energy deviation value of each operating period, including: calculating the time period energy consumption of the corresponding operating period according to the total energy initial value, the startup energy deviation value and the startup energy deviation value of each operating period. The total energy consumption is determined according to the energy consumption of all periods.

[0010] In one embodiment, the number of revolutions of the motor is obtained to determine at least one operating period, including: counting the number of revolutions of the motor, and recording the operating time as one operating period whenever the number of revolutions of the motor reaches a preset threshold value in a continuous operating time when the motor is in a loaded state; and when the number of revolutions of the motor from the start-up state or the last moment of the previous operating period to the time when the motor stops working is less than a preset threshold value in a continuous operating time when the motor is in a loaded state and in a continuous operating time, recording the operating time as one operating period.

[0011] In one embodiment, determining the consumption current according to the operating current and the no-load current threshold includes: calculating the difference between the operating current and the no-load current threshold as the consumption current.

[0012] In one embodiment, before obtaining the working current and the working voltage of the motor, the control method further includes: controlling the electric tool to switch to an intelligent working mode according to a trigger signal.

[0013] A second aspect of the present application provides an electric tool, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the electric tool control method described in any of the above embodiments.

[0014] A third aspect of the present application provides a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the power tool control method described in any of the above embodiments.

[0015] The technical solution of this application has at least the following technical effects or advantages:

[0016] The electric tool control method provided by the present application determines the current consumption through the working current and no-load current threshold of the motor, and when the current consumption is greater than 0, obtains the number of rotations of the motor to determine the operating period, thereby analyzing the total energy consumption according to the motor's current consumption, working voltage and operating period, and controls the electric tool to stop working when the total energy consumption is greater than or equal to the preset energy threshold. In this way, on the one hand, the present application can achieve fine control of the electric tool, reduce the experience requirements for the user, and improve the user's work efficiency. On the other hand, the present application can accurately grasp the operating accuracy of the electric tool, effectively improve the working quality of the electric tool, and help improve the work efficiency of the electric tool. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] Figure 1 It is a schematic diagram of an electric tool provided in one embodiment of the present application.

[0018] Figure 2 It is a step flow chart of a power tool control method provided in one embodiment of the present application.

[0019] Figure 3 This is a flow chart of the total energy consumption analysis steps provided in one embodiment of the present application.

[0020] Figure 4 It is a structural schematic diagram of an electric tool provided in one embodiment of the present application. DETAILED DESCRIPTION

[0021] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. The components of the embodiments of the present application described and shown in the drawings here can be arranged and designed in various different configurations.

[0022] Therefore, the following detailed description of the embodiments of the present application provided in the accompanying drawings is not intended to limit the scope of the present application for which protection is sought, but merely represents selected embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without creative work are within the scope of protection of the present application.

[0023] It should be noted that similar reference numerals and letters denote similar items in the following drawings, and therefore, once an item is defined in one drawing, further definition and explanation thereof is not required in subsequent drawings.

[0024] In conjunction with the accompanying drawings, some embodiments of the present application are described in detail below. In the absence of conflict, the following embodiments and features in the embodiments can be combined with each other.

[0025] With the rapid development of science and technology, power tools have been widely used in various industries. With their high efficiency and environmental protection, they have significantly improved the efficiency of operations. However, in related technologies, the completion of power tool operations still relies on manual evaluation, so the requirements for manual labor are high, and as the working hours increase, it is difficult for the same worker to maintain the same work level. At the same time, when facing objects that require delicate operations, the operating accuracy of power tools is difficult to control, which affects the work quality and efficiency of power tools.

[0026] Based on this, the present application provides an electric tool control method, an electric tool and a computer-readable storage medium to achieve fine control of the electric tool and improve work efficiency.

[0027] Next, the electric tool control method, electric tool, and computer-readable storage medium provided in the embodiments of the present application are further introduced. It is understandable that the electric tool control method provided in the present application can be applied to electric tools. In the following embodiments, the electric tool is an electric grinder as an example. It is understandable that the electric tool control method provided in the present application can be applied to other electric tools, such as angle grinders, polishers, impact drills, etc.

[0028] Please also read Figure 1 , Figure 1 FIG. 1 is a schematic diagram of an electric tool provided by an embodiment of the present application. Figure 1 As shown, the electric tool 10 includes: a housing 101, a motor 102 and a trigger 103. The motor 102 is accommodated in the housing 101, and the motor 102 outputs electric energy to drive the electric tool 10 to operate. The trigger 103 is arranged on the housing 101, and the electric tool 10 is started and stopped by the trigger 103.

[0029] Understandably, Figure 1 The illustrated structure does not constitute a specific limitation on the power tool 10. The power tool 10 may include more or fewer components than shown in the figure, or combine some components, or separate some components, or arrange the components differently.

[0030] See also Figure 2 , Figure 2 This is a flowchart of a method for controlling an electric tool according to an embodiment of the present application. The method can be applied to an electric tool 10 and executed by a processor of the electric tool 10. The method comprises the following steps:

[0031] Step S1, obtaining the working current and working voltage of the motor.

[0032] In some embodiments, the electric tool 10 is provided with a current component and a voltage component to sample the actual output current of the motor 102 and the actual output voltage of the motor 102 as the working current and the working voltage, respectively. The current component may be an ammeter, a Hall sensor or other chip, circuit or module capable of measuring current, and the voltage component may be a voltmeter or a multimeter, or a voltage detection circuit including a chip with voltage detection capability. The present application does not limit the specific implementation of the current component and the voltage component.

[0033] In one embodiment of the present application, the power tool 10 can achieve switching between the normal working mode and the intelligent working mode by setting a button. When the power tool 10 is in the normal working mode, the user can use the power tool 10 to perform continuous operations until the power tool 10 receives an electrical signal to control shutdown. When the user presses a button to switch the power tool 10 to the intelligent working mode according to the trigger signal, the button sends a control instruction to the processor of the power tool 10, and the processor starts to execute step S1 after receiving the control instruction. The power tool 10 can also achieve working mode switching through other control circuits, units or modules, such as automatically switching to the intelligent working mode when the rotation speed of the motor 102 reaches a speed threshold, etc. The present application does not limit the specific mode switching method of the power tool 10.

[0034] Step S2: determining the consumption current according to the working current and the no-load current threshold.

[0035] In the embodiment of the present application, corresponding to the electric grinder, the state in which the motor 102 is running but the electric tool 10 does not contact the work object can be regarded as the no-load state, and the state in which the motor 102 is running when the electric tool 10 contacts the work object can be regarded as the loaded state. The no-load current threshold can be the critical current value of the no-load state. That is, when the working current is greater than the no-load current threshold, it indicates that the electric tool 10 is in the loaded state, and when the working current is less than or equal to the no-load current threshold, it indicates that the electric tool 10 is in the no-load state.

[0036] The consumption current is used to represent the current consumed by the power tool 10 when working on the work object. In some embodiments, the difference between the working current and the no-load current threshold can be directly calculated as the consumption current. In other embodiments, considering the loss that may occur during the operation of the power tool 10, the corresponding consumption current can also be obtained by multiplying the difference between the working current and the no-load current threshold according to other adjustment parameters. This application does not limit the specific calculation method for calculating the consumption current.

[0037] In one embodiment of the present application, the no-load current threshold value may be the current value measured by the motor 102 in the no-load state each time the power tool 10 is turned on or when the preset number of uses is reached. For example, the preset number of uses is pre-set to 50 times. When the power tool 10 is used for the first time, the no-load current threshold value of the motor 102 is obtained and the no-load current threshold value measured for the first time is directly obtained when the power tool 10 is running for subsequent analysis. When the power tool 10 is used for the 50th time, the current component detects the no-load current threshold value of the motor 102 again and updates the no-load current threshold value measured for the first time, and then performs similar operations, which will not be repeated here; the no-load current threshold value may also be a preset value pre-set by relevant technicians. The present application does not limit the specific setting method of the no-load current threshold value.

[0038] Step S3: when the current consumption is greater than 0, the number of revolutions of the motor is obtained to determine at least one operating period.

[0039] When the current consumption is greater than 0, it means that the working current is greater than the no-load current threshold, and the power tool 10 is in a loaded state. At this time, dividing at least one operating period by the number of rotations of the motor 102 is conducive to accurately calculating the energy consumption of the motor 102 on the working object.

[0040] In some embodiments, step S3 may include: counting the number of revolutions of the motor 102, and whenever the motor 102 is in a loaded state and the number of revolutions within a continuous working time reaches a preset number of revolutions threshold, recording the corresponding working time as an operating period, and when the motor 102 is in a loaded state and within a continuous working time, the number of revolutions from the start-up state or the last moment of the previous operating time to the time when the motor 102 stops working is less than the preset number of revolutions threshold, recording the corresponding working time as an operating period.

[0041] That is, when the power tool 10 is in a loaded state, when the number of revolutions of the motor 102 reaches a preset revolution threshold, and when the number of revolutions of the motor 102 when it stops rotating is less than the preset revolution threshold, the maximum number of revolutions is counted. And the rotation time is recorded as an operation period. In one embodiment, the motor 102 records the operation time every time it rotates a preset revolution threshold, and obtains the operation period set T = {t1, t2, ..., t n}, where n is the number of recorded running hours, t n It is the running time of the nth record. nIn the case where the power tool 10 changes from a loaded state to an unloaded state or a stopped state, the number of revolutions of the motor 102 is less than or equal to the preset revolution threshold, and the operating time period corresponding to the actual number of revolutions is recorded. For example, the preset revolution threshold is 100 revolutions, and if the motor 102 rotates a total of 345 revolutions under the loaded state, the acquired operating time period set T = {t1, t2, t3, t4}, wherein t1 is the time used by the motor 102 from the 1st revolution to the 100th revolution, t2 is the time used by the motor 102 from the 101st revolution to the 200th revolution, t3 is the time used by the motor 102 from the 201st revolution to the 300th revolution, and t4 is the time used by the motor 102 from the 301st revolution to the 345th revolution.

[0042] In another embodiment, the trigger 103 is pressed or released multiple times in the loaded state of the power tool 10, and the motor 102 is started or paused multiple times during the rotation process, resulting in changes in the current. When the trigger 103 is pressed, the power tool 10 enters the start state, at which time the motor 102 starts to rotate, and the number of rotations of the motor 102 is counted, and the counting stops when the motor 102 stops rotating. For example, when the trigger 103 is pressed, the motor 102 starts to rotate, and the trigger 103 is released when it rotates 200 times. After the trigger 103 is released, the motor 102 rotates 20 times and then stops. The obtained operating time period set T = {t1, t2, t3}, wherein t1 represents the time used by the motor 102 from the 1st circle to the 100th circle after the trigger 103 is pressed; t2 represents the time used by the motor 102 from the 101st circle to the 200th circle, and t3 represents the time used by the motor 102 to rotate 20 circles after the trigger 103 is released.

[0043] Step S4, calculating the total energy consumption according to the consumed current, the operating voltage and the operating time period.

[0044] In step S3, the product of the operating voltage and the operating current in each operating period may be integrated and then summed up to obtain the total energy consumption.

[0045] In some embodiments, in order to reduce calculation errors, the current average and voltage average of the current consumption and the working voltage in each operating period may be calculated first, and then the total energy consumption may be calculated based on the voltage average and current average in all operating periods.

[0046] It is understandable that in step S1, the working current and working voltage can be sampled at a preset sampling frequency when the motor 102 is running. In this way, the working current and working voltage sampled in each motion period can be obtained to form a corresponding detection set A = {(I1, U1), (I2, U2), (I3, U3) ... (I n , U n)}, wherein I1 represents the first set of operating currents sampled during the corresponding operating period, and U1 represents the first set of operating voltages sampled during the corresponding operating period; I n Indicates the nth group of working current sampled during the corresponding operating period, U n represents the nth group of working voltages sampled during the corresponding operating period. Then, during this operating period, the mean voltage U 平均 =(U1+U2+U3…+U n ) / n, the average current consumption I 平均 =[(I1-I 空 )+(I2-I 空 )+(I3-I 空 )…+(I n -I 空 In other embodiments, other average algorithms may be used to calculate the current average and voltage average corresponding to each operating period, and the present application does not limit the average algorithm used.

[0047] like Figure 3 As shown, the total energy consumption is calculated according to the average voltage and current in all operating time periods, including the following sub-steps:

[0048] S41, obtaining a start delay time, a pause delay time, and the number of starts and pauses of the electric tool in each operating period.

[0049] Understandably, a pulse width modulation signal (PWM) is used as a driving signal to drive the motor 102 to rotate. When the trigger 103 is pressed, it takes a certain amount of time for the pulse width modulation signal to change from an initial state to a state having a target duty cycle, that is, there is a certain delay from pressing the trigger 103 to the motor 102 being in a preset rotation state, namely, the start delay duration. Similarly, after releasing the trigger 103, there is also a corresponding pause delay duration for the motor 102 to change from a rotation state to a stop rotation state. Therefore, the start delay duration, the pause delay duration, and the number of starts and pauses of the power tool in each operating period can be obtained to improve the accuracy of the calculated total energy consumption. The start delay duration and the pause delay duration can also be preset values, and the present application does not limit the specific method for obtaining the start delay duration and the pause delay duration.

[0050] S42. Determine a starting energy deviation value and a pause energy deviation value in a corresponding operating period according to the starting delay time, the pause delay time, the number of starts, the current average, the no-load current threshold and the voltage average.

[0051] Understandably, the current deviation value between the current mean value and the no-load current threshold value in each operating period is calculated, and the current deviation value is the difference between the current mean value and the no-load current threshold value. The starting energy deviation value is determined according to the voltage mean value, current deviation value, starting delay time and starting times in each operating period.

[0052] The starting energy deviation value Q* in each operating period is calculated by the following formula 启 Perform the calculation:

[0053]

[0054] Among them, U 平均 It is expressed as the mean voltage of the working voltage during the operation period, I 平均 It is expressed as the mean current of the working current during the operation period, I 空 Indicated as no-load current threshold.

[0055] The pause energy deviation value is determined according to the voltage average value, current deviation value, pause delay time and pause times in each operating period.

[0056] The pause energy deviation value Q* in each operating period is calculated by the following formula 停 Perform the calculation:

[0057]

[0058] S43. Calculate the initial value of the total energy in the corresponding operating period according to the voltage average, the current average and the operating period.

[0059] The total energy initial value Q* in each operating period is calculated by the following formula:

[0060] Q * =U 平均 I 平均 t;

[0061] Here, t represents the time used in the running period.

[0062] S44, calculating the total energy consumption according to the total energy initial value, the start energy deviation value and the pause energy deviation value of each operating period.

[0063] The energy consumption of the corresponding operation period is calculated according to the total energy initial value, the starting energy deviation value and the starting energy deviation value of each operation period. The total energy consumption is determined according to the energy consumption of all periods.

[0064] The total energy consumed Q is calculated by the following formula 总 Perform the calculation:

[0065]

[0066] The sum of the startup energy deviation value and the pause energy deviation value is taken as the interference energy value, and the difference between the total energy initial value of the corresponding operation period and the interference energy value is taken as the period energy consumption. The period energy consumption of all operation periods is accumulated to obtain the total energy consumption.

[0067] Step S5: When the total energy consumed is greater than or equal to a preset energy threshold, the electric tool is controlled to stop working.

[0068] The preset energy threshold is used to indicate the critical energy value at the end of processing. For example, when the total energy consumed is less than the preset energy threshold, it indicates that the processing degree of the power tool 10 may not have reached the preset target; when the total energy consumed is greater than or equal to the preset energy threshold, it indicates that the processing degree of the power tool 10 has reached the preset target.

[0069] The preset energy threshold may be a preset value, and the preset energy threshold may be different based on different work objects or different processing degrees. In one embodiment of the present application, relevant technicians can set the total energy consumed after any operation of the power tool 10 as the preset energy threshold. For example, for the same type of work object, when the power tool 10 is running under load for the first time, if all the work indicators meet the requirements, the total energy consumed corresponding to the operation can be set as the preset energy threshold. In the subsequent operation of the power tool 10, relevant technicians can modify the preset energy threshold according to actual conditions.

[0070] In another embodiment of the present application, for work objects with higher operation requirements, several operation levels can be pre-set, and different operation levels correspond to different preset energy thresholds. For example, the total number of rotations of the motor 102 is pre-set to n turns, and the preset energy threshold standard is X. When the actual total number of running turns of the motor 102 is less than or equal to n turns, the operation level is set to level 1, and when the total energy consumed is greater than or equal to X, the power tool 10 is controlled to stop working; when the actual total number of running turns of the motor 102 is greater than n turns and less than or equal to 2n turns, the operation level is set to level 2, and when the total energy consumed is greater than or equal to 2X, the power tool 10 is controlled to stop working. The remaining operation levels are set in a similar manner and will not be repeated here.

[0071] It can be seen from the above two embodiments that the present application does not limit the specific setting method of the preset energy threshold.

[0072] See also Figure 4 ,like Figure 4As shown, the present application also provides an electric tool 10, comprising: at least one processor 20; and a memory 30 communicatively connected to the at least one processor 20; wherein the memory 30 stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor 20 so that the at least one processor 20 can execute the above-mentioned electric tool control method.

[0073] Among them, the memory 30 and the processor 20 are connected in a bus manner, and the bus may include any number of interconnected buses and bridges, and the bus connects various circuits of one or more processors 20 and the memory 30 together. The bus can also connect various other circuits such as peripheral devices, voltage regulators, and power management circuits, which are well known in the art, so they are not further described in this article. The bus interface provides an interface between the bus and the transceiver. The transceiver can be one element or multiple elements, such as multiple receivers and transmitters, providing a unit for communicating with various other devices on a transmission medium. The data processed by the processor 20 is transmitted on the wireless medium through the antenna, and further, the antenna also receives the data and transmits the data to the memory 30. The processor 20 is responsible for managing the bus and general processing, and can also provide various functions, including timing, peripheral interfaces, voltage regulation, power management and other control functions. The memory 30 can be used to store data used by the processor 20 when performing operations.

[0074] Please continue reading Figure 4 The present application also provides a computer-readable storage medium storing a computer program 40. The computer program 40 is stored in the memory 30 and can be executed by the processor 20 to implement the above-mentioned walking control method. The computer program 40 can be in the form of source code, object code, executable file or some intermediate form. The computer-readable medium may include: any entity or device capable of carrying computer program code, recording medium, USB flash drive, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), electric carrier signal, telecommunication signal and software distribution medium.

[0075] It should be noted that, for the aforementioned method embodiments, for the sake of simplicity of description, they are all expressed as a series of action combinations, but those skilled in the art should know that the present application is not limited by the described order of actions, because according to the present application, certain steps can be performed in other orders or simultaneously.

[0076] The above embodiments are described in the form of preferred embodiments of the present application, and are not intended to limit the scope of the present application. Without departing from the design spirit of the present application, various modifications and improvements made to the technical solutions of the present application by ordinary technicians in this field should fall within the scope of protection determined by the claims of the present application.

Claims

1. A method for controlling an electric tool, the electric tool comprising a motor, characterized in that: The method comprises: Obtaining a working current and a working voltage of the motor; Determining the consumption current according to the working current and the no-load current threshold; When the current consumption is greater than 0, obtaining the number of rotations of the motor to determine at least one operating period; Calculate the total energy consumption according to the consumption current, the operating voltage and the operation time period; When the total energy consumed is greater than or equal to a preset energy threshold, the electric tool is controlled to stop working.

2. The control method according to claim 1, characterized in that: The calculating the total energy consumption according to the consumption current, the operating voltage and the operation time period includes: Calculating the current average value and the voltage average value of the consumption current and the working voltage in each of the operating time periods; The total consumed energy is calculated according to the voltage average value and the current average value in all the operating time periods.

3. The control method according to claim 2, characterized in that: The calculating the total energy consumption according to the voltage average, the current average and the running time includes: Obtaining the start delay time, the pause delay time, and the number of starts and pauses of the electric tool in each operation period; Determine a starting energy deviation value and a pause energy deviation value in the corresponding operating period according to the starting delay time, the pause delay time, the number of starts, the current average, the no-load current threshold and the voltage average; Calculate the initial value of the total energy in the corresponding operating period according to the voltage average, the current average and the operating period; The total energy consumption is calculated according to the total energy initial value, the start-up energy deviation value and the stop energy deviation value of each of the operating periods.

4. The control method according to claim 3, characterized in that: The determining of the corresponding starting energy deviation value and the pause energy deviation value in the operating period according to the starting delay time, the pause delay time, the number of starts, the current mean, the no-load current threshold and the voltage mean includes: Calculating a current deviation value between a current mean value and a no-load current threshold value in each of the operating time periods; Determine the startup energy deviation value according to the voltage average value, the current deviation value, the startup delay time and the number of startups in each of the operating periods; The pause energy deviation value is determined according to the voltage average value, the current deviation value, the pause delay time and the pause number in each of the operating time periods.

5. The control method according to claim 3, characterized in that: The calculating the total energy consumption according to the total energy initial value, the startup energy deviation value and the pause energy deviation value of each running period includes: Calculate the time period energy consumption of the corresponding operating period according to the total energy initial value, the startup energy deviation value and the startup energy deviation value of each operating period; The total energy consumption is determined according to the energy consumption in all the time periods.

6. The control method according to claim 1, characterized in that: The obtaining of the number of rotations of the motor to determine at least one operating period includes: Counting the number of rotations of the motor, whenever the motor is in a loaded state and the number of rotations within a continuous working time reaches a preset threshold, recording the working time as one of the operating time periods; and When the motor is in a loaded state and within a continuous working time, if the number of rotations from the starting state or the last moment of the previous operating period to the time when the motor stops working is less than the preset rotation threshold, the working time is recorded as one operating period.

7. The control method according to claim 1, characterized in that: The determining the consumption current according to the working current and the no-load current threshold comprises: A difference between the operating current and the no-load current threshold is calculated as the consumption current.

8. The control method according to claim 1, characterized in that: Before obtaining the working current and the working voltage of the motor, the control method further includes: The electric tool is controlled to switch to an intelligent working mode according to a trigger signal.

9. An electric tool, characterized in that: include: at least one processor; and, a memory communicatively coupled to the at least one processor; The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the electric tool control method as described in any one of claims 1 to 8.

10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the electric tool control method according to any one of claims 1 to 8 is implemented.