A lithium battery safety control method and system for a power drill
By combining Kalman filtering and fuzzy control algorithms in electric hand drills, accurate prediction of motor load changes and dynamic adjustment of battery power supply strategies are achieved. This solves the safety and performance problems of the lithium battery management system in electric hand drills when the load changes, and improves battery safety and motor performance.
Patent Information
- Application Number
- CN202611458316.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-09-18
- Publication Date
- 2026-11-20
AI Technical Summary
In existing lithium battery management systems for electric hand drills, there is a lack of real-time information synchronization mechanism between the motor side and the battery side. This results in the battery being unable to adjust its power supply strategy in a timely manner when the load changes, leading to problems such as overcurrent protection, power outage risk, and failure to fully utilize performance.
By acquiring commutation frequency and torque change signals from the motor controller, and using a Kalman filter algorithm for fusion processing, combined with a fuzzy control algorithm to dynamically calculate the upper limit of safe discharge current, the battery and motor can be coordinated for control. This allows for adjustment of the duty cycle and switching frequency of the step-up and step-down circuits, ensuring battery safety and performance.
It enables accurate prediction of motor load changes and real-time adjustment of power supply strategy, avoiding the risks of battery overcurrent protection and power outage, giving full play to motor performance, and improving the safety and reliability of electric hand drills.
Smart Images

Figure CN123144334A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of lithium battery technology, and specifically to a lithium battery safety control method and system for an electric hand drill. Background Technology
[0002] As an indispensable power tool in construction and home renovation, the safety and power supply stability of the lithium battery in electric hand drills are directly related to the personal safety of operators and construction efficiency. With the widespread application of brushless DC motors in electric hand drills, the power density and speed range of the tools have been improved, which not only improves work efficiency but also puts forward higher requirements for the discharge management of lithium batteries.
[0003] The lithium battery safety control technology for electric hand drills mainly involves battery discharge management, load status sensing, and dynamic adjustment of power supply strategy. The battery management system needs to monitor key parameters such as battery voltage and temperature in real time and formulate corresponding discharge strategies based on these parameters to fully realize the battery's performance potential while ensuring safety.
[0004] Existing battery management solutions for electric hand drills typically employ a control architecture where the battery and motor controller are independent of each other. The battery system sets fixed discharge limits based solely on its internal parameters such as voltage and temperature, while the motor controller drives the motor according to a preset power curve. This independent control approach suffers from significant coordination lag when dealing with complex operating conditions.
[0005] First, there is a lack of effective information synchronization mechanism between the real-time load demand on the motor side and the power supply capacity adjustment on the battery side. When the drill bit encounters hard objects such as steel bars in concrete, the motor load will surge within milliseconds. Since the battery cannot sense this load change, it continues to maintain a normal discharge state, which leads to a sudden increase in the internal resistance voltage drop of the battery. This may trigger overcurrent protection and cause a sudden power outage, or it may cause the battery cell to overheat or even thermal runaway due to the discharge rate exceeding the limit.
[0006] Secondly, the change in commutation frequency of the motor rotor at high speed directly reflects the dynamic characteristics of the load. The buck-boost circuit inside the battery can theoretically adjust the output capacity in advance according to the expected load. However, if a real-time data interaction channel cannot be established between the two, the battery will always be in a passive response state and will not be able to actively adjust the power supply strategy.
[0007] Furthermore, the maximum safe discharge current of a battery varies dynamically under different states of charge and temperature conditions. If the motor controller cannot know this real-time limit, it will be unable to fully realize the performance potential of the motor while ensuring battery safety. Summary of the Invention
[0008] The purpose of this invention is to address the aforementioned shortcomings in the prior art by providing a lithium battery safety control method and system for electric hand drills.
[0009] The objective of this invention is achieved through the following technical solution: a lithium battery safety control method for an electric hand drill, comprising the following steps: S1, acquiring commutation frequency data from the rotor position sensor of the motor controller and torque change signal from the torque sensor; S2, using a Kalman filter algorithm to fuse the commutation frequency data and torque change signal to obtain predicted load characteristic parameters; S3, calculating the power demand value of the motor controller at the next moment based on the predicted load characteristic parameters; S4, acquiring current voltage state and temperature condition data from the battery management system; S5, using a fuzzy control algorithm to calculate the dynamic current limit based on the voltage state and temperature conditions to obtain a safe discharge current upper limit parameter; S6, comparing the power demand value with the safe discharge current upper limit parameter to obtain a real-time discharge command; S7, adjusting the duty cycle and switching frequency of the buck-boost circuit in the battery management system according to the real-time discharge command to obtain a stable voltage output and a controlled discharge rate.
[0010] Preferably, step S1 specifically includes the following steps: S11, acquiring electrical angle signals of the rotor at different phase positions through the rotor position sensor of the motor controller, and calculating the number of phase switching times per unit time to obtain commutation frequency data; S12, acquiring the force signal of the drill bit during the drilling process through the torque sensor, and amplifying and filtering the force signal to obtain torque change signal.
[0011] Preferably, step S2 specifically includes the following steps: S21, establishing a rotor dynamics model, wherein the state equation of the rotor dynamics model uses rotor angular velocity, rotor angular acceleration, and load torque as state variables; S22, using a Kalman filter algorithm to fuse and estimate the commutation frequency data and torque change signal to obtain an estimated value of the rotor motion state; S23, if the commutation frequency shows a decreasing trend within three consecutive sampling periods and the torque change signal exceeds a preset fluctuation threshold, then it is determined that the load characteristics belong to the sudden change type, and the predicted load characteristic parameters are output.
[0012] Preferably, establishing a rotor dynamics model includes: using rotor angular velocity as a state variable, constructing state transition equations and observation equations. The state transition equations describe the change in rotor angular velocity under inertia, and the observation equations introduce commutation frequency and torque change signals as observations into the state estimation process.
[0013] Preferably, the fusion processing using the Kalman filter algorithm includes: initializing the mean and covariance matrix of the state estimate, predicting the state value at the next time step according to the state transition equation, calculating the Kalman gain according to the observation noise covariance, correcting the predicted value using the Kalman gain, and finally outputting the fused state estimate result.
[0014] Preferably, step S3 specifically includes the following steps: S31, calculating the real-time power value at the current moment based on the torque value and the current motor speed value in the predicted load characteristic parameters, through the product relationship between motor speed and torque; S32, predicting the power demand value at the next sampling moment based on the historical trend of load mutation and extrapolation algorithm; S33, calculating the rate of change of the power demand value, and using the rate of change as a characterization parameter of the severity of load mutation.
[0015] Preferably, step S4 specifically includes the following steps: S41, acquiring the individual cell voltage and the total battery pack voltage through the voltage acquisition module of the battery management system; S42, acquiring the cell surface temperature and the battery compartment ambient temperature through the temperature acquisition module; S43, verifying and filtering the acquired voltage status data and temperature condition data to eliminate outliers and noise interference.
[0016] Preferably, step S5 specifically includes the following steps: S51, designing the input and output variables of the fuzzy controller, taking voltage state and temperature conditions as input variables, and current limit as output variables; S52, establishing a fuzzy control rule base, which contains multiple fuzzy rules, each corresponding to a combination of voltage state and temperature conditions; S53, performing fuzzification processing on the input variables, converting precise voltage and temperature values into fuzzy linguistic variables; S54, performing fuzzy inference based on the fuzzy control rule base to obtain fuzzy output; S55, performing defuzzification processing on the fuzzy output to obtain precise current limit.
[0017] Preferably, the establishment of the fuzzy control rule base includes: when the voltage is higher than 70% of the rated voltage and the temperature is lower than 35 degrees Celsius, the current limit is set to the rated discharge current of the battery cell; when the voltage is lower than 30% of the rated voltage or the temperature is higher than 45 degrees Celsius, the current limit is set to a set percentage of the rated discharge current; when the voltage is between 30% and 70% of the rated voltage and the temperature is between 35 and 45 degrees Celsius, the current limit is dynamically adjusted according to the changing trends of the voltage and temperature conditions.
[0018] Preferably, step S6 specifically includes the following steps: S61, calculating the discharge current corresponding to the power demand value based on the power demand value and the current battery output voltage; S62, comparing the discharge current with the upper limit parameter of the safe discharge current; S63, if the discharge current exceeds the upper limit parameter of the safe discharge current, adjusting the power supply strategy to limit the power output of the motor controller, so that the motor controller operates at the reduced power limit; S64, if the discharge current does not exceed the upper limit parameter of the safe discharge current, the power supply strategy maintains the maximum discharge capacity of the battery, allowing the motor controller to operate according to the actual power demand.
[0019] Preferably, step S7 specifically includes the following steps: S71, calculating the target duty cycle of the buck-boost circuit according to the real-time discharge command; S72, adjusting the switching frequency according to the current output characteristics of the battery and the input requirements of the motor controller; S73, outputting the adjusted duty cycle signal through the pulse width modulation module to control the switching transistor of the buck-boost circuit to turn on and off; S74, monitoring the internal resistance voltage drop at the battery output terminal in real time to ensure that the internal resistance voltage drop remains within the allowable range of the cell specifications.
[0020] A lithium battery safety control system for an electric hand drill, used to implement the above-mentioned method, includes: a load sensing module for acquiring commutation frequency data from a rotor position sensor of the motor controller and torque change signals from a torque sensor; a fusion processing module connected to the load sensing module for fusing the commutation frequency data and torque change signals using a Kalman filter algorithm to output predicted load characteristic parameters; a power calculation module connected to the fusion processing module for calculating the power demand value of the motor controller at the next moment based on the predicted load characteristic parameters; and a battery status acquisition module for acquiring data from the battery management system. The system acquires current voltage and temperature data; a dynamic limit calculation module, connected to the battery status acquisition module, calculates dynamic current limits based on voltage and temperature conditions using a fuzzy control algorithm and outputs a safe discharge current upper limit parameter; a strategy comparison module, connected to both the power calculation module and the dynamic limit calculation module, compares the power demand value with the safe discharge current upper limit parameter and outputs a real-time discharge command; and a circuit adjustment module, connected to the strategy comparison module, adjusts the duty cycle and switching frequency of the buck-boost circuit in the battery management system according to the real-time discharge command.
[0021] The beneficial effects of this invention are as follows: This invention obtains commutation frequency data and torque change signals from the motor controller and uses a Kalman filter algorithm for fusion processing, achieving accurate prediction of motor load changes. The commutation frequency directly reflects the phase switching speed of the motor rotor during drilling. By analyzing the trend of commutation frequency changes, sudden load changes can be detected in advance. The torque change signal reflects the resistance fluctuations experienced by the drill bit. The combination of the two can comprehensively characterize the load features. The Kalman filter algorithm establishes a rotor dynamics model through state equations, realizing the fusion optimization of multi-sensor data, improving the accuracy of load prediction and anti-interference capability. In addition, the fuzzy control algorithm dynamically calculates the upper limit parameter of safe discharge current based on the battery voltage state and temperature conditions, solving the problem of fixed battery discharge limits in the prior art. The fuzzy control algorithm can adaptively adjust the current limit according to real-time changes in voltage state and temperature fluctuations, ensuring safe operation of the battery under different working conditions. Furthermore, by comparing the power demand on the motor side with the safe discharge capacity on the battery side, dynamic adjustment of the power supply strategy is achieved, ensuring battery safety while fully utilizing the performance potential of the motor. Attached Figure Description
[0022] The invention will be further illustrated with reference to the accompanying drawings, but the embodiments in the drawings do not constitute any limitation on the invention. For those skilled in the art, other drawings can be obtained based on the following drawings without any creative effort.
[0023] Figure 1 This is a flowchart of the lithium battery safety control method for the electric hand drill of the present invention; Figure 2 This is a system schematic diagram of the lithium battery safety control system for the electric hand drill of the present invention. Detailed Implementation
[0024] The present invention will be further described in conjunction with the following embodiments.
[0025] Example 1; like Figure 1 and Figure 2 As shown in this embodiment, this embodiment takes the concrete drilling operation of an electric hand drill at a construction site as a specific application scenario, and provides a detailed description of the lithium battery safety control method and system for an electric hand drill proposed in this invention. In this application scenario, the operator uses an electric hand drill to drill into a concrete wall. When the drill bit penetrates concrete layers of different hardness, it will encounter changes in resistance caused by density differences. Especially when the drill bit contacts the internal steel bars of the concrete, the load will change drastically in a very short time. Under such conditions, it is necessary to accurately predict the motor load and dynamically manage the battery discharge for safety.
[0026] Reference Figure 2 The overall technical architecture of the present invention shown is as follows: the electric drill lithium battery safety control system of the present invention mainly consists of seven functional modules: load sensing module, fusion processing module, power calculation module, battery status acquisition module, dynamic limit calculation module, strategy comparison module, and circuit adjustment module. The modules establish real-time communication connections through a data bus to form a closed-loop control system.
[0027] The load sensing module is the sensing front end of the entire safety control system, responsible for acquiring raw signal data reflecting the load status from the motor controller and torque sensor. The module's hardware consists of a rotor position sensor inside the motor controller and a torque sensor mounted on the spindle of the electric drill. The rotor position sensor uses a digital Hall effect sensor, containing three Hall elements spaced 120 degrees apart. When the permanent magnet on the motor rotor passes these Hall elements, it triggers the generation of a position detection signal. The rotor position sensor operates based on the Hall effect; when the magnetic field strength generated by the permanent magnet exceeds the sensitivity threshold of the Hall element, a corresponding voltage signal is generated inside the element. This voltage signal is shaped by a comparator circuit and output as a standard digital square wave signal. In this embodiment... In this example, the rotor position sensor is powered by 5V DC, with an output signal logic level of 0V to 5V and a response time of less than 10 microseconds, which meets the phase detection requirements during high-speed rotation. The torque sensor is a strain gauge torque sensor, which works by arranging four strain gauges in a full-bridge configuration on an elastic body. When the elastic body is subjected to torque transmitted by the drill bit, the strain gauges deform, causing a change in their resistance. The output voltage of the full-bridge circuit is proportional to the applied torque. The torque sensor's range is set to 0 to 50 Nm, with a sensitivity of 50 mV output voltage per Nm and a nonlinearity error of less than 0.5% of the full scale. The torque sensor is installed between the planetary reduction gear and the spindle of the electric drill, enabling it to accurately sense various resistances encountered by the drill bit during operation.
[0028] During the data acquisition process, the load sensing module polls and samples the rotor position sensor and torque sensor according to a fixed sampling period. The sampling process of the rotor position sensor is as follows: when the motor rotor rotates, three Hall elements sequentially output square wave signals with a phase difference of 120 degrees. The microprocessor of the load sensing module captures the rising and falling edges of these square wave signals, calculates the time taken for two adjacent phase switchings, and thus obtains the commutation frequency data. Specifically, the microprocessor has a timer module with a counting frequency set to 16 MHz. The timer is started when the first commutation event is captured, and the timer count value is read when the next commutation event is captured. The difference between the two count values is compared with the timer count. The ratio of the frequency to the number of commutations is the time elapsed for that commutation. Taking the reciprocal of that time gives the current commutation frequency. The sampling process of the torque sensor is as follows: The output signal of the torque sensor is first amplified by a signal amplification circuit. The amplification circuit adopts an instrumentation amplifier architecture with a common-mode rejection ratio greater than 100 dB, which can effectively suppress common-mode interference introduced from the power supply. The amplified signal is then filtered by a low-pass filter. The cutoff frequency of the low-pass filter is set to 500 Hz to filter out high-frequency mechanical vibration interference and electromagnetic interference. The filtered analog signal is converted into a digital signal by an analog-to-digital converter. The resolution of the analog-to-digital converter is set to 12 bits, and the sampling rate is set to 1 kHz, which can fully capture the dynamic characteristics of torque changes.
[0029] The fusion processing module receives commutation frequency data and torque change signals from the load sensing module, and uses a Kalman filter algorithm to fuse these two signals from different sources to obtain accurate predicted load characteristic parameters. The core idea of the Kalman filter algorithm is to establish a state-space model of the system and use the state estimate from the previous moment and the observation from the current moment to calculate the optimal state estimate for the current moment. In this embodiment, the fusion processing module establishes a rotor dynamics model using rotor angular velocity, rotor angular acceleration, and load torque as state variables. The state transition equation of this dynamics model describes the motion law of the rotor under inertia, specifically including the following key steps: First, the state vector X is defined to contain three components, namely rotor angular velocity omega, rotor angular acceleration alpha, and load torque tau. The state transition equation can be expressed as the relationship between the current state vector and the previous state vector, which is described by the state transition matrix. The change in rotor angular velocity depends on rotor angular acceleration, and the change in rotor angular acceleration depends on the difference between load torque and electromagnetic torque divided by rotor moment of inertia. Load torque can be regarded as a slowly changing random process in a short time. In specific implementation, the microprocessor of the fusion processing module first initializes... The state estimation means vector is set as the initial state value estimated empirically. Simultaneously, the covariance matrix is initialized, reflecting the uncertainty of the state estimation; a large initial value is set to represent greater initial uncertainty. After initialization, the prediction phase begins. The microprocessor predicts the state value at the next moment according to the state transition equation, and updates the predicted state covariance matrix based on the process noise covariance. Then, the update phase begins, where the microprocessor maps the predicted state to the observation space according to the observation equation and calculates the predicted observation values. The observation equation incorporates the commutation frequency and torque change signals as observations into the state estimation process. There is a fixed proportional relationship between the rotor angular velocities and between the torque change signal and the load torque. The microprocessor calculates the observation residual, which is the difference between the actual observation and the predicted observation, and calculates the Kalman gain based on the observation noise covariance. The magnitude of the Kalman gain determines the weight of the predicted and observed values in the final estimation result. When the observation noise is low, the Kalman gain is large, and the final estimation result is more biased towards the observed value. When the observation noise is high, the Kalman gain is small, and the final estimation result is more biased towards the predicted value. Finally, the microprocessor uses the Kalman gain to correct the predicted state and outputs the fused state estimation result.
[0030] During the execution of the Kalman filter algorithm, the fusion processing module also includes load mutation judgment logic. This judgment logic identifies the type of load mutation by monitoring the changing trend of the commutation frequency and the fluctuation amplitude of the torque change signal. The specific judgment criteria are as follows: The fusion processing module continuously monitors the commutation frequency data for three consecutive sampling periods. When it detects that the commutation frequency shows a decreasing trend within these three sampling periods, it determines that the commutation frequency has a decreasing trend. At the same time, the fusion processing module compares the torque change signal with a preset fluctuation threshold. This fluctuation threshold is set to 15 Nm in this embodiment based on the range of the torque sensor and the typical working conditions of the electric hand drill. When the torque change signal exceeds this fluctuation threshold, it is determined that the torque change signal has a large fluctuation. When the above two conditions are met simultaneously, the fusion processing module determines that the load characteristic belongs to the mutation type and adds a mutation flag bit when outputting the predicted load characteristic parameters so that the subsequent power calculation module and strategy comparison module can take special processing strategies for the load mutation situation.
[0031] The power calculation module is connected to the fusion processing module and receives the predicted load characteristic parameters output by the fusion processing module to calculate the power demand value of the motor controller at the next moment. The calculation process of the power calculation module consists of three steps. The first step is to calculate the real-time power value at the current moment. The power calculation module first extracts the torque value and the current motor speed value from the predicted load characteristic parameters, and calculates the real-time power value through the product relationship between the motor speed and the torque. In this embodiment, the motor speed is obtained by dividing the commutation frequency by the number of motor pole pairs. Assuming that the number of motor pole pairs is 4, the motor speed is equal to the commutation frequency divided by 8. The real-time power value is obtained by multiplying the torque by the angular velocity. Specifically, multiplying the torque value by the motor speed and then by the conversion factor yields the real-time power value in watts. The first step is to calculate the power demand value at the next sampling time. The second step is to predict the power demand value at the next sampling time. The power calculation module makes the prediction based on the historical trend of load changes and the extrapolation algorithm. In this embodiment, the extrapolation algorithm adopts a linear extrapolation method. Specifically, it takes the power value data of the most recent sampling periods, fits the power change trend line, and extends the trend line to the next sampling time to obtain the predicted power demand value. The third step is to calculate the rate of change of the power demand value. The power calculation module divides the difference between the power demand values of two adjacent sampling periods by the sampling period time to obtain the rate of change of the power demand value. This rate of change is used as a characterization parameter of the severity of load changes. When the rate of change exceeds a preset threshold, it indicates that the load change is very severe and more aggressive current limiting protection measures need to be taken.
[0032] The battery status acquisition module is used to obtain current voltage and temperature data from the battery management system, and is a key source of battery-side information in the entire safety control system. The battery status acquisition module acquires data through the voltage acquisition channel and temperature acquisition channel built into the battery management system. In terms of voltage acquisition, the battery management system is equipped with a multi-channel voltage acquisition chip, which can simultaneously acquire the voltage of each individual cell in the battery pack as well as the total voltage of the battery pack. The acquisition principle of the voltage acquisition chip is to convert the positive and negative voltages of the cells into differential voltage signals suitable for the input range of the analog-to-digital converter through analog front-end circuits, and then convert them into digital quantities through the analog-to-digital converter. The voltage acquisition period for each cell is set to 100 milliseconds, and the total voltage acquisition period is set to 10 milliseconds. Regarding temperature acquisition, the battery management system has multiple temperature sensors arranged inside the battery pack, including cell surface temperature sensors and battery compartment ambient temperature sensors. The cell surface temperature sensor uses a negative temperature coefficient thermistor, whose resistance decreases as temperature increases; the cell surface temperature can be calculated by measuring the thermistor's resistance. The battery compartment ambient temperature sensor uses a digital temperature sensor that can directly output a digital temperature signal. The temperature acquisition module's acquisition period is set to 500 milliseconds, which meets the requirements for monitoring battery temperature changes.
[0033] After acquiring the raw data, the battery status acquisition module performs verification and filtering to eliminate outliers and noise interference. The data verification process includes the following aspects: First, it checks whether the acquired voltage value is within a reasonable range. For example, the normal range for a single cell voltage is 2.5 volts to 4.2 volts. If the acquired value exceeds this range, it is judged as an outlier and discarded. Second, it checks whether the temperature value is within a reasonable range. For example, the normal range for cell surface temperature is -20 degrees Celsius to 60 degrees Celsius. If the acquired value exceeds this range, it is judged as an outlier and discarded. Third, it performs a consistency check on the data acquired multiple times consecutively. If the difference between a certain acquired value and the two preceding and following acquired values exceeds a preset threshold, it is judged as an outlier and the average of the two preceding and following acquired values is used instead. The data filtering uses a moving average filtering algorithm. This algorithm maintains a data queue of fixed length, adds the latest acquired data to the queue and removes the oldest data, and then calculates the arithmetic mean of all data in the queue as the filtered output. The queue length of the moving average filtering algorithm is set to 8, which can effectively suppress the influence of random noise.
[0034] The dynamic limit calculation module is connected to the battery status acquisition module, receives voltage status and temperature condition data output by the battery status acquisition module, calculates the dynamic current limit using a fuzzy control algorithm, and outputs the upper limit parameter of the safe discharge current. The core idea of the fuzzy control algorithm is to convert precise input variables into fuzzy linguistic variables through a fuzzification process, then perform fuzzy inference according to a preset fuzzy rule base, and finally convert the fuzzy output into a precise output value through a defuzzification process. In this embodiment, the dynamic limit calculation module uses voltage status and temperature conditions as input variables and current limit as output variables.
[0035] The fuzzification process of the dynamic limit calculation module first converts the input variables into fuzzy linguistic variables. The fuzzification process for voltage state is as follows: the rated voltage of the battery is set as the reference benchmark, and the voltage state is quantified into three fuzzy linguistic variables, representing the voltage at high voltage, medium voltage, and low voltage respectively. The specific membership function adopts a triangular membership function. The membership function for high voltage state is 1 when the voltage reaches more than 70% of the rated voltage, 0 when the voltage is less than 50% of the rated voltage, and has a linear transition between 50% and 70%. The membership function for medium voltage state is 1 when the voltage is between 30% and 70% of the rated voltage, and 0 when the voltage is less than 20% or more than 80%. The membership function for low voltage state is 1 when the voltage is less than 30% of the rated voltage, and 0 when the voltage is more than 50%. The fuzzification process for temperature conditions adopts the same method, quantifying temperature into three fuzzy linguistic variables, representing the temperature at low temperature, normal temperature, and high temperature respectively.
[0036] The fuzzy rule base of the dynamic limit calculation module contains multiple fuzzy rules, each corresponding to a combination of voltage state and temperature conditions. The design of the fuzzy rule base is based on the following safety principles: when the voltage state is high and the temperature conditions are normal, the battery is allowed to discharge at its rated discharge current, at which point the battery's discharge capacity is strongest, meeting the high power demands of the motor; when the voltage state is low or the temperature conditions are high, the discharge current needs to be reduced to protect the battery and prevent damage from over-discharge or overheating; when both the voltage state and temperature conditions are unfavorable, the discharge current needs to be further reduced or even restricted. Based on this principle, the specific rules of the fuzzy rule base include: when the voltage state is high and the temperature conditions are normal, the current limit is set to 100% of the rated discharge current; when the voltage state is high and the temperature conditions are low... When the voltage is high and the temperature is high, the current limit is set to 100% of the rated discharge current; when the voltage is medium and the temperature is normal, the current limit is set to 70% of the rated discharge current; when the voltage is medium and the temperature is low, the current limit is set to 90% of the rated discharge current; when the voltage is medium and the temperature is high, the current limit is set to 50% of the rated discharge current; when the voltage is low and the temperature is normal, the current limit is set to 50% of the rated discharge current; when the voltage is low and the temperature is low, the current limit is set to 60% of the rated discharge current; and when the voltage is low and the temperature is high, the current limit is set to 30% of the rated discharge current.
[0037] The fuzzy inference process of the dynamic limit calculation module adopts the Mamdani inference method, and the specific steps are as follows: First, the membership values of the input variables are matched with the corresponding antecedents of the fuzzy rules. For each fuzzy rule, the minimum membership value of each condition of its antecedent is calculated as the trigger strength of the rule. Then, the trigger strength of each rule is mapped to its consequent to obtain the fuzzy output of each rule. The defuzzification process of the dynamic limit calculation module adopts the centroid method. The fuzzy outputs of all rules are aggregated to obtain the total fuzzy output. Then, the centroid position of the membership curve of the fuzzy output is calculated, and the value corresponding to the centroid position is used as the accurate current limit output.
[0038] The strategy comparison module is connected to both the power calculation module and the dynamic limit calculation module. It receives the power demand value output by the power calculation module and the safe discharge current upper limit parameter output by the dynamic limit calculation module. By comparing these two parameters, it outputs a real-time discharge command. The comparison process of the strategy comparison module consists of the following steps: First, it calculates the discharge current corresponding to the power demand value based on the power demand value and the current battery output voltage. In this embodiment, the nominal output voltage of the battery is 18 volts. The strategy comparison module obtains the current real-time output voltage from the battery status acquisition module and calculates the ratio of the power demand value to the output voltage to obtain the corresponding discharge current. Then, it compares the calculated discharge current with the safe discharge current... The upper limit parameter of the discharge current is compared, and the real-time discharge command is determined based on the comparison result. When the discharge current exceeds the upper limit parameter of the safe discharge current, it indicates that the power demand of the motor controller exceeds the current safe power supply capacity of the battery. At this time, the strategy comparison module outputs a power reduction command, requiring the motor controller to reduce the power output. The power reduction command includes a target power limit, which is calculated based on the product of the upper limit parameter of the safe discharge current and the current battery output voltage. When the discharge current does not exceed the upper limit parameter of the safe discharge current, it indicates that the power demand of the motor controller is within the safe power supply capacity of the battery. At this time, the strategy comparison module outputs a maintenance command, allowing the motor controller to operate according to the actual power demand.
[0039] The circuit adjustment module is connected to the strategy comparison module and receives real-time discharge commands from the strategy comparison module. Based on these commands, it adjusts the duty cycle and switching frequency of the buck-boost circuit in the battery management system to achieve stable voltage output and a controlled discharge rate. The buck-boost circuit adopts a synchronous rectification buck-boost topology, and its core components include an input capacitor, an output capacitor, an energy storage inductor, and two metal-oxide-semiconductor field-effect transistors (MOSFETs) on and off. The circuit adjustment module controls the conduction and cutoff of these two MOSFETs to achieve the boost or buck function. When the battery output voltage is higher than the motor control voltage... When the battery output voltage is lower than the voltage required by the motor controller, the circuit adjustment module controls the upper bridge arm MOSFET to turn off and the lower bridge arm MOSFET to periodically turn on, achieving the step-down function by adjusting the duty cycle of the lower bridge arm's conduction time. When the battery output voltage is close to the voltage required by the motor controller, the circuit adjustment module simultaneously drives the two MOSFETs to work in a complementary manner, achieving seamless switching between step-up and step-down.
[0040] The duty cycle adjustment process of the circuit regulation module is as follows: First, the target duty cycle of the buck-boost circuit is calculated based on the real-time discharge command. The target duty cycle is equal to the ratio of the voltage required by the motor controller to the battery output voltage. The microprocessor of the circuit regulation module changes the duty cycle by adjusting the comparison value of the pulse width modulation module. The clock frequency of the pulse width modulation module is set to 200 kHz, and the counter has 16 bits, enabling precise duty cycle resolution control. The switching frequency adjustment process is as follows: The circuit regulation module adjusts the switching frequency according to the current output characteristics of the battery and the input requirements of the motor controller. When the battery is fully charged... When the output characteristics are good, a higher switching frequency is used to obtain more precise output voltage control. When the battery power is low and the output characteristics deteriorate, a lower switching frequency is used to reduce switching losses and improve conversion efficiency. The adjustment range of the switching frequency is set from 100 kHz to 400 kHz. The circuit adjustment module also monitors the internal resistance voltage drop at the battery output terminal in real time. It obtains an estimated value of the internal resistance voltage drop by measuring the battery output current and calculating the product of the current and the battery's equivalent internal resistance. When the internal resistance voltage drop exceeds the allowable range of the cell specifications, the circuit adjustment module will further limit the discharge current to prevent the cell from being damaged due to overcurrent.
[0041] Through the implementation of the above technical solution, this invention achieves safe control of the lithium battery in electric hand drills. During drilling operations at construction sites, when the operator pushes the electric hand drill into the concrete and contacts the internal reinforcing steel, the torque sensor can sense a sudden increase in resistance, and the rotor position sensor can detect a decrease in rotational speed. The fusion processing module fuses these two signals using a Kalman filter algorithm to accurately determine that a sudden change in load has occurred and predicts the power demand value after the change. Simultaneously, the battery status acquisition module monitors the battery's voltage and temperature status, and the dynamic limit calculation module calculates the upper limit of the safe discharge current under the current state based on a fuzzy control algorithm. The strategy comparison module compares the power demand with the safe discharge capacity, and if the power demand exceeds the safe range, it issues a power reduction command. The circuit adjustment module adjusts the duty cycle and switching frequency of the step-up and step-down circuits according to the command to meet the motor's power demand as much as possible while ensuring battery safety. This collaborative control mechanism effectively avoids battery overcurrent protection and sudden power outages caused by sudden load changes, significantly improving the lithium battery safety and overall reliability of the electric hand drill.
[0042] Example 2; This embodiment uses the drilling of wooden materials with an electric hand drill in a home renovation scenario as a specific application scenario to describe in detail the second technical implementation of the lithium battery safety control method and system proposed in this invention. In this application scenario, the operator uses an electric hand drill to drill holes in wooden boards. The wood material is relatively uniform, and the load change is relatively gradual. However, when the drill bit penetrates the surface of the board and enters the interior, and when it encounters knots in the wood, a certain degree of load fluctuation will still occur. The significant difference between this scenario and Embodiment 1 is that the degree of drastic load change is lower, and the battery discharge pressure is relatively smaller. Therefore, this embodiment, while maintaining the overall system architecture unchanged, makes adaptive adjustments to the working parameters and control strategies of some modules to achieve energy-saving optimization control under light load conditions.
[0043] Regarding the load sensing module, this embodiment optimizes the sampling strategies of the rotor position sensor and torque sensor. Since the load changes during drilling into wood are relatively gradual, it is not necessary to use high-frequency sampling to capture transient changes as is required for drilling into concrete. Therefore, this embodiment adjusts the sampling period of the rotor position sensor from the fixed period in Embodiment 1 to an adaptive sampling period. Specifically, when the fluctuation amplitude of the detected torque change signal is consistently below a preset first threshold, the system automatically reduces the sampling frequency to reduce processor overhead and power consumption. When the fluctuation amplitude of the detected torque change signal exceeds the first threshold but is below the second threshold, the system maintains the normal sampling frequency. When the fluctuation amplitude of the detected torque change signal exceeds the second threshold, the system automatically increases the sampling frequency to accurately capture load changes. This adaptive sampling strategy effectively reduces the average power consumption of the system and extends battery life while ensuring load detection accuracy.
[0044] Regarding the fusion processing module, this embodiment adjusts the parameter configuration of the Kalman filter algorithm. Since the load change is relatively gradual under light load conditions and the change rate of state variables is slow, the value of the process noise covariance can be appropriately increased to accelerate the convergence speed of state estimation. At the same time, since the sampling frequency may change, this embodiment introduces a variable sampling period processing mechanism in the Kalman filter algorithm. During the state prediction stage, the state transition matrix is adjusted according to the actual sampling time interval to ensure the accuracy of state estimation. In addition, this embodiment simplifies the load change judgment logic. Since drilling holes in wood rarely results in drastic load changes, the judgment condition is adjusted from three consecutive sampling periods to five consecutive sampling periods, and the fluctuation threshold is adjusted from 15 Nm to 8 Nm to avoid misjudging normal load fluctuations as load changes.
[0045] Regarding the power calculation module, this embodiment employs an extrapolation algorithm different from that in Embodiment 1. Since power changes are relatively gradual under light load conditions, this embodiment uses a quadratic curve extrapolation algorithm instead of a linear extrapolation algorithm. The quadratic curve extrapolation algorithm uses power value data from the most recent sampling periods to fit a quadratic polynomial curve, and extends this curve to the next sampling time to obtain the predicted power demand value. The quadratic curve extrapolation algorithm can better capture the acceleration or deceleration trend of power changes, improving the accuracy of power prediction. Simultaneously, this embodiment adds a confidence assessment mechanism for power prediction. When the power change trend fluctuates significantly, the confidence of the prediction result is reduced to prevent control strategy errors due to excessive prediction deviation.
[0046] Regarding the battery status acquisition module, this embodiment optimizes the data acquisition strategy. Since the battery discharge current is small under light load conditions, and the battery voltage and temperature change slowly, the data acquisition cycle can be appropriately extended to reduce power consumption. Specifically, this embodiment extends the acquisition cycle for single-cell voltage from 100 milliseconds to 200 milliseconds and the temperature acquisition cycle from 500 milliseconds to 1 second. Simultaneously, this embodiment adds a battery health status assessment function. By monitoring the battery's charge-discharge cycle count and cumulative discharge capacity, the battery's health status is assessed and used as an additional input factor for the fuzzy control algorithm. When the battery health status is poor, even under light load conditions, the discharge current limit needs to be appropriately reduced to protect the battery and extend its service life.
[0047] Regarding the dynamic limit calculation module, this embodiment expands the fuzzy control rule base by adding battery health status as an input variable. The expanded fuzzy control rule base contains more rule combinations to adapt to discharge strategies under different battery health states. When the battery health is good, a more aggressive discharge strategy is adopted, allowing a higher discharge current to fully utilize battery performance. When the battery health is average, a compromise discharge strategy is adopted to achieve a balance between performance and safety. When the battery health is poor, a conservative discharge strategy is adopted to limit the discharge current to protect battery safety. In addition, this embodiment introduces an output limiting mechanism into the fuzzy control algorithm to limit the maximum rate of change of the current limit within a certain range to prevent drastic changes in the current limit from impacting motor operation.
[0048] Regarding the strategy comparison module, this embodiment adds hysteresis control logic to avoid control oscillations. When the discharge current corresponding to the power demand value fluctuates near the upper limit parameter of the safe discharge current, if a power reduction command is issued immediately every time the threshold is exceeded, it may cause the motor controller to frequently adjust the power output, affecting the smoothness of operation. Therefore, this embodiment sets a hysteresis interval in the strategy comparison module. A power reduction command is only issued when the discharge current exceeds the upper limit parameter of the safe discharge current by a certain percentage (e.g., 105%), and normal power supply is only restored when the discharge current drops to a certain percentage below the upper limit parameter of the safe discharge current (e.g., 95%). This hysteresis control strategy can effectively reduce the frequency of control actions and improve the stability of the system.
[0049] Regarding the circuit regulation module, this embodiment optimizes the operating mode of the buck-boost circuit for light-load conditions. Under light-load conditions, the difference between the battery output voltage and the voltage required by the motor controller is usually small, and the buck-boost circuit mainly operates in buck mode or direct-through mode. This embodiment adds a control strategy for direct-through mode. When the battery output voltage is slightly higher than the voltage required by the motor controller, the MOSFETs of the upper and lower bridge arms are simultaneously turned on, so that the circuit operates in direct-through state, reducing switching losses. At the same time, this embodiment reduces the switching frequency under light-load conditions, lowering it from 200 kHz in Embodiment 1 to 100 kHz to further reduce switching losses and electromagnetic interference. In addition, this embodiment adds a soft-start function to the circuit regulation module, gradually increasing the output voltage when the motor controller starts up to avoid voltage surges impacting the motor.
[0050] By implementing the above technical solutions, this invention achieves energy-saving and optimized lithium battery safety control under light load conditions. In drilling operations on wood materials during home renovations, the system reduces average power consumption through an adaptive sampling strategy, improves the accuracy of state estimation through optimized Kalman filter parameters, enhances power prediction accuracy through a quadratic curve extrapolation algorithm, calculates dynamic current limits considering battery health status through an expanded fuzzy control rule library, avoids control oscillations through a hysteresis control strategy, and reduces switching losses by optimizing the buck-boost circuit operating mode. This optimized control strategy under light load conditions can maximize battery life while ensuring safety, thus improving the user experience.
[0051] Example 3; This embodiment uses the construction operation of an electric hand drill in a high-altitude and low-temperature environment as a specific application scenario to describe in detail the third technical implementation method of the lithium battery safety control method and system proposed in this invention. In this application scenario, the electric hand drill is used for construction work at an altitude of over 3000 meters and an ambient temperature of less than -10 degrees Celsius. This extreme environment has a significant impact on the performance of lithium batteries. The chemical reaction activity of the battery decreases under low-temperature conditions, and the discharge capacity decreases. At the same time, the thin air in high-altitude areas also affects the heat dissipation of the motor. Therefore, more stringent safety control measures are required for this special environment.
[0052] Regarding the load sensing module, this embodiment adds a temperature compensation function to ensure the accuracy of the sensor signals. The output characteristics of the rotor position sensor and torque sensor will drift with temperature changes, especially under extreme low temperature conditions, the sensitivity of the sensors may decrease, leading to increased measurement errors. Therefore, this embodiment integrates a temperature compensation circuit in the load sensing module to correct the sensor output signal according to the current ambient temperature. The temperature compensation circuit internally stores the temperature characteristic curve of the sensor, which is obtained through pre-calibration experiments. In actual operation, the temperature compensation circuit obtains the compensation coefficient by querying the temperature characteristic curve based on the ambient temperature value collected by the temperature sensor, and multiplies the original sensor output signal by the compensation coefficient to obtain the corrected output signal. In addition, this embodiment also adds a sensor self-diagnosis function, which performs functional testing on the sensor when the system starts up. If an abnormal sensor output is detected, a warning signal is issued and a backup sensor is activated.
[0053] Regarding the fusion processing module, this embodiment adjusts the noise parameters of the Kalman filter algorithm for low-temperature environments. Under low-temperature conditions, the equivalent internal resistance of the battery increases, the response speed of the motor controller may slow down, and the regularity of load changes may differ from that under normal temperature conditions. Therefore, this embodiment increases the value of the process noise covariance to reflect greater state uncertainty. At the same time, this embodiment introduces an input constraint mechanism into the Kalman filter algorithm to limit the rate of change of state variables within a reasonable range and prevent state estimation divergence due to inaccurate models. In addition, this embodiment adds an environmental adaptive learning function, which continuously accumulates working data under different environmental conditions during system operation and automatically adjusts the parameter configuration of the Kalman filter algorithm to adapt to environmental changes.
[0054] Regarding the power calculation module, this embodiment adds a low-temperature power limiting factor. Under low-temperature conditions, the battery's discharge capacity decreases, and the motor's lubrication deteriorates, increasing mechanical resistance. Therefore, it is necessary to reduce power output to protect the battery and motor. The power calculation module, based on temperature data provided by the battery temperature acquisition module, introduces a power limiting factor inversely proportional to temperature. The calculated power demand value is multiplied by this limiting factor to obtain the corrected power demand value. Specifically, when the temperature is above zero degrees Celsius, the power limiting factor is set to 1.0; when the temperature is between zero degrees Celsius and -10 degrees Celsius, the power limiting factor is set to 0.8; when the temperature is between -10 degrees Celsius and -20 degrees Celsius, the power limiting factor is set to 0.6; and when the temperature is below -20 degrees Celsius, the power limiting factor is set to 0.4. This segmented power limiting strategy effectively protects the battery and motor under extreme low-temperature conditions.
[0055] Regarding the battery status acquisition module, this embodiment adds a low-temperature related battery parameter monitoring function. Under low-temperature conditions, the battery discharge curve differs significantly from that under normal temperature conditions, the discharge platform voltage decreases, and the discharge termination voltage needs to be appropriately increased to prevent over-discharge. Therefore, this embodiment adjusts the abnormal value judgment range of voltage acquisition, adjusting the normal range of single cell voltage to 3.0V to 4.25V, and increasing the discharge termination voltage judgment threshold from 2.5V to 3.0V. At the same time, this embodiment adds a battery internal resistance monitoring function. By briefly applying a known discharge current during the discharge process, the change in battery terminal voltage is measured, thereby calculating the battery's equivalent internal resistance. Battery internal resistance is an important parameter reflecting battery status. Under low-temperature conditions, battery internal resistance will increase significantly. When the internal resistance exceeds the set threshold, the system will take more stringent current limiting measures.
[0056] Regarding the dynamic limit calculation module, this embodiment redesigns the fuzzy control rule base for low-temperature environments. Under low-temperature conditions, the battery's discharge capacity is significantly reduced. Even if the voltage and temperature conditions are within normal ranges, the discharge current needs to be drastically reduced to protect battery safety. Therefore, this embodiment reclassifies the temperature condition into four fuzzy linguistic variables, representing extremely low temperature, low temperature, normal, and high temperature states, respectively, and adds special rules for extremely low temperature states to the fuzzy rule base. Specifically, when the temperature condition is extremely low, regardless of the voltage state, the current limit is set to a percentage of the rated discharge current. 30%; when the temperature is low and the voltage is high, the current limit is set to 50% of the rated discharge current; when the temperature is low and the voltage is medium, the current limit is set to 40% of the rated discharge current; when the temperature is low and the voltage is low, the current limit is set to 30% of the rated discharge current; in addition, this embodiment introduces a discharge history memory function into the fuzzy control algorithm to record the discharge current situation in a recent period of time. When the battery is detected to be continuously in a high discharge current state, the gradual reduction mechanism of the current limit is automatically triggered to prevent the battery from overheating due to continuous high current discharge.
[0057] Regarding the strategy comparison module, this embodiment adds multiple safety check mechanisms to cope with abnormal operating conditions in extreme environments. In addition to the power demand and safe discharge capacity comparison in Embodiment 1, this embodiment also adds the following checks: First, it checks whether the battery temperature is within the allowable operating temperature range. If the battery temperature is lower than the allowable lower limit (e.g., -20 degrees Celsius), the motor is prohibited from starting to prevent battery damage due to insufficient battery discharge capacity. Second, it checks whether the battery internal resistance exceeds the allowable maximum value. If the internal resistance exceeds the threshold, the discharge current limit is forcibly reduced. Third, it checks whether the battery voltage is sufficient to support motor starting. If the battery voltage is lower than the preset starting threshold, starting is prohibited and a low battery warning is issued. These multiple safety check mechanisms can provide more comprehensive protection for the battery in extreme environments.
[0058] Regarding the circuit regulation module, this embodiment optimizes the protection function of the buck-boost circuit for low-temperature environments. Under low-temperature conditions, the response characteristics of electronic components may change, and the stability of the circuit may decrease. Therefore, this embodiment adds a circuit fault detection function to monitor the working status of the buck-boost circuit in real time and detect whether there are fault phenomena such as abnormal MOSFET drive signals or excessive output voltage fluctuations. If a fault is detected, the circuit regulation module will immediately shut down the MOSFET drive signal and disconnect the connection between the battery and the motor controller to prevent the fault from escalating. At the same time, this embodiment adds a preheating function. When starting the motor under extreme low-temperature conditions, it first runs at a lower power for a period of time to generate some heat in the battery and motor, raising the operating temperature before gradually increasing the power. This gradual start-up strategy can prevent the battery from being damaged by high-current discharge at low temperatures.
[0059] Through the implementation of the above technical solutions, this invention achieves reliable lithium battery safety control in high-altitude and low-temperature environments. Under extreme environmental conditions, the system ensures the accuracy of sensor signals through temperature compensation, improves the adaptability of state estimation by adjusting Kalman filter parameters, protects the battery and motor by introducing a low-temperature power limiting factor, realizes dynamic current limit calculation for extreme environments by redesigning the fuzzy control rule base, provides more comprehensive protection through multiple safety check mechanisms, and ensures the reliable operation of the step-up and step-down circuits by optimizing circuit protection functions. This control strategy optimized for extreme environments can effectively protect the lithium battery of the electric drill under harsh conditions, extend battery life, and ensure the safety of operators.
[0060] Example 4; This embodiment uses the lithium battery safety control under long-term continuous operation of an electric hand drill as a specific application scenario to describe in detail the fourth technical implementation of the lithium battery safety control method and system proposed in this invention. In this application scenario, the operator needs to use an electric hand drill to perform long-term continuous drilling operations, such as drilling a large number of prefabricated components at a construction site. This working condition places high demands on the continuous power supply capability of the lithium battery. The battery will gradually heat up during long-term discharge, and the power will gradually be consumed. It is necessary to maximize the battery's capacity potential while ensuring safety.
[0061] Regarding the load sensing module, this embodiment adds a cumulative working time and cumulative workload statistics function; the load sensing module maintains a counter to record the cumulative working time of the electric drill and the cumulative number of drill holes completed; when the cumulative working time exceeds a preset threshold, the system will consider that the battery has been in a long-term working state and additional protection measures need to be taken; at the same time, this embodiment adds a load distribution statistics function to count the distribution of different power ranges in a recent period of time to assess the sustainability of the current workload; when the system detects that the motor has been in a high-power working state for a long time, it will actively reduce the power limit to prevent the battery from overheating.
[0062] Regarding the fusion processing module, this embodiment optimizes the working mode of the Kalman filter algorithm for long-term operating conditions. During long-term continuous operation, sensors and circuits may drift, leading to a decrease in the accuracy of state estimation. Therefore, this embodiment adds a self-calibration function to the fusion processing module, periodically calibrating the sensors and circuits using known reference signals. Specifically, when the system detects that the motor is in a stopped state, it uses the sensor output data within that time period for zero-point calibration to eliminate sensor zero-point drift. At the same time, this embodiment introduces a gradual forgetting mechanism in the Kalman filter algorithm, gradually reducing the weight of historical data in state estimation and increasing the weight of current observation data to adapt to parameter drift that may occur during operation.
[0063] Regarding the power calculation module, this embodiment adds a battery discharge history memory function; the power calculation module records the power change curve of the battery during the most recent complete discharge process as a reference for subsequent discharges; when the current working mode is detected to be similar to the historical record, the historical data can be used to make more accurate power predictions; at the same time, this embodiment adds a battery capacity estimation function, which estimates the current remaining capacity of the battery based on the voltage change curve and the discharge current integral during the discharge process; when the remaining capacity is lower than a preset threshold, the system will issue a low battery warning in advance and appropriately reduce the power limit to extend the driving time.
[0064] Regarding the battery status acquisition module, this embodiment adds monitoring functions related to battery thermal management. During long-term continuous operation, the battery temperature will gradually rise, requiring more precise temperature monitoring to prevent thermal runaway. Therefore, this embodiment adds a cell internal temperature estimation function, using the cell surface temperature, ambient temperature, and discharge current to estimate the cell internal temperature through a thermal model. When the estimated cell internal temperature exceeds a safety threshold, the system will immediately reduce the discharge current or even stop discharging. In addition, this embodiment adds a battery temperature change trend analysis function to monitor the rate of temperature rise, and take preventive current limiting measures when the temperature rise rate is too fast.
[0065] Regarding the dynamic limit calculation module, this embodiment adds a progressive current limiting function based on working time. The dynamic limit calculation module gradually reduces the current limit as the working time increases, based on the cumulative working time information provided by the battery status acquisition module. Specifically, in the first 30 minutes of operation, the current limit is set to 100% of the rated discharge current; between 30 minutes and 1 hour, the current limit gradually decreases to 90% of the rated discharge current; between 1 hour and 2 hours, the current limit gradually decreases to 80% of the rated discharge current; and after 2 hours, the current limit is set to 70% of the rated discharge current. This progressive current limiting strategy can fully utilize the battery's capacity potential while ensuring safety, and prevent the battery from overheating due to prolonged high-current discharge.
[0066] Regarding the strategy comparison module, this embodiment adds a battery health status prediction function. Based on the battery's historical discharge data, the strategy comparison module predicts the battery's health status trend. When it predicts that the battery health status may deteriorate rapidly due to over-discharge, it will take protective measures in advance to limit the depth of discharge. Furthermore, this embodiment adds a multi-level current limiting function, employing different levels of current limiting strategies according to the degree of power demand exceeding limits. When the power demand slightly exceeds the safety limit, the first level of current limiting is used, limiting the power to near the safety limit. When the power demand significantly exceeds the safety limit, the second level of current limiting is used, forcibly reducing the power to a certain percentage of the safety limit. When the power demand severely exceeds the safety limit, the third level of current limiting is used, directly cutting off the motor power supply. This multi-level current limiting strategy can take appropriate protective measures according to the degree of over-limit.
[0067] Regarding the circuit adjustment module, this embodiment adds a battery balancing management function. During long-term discharge, the power consumption of each cell in the battery pack may be uneven, resulting in some cells having low power while others have high power. The circuit adjustment module monitors the voltage of each cell to determine if there is an imbalance. When an imbalance is detected, the circuit adjustment module controls the balancing circuit to discharge the cells with higher power and charge the cells with lower power, so that the power of each cell tends to be consistent. In addition, this embodiment adds an energy recovery function. When the motor decelerates or stops, the back electromotive force generated by the motor is recovered to the battery through a step-up / step-down circuit, improving energy utilization efficiency.
[0068] By implementing the above technical solutions, this invention achieves reliable lithium battery safety control under long-term continuous operation conditions. During long-term drilling operations, the system assesses the current working state through cumulative work statistics and load distribution analysis, maintains the accuracy of state estimation through self-calibration and gradual forgetting mechanisms, achieves accurate power prediction through discharge history memory and capacity estimation, prevents thermal runaway through thermal management monitoring and temperature change trend analysis, protects the battery through progressive current limiting and multi-level current limiting strategies, and improves battery utilization through equalization management and energy recovery. This control strategy optimized for long-term operation can maximize the battery's capacity potential, extend operating time, and protect battery life while ensuring safety.
[0069] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, and are not intended to limit the scope of protection of the present invention. Although the present invention has been described in detail with reference to preferred embodiments, those skilled in the art should understand that modifications or equivalent substitutions can be made to the technical solutions of the present invention without departing from the essence and scope of the technical solutions of the present invention.
Claims
1. A lithium battery safety control method for an electric hand drill, characterized in that: Includes the following steps: S1. Obtain commutation frequency data from the rotor position sensor of the motor controller, and simultaneously obtain torque change signals from the torque sensor; S2. The Kalman filter algorithm is used to fuse the commutation frequency data and torque change signal to obtain the predicted load characteristic parameters. S3. Calculate the power demand value of the motor controller at the next moment based on the predicted load characteristic parameters; S4. Obtain current voltage state and temperature condition data from the battery management system; S5. Using a fuzzy control algorithm, the dynamic current limit is calculated based on the voltage state and temperature conditions to obtain the upper limit parameter of the safe discharge current. S6. Compare the power demand value with the safe discharge current upper limit parameter to obtain the real-time discharge command; S7. Adjust the duty cycle and switching frequency of the boost / buck circuit in the battery management system according to the real-time discharge command to obtain a stable voltage output and a controlled discharge rate.
2. The lithium battery safety control method for an electric hand drill according to claim 1, characterized in that: The specific steps of acquiring commutation frequency data from the rotor position sensor of the motor controller and acquiring torque change signals from the torque sensor are as follows: S11. The rotor position sensor of the motor controller collects the electrical angle signal of the rotor at different phase positions and calculates the number of phase switching times per unit time to obtain the commutation frequency data. S12. The torque sensor collects the force signal of the drill bit during the drilling process, and amplifies and filters the force signal to obtain the torque change signal.
3. The lithium battery safety control method for an electric hand drill according to claim 1, characterized in that: The Kalman filter algorithm is used to fuse the commutation frequency data and torque change signal to obtain the predicted load characteristic parameters, specifically as follows: S21. Establish a rotor dynamics model, wherein the state equation of the rotor dynamics model uses rotor angular velocity, rotor angular acceleration and load torque as state variables. S22. The commutation frequency data and torque change signal are fused and estimated using the Kalman filter algorithm to obtain the estimated value of the rotor motion state; S23. If the commutation frequency shows a decreasing trend within three consecutive sampling periods and the torque change signal exceeds the preset fluctuation threshold, then the load characteristics are determined to be of the sudden change type, and the predicted load characteristic parameters are output. The establishment of the rotor dynamics model includes: using the rotor angular velocity as the state variable, constructing state transition equations and observation equations. The state transition equations describe the change of the rotor's angular velocity under inertia, and the observation equations introduce the commutation frequency and torque change signals as observations into the state estimation process.
4. The lithium battery safety control method for an electric hand drill according to claim 1, characterized in that: The fusion process using the Kalman filter algorithm includes: initializing the mean and covariance matrix of the state estimates, predicting the state value at the next time step according to the state transition equation, calculating the Kalman gain based on the observation noise covariance, correcting the predicted value using the Kalman gain, and finally outputting the fused state estimate result.
5. The lithium battery safety control method for an electric hand drill according to claim 1, characterized in that: The specific steps for calculating the power demand value of the motor controller at the next moment based on the predicted load characteristic parameters are as follows: S31. Based on the torque value in the predicted load characteristic parameters and the current motor speed value, calculate the real-time power value at the current moment through the product relationship between motor speed and torque. S32. Based on the historical trend of load mutations and the extrapolation algorithm, predict the power demand value at the next sampling time. S33. Calculate the rate of change of power demand and use this rate of change as a characterization parameter of the severity of load sudden change.
6. The lithium battery safety control method for an electric hand drill according to claim 1, characterized in that: The specific steps for obtaining the current voltage state and temperature condition data from the battery management system are as follows: S41. Obtain the voltage of individual cells and the total voltage of the battery pack through the voltage acquisition module of the battery management system; S42. Obtain the cell surface temperature and battery compartment ambient temperature through the temperature acquisition module; S43. Verify and filter the collected voltage status data and temperature condition data to eliminate outliers and noise interference.
7. The lithium battery safety control method for an electric hand drill according to claim 1, characterized in that: The fuzzy control algorithm is used to calculate the dynamic current limit based on the voltage state and temperature conditions, and the specific parameters for obtaining the upper limit of the safe discharge current are as follows: S51. Design the input and output variables of the fuzzy controller, taking voltage state and temperature conditions as input variables and current limit as output variables. S52. Establish a fuzzy control rule base, which contains multiple fuzzy rules, each of which corresponds to a combination of voltage state and temperature condition; S53. Perform fuzzification processing on the input variables, converting precise voltage and temperature values into fuzzy linguistic variables; S54. Perform fuzzy inference based on the fuzzy control rule base to obtain fuzzy output; S55. Defuzzify the fuzzy output to obtain the accurate current limit.
8. The lithium battery safety control method for an electric hand drill according to claim 1, characterized in that: The process of comparing the power demand value with the upper limit parameter of the safe discharge current to obtain the real-time discharge command is as follows: S61. Calculate the discharge current corresponding to the power demand value based on the power demand value and the current battery output voltage; S62. Compare the discharge current with the upper limit parameter of the safe discharge current; S63. If the discharge current exceeds the upper limit parameter of the safe discharge current, adjust the power supply strategy to limit the power output of the motor controller so that the motor controller operates at the reduced power limit. S64. If the discharge current does not exceed the upper limit parameter of the safe discharge current, the power supply strategy maintains the maximum discharge capacity of the battery and allows the motor controller to operate according to the actual power demand.
9. The lithium battery safety control method for an electric hand drill according to claim 1, characterized in that: The specific steps for adjusting the duty cycle and switching frequency of the boost / buck circuit in the battery management system according to the real-time discharge command to obtain a stable voltage output and a controlled discharge rate are as follows: S71. Calculate the target duty cycle of the buck-boost circuit based on the real-time discharge command. S72. Adjust the switching frequency according to the current output characteristics of the battery and the input requirements of the motor controller; S73. The adjusted duty cycle signal is output through the pulse width modulation module to control the switching transistor of the buck-boost circuit to turn on and off. S74. Real-time monitoring of the internal resistance voltage drop at the battery output terminal to ensure that the internal resistance voltage drop remains within the range allowed by the cell specifications.
10. A lithium battery safety control system for an electric hand drill, characterized in that: include: The load sensing module is used to obtain commutation frequency data from the rotor position sensor of the motor controller and torque change signals from the torque sensor. A fusion processing module, which is connected to the load sensing module, is used to fuse commutation frequency data and torque change signal using a Kalman filter algorithm and output predicted load characteristic parameters. A power calculation module, which is connected to the fusion processing module, is used to calculate the power demand value of the motor controller at the next moment based on the predicted load characteristic parameters. The battery status acquisition module is used to obtain current voltage status and temperature condition data from the battery management system; A dynamic limit calculation module, which is connected to the battery status acquisition module, is used to calculate the dynamic current limit based on the voltage status and temperature conditions using a fuzzy control algorithm, and output the upper limit parameter of the safe discharge current. The strategy comparison module is connected to the power calculation module and the dynamic limit calculation module respectively. It is used to compare the power demand value with the safe discharge current upper limit parameter and output a real-time discharge command. A circuit adjustment module, connected to a strategy comparison module, is used to adjust the duty cycle and switching frequency of the buck-boost circuit in the battery management system according to real-time discharge commands.
