Control method of electric tool, electric tool and storage medium
By detecting the position information of the motor tool processing part when it comes into contact with the object to be processed, and automatically adjusting the opening and closing angle of the machining part, the problem of inefficiency of the power tool when cutting the object to be processed in different sizes in the prior art is solved, and a more efficient and accurate processing process is achieved.
Patent Information
- Application Number
- CN202411728687.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-28
- Publication Date
- 2025-04-22
AI Technical Summary
The existing power tool control method requires manual adjustment of the opening and closing angle of the machining part when cutting objects to be processed of different sizes, resulting in low efficiency and inability to ensure accuracy.
By detecting the first position information when the machining part of the electric tool comes into contact with the object to be processed, the machining part is adjusted to the second position information related to the position information, ensuring that the opening and closing angle of the machining part is suitable for the size of the object to be processed, and the spacing of the machining part is automatically adjusted.
The automatic adjustment function of the power tool processing part is realized, which shortens the time it takes for the machining part to close to the appropriate state, and improves the working efficiency and accuracy of the power tool.
Smart Images

Figure CN119861598A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present invention relate to the field of intelligent control of electric tools, and in particular to a control method of an electric tool, an electric tool and a storage medium. Background Art
[0002] In order to reduce the labor intensity of the staff, electric tools can usually be used to assist in cutting the object to be processed. When using electric tools to cut the object to be processed, it is usually necessary to adjust the processing part of the electric tool to the maximum opening and closing angle, and place the object to be processed at the corresponding position according to the position to be cut. As the opening and closing angle of the processing part decreases, the cutting of the object to be processed is gradually realized until the processing part is in a closed state, and the cutting of the object to be processed is completed.
[0003] However, the inventors have found that the current control method of the electric tool has at least the following problems: after each cutting of an object to be processed, the processing part of the electric tool will be restored to the maximum opening and closing angle, and then the next object to be processed will be cut. Since the size of the object to be processed is usually smaller than the maximum opening and closing angle of the processing part, it takes a certain amount of time for the processing part to gradually close from the maximum opening and closing angle to contact the object to be processed, which reduces the working efficiency of the electric tool. In addition, the opening and closing angle of the processing part of the current electric tool needs to be manually adjusted by the staff. Manual adjustment cannot guarantee accuracy and will also take a certain amount of time, affecting the working efficiency of the electric tool. Summary of the invention
[0004] The purpose of the embodiments of the present invention is to provide a control method of an electric tool, an electric tool and a storage medium, which can automatically adjust the opening and closing angles of a processing part of the electric tool and improve the working efficiency of the electric tool.
[0005] To solve the above technical problems, an embodiment of the present invention provides a control method for an electric tool, comprising: when it is detected that a processing portion of the electric tool is in contact with an object to be processed, detecting first position information of the processing portion compared to a closed state; wherein the processing portion is composed of a first processing part and a second processing part; the processing portion is in contact with the object to be processed specifically: the object to be processed is placed between the first processing part and the second processing part, and both the first processing part and the second processing part are in contact with the object to be processed; second position information for controlling the movement of the processing portion is determined according to the first position information; wherein the first spacing between the first processing part and the second processing part in the first position information is smaller than the second spacing between the first processing part and the second processing part in the second position information; after completing processing of the object to be processed, controlling the processing portion to move to a preset state according to the second position information; wherein the second spacing between the first processing part and the second processing part in the preset state is smaller than the maximum spacing between the first processing part and the second processing part.
[0006] An embodiment of the present invention also 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 above-mentioned electric tool control method.
[0007] An embodiment of the present invention further provides a computer-readable storage medium storing a computer program, wherein the computer program implements the above-mentioned control method of the electric tool when executed by a processor.
[0008] Compared with the prior art, the embodiment of the present invention detects the first position information of the processing part of the electric tool when it contacts the object to be processed. After completing the cutting of the object to be processed, the processing part is adjusted to the second position information related to the first position information. Since the second spacing between the first processing part and the second processing part of the processing part after adjustment based on the second position information is greater than the first spacing between the first processing part and the second processing part when the processing part contacts the object to be processed. Therefore, it can be ensured that the current state of the processing part is also a more suitable state for other objects of the same size as the object to be processed, that is, while ensuring that the object to be processed can be placed between the first processing part and the second processing part, the first processing part and the second processing part can achieve contact with the object to be processed in a shorter time. In this way, the time consumed by the processing part to close to a suitable processing state can be reduced, thereby improving the working efficiency of the electric tool.
[0009] In addition, detecting the first position information of the processing part compared to the initial state includes: when it is detected that the processing part of the electric tool is in contact with the object to be processed, triggering the counting of the number of revolutions of the motor of the electric tool; wherein the motor is used to control the distance between the first processing part and the second processing part; when the processing part is in a closed state, stopping the counting of the number of revolutions of the motor of the electric tool, and determining the first number of revolutions of the motor during the period from triggering the count to stopping the count; determining the first position information according to the first number of revolutions; determining the second position information for controlling the movement of the processing part according to the first position information includes: determining the second number of revolutions for controlling the movement of the processing part according to the first number of revolutions; wherein the second number of revolutions is greater than the first number of revolutions; determining the second position information based on the second number of revolutions.
[0010] In addition, determining the second number of turns for controlling the movement of the processing part according to the first number of turns includes: adding the first number of turns and a preset number of turns as the second number of turns; or multiplying the first number of turns and a preset coefficient as the second number of turns.
[0011] In addition, the contact between the processing part of the electric tool and the object to be processed is determined in the following manner: when it is detected that the working current of the electric tool is greater than the no-load current, it is determined that the processing part of the electric tool is in contact with the object to be processed; and / or, when it is detected that the working speed of the motor is less than the no-load speed, it is determined that the processing part of the electric tool is in contact with the object to be processed.
[0012] In addition, the working current changes based on the change of the contact area between the processing part and the object to be processed, and the larger the contact area, the higher the working current; and / or the working speed changes based on the change of the contact area between the processing part and the object to be processed, and the larger the contact area, the smaller the working speed.
[0013] In addition, the processing part is determined to be in the closed state in the following manner: a Hall sensor is used to detect whether the processing part is in the terminal Hall position, and if the processing part is in the terminal Hall position, it is in the closed state.
[0014] In addition, detecting first position information of the processing portion compared to an initial state includes: determining the first position information using a Hall sensor.
[0015] In addition, a microcontroller unit MCU is used to count the number of revolutions of the motor.
[0016] In addition, when a reset instruction is detected, the first processing piece and the second processing piece are adjusted to a maximum distance; and the second position information is reset according to the first position information determined during the cutting process of the electric tool on other objects to be processed. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] One or more embodiments are exemplarily described by pictures in the corresponding drawings, and these exemplified descriptions do not constitute limitations on the embodiments. Elements with the same reference numerals in the drawings represent similar elements, and unless otherwise stated, the figures in the drawings do not constitute proportional limitations.
[0018] Figure 1 is a flow chart of a control method of an electric tool according to an embodiment of the present invention;
[0019] Figure 2 is a structural cross-sectional view of an electric tool according to an embodiment of the present invention;
[0020] Figure 3 is another flow chart of a control method of an electric tool according to an embodiment of the present invention;
[0021] Figure 4 is a schematic diagram of the change of current over time during a power tool machining process in a power tool control method according to an embodiment of the present invention;
[0022] Figure 5 is a schematic diagram of the change of the motor speed over time during the processing of the electric tool in a control method of the electric tool according to an embodiment of the present invention;
[0023] Figure 6 1 is a schematic structural diagram of an electric tool according to an embodiment of the present invention. DETAILED DESCRIPTION
[0024] In order to make the purpose, technical scheme and advantages of the embodiments of the present invention clearer, the embodiments of the present invention will be described in detail below with reference to the accompanying drawings. However, it can be understood by those skilled in the art that in the embodiments of the present invention, many technical details are provided to enable readers to better understand the present invention. However, even without these technical details and various changes and modifications based on the following embodiments, the technical scheme claimed in the present invention can be implemented.
[0025] The division of the following embodiments is for the convenience of description and shall not constitute any limitation on the specific implementation of the present invention. The embodiments may be combined with each other and referenced to each other without contradiction.
[0026] An embodiment of the present invention relates to a control method for an electric tool, comprising: when it is detected that a processing portion of the electric tool contacts an object to be processed, detecting first position information of the processing portion compared to a closed state; wherein the processing portion is composed of a first processing part and a second processing part, and different tools may have different closed states, and the closed state is a state in which the first processing part and the second processing part are fitted or abutted, such as a scissors-type tool, whose closed state is that two blades are fitted, such as a crimping-type tool, whose closed state is that the first processing part and the second processing part are abutted; the processing portion contacts the object to be processed specifically: the object to be processed is placed between the first processing part and the second processing part, and the first processing part and the second processing part are both in contact with the object to be processed; determining second position information for controlling the movement of the processing portion according to the first position information; wherein the first spacing between the first processing part and the second processing part in the first position information is less than the second spacing between the first processing part and the second processing part in the second position information; after the processing of the object to be processed is completed, controlling the processing portion to move to a preset state according to the second position information; wherein the second spacing between the first processing part and the second processing part in the preset state is less than the maximum spacing between the first processing part and the second processing part. The distance between the first workpiece and the second workpiece of the electric tool is automatically adjusted, thereby improving the working efficiency of the electric tool. The following is a detailed description of the control method of the electric tool of this embodiment. The following content is only provided for the convenience of understanding and is not necessary for implementing this solution.
[0027] The control method of the electric tool in the embodiment of the present invention is as follows: Figure 1 As shown, the following steps are included:
[0028] Step 101: When it is detected that the processing part of the electric tool is in contact with the object to be processed, the first position information of the processing part compared to the closed state is detected, wherein the first position information can be determined based on the center of gravity position, the center position, the position of one end of the processing part and the corresponding position in the closed state of the two processing parts. The specific determination method can also be determined according to the opening of different types of tools. For example, for scissors-type tools, it can be determined according to the size of the opening.
[0029] Among them, the processing part is composed of a first processing part and a second processing part, and the closed state is a state in which the first processing part and the second processing part are in contact or abutment with each other; the contact between the processing part and the object to be processed is specifically: the object to be processed is placed between the first processing part and the second processing part, and the first processing part and the second processing part are both in contact with the object to be processed.
[0030] Specifically, the electric tool may be an electric scissors, and the first processing part and the second processing part are two blades of the scissors, and the object to be processed is placed between the two blades, and the blades cut the object to be processed to complete the processing. Alternatively, the electric tool may also be an electric crimping tool, such as a crimping pliers, and the first processing part and the second processing part are two crimping parts of the crimping tool, and the object to be processed is placed between the two crimping parts, and the two crimping parts are close to each other to compress the object to be processed to complete the processing.
[0031] Step 102: Determine second position information for controlling movement of a processing unit according to the first position information.
[0032] Wherein, a first distance between the first processed part and the second processed part in the first position information is smaller than a second distance between the first processed part and the second processed part in the second position information.
[0033] Specifically, the movement trajectory of the first workpiece and the second workpiece during operation may be rotation relative to a fixed point, such as the two blades of an electric scissors changing the opening and closing angle relative to a fixed point. In this case, the spacing between the first workpiece and the second workpiece is positively correlated with the opening and closing angle of the first workpiece and the second workpiece, and the larger the opening and closing angle, the larger the spacing between the two. In addition, the movement trajectory of the first workpiece and the second workpiece during operation may also be a relative surface translation approach, such as the relative surfaces of the two crimping parts of an electric crimping tool being parallel to each other approaching or moving away from each other. In this case, the spacing between the first workpiece and the second workpiece is positively correlated with the average distance between the first workpiece and the second workpiece, and the larger the average distance, the larger the spacing between the two.
[0034] Step 103: After the object to be processed is processed, the processing unit is controlled to move to a preset state according to the second position information; wherein, in the preset state, the second distance between the first processing part and the second processing part is smaller than the maximum distance between the first processing part and the second processing part.
[0035] Compared with the prior art, the embodiment of the present invention detects the first position information of the processing part of the electric tool when it contacts the object to be processed. After completing the cutting of the object to be processed, the processing part is adjusted to the second position information related to the first position information. Since the second spacing between the first processing part and the second processing part of the processing part after adjustment based on the second position information is greater than the first spacing between the first processing part and the second processing part when the processing part contacts the object to be processed. Therefore, it can be ensured that the current state of the processing part is also a more suitable state for other objects of the same size as the object to be processed, that is, while ensuring that the object to be processed can be placed between the first processing part and the second processing part, the first processing part and the second processing part can achieve contact with the object to be processed in a shorter time. In this way, the time consumed by the processing part to close to a suitable processing state can be reduced, thereby improving the working efficiency of the electric tool.
[0036] The following uses electric scissors as an example to explain the structure of electric tools in detail. Figure 1 As shown, a battery pack is installed in a battery pack installation part 1 of the electric tool to power the electric tool. The power of the electric tool is turned on through a control panel 2, and the distance between the first processing part and the second processing part of the processing part 4 is controlled by a trigger 3.
[0037] The control method of the electric tool in the embodiment of the present invention is as follows: Figure 3 As shown, the following steps are included:
[0038] Step 301, when it is detected that the processing part of the electric tool is in contact with the object to be processed, triggering the counting of the number of revolutions of the motor of the electric tool;
[0039] The motor drives the transmission device to control the distance between the first processing part and the second processing part. The forward rotation of the motor drives the distance between the first processing part and the second processing part to decrease, and the reverse rotation of the motor drives the distance between the first processing part and the second processing part to increase.
[0040] Specifically, it is determined that the processing portion of the electric tool is in contact with the object to be processed by:
[0041] One of the determination methods is: when it is detected that the working current of the electric tool is greater than the no-load current, it is determined that the processing part of the electric tool is in contact with the object to be processed. When the distance between the first processing part and the second processing part of the electric tool gradually decreases from the maximum distance over time, the line graph of the working current I changing with time T is as follows: Figure 4 As shown, the first workpiece and the second workpiece of the electric tool gradually reduce the spacing from the maximum spacing to before time t1. During this stage, the first workpiece and the second workpiece of the electric tool do not contact the object to be processed, and the working current i1 is a no-load current. At time t1, the first workpiece and the second workpiece of the electric tool are in contact with the object to be processed, and as the spacing between the first workpiece and the second workpiece is further reduced, the contact area between the processing part and the object to be processed gradually increases, and the working current changes based on the change in the contact area between the processing part and the object to be processed. The larger the contact area, the higher the working current. At time t2, the contact area between the processing part and the object to be processed reaches the maximum, and the maximum working current is i2. Subsequently, as time increases, the contact area between the processing part and the object to be processed gradually decreases or the contact area tends to remain unchanged. After time t2, the working current will gradually decrease until the working current is almost unchanged until the first workpiece and the second workpiece are in a closed state or cannot continue to reduce the spacing, and the cutting or compression of the object to be processed is completed. Based on the variation law of the working current during the above processing, the moment when the working current is detected to be greater than the no-load current can be regarded as the moment when the processing part of the power tool contacts the object to be processed, and the number of revolutions of the motor of the power tool can be counted.
[0042] Another way to determine whether the processing part is in contact with the object to be processed is: when it is detected that the working speed of the motor is less than the no-load speed, it is determined that the processing part of the power tool is in contact with the object to be processed. When the first processing part and the second processing part of the power tool gradually reduce the opening angle from the maximum distance over time, the line graph of the working speed (r / min) changing with time T is as follows Figure 5 As shown, the first processing part and the second processing part of the electric tool gradually reduce the spacing from the maximum spacing to before time t1. In this stage, the processing part of the electric tool does not contact the object to be processed, and the working speed r2 of the motor is the no-load speed. At time t1, the processing part of the electric tool contacts the object to be processed, and as the spacing between the first processing part and the second processing part further decreases, the contact area between the processing part and the object to be processed gradually increases. The working speed changes based on the change of the contact area between the processing part and the object to be processed. The larger the contact area, the greater the resistance to the operation of the motor, and the smaller the working speed of the motor. At time t2, the contact area between the processing part and the object to be processed reaches the maximum, and the working speed reaches the minimum value corresponding to r1. Subsequently, as time increases, the contact area between the processing part and the object to be processed gradually decreases or the contact area tends to remain unchanged. After time t2, the working speed will gradually increase until the working speed is almost unchanged until the first processing part and the second processing part are in a closed state or cannot continue to reduce the spacing, and the cutting or compression of the object to be processed is completed. Based on the changing law of the working speed during the above processing, the moment when the working speed is detected to be less than the no-load speed can be regarded as the moment when the processing part of the power tool contacts the object to be processed, and the number of revolutions of the motor of the power tool can be counted.
[0043] During actual detection, counting may be started when one of the above working current conditions or working speed conditions is met, or when both the working current condition and the working speed condition are met.
[0044] Step 202, when the processing part is in the closed state, stop counting the number of revolutions of the motor of the electric tool, and determine the first number of revolutions of the motor during the period from triggering the counting to stopping the counting.
[0045] Specifically, the Hall sensor is used to detect whether the processing part is at the terminal Hall position. If the processing part is at the terminal Hall position, it is in a closed state. Figure 2 As shown, the processing part is composed of a first blade and a second blade. When the spacing (opening and closing angle) of the processing part is changed, the first blade moves toward the position of the second blade, and the fixed position of the second blade does not change. In the state of maximum opening and closing angle, the position of the first blade is the terminal Hall position. The signal detected by the Hall sensor can determine whether the first blade is in the terminal Hall position, and then determine whether the processing part is in a closed state.
[0046] In addition, the microcontroller unit MCU can be used to count the number of motor revolutions. The pulse signal for controlling the motor operation is input into a specific pin of the microcontroller unit MCU, and the counting function of the counter is used to count the pulse signal. When the pin state changes, the count is +1. When the counting stops, the value of the counter can be read to determine the first number of revolutions of the motor.
[0047] Step 203, determining a second number of turns for controlling the opening and closing angle of the processing portion according to the first number of turns.
[0048] Specifically, since the working current changes slowly when the processing part of the electric tool contacts the object to be processed, there may be a delay in the detected moment when the processing part contacts the object to be processed. Therefore, it is necessary to add a few turns as the second number of turns of the motor rotating in the opposite direction on the basis of the first number of turns obtained by counting. In order to avoid the influence on the detection of the first spacing of the processing part due to the inaccurate determination of the moment when the processing part of the electric tool contacts the object to be processed, or the size difference of the object to be processed. On the basis of the first number of turns obtained by completing the cutting process of the object to be processed, a second number of turns greater than the first number of turns is obtained as the number of motor rotations for controlling the second spacing of the processing part. The numerical calculation of the second number of turns can be: adding the first number of turns to the preset number of turns as the second number of turns; or, multiplying the first number of turns by the preset coefficient as the second number of turns. The preset number of turns and the preset coefficient can be set according to the experience of the staff. For example, if the preset number of turns is X, then the second number of turns N2 = the first number of turns N1 + X. If the preset coefficient is Y, Y is a number between 1.05-1.20, preferably 1.1, then the second number of turns N2 = the first number of turns N1*1.1.
[0049] Step 204, controlling the motor to rotate in the reverse direction for a second number of revolutions to adjust the processing portion from the closed state to a preset state.
[0050] Specifically, when repeatedly performing processing operations on an object to be processed of the same size, the power tool records the first number of revolutions when processing the object to be processed for the first time, and obtains the second number of revolutions from the first number of revolutions as a control parameter for the reverse rotation of the motor. This can ensure that the first processing part and the second processing part of the processing part are at a suitable spacing position when repeatedly processing the object to be processed of the same size, thereby reducing the time taken for the processing part to close to a suitable processing position and improving the working efficiency of the power tool.
[0051] In addition, if after processing the object to be processed, it is necessary to change the type of the object to be processed or change the size of the object to be processed, the second number of turns can be reset. For example, when the restart of the power button is detected, or the reset function button on the operation panel is triggered, the second number of turns is reset. The first processing part and the second processing part are automatically adjusted to the maximum spacing, and the replaced object to be processed is placed in a suitable position. The spacing between the first processing part and the second processing part is reduced by the trigger, and the counting of the number of motor rotations is triggered when the processing part of the power tool is detected to be in contact with the object to be processed, and when the processing part is operated to the closed state, the counting of the number of motor rotations is stopped to obtain the updated first number of turns. Based on the updated first number of turns, the updated second number of turns is obtained as a control parameter for controlling the reverse rotation of the motor. The above-mentioned method of determining the contact between the processing part and the object to be processed, the determination of the first number of turns and the determination of the second number of turns are consistent with the above-mentioned description, and will not be repeated here.
[0052] Compared with the prior art, the embodiment of the present invention detects the first number of revolutions of the motor of the electric tool during the period from the contact between the processing part of the electric tool and the object to be processed to the complete closure of the processing part of the electric tool. After the cutting of the object to be processed is completed, the motor is rotated in the opposite direction for a second number of revolutions. Since the second number of revolutions of the reverse rotation is greater than the first number of revolutions. Therefore, the second spacing between the first processing part and the second processing part after the reverse rotation will be greater than the first spacing between the first processing part and the second processing part when they just contacted the object to be processed, ensuring that the current spacing between the first processing part and the second processing part is also a more suitable processing position for other objects of the same size as the object to be processed. And since the spacing between the first processing part and the second processing part after the reverse rotation for the second number of revolutions is less than the maximum spacing between the first processing part and the second processing part, the time spent on closing the processing part to a position with a suitable spacing can be reduced, thereby improving the working efficiency of the electric tool.
[0053] In the control method of the electric tool in the embodiment of the present invention, when detecting the first position information of the processing part compared with the initial state, in addition to determining the first position information by the number of motor revolutions as mentioned above, the first position information can also be determined by a Hall sensor.
[0054] Specifically, the processing part is a first processing part and a second processing part, wherein the position of the second processing part is fixed compared to the position of the power tool body, and the first processing part reciprocates toward the position of the second processing part. The Hall sensor determines the distance between the first processing part and the second processing part by detecting the position change of the first processing part, thereby obtaining the first position information.
[0055] First, the Hall sensor determines the current information in the closed state where the first workpiece and the second workpiece are in contact with each other. On this basis, the corresponding relationship between the current and the position of the first workpiece is obtained by changing the position of the first workpiece and recording the corresponding current information. The current information subsequently detected by the Hall sensor can be used to determine the position of the first workpiece. When it is detected that the processing part of the power tool is in contact with the object to be processed, the position of the first workpiece is determined by the current information of the Hall sensor as the first position information of the processing part. The detection of the contact between the processing part of the power tool and the object to be processed can be determined by the working current and the working speed. The determination method has been specifically described in the above embodiment and will not be repeated here.
[0056] After determining the first position information, the second position information can be obtained by increasing a preset spacing or multiplying by a preset coefficient to ensure that the second spacing between the first processing part and the second processing part of the processing part adjusted based on the second position information is greater than the first spacing between the first processing part and the second processing part when the processing part contacts the object to be processed.
[0057] The step division of the various methods above is only for clear description. When implemented, they can be combined into one step or some steps can be split and decomposed into multiple steps. As long as they include the same logical relationship, they are all within the protection scope of the present invention. Adding insignificant modifications or introducing insignificant designs to the algorithm or process without changing the core design of the algorithm and process are all within the protection scope of the invention.
[0058] The embodiment of the present invention also relates to an electric tool, such as Figure 6 As shown, it includes at least one processor 601; and a memory 602 that is communicatively connected to the at least one processor 601; wherein the memory 602 stores instructions that can be executed by the at least one processor 601, and the instructions are executed by the at least one processor 601 so that the at least one processor 601 can execute the above-mentioned power tool control method.
[0059] The memory 602 and the processor 601 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 601 and the memory 602 together. The bus can also connect various other circuits such as peripheral devices, voltage regulators, and power management circuits, which are well known in the art and are therefore not further described herein. The bus interface provides an interface between the bus and the transceiver. The transceiver can be one element or multiple elements, such as multiple receivers and transmitters, providing a unit for communicating with various other devices on a transmission medium. The data processed by the processor is transmitted on a wireless medium via an antenna, and further, the antenna also receives data and transmits the data to the processor 601.
[0060] The processor 601 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 602 can be used to store data used by the processor 601 when performing operations.
[0061] The embodiment of the present invention also relates to a computer-readable storage medium storing a computer program. When the computer program is executed by a processor, the control method embodiment of the electric tool is implemented.
[0062] That is, those skilled in the art can understand that all or part of the steps in the above-mentioned embodiment method can be completed by instructing the relevant hardware through a program, and the program is stored in a storage medium, including several instructions for making a device (which can be a single-chip microcomputer, chip, etc.) or a processor (processor) perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.
[0063] Those skilled in the art will appreciate that the above embodiments are specific embodiments for implementing the present invention, and that in actual applications, various changes may be made in form and detail without departing from the spirit and scope of the present invention.
Claims
1. A method for controlling an electric tool, characterized in that: include: When it is detected that the processing part of the electric tool is in contact with the object to be processed, first position information of the processing part compared to the closed state is detected; wherein the processing part is composed of a first processing part and a second processing part; the processing part is in contact with the object to be processed specifically: the object to be processed is placed between the first processing part and the second processing part, and the first processing part and the second processing part are both in contact with the object to be processed; Determine second position information for controlling the movement of the processing unit according to the first position information; wherein a first distance between the first processing part and the second processing part in the first position information is smaller than a second distance between the first processing part and the second processing part in the second position information; After the object to be processed is processed, the processing part is controlled to move to a preset state according to the second position information; wherein, in the preset state, the second distance between the first processing part and the second processing part is smaller than the maximum distance between the first processing part and the second processing part.
2. The control method of the electric tool according to claim 1, characterized in that: The detecting first position information of the processing portion compared to an initial state includes: When it is detected that the processing part of the electric tool is in contact with the object to be processed, the counting of the number of revolutions of the motor of the electric tool is triggered; wherein the motor is used to control the distance between the first processing part and the second processing part; When the processing portion is in a closed state, the counting of the number of revolutions of the motor of the electric tool is stopped, and the first number of revolutions of the motor during the period from triggering the counting to stopping the counting is determined; determining the first position information according to the first number of revolutions; The determining, according to the first position information, second position information for controlling the movement of the processing part comprises: Determining a second number of turns for controlling the movement of the processing portion according to the first number of turns; wherein the second number of turns is greater than the first number of turns; The second position information is determined based on the second number of revolutions.
3. The control method of the electric tool according to claim 2, characterized in that: The determining, according to the first number of revolutions, a second number of revolutions for controlling the movement of the processing portion comprises: The first number of turns is added to a preset number of turns to obtain a second number of turns; or the first number of turns is multiplied by a preset coefficient to obtain the second number of turns.
4. The control method of the electric tool according to claim 1, characterized in that: include: The contact between the processing part of the electric tool and the object to be processed is determined by: When it is detected that the working current of the electric tool is greater than the no-load current, it is determined that the processing portion of the electric tool is in contact with the object to be processed; and / or, When it is detected that the operating speed of the motor is less than the no-load speed, it is determined that the processing portion of the electric tool is in contact with the object to be processed.
5. The control method of the electric tool according to claim 4, characterized in that: include: The working current changes based on the contact area between the processing portion and the object to be processed, and the larger the contact area, the higher the working current; And / or, the working rotation speed changes based on a change in a contact area between the processing portion and the object to be processed, and the larger the contact area, the smaller the working rotation speed.
6. The control method of the electric tool according to claim 1, characterized in that: The processing portion is determined to be in a closed state by: The Hall sensor is used to detect whether the processing part is at the terminal Hall position. If the processing part is at the terminal Hall position, it is in a closed state.
7. The control method of the electric tool according to claim 1, characterized in that: The detecting first position information of the processing portion compared to an initial state includes: The first position information is determined using a Hall sensor.
8. The control method of the electric tool according to claim 1, characterized in that: Also includes: When a reset instruction is detected, adjusting the first workpiece and the second workpiece to a maximum distance; The second position information is reset according to the first position information determined during the cutting process of the electric tool on other objects to be processed.
9. An electric tool, characterized in that: include: at least one processor; as well as, a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the control method of the electric tool 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 control method of the electric tool according to any one of claims 1 to 8 is implemented.