Processing method and system for under-voltage shutdown of electric tool and medium
By real-time monitoring of the output voltage and motor speed of the power tool battery pack, dynamically adjusting the PWM duty cycle and undervoltage threshold, the frequent occurrence of undervoltage protection of power tools is solved, and efficient utilization of the battery pack and stable operation of power tools is achieved.
Patent Information
- Application Number
- CN202510434358.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-08
- Publication Date
- 2025-07-29
AI Technical Summary
Existing power tools can easily cause undervoltage protection when the current is too high, resulting in frequent shutdowns, affecting the user experience, and being unable to make full use of the battery pack's power, and being unable to adapt to battery packs with different power supply capabilities.
By monitoring the output voltage and motor speed of the power tool battery pack in real time, dynamically adjusting the PWM duty cycle and undervoltage threshold, optimizing the PWM signal duty cycle of the driving circuit to adapt to different working conditions and avoiding frequent undervoltage protection.
It improves the utilization rate of the battery pack and the compatibility of power tools, ensures that the power tools operate stably under different working conditions, reduces the frequent occurrence of undervoltage protection, and improves user experience.
Smart Images

Figure CN120389355A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of electric tool processing, and more specifically, to a method, a system and a medium for processing undervoltage shutdown of an electric tool. Background Art
[0002] During the use of an electric tool, excessive current often causes power supply undervoltage. Currently, the industry mainly uses the method of setting a current limit threshold to prevent undervoltage caused by excessive current. However, this method has many drawbacks. On the one hand, the current limit threshold is usually set as a fixed value and cannot be dynamically adjusted according to the actual usage situation. When the battery pack's power drops after being used for a period of time, and under the condition of a large load and a large motor drive current, the output voltage of the battery pack will be pulled down, and the electric tool is very likely to enter the undervoltage protection state. At this time, the user needs to press the start switch again to continue using the tool. Frequent undervoltage protection operations seriously affect the user experience and also cannot make full use of the remaining power of the battery pack, reducing the usage efficiency of the battery pack. On the other hand, when adapting to a battery pack with slightly weaker power supply capacity, since the output voltage drop of the battery pack is large after outputting a large current, the undervoltage protection will also be triggered. When adapting to a battery pack with a larger power, it will be limited by the current limit threshold and cannot provide a larger current, thus unable to give full play to the high performance of the electric tool.
[0003] In view of the above problems, there is an urgent need for an effective technical solution. Summary of the Invention
[0004] The purpose of the present application is to provide a method, a system and a medium for processing undervoltage shutdown of an electric tool, which can compare the real-time output voltage with a preset undervoltage threshold to determine the dynamic adjustment value of the PWM duty cycle, and at the same time dynamically adjust the preset undervoltage threshold, realizing intelligent processing, improving the utilization rate of the battery pack and optimizing the compatibility of the electric tool.
[0005] The present application also provides a method for processing undervoltage shutdown of an electric tool, including the following steps:
[0006] Obtain the real-time output voltage of the electric tool battery pack and the measured value of the rotation speed of the electric tool motor;
[0007] Compare the real-time output voltage with a preset undervoltage threshold, and obtain the dynamic adjustment value of the PWM duty cycle according to the threshold comparison result;
[0008] Adjust the duty cycle of the PWM signal of the preset drive circuit according to the dynamic adjustment value of the PWM duty cycle to obtain the optimized duty cycle of the PWM signal;
[0009] Output the optimized duty cycle of the PWM signal to the drive circuit to control the operation of the electric tool.
[0010] Optionally, in the method for handling undervoltage shutdown of the power tool described in this application, the comparing the real-time output voltage with a preset undervoltage threshold and obtaining a dynamic adjustment value of the PWM duty cycle according to the threshold comparison result includes:
[0011] Comparing the real-time output voltage with a preset undervoltage threshold, where the preset undervoltage threshold includes a first preset undervoltage threshold and a second preset undervoltage threshold, and the first preset undervoltage threshold is greater than the second preset undervoltage threshold;
[0012] If the real-time output voltage is less than or equal to the first preset undervoltage threshold and greater than the second preset undervoltage threshold, then obtain a first dynamic adjustment value of the PWM duty cycle;
[0013] If the real-time output voltage is less than or equal to the second preset undervoltage threshold, then control the power tool to enter undervoltage protection;
[0014] If the real-time output voltage is greater than the first preset undervoltage threshold, then obtain a second dynamic adjustment value of the PWM duty cycle.
[0015] Optionally, in the method for handling undervoltage shutdown of the power tool described in this application, the adjusting the PWM signal duty cycle of a preset drive circuit according to the dynamic adjustment value of the PWM duty cycle to obtain an optimized PWM signal duty cycle includes:
[0016] If the dynamic adjustment value of the PWM duty cycle is the first dynamic adjustment value of the PWM duty cycle, then reduce the preset PWM duty cycle of the drive circuit according to the first dynamic adjustment value of the PWM duty cycle to obtain a first optimized PWM signal duty cycle;
[0017] If the dynamic adjustment value of the PWM duty cycle is the second dynamic adjustment value of the PWM duty cycle, then increase the preset PWM duty cycle of the drive circuit according to the second dynamic adjustment value of the PWM duty cycle to obtain a second optimized PWM signal duty cycle.
[0018] Optionally, in the method for handling undervoltage shutdown of the power tool described in this application, it further includes:
[0019] If the real-time output voltage is greater than the first preset undervoltage threshold;
[0020] Comparing the measured rotation speed value with a preset high-performance rotation speed threshold;
[0021] If the measured rotation speed value is less than the preset high-performance rotation speed threshold, then increase the second optimized PWM signal duty cycle of the drive circuit according to the second dynamic adjustment value of the PWM duty cycle to obtain a third optimized PWM signal duty cycle, and control the power tool to operate by the drive circuit;
[0022] If the measured rotational speed value is greater than or equal to the preset high-performance rotational speed threshold, the optimized duty cycle of the second PWM signal is not adjusted.
[0023] Optionally, in the method for handling undervoltage shutdown of the power tool described in this application, before the step of controlling the power tool to enter undervoltage protection if the real-time output voltage is less than or equal to the second preset undervoltage threshold, it further includes:
[0024] Processing based on the real-time output voltage and the second preset undervoltage threshold to obtain a real-time over-undervoltage rate;
[0025] Comparing the real-time over-undervoltage rate with a preset undervoltage warning threshold;
[0026] If the real-time over-undervoltage rate is less than or equal to the preset undervoltage warning threshold, an undervoltage warning response is output;
[0027] If the real-time over-undervoltage rate is greater than the preset undervoltage warning threshold, no undervoltage warning response is output.
[0028] Optionally, in the method for handling undervoltage shutdown of the power tool described in this application, after the step of controlling the power tool to enter undervoltage protection if the real-time output voltage is less than or equal to the second preset undervoltage threshold, it further includes:
[0029] Extracting data based on the real-time output voltage of the power tool battery pack within a preset time period to obtain the maximum output voltage, the minimum output voltage, and the average output voltage;
[0030] Processing based on the maximum output voltage, the minimum output voltage, and the average output voltage to obtain a voltage volatility;
[0031] Comparing the voltage volatility with a preset voltage volatility approval threshold;
[0032] If the voltage volatility is less than or equal to the preset voltage volatility approval threshold, it is determined that the battery health state is normal;
[0033] If the voltage volatility is greater than the preset voltage volatility approval threshold, it is determined that the battery health state is abnormal.
[0034] Optionally, in the method for handling undervoltage shutdown of the power tool described in this application, it further includes:
[0035] If the real-time output voltage is less than or equal to the second preset undervoltage threshold, obtain the first real-time output voltage within a preset time interval;
[0036] Compare the first real-time output voltage with the second preset undervoltage threshold;
[0037] If it is less than the second preset undervoltage threshold, mark undervoltage and count the number of undervoltage occurrences within a preset time period;
[0038] Compare the number of undervoltage occurrences with a preset undervoltage occurrence threshold;
[0039] If it is less than the preset undervoltage occurrence threshold, delay the execution of undervoltage protection;
[0040] If it is greater than or equal to the preset undervoltage occurrence threshold, execute undervoltage protection.
[0041] In a second aspect, the present application provides a processing system for undervoltage shutdown of a power tool. The system includes: a memory and a processor. The memory includes a program for a method of processing undervoltage shutdown of a power tool. When the program for the method of processing undervoltage shutdown of a power tool is executed by the processor, the following steps are implemented:
[0042] Obtain the real-time output voltage of the power tool battery pack and the measured value of the rotational speed of the power tool motor;
[0043] Compare the real-time output voltage with a preset undervoltage threshold, and obtain a dynamically adjusted PWM duty cycle value according to the threshold comparison result;
[0044] Adjust the PWM signal duty cycle of a preset drive circuit according to the dynamically adjusted PWM duty cycle value to obtain an optimized PWM signal duty cycle;
[0045] Output the optimized PWM signal duty cycle to the drive circuit to control the operation of the power tool.
[0046] Optionally, in the processing system for undervoltage shutdown of a power tool described in the present application, the step of comparing the real-time output voltage with a preset undervoltage threshold and obtaining a dynamically adjusted PWM duty cycle value according to the threshold comparison result includes:
[0047] Compare the real-time output voltage with a preset undervoltage threshold, where the preset undervoltage threshold includes a first preset undervoltage threshold and a second preset undervoltage threshold, and the first preset undervoltage threshold is greater than the second preset undervoltage threshold;
[0048] If the real-time output voltage is less than or equal to the first preset undervoltage threshold and greater than the second preset undervoltage threshold, obtain a first dynamically adjusted PWM duty cycle value;
[0049] If the real-time output voltage is less than or equal to the second preset undervoltage threshold, control the power tool to enter undervoltage protection;
[0050] If the real-time output voltage is greater than the first preset undervoltage threshold, obtain a second dynamically adjusted PWM duty cycle value.
[0051] In a third aspect, the present application also provides a computer-readable storage medium storing a program for a method of handling undervoltage shutdown of a power tool. When the program for the method of handling undervoltage shutdown of a power tool is executed by a processor, the steps of the method of handling undervoltage shutdown of a power tool as described in any one of the above are implemented.
[0052] As can be seen from the above, the method, system, and medium for handling undervoltage shutdown of a power tool provided by the present application determine the dynamic adjustment value of the PWM duty cycle by comparing the real-time output voltage with the preset undervoltage threshold, and at the same time dynamically adjust the preset undervoltage threshold, achieving intelligent processing and improving the utilization rate of the battery pack and optimizing the compatibility of the electric tool.
[0053] Other features and advantages of the present application will be described in the subsequent specification, and, in part, will become apparent from the specification or will be understood by implementing the embodiments of the present application. The objectives and other advantages of the present application can be realized and obtained by the structures specifically pointed out in the written specification and the accompanying drawings. Description of the Drawings
[0054] To more clearly illustrate the technical solutions of the embodiments of the present application, the following briefly introduces the accompanying drawings required for use in the embodiments of the present application. It should be understood that the following drawings only show some embodiments of the present application and should not be regarded as limiting the scope. For those of ordinary skill in the art, other related drawings can be obtained based on these drawings without creative efforts.
[0055] Figure 1 It is a flowchart of a method for handling undervoltage shutdown of a power tool provided by an embodiment of the present application;
[0056] Figure 2 It is a flowchart of obtaining the dynamic adjustment value of the PWM duty cycle for a method of handling undervoltage shutdown of a power tool provided by an embodiment of the present application;
[0057] Figure 3 It is a flowchart of obtaining the optimized duty cycle of the PWM signal for a method of handling undervoltage shutdown of a power tool provided by an embodiment of the present application;
[0058] Figure 4 It is a high-level flowchart of the methods of various embodiments of the present application, which can be used to implement the method of handling undervoltage shutdown of a power tool. Detailed Embodiments
[0059] The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. The components of the embodiments of the present application described and illustrated herein can be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the present application provided in the drawings is not intended to limit the scope of the present application to be protected, but only represents the selected embodiments of the present application. All other embodiments obtained by those skilled in the art based on the embodiments of the present application without creative efforts belong to the scope of protection of the present application.
[0060] It should be noted that similar reference numerals and letters indicate similar items in the following drawings. Therefore, once an item is defined in one drawing, it does not need to be further defined and explained in subsequent drawings. At the same time, in the description of the present application, the terms "first", "second", etc. are only used for distinguishing descriptions and cannot be understood as indicating or implying relative importance.
[0061] Please refer to Figure 1 , Figure 1 which is a flowchart of a method for handling undervoltage shutdown of an electric tool in some embodiments of the present application. This method for handling undervoltage shutdown of an electric tool is used in terminal devices such as computers and mobile phone terminals. This method for handling undervoltage shutdown of an electric tool includes the following steps:
[0062] S11. Obtain the real-time output voltage of the battery pack of the electric tool and the measured value of the rotational speed of the electric tool motor;
[0063] S12. Compare the real-time output voltage with a preset undervoltage threshold, and obtain a dynamically adjusted value of the PWM duty cycle according to the threshold comparison result;
[0064] S13. Adjust the duty cycle of the PWM signal of a preset drive circuit according to the dynamically adjusted value of the PWM duty cycle to obtain an optimized duty cycle of the PWM signal;
[0065] S14. Output the optimized duty cycle of the PWM signal to the drive circuit to control the operation of the electric tool.
[0066] It should be noted that in order to achieve intelligent processing of power tools, first, the real-time output voltage of the power tool battery pack is compared with a preset undervoltage threshold, and a dynamic adjustment value of the PWM duty cycle is obtained according to the threshold comparison result. Here, PWM, that is, Pulse Width Modulation, is a technology that obtains the required waveform equivalently by modulating the widths of a series of pulses. The preset undervoltage threshold is dynamically adjusted according to specific working conditions. Then, according to the obtained dynamic adjustment value of the PWM duty cycle, the duty cycle of the PWM signal of the preset drive circuit is decreased or increased to obtain an optimized duty cycle of the PWM signal. On the one hand, it controls the power tool to continue to be used in a small-torque manner, improving the usage efficiency of the battery pack. On the other hand, it gives play to the higher performance of the electrician tool, so as to ensure that under the premise of ensuring usage safety, the power tool will not frequently enter the undervoltage protection and affect the usage experience.
[0067] Please refer to Figure 2 , Figure 2 is a flowchart for obtaining the dynamic adjustment value of the PWM duty cycle in a method for handling undervoltage shutdown of a power tool in some embodiments of the present application. According to an embodiment of the present invention, the comparing the real-time output voltage with the preset undervoltage threshold and obtaining the dynamic adjustment value of the PWM duty cycle according to the threshold comparison result includes:
[0068] S21. Compare the real-time output voltage with the preset undervoltage threshold, where the preset undervoltage threshold includes a first preset undervoltage threshold and a second preset undervoltage threshold, and the first preset undervoltage threshold is greater than the second preset undervoltage threshold;
[0069] S22. If the real-time output voltage is less than or equal to the first preset undervoltage threshold and greater than the second preset undervoltage threshold, obtain a first dynamic adjustment value of the PWM duty cycle;
[0070] S23. If the real-time output voltage is less than or equal to the second preset undervoltage threshold, control the power tool to enter undervoltage protection;
[0071] S24. If the real-time output voltage is greater than the first preset undervoltage threshold, obtain a second dynamic adjustment value of the PWM duty cycle.
[0072] It should be noted that, in order to accurately implement low-voltage protection, while realizing the utilization of the remaining electric energy of the battery pack at a sub-low voltage and giving full play to the high performance of the power tool at a high voltage, the obtained real-time output voltage is compared with a first preset undervoltage threshold and a second preset undervoltage threshold respectively, and a first PWM duty cycle dynamic adjustment value, a second PWM duty cycle dynamic adjustment value are obtained or the power tool is controlled to enter undervoltage protection. Among them, the first PWM duty cycle dynamic adjustment value is used to reduce the poor experience caused by undervoltage protection and make full use of the remaining electric energy of the battery pack under the condition of sub-low voltage, and the second PWM duty cycle dynamic adjustment value is used to give full play to the higher performance of the power tool when adapting to a battery pack with a larger power.
[0073] Please refer to Figure 3 , Figure 3 Figure 3 is a flowchart of obtaining an optimized duty cycle of a PWM signal for a method of handling undervoltage shutdown of a power tool in some embodiments of the present application. According to an embodiment of the present invention, adjusting the duty cycle of the PWM signal of a preset drive circuit according to the PWM duty cycle dynamic adjustment value to obtain an optimized duty cycle of the PWM signal includes:
[0074] S31. If the PWM duty cycle dynamic adjustment value is the first PWM duty cycle dynamic adjustment value, then reduce the preset PWM duty cycle of the drive circuit according to the first PWM duty cycle dynamic adjustment value to obtain a first optimized duty cycle of the PWM signal;
[0075] S32. If the PWM duty cycle dynamic adjustment value is the second PWM duty cycle dynamic adjustment value, then increase the preset PWM duty cycle of the drive circuit according to the second PWM duty cycle dynamic adjustment value to obtain a second optimized duty cycle of the PWM signal.
[0076] It should be noted that after the battery pack is used for a period of time, the battery level drops slightly. When the load is large, that is, the motor drive current is large, the output voltage of the battery pack is pulled down, and the power tool is likely to enter undervoltage protection, which will affect the use experience. Therefore, when it is not less than or equal to the second preset undervoltage threshold, reduce the preset PWM duty cycle of the drive circuit according to the obtained first PWM duty cycle dynamic adjustment value to obtain a first optimized duty cycle of the PWM signal, and control the power tool to operate at a low speed and with a small torque; when adapting to a battery pack with a larger power, the higher performance of the power tool cannot be exerted. At this time, increase the preset PWM duty cycle of the drive circuit by the obtained second PWM duty cycle dynamic adjustment value to obtain a second optimized duty cycle of the PWM signal, and control the power tool to increase the speed to exert better performance.
[0077] According to an embodiment of the present invention, it further includes:
[0078] If the real-time output voltage is greater than the first preset undervoltage threshold;
[0079] Compare the measured rotational speed value with a preset high-performance rotational speed threshold value;
[0080] If the measured rotational speed value is less than the preset high-performance rotational speed threshold value, increase the optimized duty cycle of the second PWM signal of the drive circuit according to the dynamic adjustment value of the second PWM duty cycle, obtain the optimized duty cycle of the third PWM signal, and control the electric tool to operate by the drive circuit;
[0081] If the measured rotational speed value is greater than or equal to the preset high-performance rotational speed threshold value, do not adjust the optimized duty cycle of the second PWM signal.
[0082] It should be noted that in order to better exert the high performance of the battery pack with a larger power, when the real-time output voltage is greater than the first preset undervoltage threshold value, continue to compare the measured rotational speed value of the electric tool with the preset high-performance rotational speed threshold value. If it is less than the preset high-performance rotational speed threshold value, it means that the performance has not been fully exerted. Continue to increase the optimized duty cycle of the second PWM signal of the drive circuit according to the obtained dynamic adjustment value of the second PWM duty cycle, obtain the optimized duty cycle of the third PWM signal, and control the electric tool to operate by the drive circuit. At the same time, continuously monitor the rotational speed of the electric tool until it reaches the preset high-performance rotational speed threshold value. If it is greater than or equal to the preset high-performance rotational speed threshold value, it means that the high performance of the electric tool has been exerted, and there is no need to adjust the optimized duty cycle of the second PWM signal anymore.
[0083] According to an embodiment of the present invention, before the step of controlling the electric tool to enter undervoltage protection when the real-time output voltage is less than or equal to the second preset undervoltage threshold value, further includes:
[0084] Process according to the real-time output voltage and the second preset undervoltage threshold value to obtain a real-time over-undervoltage rate;
[0085] Compare the real-time over-undervoltage rate with a preset undervoltage warning threshold value;
[0086] If the real-time over-undervoltage rate is less than or equal to the preset undervoltage warning threshold value, output an undervoltage warning response;
[0087] If the real-time over-undervoltage rate is greater than the preset undervoltage warning threshold value, do not output an undervoltage warning response.
[0088] It should be noted that in order to prevent the power tool from suddenly entering the undervoltage protection and affecting normal operation, after the real-time output voltage is less than or equal to the first preset undervoltage threshold and greater than the second preset undervoltage threshold, the real-time over-undervoltage rate is monitored in real time. The real-time over-undervoltage rate refers to the ratio of the difference between the real-time output voltage and the second preset undervoltage threshold to the second preset undervoltage threshold. For example, if the real-time output voltage is 12V and the second preset undervoltage threshold is 10V, then (12 - 10) / 10 = 0.2 is the real-time over-undervoltage rate. Then, the obtained real-time over-undervoltage rate is compared with the preset undervoltage warning threshold. In this embodiment, the preset undervoltage warning threshold is set to (0, 0.35] and (0.35, 1], corresponding to outputting an undervoltage warning response and not outputting an undervoltage warning response respectively. For example, if the obtained real-time over-undervoltage rate is 0.2, which is less than the preset undervoltage warning threshold, an undervoltage warning response is output.
[0089] According to an embodiment of the present invention, if the real-time output voltage is less than or equal to the second preset undervoltage threshold, controlling the power tool to enter undervoltage protection, and then further including:
[0090] Extracting data according to the real-time output voltage of the power tool battery pack within a preset time period to obtain the maximum output voltage, the minimum output voltage, and the average output voltage;
[0091] Processing according to the maximum output voltage, the minimum output voltage, and the average output voltage to obtain the voltage volatility;
[0092] Comparing the voltage volatility with a preset voltage volatility allowable threshold;
[0093] If the voltage volatility is less than or equal to the preset voltage volatility allowable threshold, it is determined that the battery health state is normal;
[0094] If the voltage volatility is greater than the preset voltage volatility allowable threshold, it is determined that the battery health state is abnormal.
[0095] It should be noted that after the power tool enters the undervoltage protection, in order to determine whether it is caused by battery aging, data extraction is performed based on the real-time output voltage within a preset time period to obtain the maximum output voltage, the minimum output voltage, and the average output voltage. In this embodiment, the preset time period is set to 10 minutes. After further processing, the voltage volatility is obtained. The voltage volatility refers to the ratio of the difference between the maximum output voltage and the minimum output voltage to the average output voltage. For example, if the maximum output voltage is 11V, the minimum output voltage is 10V, and the average output voltage is 10V, then (11 - 10) / 10 = 0.1 is the voltage volatility. Then, the voltage volatility is compared with the preset voltage volatility permission threshold. In this embodiment, the preset voltage volatility permission threshold is set to (0, 0.05] and (0.05, 1], corresponding to normal battery health status and abnormal battery health status respectively. For example, if the obtained voltage volatility is 0.1, which is greater than the preset voltage volatility permission threshold, it is determined that the battery health status is abnormal.
[0096] According to an embodiment of the present invention, it further includes:
[0097] If the real-time output voltage is less than or equal to the second preset undervoltage threshold, obtain the first real-time output voltage within a preset time interval;
[0098] Compare the first real-time output voltage with the second preset undervoltage threshold;
[0099] If it is less than the second preset undervoltage threshold, mark undervoltage and count the undervoltage times value within a preset time period;
[0100] Compare the undervoltage times value with the preset undervoltage times threshold;
[0101] If it is less than the preset undervoltage times threshold, delay the execution of undervoltage protection;
[0102] If it is greater than or equal to the preset undervoltage times threshold, execute undervoltage protection.
[0103] It should be noted that if the electric tool is directly controlled to enter the undervoltage protection after the real-time output voltage is less than or equal to the second preset undervoltage threshold, misjudgment may occur. To reduce misjudgment, the first real-time output voltage within the preset time interval is further monitored. In this embodiment, the preset time interval is set to 2 seconds, and the first real-time output voltage is compared with the second preset undervoltage threshold. If it is greater than or equal to the second preset undervoltage threshold, the electric tool is not controlled to enter the undervoltage protection. If it is less than the second preset undervoltage threshold, the undervoltage is recorded once. When the marked undervoltage count value is less than the preset undervoltage count threshold, the execution of the undervoltage protection is temporarily delayed. When the marked undervoltage count value is greater than or equal to the preset undervoltage count threshold, it indicates that undervoltage actually occurs, and then the undervoltage protection is executed. In this embodiment, the preset undervoltage count threshold is set to 3 times.
[0104] Please refer to Figure 4 , Figure 4 FIG. Figure 4 is a high-level flowchart of the methods of various embodiments of the present application, and these methods can be used to implement the processing method for undervoltage shutdown of an electric tool. For example, in step S432, the real-time over-undervoltage rate obtained by processing according to the real-time output voltage and the second preset undervoltage threshold is compared with the preset undervoltage warning threshold. When it is less than or equal to the preset undervoltage warning threshold, an undervoltage warning response is output. When it is greater than the preset undervoltage warning threshold, no undervoltage warning response is output.
[0105] It is worth mentioning that according to the embodiments of the present invention, it further includes:
[0106] Obtain the load current, working mode characteristic data, and ambient real temperature data of the battery pack of the electric tool;
[0107] Compare the load current with the preset rated current to obtain the current deviation rate;
[0108] Compare the ambient real temperature data with the preset calibrated ambient temperature data to obtain the ambient temperature deviation rate;
[0109] Query the preset weight value mapping table according to the working mode characteristic data to obtain the current deviation weight value and the ambient temperature deviation weight value;
[0110] Perform weighted averaging processing on the current deviation rate and the ambient temperature deviation rate in combination with the current deviation weight value and the ambient temperature deviation weight value to obtain the first undervoltage threshold correction coefficient.
[0111] It should be noted that the greater the load current, the more obvious the instantaneous voltage drop of the battery pack. Different working modes of power tools have different requirements for voltage stability. High and low temperature environments will affect the discharge efficiency, and thus affect the effective voltage of the battery pack. If the undervoltage threshold is a fixed threshold, abnormal undervoltage protection may occur in different working states, working modes or ambient temperatures. In order to dynamically adjust the undervoltage threshold, the current deviation rate, ambient temperature deviation rate and working mode characteristic data are obtained. The current deviation rate is the ratio of the difference between the load current and the preset rated current to the preset rated current. The ambient temperature deviation rate is the ratio of the difference between the actual ambient temperature data and the preset calibrated ambient temperature data to the preset calibrated ambient temperature data. According to the working mode characteristic data, query the preset weight value mapping table to obtain the current deviation weight value and the ambient temperature deviation weight value. Among them, the preset weight value mapping table is obtained by querying through a third-party preset power tool monitoring platform. The preset power tool monitoring platform is used to obtain the preset weight value mapping relationship table, data and information, and perform data interaction; finally, perform weighted average processing on the obtained current deviation rate and ambient temperature deviation rate in combination with the current deviation weight value and the ambient temperature deviation weight value to obtain the first undervoltage threshold correction coefficient. For example, if the current deviation rate is 0.2, the ambient temperature deviation rate is 0.1, the current deviation weight value is 3, and the ambient temperature deviation weight value is 2, then (0.2 * 3 + 0.1 * 2) / (3 + 2) = 0.16, which is the first undervoltage threshold correction coefficient.
[0112] It is worth mentioning that according to the embodiments of the present invention, it further includes:
[0113] Obtain the maximum available capacity and the measured internal resistance value of the power tool battery pack;
[0114] Input the maximum available capacity, the measured internal resistance value, the preset nominal capacity and the preset initial internal resistance value into a preset battery pack health evaluation model for processing to obtain the health quality evaluation parameters of the power tool battery pack;
[0115] Compare the health quality evaluation parameters with the preset health quality requirement parameters to obtain the relative value of the health quality evaluation;
[0116] Compare the relative value of the health quality evaluation with the preset health evaluation threshold to obtain the health level of the power tool battery pack;
[0117] Query the preset mapping table of the battery pack health level and the weight value according to the health level to obtain the second undervoltage threshold correction coefficient.
[0118] It should be noted that as the battery pack is used, the problem of battery aging will gradually occur. Using a fixed undervoltage threshold for undervoltage protection will reduce the utilization rate of the remaining electrical energy of the battery pack. To evaluate the health of the battery pack, the measured values of the maximum available capacity and internal resistance obtained, as well as the preset nominal capacity and preset initial internal resistance value, are input into a preset battery pack health evaluation model for processing to obtain the health quality evaluation parameter of the power tool battery pack. Among them, the maximum available capacity refers to the electrical energy that can be released when the battery pack is fully charged in the current state. The preset battery pack health evaluation model is obtained through training by acquiring the measured values of the maximum available capacity and internal resistance of a large number of historical samples, as well as the preset nominal capacity, preset initial internal resistance value, and the corresponding health quality evaluation parameters. Then, the obtained health quality evaluation parameter is compared with the preset health requirement parameter to obtain the relative health quality evaluation value. For example, if the health quality evaluation parameter is 7 and the preset health requirement parameter is 10, then 7 / 10 = 0.7 is the relative health quality evaluation value. Finally, a threshold comparison is made with the preset health evaluation threshold to obtain the health level of the power tool battery pack, and a preset battery pack health level and weight value mapping table is queried to obtain the second undervoltage threshold correction coefficient. Among them, the preset battery pack health level and weight value mapping table is obtained by querying a third-party preset power tool monitoring platform.
[0119] It is worth mentioning that according to the embodiments of the present invention, it further includes:
[0120] Perform an averaging process on the first undervoltage threshold correction coefficient and the second undervoltage threshold correction coefficient to obtain an undervoltage threshold correction coefficient;
[0121] Correct the preset undervoltage threshold according to the undervoltage threshold correction coefficient to obtain an undervoltage correction threshold.
[0122] It should be noted that in order to achieve dynamic adjustment of the undervoltage threshold, an averaging process is performed on the obtained first undervoltage threshold correction coefficient and the second undervoltage threshold correction coefficient to obtain an undervoltage threshold correction coefficient. For example, if the first undervoltage threshold correction coefficient is 0.1 and the second undervoltage threshold correction coefficient is 0.16, then (0.1 + 0.16) / 2 = 0.13. Then, the preset undervoltage threshold is corrected according to the undervoltage threshold correction coefficient to obtain an undervoltage correction threshold. For example, if the preset undervoltage threshold is 5V, then 5*(1 + 0.13) = 5.65V is the undervoltage correction threshold.
[0123] The present invention also discloses a processing system for undervoltage shutdown of a power tool, including a memory and a processor. The memory includes a processing method program for undervoltage shutdown of a power tool. When the processing method program for undervoltage shutdown of a power tool is executed by the processor, the following steps are implemented:
[0124] Obtain the real-time output voltage of the power tool battery pack and the measured value of the rotation speed of the power tool motor;
[0125] Compare the real-time output voltage with a preset undervoltage threshold, and obtain a dynamic adjustment value of the PWM duty cycle according to the threshold comparison result;
[0126] Adjust the duty cycle of the PWM signal of a preset drive circuit according to the dynamic adjustment value of the PWM duty cycle to obtain an optimized duty cycle of the PWM signal;
[0127] Output the optimized duty cycle of the PWM signal to the drive circuit to control the operation of the power tool.
[0128] It should be noted that in order to achieve intelligent processing of the power tool, first compare the real-time output voltage of the battery pack of the power tool obtained with a preset undervoltage threshold, and obtain a dynamic adjustment value of the PWM duty cycle according to the threshold comparison result. Among them, PWM is Pulse Width Modulation, which is a technology that equivalently obtains the required waveform by modulating the widths of a series of pulses. The preset undervoltage threshold is dynamically adjusted according to the specific working conditions. Then, increase or decrease the duty cycle of the PWM signal of the preset drive circuit according to the obtained dynamic adjustment value of the PWM duty cycle to obtain an optimized duty cycle of the PWM signal. On the one hand, control the power tool to continue to be used in a small torque mode to improve the usage efficiency of the battery pack. On the other hand, give full play to the higher performance of the electrician tool, so as to ensure that the power tool will not frequently enter the undervoltage protection and affect the usage experience on the premise of ensuring the use safety.
[0129] According to an embodiment of the present invention, the comparing the real-time output voltage with a preset undervoltage threshold and obtaining a dynamic adjustment value of the PWM duty cycle according to the threshold comparison result includes:
[0130] Compare the real-time output voltage with a preset undervoltage threshold, where the preset undervoltage threshold includes a first preset undervoltage threshold and a second preset undervoltage threshold, and the first preset undervoltage threshold is greater than the second preset undervoltage threshold;
[0131] If the real-time output voltage is less than or equal to the first preset undervoltage threshold and greater than the second preset undervoltage threshold, then obtain a first dynamic adjustment value of the PWM duty cycle;
[0132] If the real-time output voltage is less than or equal to the second preset undervoltage threshold, then control the power tool to enter undervoltage protection;
[0133] If the real-time output voltage is greater than the first preset undervoltage threshold, then obtain a second dynamic adjustment value of the PWM duty cycle.
[0134] It should be noted that in order to accurately implement low-voltage protection, while realizing the utilization of the remaining electric energy of the battery pack at the sub-low voltage and giving full play to the high performance of the electric tool at the high voltage, the obtained real-time output voltage is respectively compared with the first preset undervoltage threshold and the second preset undervoltage threshold, and the first PWM duty cycle dynamic adjustment value, the second PWM duty cycle dynamic adjustment value are obtained or the electric tool is controlled to enter undervoltage protection. Among them, the first PWM duty cycle dynamic adjustment value is used to reduce the poor experience caused by undervoltage protection and make full use of the remaining electric energy of the battery pack in the case of sub-low voltage, and the second PWM duty cycle dynamic adjustment value is used to give full play to the higher performance of the electric tool when adapting to a battery pack with a larger power.
[0135] According to an embodiment of the present invention, adjusting the duty cycle of the PWM signal of the preset drive circuit according to the PWM duty cycle dynamic adjustment value to obtain an optimized PWM signal duty cycle includes:
[0136] If the PWM duty cycle dynamic adjustment value is the first PWM duty cycle dynamic adjustment value, then reducing the preset PWM duty cycle of the drive circuit according to the first PWM duty cycle dynamic adjustment value to obtain the first optimized PWM signal duty cycle;
[0137] If the PWM duty cycle dynamic adjustment value is the second PWM duty cycle dynamic adjustment value, then increasing the preset PWM duty cycle of the drive circuit according to the second PWM duty cycle dynamic adjustment value to obtain the second optimized PWM signal duty cycle.
[0138] It should be noted that after the battery pack is used for a period of time, the battery power drops slightly. When the load is large, that is, the motor drive current is large, the output voltage of the battery pack is pulled down, and the electric tool is likely to enter undervoltage protection, which will affect the use experience. Therefore, when it is not less than or equal to the second preset undervoltage threshold, reducing the preset PWM duty cycle of the drive circuit according to the obtained first PWM duty cycle dynamic adjustment value to obtain the first optimized PWM signal duty cycle, and controlling the electric tool to operate at a low speed and small torque; when adapting to a battery pack with a larger power, the higher performance of the electric tool cannot be exerted. At this time, increasing the preset PWM duty cycle of the drive circuit through the obtained second PWM duty cycle dynamic adjustment value to obtain the second optimized PWM signal duty cycle, and controlling the electric tool to increase the speed to exert better performance.
[0139] According to an embodiment of the present invention, it further includes:
[0140] If the real-time output voltage is greater than the first preset undervoltage threshold;
[0141] Comparing the measured rotational speed value with a preset high-performance rotational speed threshold;
[0142] If the measured rotational speed value is less than the preset high-performance rotational speed threshold, the optimized duty ratio of the second PWM signal of the drive circuit is increased according to the dynamic adjustment value of the second PWM duty ratio to obtain the optimized duty ratio of the third PWM signal, and the drive circuit controls the operation of the power tool;
[0143] If the measured rotational speed value is greater than or equal to the preset high-performance rotational speed threshold, the optimized duty ratio of the second PWM signal is not adjusted.
[0144] It should be noted that in order to better exert the high performance of the battery pack with a larger power, when the real-time output voltage is greater than the first preset undervoltage threshold, the measured rotational speed value of the power tool is continuously compared with the preset high-performance rotational speed threshold. If it is less than the preset high-performance rotational speed threshold, it means that the performance has not been fully exerted. The optimized duty ratio of the second PWM signal of the drive circuit is continuously increased according to the obtained dynamic adjustment value of the second PWM duty ratio to obtain the optimized duty ratio of the third PWM signal, and the drive circuit controls the operation of the power tool. At the same time, the rotational speed of the electric tool is continuously monitored until the preset high-performance rotational speed threshold is reached. If it is greater than or equal to the preset high-performance rotational speed threshold, it means that the high performance of the power tool has been exerted, and there is no need to adjust the optimized duty ratio of the second PWM signal.
[0145] According to the embodiment of the present invention, before controlling the power tool to enter undervoltage protection when the real-time output voltage is less than or equal to the second preset undervoltage threshold, it further includes:
[0146] Processing according to the real-time output voltage and the second preset undervoltage threshold to obtain a real-time over-undervoltage rate;
[0147] Comparing the real-time over-undervoltage rate with a preset undervoltage warning threshold;
[0148] If the real-time over-undervoltage rate is less than or equal to the preset undervoltage warning threshold, an undervoltage warning response is output;
[0149] If the real-time over-undervoltage rate is greater than the preset undervoltage warning threshold, no undervoltage warning response is output.
[0150] It should be noted that, in order to prevent the power tool from suddenly entering the undervoltage protection and affecting normal operation, after the real-time output voltage is less than or equal to the first preset undervoltage threshold and greater than the second preset undervoltage threshold, the real-time over / under rate is monitored in real time. The real-time over / under rate is the ratio of the difference between the real-time output voltage and the second preset undervoltage threshold to the second preset undervoltage threshold. For example, if the real-time output voltage is 12V and the second preset undervoltage threshold is 10V, then (12 - 10) / 10 = 0.2 is the real-time over / under rate. Then, the obtained real-time over / under rate is compared with the preset undervoltage warning threshold. In this embodiment, the preset undervoltage warning threshold is set to (0, 0.35] and (0.35, 1], corresponding to outputting an undervoltage warning response and not outputting an undervoltage warning response respectively. For example, if the obtained real-time over / under rate is 0.2, which is less than the preset undervoltage warning threshold, an undervoltage warning response is output.
[0151] According to an embodiment of the present invention, if the real-time output voltage is less than or equal to the second preset undervoltage threshold, controlling the power tool to enter the undervoltage protection, and then further includes:
[0152] Extracting data according to the real-time output voltage of the power tool battery pack within a preset time period to obtain the maximum output voltage, the minimum output voltage, and the average output voltage;
[0153] Processing according to the maximum output voltage, the minimum output voltage, and the average output voltage to obtain the voltage volatility;
[0154] Comparing the voltage volatility with a preset voltage volatility allowable threshold;
[0155] If the voltage volatility is less than or equal to the preset voltage volatility allowable threshold, it is determined that the battery health state is normal;
[0156] If the voltage volatility is greater than the preset voltage volatility allowable threshold, it is determined that the battery health state is abnormal.
[0157] It should be noted that after the power tool enters the undervoltage protection, in order to determine whether it is caused by battery aging, data extraction is performed based on the real-time output voltage within a preset time period to obtain the maximum output voltage, the minimum output voltage, and the average output voltage. In this embodiment, the preset time period is set to 10 minutes. After further processing, the voltage volatility is obtained. The voltage volatility refers to the ratio of the difference between the maximum output voltage and the minimum output voltage to the average output voltage. For example, if the maximum output voltage is 11V, the minimum output voltage is 10V, and the average output voltage is 10V, then (11 - 10) / 10 = 0.1 is the voltage volatility. Then, the voltage volatility is compared with the preset voltage volatility allowable threshold. In this embodiment, the preset voltage volatility allowable threshold is set to (0, 0.05] and (0.05, 1], corresponding to normal battery health status and abnormal battery health status respectively. For example, if the obtained voltage volatility is 0.1, which is greater than the preset voltage volatility allowable threshold, it is determined that the battery health status is abnormal.
[0158] According to an embodiment of the present invention, it further includes:
[0159] If the real-time output voltage is less than or equal to the second preset undervoltage threshold, the first real-time output voltage within a preset time interval is obtained;
[0160] The first real-time output voltage is compared with the second preset undervoltage threshold;
[0161] If it is less than the second preset undervoltage threshold, undervoltage is marked, and the undervoltage count value within a preset time period is statistically calculated;
[0162] The undervoltage count value is compared with the preset undervoltage count threshold;
[0163] If it is less than the preset undervoltage count threshold, the execution of undervoltage protection is delayed;
[0164] If it is greater than or equal to the preset undervoltage count threshold, undervoltage protection is executed.
[0165] It should be noted that if the electric tool is directly controlled to enter the undervoltage protection after the real-time output voltage is less than or equal to the second preset undervoltage threshold, misjudgment may occur. To reduce misjudgment, the first real-time output voltage within a preset time interval is further monitored. In this embodiment, the preset time interval is set to 2 seconds, and the first real-time output voltage is compared with the second preset undervoltage threshold. If it is greater than or equal to the second preset undervoltage threshold, the electric tool is not controlled to enter the undervoltage protection. If it is less than the second preset undervoltage threshold, the undervoltage is recorded once. When the marked undervoltage times value is less than the preset undervoltage times threshold, the execution of the undervoltage protection is temporarily delayed; when the marked undervoltage times value is greater than or equal to the preset undervoltage times threshold, it indicates that undervoltage really occurs, and the undervoltage protection is executed. In this embodiment, the preset undervoltage times threshold is set to 3 times.
[0166] According to an embodiment of the present invention, for example, in step S432, the real-time over-undervoltage rate obtained by processing according to the real-time output voltage and the second preset undervoltage threshold is compared with the preset undervoltage warning threshold. When it is less than or equal to the preset undervoltage warning threshold, an undervoltage warning response is output. When it is greater than the preset undervoltage warning threshold, no undervoltage warning response is output.
[0167] It is worth mentioning that according to an embodiment of the present invention, it further includes:
[0168] Obtain the load current, working mode characteristic data, and ambient actual temperature data of the battery pack of the electric tool;
[0169] Compare the load current with the preset rated current to obtain the current deviation rate;
[0170] Compare the ambient actual temperature data with the preset calibrated ambient temperature data to obtain the ambient temperature deviation rate;
[0171] Query the preset weight value mapping table according to the working mode characteristic data to obtain the current deviation weight value and the ambient temperature deviation weight value;
[0172] Perform weighted average processing on the current deviation rate and the ambient temperature deviation rate in combination with the current deviation weight value and the ambient temperature deviation weight value to obtain a first undervoltage threshold correction coefficient.
[0173] It should be noted that the greater the load current, the more obvious the instantaneous voltage drop of the battery pack. Different working modes of power tools have different requirements for voltage stability. High and low temperature environments will affect the discharge efficiency, and thus affect the effective voltage of the battery pack. If the under-voltage threshold is a fixed threshold, abnormal under-voltage protection may occur in different working states, working modes or environmental temperatures. In order to dynamically adjust the under-voltage threshold, the current deviation rate, ambient temperature deviation rate and working mode characteristic data are obtained. The current deviation rate is the ratio of the difference between the load current and the preset rated current to the preset rated current. The ambient temperature deviation rate is the ratio of the difference between the actual ambient temperature data and the preset calibrated ambient temperature data to the preset calibrated ambient temperature data. According to the working mode characteristic data, the preset weight value mapping table is queried to obtain the current deviation weight value and the ambient temperature deviation weight value. Among them, the preset weight value mapping table is obtained by querying through a third-party preset power tool monitoring platform. The preset power tool monitoring platform is used to obtain the preset weight value mapping relationship table, data and information, and perform data interaction; finally, the weighted average processing is performed according to the obtained current deviation rate and ambient temperature deviation rate combined with the current deviation weight value and the ambient temperature deviation weight value to obtain the first under-voltage threshold correction coefficient. For example, if the current deviation rate is 0.2, the ambient temperature deviation rate is 0.1, the current deviation weight value is 3, and the ambient temperature deviation weight value is 2, then (0.2 * 3 + 0.1 * 2) / (3 + 2) = 0.16, which is the first under-voltage threshold correction coefficient.
[0174] It is worth mentioning that according to the embodiment of the present invention, it further includes:
[0175] Obtain the maximum available capacity and the measured internal resistance value of the power tool battery pack;
[0176] Input the maximum available capacity, the measured internal resistance value, the preset nominal capacity and the preset initial internal resistance value into a preset battery pack health evaluation model for processing to obtain the health quality evaluation parameters of the power tool battery pack;
[0177] Compare the health quality evaluation parameters with the preset health quality requirement parameters to obtain the relative value of the health quality evaluation;
[0178] Compare the relative value of the health quality evaluation with the preset health evaluation threshold to obtain the health level of the power tool battery pack;
[0179] Query the preset mapping table of the battery pack health level and the weight value according to the health level to obtain the second under-voltage threshold correction coefficient.
[0180] It should be noted that as the battery pack is used, the problem of battery aging will gradually occur. Using a fixed undervoltage threshold for undervoltage protection will reduce the utilization rate of the remaining electric energy of the battery pack. To evaluate the health of the battery pack, the measured values of the maximum available capacity and internal resistance obtained, as well as the preset nominal capacity and preset initial internal resistance value, are input into the preset battery pack health evaluation model for processing to obtain the health quality evaluation parameter of the power tool battery pack. Among them, the maximum available capacity refers to the electric energy that can be released when the battery pack is fully charged in the current state. The preset battery pack health evaluation model is obtained through training by acquiring the measured values of the maximum available capacity and internal resistance of a large number of historical samples, as well as the preset nominal capacity, preset initial internal resistance value, and the corresponding health quality evaluation parameters. Then, the obtained health quality evaluation parameter is compared with the preset health requirement parameter to obtain the relative health quality evaluation value. For example, if the health quality evaluation parameter is 7 and the preset health requirement parameter is 10, then 7 / 10 = 0.7 is the relative health quality evaluation value. Finally, a threshold comparison is made with the preset health evaluation threshold to obtain the health level of the power tool battery pack, and the preset battery pack health level and weight value mapping table is queried to obtain the second undervoltage threshold correction coefficient. Among them, the preset battery pack health level and weight value mapping table is obtained by querying through a third-party preset power tool monitoring platform.
[0181] It is worth mentioning that according to the embodiments of the present invention, it further includes:
[0182] Perform an averaging process on the first undervoltage threshold correction coefficient and the second undervoltage threshold correction coefficient to obtain an undervoltage threshold correction coefficient;
[0183] Correct the preset undervoltage threshold according to the undervoltage threshold correction coefficient to obtain an undervoltage correction threshold.
[0184] It should be noted that in order to achieve dynamic adjustment of the undervoltage threshold, an averaging process is performed on the obtained first undervoltage threshold correction coefficient and the second undervoltage threshold correction coefficient to obtain an undervoltage threshold correction coefficient. For example, if the first undervoltage threshold correction coefficient is 0.1 and the second undervoltage threshold correction coefficient is 0.16, then (0.1 + 0.16) / 2 = 0.13. Then, the preset undervoltage threshold is corrected according to the undervoltage threshold correction coefficient to obtain an undervoltage correction threshold. For example, if the preset undervoltage threshold is 5V, then 5*(1 + 0.13) = 5.65V is the undervoltage correction threshold.
[0185] The third aspect of the present invention provides a readable storage medium, in which a program for processing the undervoltage shutdown of a power tool is stored. When the program for processing the undervoltage shutdown of a power tool is executed by a processor, the steps of the method for processing the undervoltage shutdown of a power tool as described in any one of the above are implemented.
[0186] A processing method, system and medium for undervoltage shutdown of power tools, by comparing the real-time output voltage with a preset undervoltage threshold, determining the dynamic adjustment value of the PWM duty cycle, and simultaneously dynamically adjusting the preset undervoltage threshold, realizes intelligent processing, improves the utilization rate of the battery pack and optimizes the compatibility of electric tools.
[0187] In several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are only illustrative. For example, the division of the units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components can be combined, or can be integrated into another system, or some features can be ignored, or not executed. In addition, the coupling, direct coupling, or communication connection between the various components shown or discussed can be through some interfaces. The indirect coupling or communication connection of devices or units can be electrical, mechanical or other forms.
[0188] The units described above as separate components may or may not be physically separated. The components shown as units may or may not be physical units; they may be located in one place or distributed to multiple network units; some or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0189] In addition, in each embodiment of the present invention, each functional unit can be all integrated in a processing unit, or each unit can be separately used as a unit, or two or more units can be integrated in a unit; the above integrated units can be implemented in the form of hardware, or in the form of hardware plus software functional units.
[0190] Those of ordinary skill in the art can understand that all or part of the steps of implementing the above method embodiments can be completed by hardware related to program instructions. The foregoing program can be stored in a readable storage medium. When the program is executed, it executes the steps including the above method embodiments; and the foregoing storage medium includes: various media such as mobile storage devices, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disks or optical discs that can store program codes.
[0191] Alternatively, if the above-integrated units of the present invention are implemented in the form of software functional modules and sold or used as independent products, they can also be stored in a readable storage medium. Based on this understanding, the technical solution of the embodiments of the present invention, in essence or the part that contributes to the prior art, can be embodied in the form of a software product. The software product is stored in a storage medium and includes several instructions for causing a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the methods described in the various embodiments of the present invention. The foregoing storage medium includes: various media that can store program codes, such as removable storage devices, ROM, RAM, magnetic disks, or optical discs.
Claims
1. A processing method for undervoltage shutdown of a power tool, characterized in that, It includes the following steps: Obtain the real-time output voltage of the power tool battery pack and the measured value of the rotational speed of the power tool motor; Compare the real-time output voltage with a preset undervoltage threshold, and obtain a dynamic adjustment value of the PWM duty cycle according to the threshold comparison result; Adjust the duty cycle of the PWM signal of a preset drive circuit according to the dynamic adjustment value of the PWM duty cycle to obtain an optimized duty cycle of the PWM signal; Output the optimized duty cycle of the PWM signal to the drive circuit to control the operation of the power tool.
2. The processing method for undervoltage shutdown of the power tool according to claim 1, wherein The step of comparing the real-time output voltage with a preset undervoltage threshold and obtaining a dynamic adjustment value of the PWM duty cycle according to the threshold comparison result includes: Compare the real-time output voltage with a preset undervoltage threshold, where the preset undervoltage threshold includes a first preset undervoltage threshold and a second preset undervoltage threshold, and the first preset undervoltage threshold is greater than the second preset undervoltage threshold; If the real-time output voltage is less than or equal to the first preset undervoltage threshold and greater than the second preset undervoltage threshold, then obtain a first dynamic adjustment value of the PWM duty cycle; If the real-time output voltage is less than or equal to the second preset undervoltage threshold, then control the power tool to enter undervoltage protection; If the real-time output voltage is greater than the first preset undervoltage threshold, then obtain a second dynamic adjustment value of the PWM duty cycle.
3. The processing method for under-voltage shutdown of the power tool according to claim 2, wherein The step of adjusting the duty cycle of the PWM signal of a preset drive circuit according to the dynamic adjustment value of the PWM duty cycle to obtain an optimized duty cycle of the PWM signal includes: If the dynamic adjustment value of the PWM duty cycle is the first dynamic adjustment value of the PWM duty cycle, then reduce the preset PWM duty cycle of the drive circuit according to the first dynamic adjustment value of the PWM duty cycle to obtain a first optimized duty cycle of the PWM signal; If the dynamic adjustment value of the PWM duty cycle is the second dynamic adjustment value of the PWM duty cycle, then increase the preset PWM duty cycle of the drive circuit according to the second dynamic adjustment value of the PWM duty cycle to obtain a second optimized duty cycle of the PWM signal.
4. The processing method for undervoltage shutdown of the power tool according to claim 3, characterized in that, It also includes: If the real-time output voltage is greater than the first preset undervoltage threshold; Compare the measured rotational speed value with a preset high-performance rotational speed threshold; If the measured rotational speed value is less than the preset high-performance rotational speed threshold, then increase the second optimized duty cycle of the PWM signal of the drive circuit according to the second dynamic adjustment value of the PWM duty cycle to obtain a third optimized duty cycle of the PWM signal, and the drive circuit controls the operation of the power tool; If the measured rotational speed value is greater than or equal to the preset high-performance rotational speed threshold, then do not adjust the second optimized duty cycle of the PWM signal.
5. The processing method for undervoltage shutdown of the power tool according to claim 4, characterized in that, Before the step of if the real-time output voltage is less than or equal to the second preset undervoltage threshold, then control the power tool to enter undervoltage protection, it also includes: Process the real-time output voltage and the second preset undervoltage threshold to obtain a real-time over-undervoltage rate; Compare the real-time over-undervoltage rate with a preset undervoltage warning threshold; If the real-time over-undervoltage rate is less than or equal to the preset undervoltage warning threshold, then output an undervoltage warning response; If the real-time over-undervoltage rate is greater than the preset undervoltage warning threshold, then do not output an undervoltage warning response.
6. The processing method for undervoltage shutdown of the power tool according to claim 5, characterized in that, After the step of if the real-time output voltage is less than or equal to the second preset undervoltage threshold, then control the power tool to enter undervoltage protection, it also includes: Extract data based on the real-time output voltage of the power tool battery pack within a preset time period to obtain the maximum output voltage, the minimum output voltage, and the average output voltage; Process the maximum output voltage, the minimum output voltage, and the average output voltage to obtain the voltage volatility; Compare the voltage volatility with a preset allowable threshold of voltage volatility; If the voltage volatility is less than or equal to the preset allowable threshold of voltage volatility, determine that the battery health status is normal; If the voltage volatility is greater than the preset allowable threshold of voltage volatility, determine that the battery health status is abnormal.
7. The processing method for undervoltage shutdown of the power tool according to claim 6, characterized in that, It further includes: If the real-time output voltage is less than or equal to a second preset undervoltage threshold, obtain the first real-time output voltage within a preset time interval; Compare the first real-time output voltage with the second preset undervoltage threshold; If it is less than the second preset undervoltage threshold, mark undervoltage and count the undervoltage times value within a preset time period; Compare the undervoltage times value with a preset undervoltage times threshold; If it is less than the preset undervoltage times threshold, delay the execution of undervoltage protection; If it is greater than or equal to the preset undervoltage times threshold, execute undervoltage protection.
8. A processing system for undervoltage shutdown of a power tool, characterized in that, It includes a memory and a processor. The memory includes a program for the processing method of undervoltage shutdown of the power tool. When the program for the processing method of undervoltage shutdown of the power tool is executed by the processor, the following steps are implemented: Obtain the real-time output voltage of the power tool battery pack and the measured value of the rotation speed of the power tool motor; Compare the real-time output voltage with a preset undervoltage threshold, and obtain a dynamic adjustment value of the PWM duty cycle according to the threshold comparison result; Adjust the PWM signal duty cycle of a preset drive circuit according to the dynamic adjustment value of the PWM duty cycle to obtain an optimized PWM signal duty cycle; Output the optimized PWM signal duty cycle to the drive circuit to control the operation of the power tool.
9. The processing system for under-voltage shutdown of an electric tool according to claim 8, characterized in that, The step of comparing the real-time output voltage with a preset undervoltage threshold and obtaining a dynamic adjustment value of the PWM duty cycle according to the threshold comparison result includes: Compare the real-time output voltage with a preset undervoltage threshold, where the preset undervoltage threshold includes a first preset undervoltage threshold and a second preset undervoltage threshold, and the first preset undervoltage threshold is greater than the second preset undervoltage threshold; If the real-time output voltage is less than or equal to the first preset undervoltage threshold and greater than the second preset undervoltage threshold, obtain a first dynamic adjustment value of the PWM duty cycle; If the real-time output voltage is less than or equal to the second preset undervoltage threshold, control the power tool to enter undervoltage protection; If the real-time output voltage is greater than the first preset undervoltage threshold, obtain a second dynamic adjustment value of the PWM duty cycle.
10. A computer-readable storage medium, characterized in that, The program for the processing method of undervoltage shutdown of the power tool is stored in the computer-readable storage medium. When the program for the processing method of undervoltage shutdown of the power tool is executed by the processor, the steps of a processing method of undervoltage shutdown of a power tool as described in any one of claims 1 to 7 are implemented.