Motor output force parameter calibration method
Through linear fitting of the Hall frequency data within the motor's operating voltage range and the external force value measured by the dynamometer, the K1 and K2 parameters in the motor output force formula are calculated, which solves the problem of unclear parameter determination in the existing technology and improves efficiency. Accuracy and feasibility of motor output force calculation.
Patent Information
- Application Number
- CN202410792071.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-19
- Publication Date
- 2024-08-30
AI Technical Summary
The existing technology fails to clearly explain the method for determining the key parameters K1 and K2 in the motor output force calculation formula F=K1*U+K2*f, which limits the accuracy and feasibility of the calculation model in actual engineering applications.
By dividing the operating voltage range of the motor into multiple voltage intervals, collecting Hall frequency data at each voltage, performing straight line fitting to calculate the slope K, and measuring the external force value with a dynamometer, the values of K1 and K2 are calculated.
It improves the accuracy and feasibility of motor output force calculation, can accurately measure the output force of the motor under load, and ensures the high accuracy and implementability of the calculation method in actual engineering applications.
Smart Images

Figure CN118566722A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of motor technology, and in particular to a method for calibrating motor output force parameters. Background Art
[0002] With the rapid development of the current automobile industry, vehicle engineering is constantly moving towards more sophisticated control and intelligent functions, which is specifically reflected in the popularization of convenient functions such as electric tailgates, automatic windows, and intelligent adjustment seats, which significantly enhances the convenience of car use and the riding experience of passengers. The successful implementation of these automated functions requires the motor as a core drive component, and its role cannot be underestimated. In particular, the motor design that can flexibly adapt to and carry a variety of loads according to different application scenarios has become a key link in technological innovation. The motor output force, as a key indicator to measure its load capacity, is directly related to the evaluation and selection of motor drive efficiency.
[0003] Traditionally, the evaluation of motor output force follows the formula F = T / R, where T is the motor output torque, R is the shaft radius, and the torque T can be estimated by the formula T = 9550*P / N, where P and N represent the motor power (in kW) and speed (in r / min) respectively. Although this method provides a theoretical basis for calculating motor output force, in actual applications, when the motor transmits power through a series of transmission devices, the actual performance of its output force varies due to the mechanical loss and efficiency factors of the device, and the original calculation method fails to fully take this into account.
[0004] In response to the above limitations, the Chinese invention patent document with application number "202211550407.2" discloses an innovative method for calculating the motor output force, which indirectly infers the motor output force through the motor driving voltage U and the Hall frequency f. The formula is F=K1U+K2f, where: F represents the motor output force, K1 and K2 are correction coefficients related to voltage and Hall frequency, respectively. This method attempts to be closer to the actual usage scenario and directly evaluate the actual output force after the motor is connected to the transmission device. However, the patent does not clearly explain the method for determining the key parameters K1 and K2, which undoubtedly creates obstacles to the practicality and promotion of the calculation model. A set of systematic calibration strategies is urgently needed to fill this gap and ensure the accuracy and feasibility of the calculation method in actual engineering applications. Summary of the invention
[0005] The technical problem to be solved by the present invention is: in view of the above-mentioned defects of the prior art, a method for calibrating motor output force parameters is provided to calibrate the values of parameters K1 and K2 in the motor output force calculation formula F=K1*U+K2*f.
[0006] To achieve the above object, the present invention provides a method for calibrating motor output force parameters, the method comprising the following steps:
[0007] Step S1, dividing the working voltage range of the motor into multiple voltage intervals;
[0008] Step S2, connecting the application device to the motor through the transmission device; for each voltage interval, taking a certain voltage value Ui within the voltage interval, setting the motor input voltage to Ui, making the motor work for a preset time, and collecting the Hall frequency data sequence Ai of the motor within the preset time;
[0009] Step S3, calculating the average value fi of the Hall frequency in the Hall frequency data sequence Ai corresponding to each voltage value Ui;
[0010] Step S4, with the working voltage as the horizontal axis and the Hall frequency as the vertical axis, the voltage value Ui and the Hall frequency average value fi data obtained in step S3 are marked in the plane rectangular coordinate system, and a straight line is fitted to calculate the slope K of the straight line, then in the formula F=K1*U+K2*f, K1 / K2=-K;
[0011] Step S5, select any voltage value U0 within the working voltage range of the motor, set the motor input voltage to U0, make the motor work for a preset time, obtain the Hall frequency value f0 when the motor works stably, and obtain the output force F0=K1*U0+K2*f0 of the motor;
[0012] Step S6, in the motor working environment in step S5, applying an external force on the application device to hinder the movement of the application device, the direction of the external force is opposite to the moving direction of the application device, obtaining the Hall frequency value f1 when the motor is working stably, obtaining the output force F1=K1*U0+K2*f1 of the motor, using a dynamometer to measure the value F2 of the external force, then F1-F0=F2;
[0013] Step S7, calculate the values of K1 and K2 according to F1-F0=F2, F0=K1*U0+K2*f0, F1=K1*U0+K2*f1, K1 / K2=-K.
[0014] Preferably, in step S1, the voltage range is evenly divided into a plurality of voltage intervals.
[0015] Preferably, the size of each voltage interval is 1V.
[0016] Preferably, in step S1, the voltage range is non-evenly divided into a plurality of voltage intervals.
[0017] Preferably, in step S2, the Hall frequency data sequence Ai refers to a group of Hall frequency data collected in chronological order.
[0018] Preferably, before step S3, the method further includes: removing the Hall frequency data when the motor is working unstably from the Hall frequency data sequence Ai.
[0019] Preferably, the criterion for judging whether the motor is working stably is: if the difference between two adjacent Hall frequency values is less than a preset threshold, it indicates that the motor is working stably; otherwise, it indicates that the motor is working unstably.
[0020] Preferably, the power applied to the motor in each step is a constant voltage power supply.
[0021] Preferably, in step S4, the straight line fitting adopts the least squares method.
[0022] Preferably, in step S4, the straight line fitting adopts a gradient descent method.
[0023] The present invention has the following beneficial effects: the scheme divides the voltage range of the motor into multiple voltage intervals, takes a fixed voltage value in each voltage interval as the motor input voltage, collects the Hall frequency of the motor at the corresponding voltage, calculates the average value of the Hall frequency at each fixed voltage, and performs straight line fitting according to the voltage and the average value of the Hall frequency to obtain the slope K of the straight line, then K1 / K2=-K; sets the motor input voltage to any voltage value within the motor voltage range, collects the Hall frequency f0, obtains the motor output force F0, applies an external force that hinders the movement of the application equipment, measures the value of the external force F2 by the dynamometer, collects the Hall frequency f1 and the motor output force F1 after the external force is applied, then F1-F0=F2, and the values of K1 and K2 can be calculated according to all the above conditions. The scheme is highly feasible and accurate. The output force of the motor under load can be accurately measured by combining the calibrated parameters with the formula F=K1U+K2f, thereby improving the accuracy and feasibility of the calculation method in practical engineering applications. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] The drawings described herein are used to provide a further understanding of the present invention and constitute a part of the present invention. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings:
[0025] Figure 1 A schematic diagram of the steps of a method for calibrating motor output force parameters provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0026] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0027] The brushless DC motors of automatic control systems such as electric window lifting and electric seat adjustment of vehicles are usually equipped with Hall sensors, which can help the control system accurately determine the current position of the rotor, and then drive the motor to run efficiently and smoothly. The Hall sensor outputs a pulse signal by monitoring the changes in the magnetic field generated when the magnet in the rotor passes through the Hall element. The frequency of these pulse signals is the Hall frequency, which directly reflects the rotation speed of the motor rotor. The Chinese invention patent document with application number "202211550407.2" discloses an innovative method for calculating the output force of the motor, which indirectly calculates the output force of the motor through the driving voltage U and the Hall frequency f of the motor. The formula is F=K1U+K2f, where: F represents the output force of the motor, and K1 and K2 are correction coefficients related to the voltage and the Hall frequency, respectively. However, the patent does not clearly explain the method for determining the key parameters K1 and K2. The present invention proposes a method for calibrating the output force parameters of the motor to calibrate the key parameters K1 and K2 in the above formula.
[0028] The general idea of the present invention is: divide the voltage range of the motor into multiple voltage intervals, take a fixed voltage value in each voltage interval as the motor input voltage, collect the Hall frequency of the motor at the corresponding voltage, calculate the average value of the Hall frequency at each fixed voltage, perform straight line fitting based on the voltage and the average value of the Hall frequency, and obtain the slope K of the straight line, then K1 / K2=-K; set the motor input voltage to any voltage value within the motor voltage range, collect the Hall frequency f0, obtain the motor output force F0, apply an external force to the application device that hinders the movement of the application device, measure the value F2 of the external force through a dynamometer, collect the Hall frequency f1 and the motor output force F1 after the external force is applied, and calculate the values of K1 and K2 based on all the above conditions. The values of K1 and K2 obtained by this solution are not universal values for all motors, and each motor needs to be recalibrated through the solution of the present invention.
[0029] The embodiments of the present invention are further described in detail below in conjunction with the accompanying drawings of the specification. It should be understood that the embodiments described herein are only used to illustrate and explain the present invention, and are not used to limit the present invention.
[0030] The present invention is applicable to the motor in the vehicle automatic control system. By calibrating the parameters, the actual output force of the motor under different voltages can be obtained when the motor is connected to the application equipment through the transmission device according to the calibrated parameters. When this solution is applied, the time for each motor to rotate one circle is greater than the reaction time of the Hall sensor on the motor. The present invention is also applicable to other motors equipped with Hall sensors.
[0031] like Figure 1 As shown, an embodiment of the present invention provides a method for calibrating motor output force parameters, the method comprising the following steps:
[0032] Step S1, dividing the operating voltage range of the motor into multiple voltage intervals.
[0033] In practical applications, you can find the motor's operating voltage range information from the motor's instruction manual. Assume that the motor's operating voltage range is [Umin, Umax], where Umin is the minimum operating voltage and Umax is the maximum operating voltage.
[0034] The purpose of dividing the voltage range into multiple voltage intervals is to subsequently select a fixed voltage value in each interval, measure the Hall frequency corresponding to the motor at the voltage value, and then use a straight line fitting method to obtain the slope of the straight line.
[0035] In some embodiments of the present invention, the voltage range is evenly divided into a plurality of voltage intervals. In some embodiments of the present invention, the motor is an auxiliary motor such as an electric window, seat adjustment, tailgate motor, etc. These motors are usually designed to operate at the standard electrical system voltage of the car, that is, 12V or a higher voltage in some hybrid and electric vehicles, such as 24V, 36V, 48V. Because the maximum voltage value is not high, the size of each voltage interval is set to 1V. In practical applications, the voltage interval is set according to the working voltage range of the motor.
[0036] In other embodiments of the present invention, the voltage range is non-evenly divided into multiple voltage intervals. The specific division method can be set according to actual conditions. For example, considering that in actual applications, the motor works more in the middle voltage segment, when dividing the voltage intervals, the voltage intervals are larger at the two ends of the working voltage range [Umin, Umax], and the voltage intervals are smaller in the middle part of the working voltage range.
[0037] Step S2, connecting the application device to the motor through a transmission device; for each voltage interval, taking a certain voltage value Ui within the voltage interval, setting the motor input voltage to Ui, making the motor work for a preset time, and collecting the Hall frequency data sequence Ai of the motor within the preset time.
[0038] In each step of the scheme of the present invention, the power source applied to the motor is a constant voltage power source.
[0039] The solution of the present invention tests the shaft end output force of the motor under load. Therefore, in step S2, the motor is connected to the application device through a transmission device to collect the Hall frequency. The transmission device and the application device are selected according to the actual situation. The electric tailgate system usually uses a motor with a gear set or a screw transmission device. The motor increases the torque through gear reduction so that the tailgate can be opened and closed smoothly. Some high-end designs may use a linear drive or a screw mechanism to directly convert the rotational motion of the motor into the linear motion of the tailgate, ensuring accurate movement and moderate force, and equipped with sensors and anti-pinch functions to ensure safe use. The most common transmission device in the automatic lifting window system is a gear-rack mechanism or a worm gear mechanism. The motor drives the worm gear or gear to rotate, and converts the rotational motion into the up and down linear motion of the window glass through the rack. The intelligent seat adjustment system usually uses a motor with a gear box, a toothed belt or a ball screw and other transmission devices. The motor converts the rotational force into linear motion in the direction of the seat base, the backrest angle, the forward and backward movement of the seat cushion through these devices. The transmission device can sometimes be omitted, that is, the motor shaft is directly connected to the application device. In the embodiment of the present invention, conventional testing equipment can be used to replace the application equipment on the actual vehicle as needed.
[0040] In some embodiments of the present invention, Ui is the left endpoint of the voltage interval. In other embodiments of the present invention, Ui is the right endpoint of the voltage interval. In other embodiments of the present invention, Ui is any intermediate value in the voltage interval.
[0041] The preset time is set according to the specific test situation, so as to collect a sufficient amount of stable Hall frequency.
[0042] During the operation of the motor, the Hall sensor equipped on the motor outputs a pulse signal by monitoring the change in the magnetic field generated when the magnet in the rotor passes through the Hall element. The inverse of the time interval between two Hall pulse signals is the Hall frequency. The Hall frequency data sequence Ai refers to a set of Hall frequency data collected in chronological order.
[0043] Step S3, calculating the average value fi of the Hall frequency in the Hall frequency data sequence Ai corresponding to each voltage value Ui.
[0044] In some embodiments of the present invention, the step S3 also includes: removing the Hall frequency data when the motor is unstable from the Hall frequency data sequence Ai. The criterion for judging whether the motor is stable is: if the difference between two adjacent Hall frequency values is less than a preset threshold, it means that the motor is stable, otherwise, it means that the motor is unstable. The preset threshold is set according to the specific test situation. After removing the Hall frequency data when the motor is unstable, the obtained Hall frequency average value is closer to the Hall frequency when the motor is stably working. The Hall frequency average value is more stable than the instantaneous value. In actual tests, in the collected Hall frequency data sequence, usually the front section and the back section each have a section of unstable data. The continuous unstable data of the front section and the back section are removed, and the stable data of the middle section is retained.
[0045] Step S4, with the working voltage as the horizontal axis and the Hall frequency as the vertical axis, mark the voltage value Ui and the Hall frequency average value fi data obtained in step S3 in the plane rectangular coordinate system, and perform straight line fitting to calculate the slope K of the straight line. Then, in the formula F=K1*U+K2*f, K1 / K2=-K.
[0046] In some embodiments of the present invention, the linear fitting adopts the least square method. The least square method is the most commonly used linear fitting method. The basic idea is to find a straight line so that the sum of squares of the vertical distances (i.e., residuals) of all data points to the straight line is minimized. In specific operations, it is necessary to minimize the sum of squared errors, that is, minimize the sum of all (yi-(a+bx_i))^2, where yi is the actual value, (a+bx_i) is the predicted value of the fitted straight line at xi, and a and b are the intercept and slope of the straight line, respectively. By solving the corresponding linear equations or using matrix operations, the parameters a and b of the best fit straight line can be obtained.
[0047] In some other embodiments of the present invention, the straight line fitting adopts the gradient descent method. In machine learning and big data analysis, when the amount of data is huge, the gradient descent method is a commonly used optimization technique and can also be used for straight line fitting. This method updates the straight line parameters by iteratively, gradually moving along the negative gradient direction of the error function until the parameter value that minimizes the error is found. At each iteration, the parameter update amount is proportional to the product of the current gradient, and is multiplied by a learning rate to control the step size.
[0048] In practical applications, other suitable straight line fitting methods, such as the Gauss-Newton method, may also be selected according to the data amount of the voltage value and the average Hall frequency.
[0049] The fixed voltage and Hall frequency average value data obtained in the above steps are used for straight line fitting. The straight line reflects the corresponding relationship between the Hall frequency and the working voltage. The slope of the straight line is K, and K1 / K2=-K.
[0050] Step S5, select any voltage value U0 within the working voltage range of the motor, set the motor input voltage to U0, make the motor work for a preset time, obtain the Hall frequency value f0 when the motor is working stably, and obtain the output force F0=K1*U0+K2*f0 of the motor.
[0051] In some embodiments of the present invention, the Hall frequency value f0 is an average value of the Hall frequency when the motor is working stably.
[0052] Step S6, under the motor working environment in step S5, apply an external force on the application device to hinder the movement of the application device, the direction of the external force is opposite to the moving direction of the application device, obtain the Hall frequency value f1 when the motor is working stably, and obtain the output force F1=K1*U0+K2*f1 of the motor, use a dynamometer to measure the value F2 of the external force, then F1-F0=F2.
[0053] In some embodiments of the present invention, the Hall frequency value f1 is an average value of the Hall frequency when the motor is working stably.
[0054] In some embodiments of the present invention, an external force that hinders the movement of the motion device is applied to the application device through a dynamometer, and the direction of the external force is opposite to the movement direction of the application device. The value displayed by the dynamometer is the value F2 of the external force.
[0055] The power applied to the motor is a constant voltage power supply with a voltage value of U0. Under the action of external force, the motor will increase its output force accordingly, and the Hall frequency will also change accordingly, F1-F0=F2.
[0056] Step S7, calculate the values of K1 and K2 according to F1-F0=F2, F0=K1*U0+K2*f0, F1=K1*U0+K2*f1, K1 / K2=-K.
[0057] The present invention has the following beneficial effects: the scheme divides the voltage range of the motor into multiple voltage intervals, takes a fixed voltage value in each voltage interval as the motor input voltage, collects the Hall frequency of the motor at the corresponding voltage, calculates the average value of the Hall frequency at each fixed voltage, and performs straight line fitting according to the voltage and the average value of the Hall frequency to obtain the slope K of the straight line, then K1 / K2=-K; sets the motor input voltage to any voltage value within the motor voltage range, collects the Hall frequency f0, obtains the motor output force F0, applies an external force that hinders the movement of the application equipment, measures the value of the external force F2 by the dynamometer, collects the Hall frequency f1 and the motor output force F1 after the external force is applied, then F1-F0=F2, and the values of K1 and K2 can be calculated according to all the above conditions. The scheme is highly feasible and accurate. The output force of the motor under load can be accurately measured by combining the calibrated parameters with the formula F=K1U+K2f, thereby improving the accuracy and feasibility of the calculation method in practical engineering applications.
[0058] The above are only specific implementations of the present invention, which cannot be used to limit the scope of the present invention. Equivalent changes made by ordinary technicians in this technical field based on this creation, as well as changes known to technicians in this field, should still fall within the scope of the present invention.
Claims
1. A method for calibrating motor output force parameters, characterized in that: The method comprises the following steps: Step S1, dividing the working voltage range of the motor into multiple voltage intervals; Step S2, connecting the application device to the motor through the transmission device; for each voltage interval, taking a certain voltage value Ui within the voltage interval, setting the motor input voltage to Ui, making the motor work for a preset time, and collecting the Hall frequency data sequence Ai of the motor within the preset time; Step S3, calculating the average value fi of the Hall frequency in the Hall frequency data sequence Ai corresponding to each voltage value Ui; Step S4, with the working voltage as the horizontal axis and the Hall frequency as the vertical axis, the voltage value Ui and the Hall frequency average value fi data obtained in step S3 are marked in the plane rectangular coordinate system, and a straight line is fitted to calculate the slope K of the straight line, then in the formula F=K1*U+K2*f, K1 / K2=-K; Step S5, select any voltage value U0 within the working voltage range of the motor, set the motor input voltage to U0, make the motor work for a preset time, obtain the Hall frequency value f0 when the motor works stably, and obtain the output force F0=K1*U0+K2*f0 of the motor; Step S6, in the motor working environment in step S5, applying an external force on the application device to hinder the movement of the application device, the direction of the external force is opposite to the moving direction of the application device, obtaining the Hall frequency value f1 when the motor is working stably, obtaining the output force F1=K1*U0+K2*f1 of the motor, using a dynamometer to measure the value F2 of the external force, then F1-F0=F2; Step S7, calculate the values of K1 and K2 according to F1-F0=F2, F0=K1*U0+K2*f0, F1=K1*U0+K2*f1, K1 / K2=-K.
2. The motor output force parameter calibration method according to claim 1, characterized in that: In the step S1, the voltage range is evenly divided into a plurality of voltage intervals.
3. The motor output force parameter calibration method according to claim 2, characterized in that: The size of each voltage interval is 1V.
4. The motor output force parameter calibration method according to claim 1, characterized in that: In the step S1, the voltage range is non-evenly divided into a plurality of voltage intervals.
5. The motor output force parameter calibration method according to claim 1, characterized in that: In the step S2, the Hall frequency data sequence Ai refers to a group of Hall frequency data collected in chronological order.
6. The motor output force parameter calibration method according to claim 1, characterized in that: Before step S3, the method further includes: removing the Hall frequency data when the motor is working unstably from the Hall frequency data sequence Ai.
7. The motor output force parameter calibration method according to claim 6, characterized in that: The criterion for judging whether the motor is working stably is: if the difference between two adjacent Hall frequency values is less than a preset threshold, it means that the motor is working stably; otherwise, it means that the motor is working unstably.
8. The motor output force parameter calibration method according to claim 1, characterized in that: The power applied to the motor in each step is a constant voltage power supply.
9. The motor output force parameter calibration method according to claim 1, characterized in that: In step S4, the linear fitting is performed using the least square method.
10. The motor output force parameter calibration method according to claim 1, characterized in that: In step S4, the straight line fitting adopts the gradient descent method.
