Current control method and device, electronic device, and storage medium
By predicting the operating parameters of the motor and driver and adjusting the current output, the problem of the motor being unable to exert its maximum output capacity and overheating damage in the existing technology is solved, and the performance and reliability of the robot joints are improved.
Patent Information
- Application Number
- PCT/CN2023/096238
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-04-24
- Filing Date
- 2023-05-25
- Publication Date
- 2024-10-31
AI Technical Summary
The existing technology cannot adapt to different working conditions when setting the maximum allowable current of the motor driver, resulting in the motor being unable to exert its maximum output capability or risking overheating damage, resulting in low robot joint performance.
By obtaining the current temperature of the motor and driver, predicting its operating parameters, determining the filter current of the filter, and adjusting the current output of the motor based on the filtered current to ensure that the motor and driver operate within a safe temperature range, avoid overheating damage, and maximize performance at the same time output capability.
It realizes the optimization of motor current control under different working conditions, improves the performance and reliability of robot joints, and avoids overheating damage caused by inaccurate maximum allowable current settings.
Smart Images

Figure CN2023096238_31102024_PF_FP_ABST
Abstract
Description
Current control method, device, electronic device and storage medium
[0001] Related applications
[0002] This application claims priority to Chinese patent application number 202310443508.8, filed on April 24, 2023, entitled “Current Control Method, Device, Electronic Device and Storage Medium,” the entire text of which is incorporated herein by reference. Technical Field
[0003] The present application relates to the field of motor control technology, and in particular to a current control method, device, electronic device and storage medium. Background Art
[0004] With the development and advancement of robotic joint technology, robotic joints are gradually being applied to various robots. Robots used in some special scenarios, such as legged robots for fast walking or running, have higher requirements for the explosive force of their joints. This high standard of joint explosive force also places higher demands on the high current output capability and current protection functions of the motor drivers driving the robot joints.
[0005] In order to enable the robot joints to exert their maximum output capacity and ensure that the motor driver is not damaged by high current and the motor is not damaged by overheating, the method in the related art is to set a fixed maximum allowable current based on empirical data. When the motor driver issues a current instruction greater than the maximum allowable current, the motor driver output current is limited to the maximum allowable current, and the motor is allowed to continue to run at the maximum allowable current, so that the robot joints can exert their maximum output capacity. Although this method is simple and efficient, this way of setting the maximum allowable current cannot adapt to the motor driver and motor under any working conditions. If the maximum allowable current value is set too small, the maximum output capacity of the motor cannot be exerted; if the maximum allowable current value is set too large, the motor is still at risk of overheating and damage, and ultimately the performance of the robot joint will be low due to the inaccurate setting of the maximum allowable current value.
[0006] There is currently no effective solution to the problem that related technologies cannot maximize the performance of robot joints.
[0007] Summary of the Invention
[0008] In this embodiment, a current control method, device, electronic device, and storage medium are provided.
[0009] In a first aspect, this embodiment provides a current control method, including:
[0010] Acquiring a current first temperature of the motor and a current second temperature of a driver, wherein the driver is used to drive the motor to operate;
[0011] Determining predicted operating parameters of the motor based on the first temperature and the second temperature, the predicted operating parameters being used to characterize operating parameters of the motor and the driver when operating from a current temperature to a preset temperature;
[0012] determining a predicted filtering current of a filter based on the predicted operating parameters, the filter being used to filter the output current of the driver;
[0013] Based on the predicted filtered current, the current of the motor is controlled.
[0014] In some embodiments, determining a predicted filter current of the filter based on the predicted operating parameter includes:
[0015] determining a filter coefficient of the filter based on the predicted operating parameter;
[0016] The predicted filtered current is determined based on the filter coefficient and the quadrature-axis current of the motor.
[0017] In some embodiments, the predicted operating parameter includes a predicted operating time, and determining the filter coefficient of the filter based on the predicted operating parameter includes:
[0018] Obtaining a current filtering threshold of the filter and a peak current of the motor;
[0019] The filter coefficient is determined based on the predicted operating time, the current filter threshold, and the peak current of the motor.
[0020] In some embodiments, determining the predicted filtered current based on the filter coefficient and the quadrature-axis current of the motor includes:
[0021] Discretize the filter function to obtain a discretized filter function;
[0022] The predicted filtered current is determined based on the discretized filter function, the filter coefficient, and the quadrature-axis current of the motor.
[0023] In some embodiments, controlling the current of the motor based on the predicted filtered current includes:
[0024] Obtaining a current filtering threshold of the filter and an expected current of the driver;
[0025] Determining a maximum threshold current of the driver based on a difference between the current filtering threshold and the predicted filtering current;
[0026] The current of the motor is controlled based on a maximum threshold current of the driver and the desired current.
[0027] In some embodiments, determining the maximum threshold current of the driver based on the difference between the current filtering threshold and the predicted filtering current includes:
[0028] If the predicted filter current is less than or equal to the current filter threshold, the maximum threshold current of the driver is the peak current of the motor;
[0029] If the predicted filter current is greater than the current filter threshold, the maximum threshold current of the driver is a preset current, and the preset current is less than the peak current of the motor.
[0030] In some embodiments, controlling the current of the motor based on the maximum threshold current of the driver and the desired current includes:
[0031] The real-time current of the motor is controlled to be the smaller value between the maximum threshold current of the driver and the expected current.
[0032] In some embodiments, determining the predicted operating parameter of the motor based on the first temperature and the second temperature includes:
[0033] determining a first predicted operating parameter of the motor based on the first temperature and a maximum allowable temperature of the motor;
[0034] determining a second predicted operating parameter of the driver based on the second temperature and a maximum allowable temperature of the driver;
[0035] The predicted operating parameter is determined based on the first predicted operating parameter and the second predicted operating parameter.
[0036] In a second aspect, this embodiment provides a current control device, including:
[0037] an acquisition module, configured to acquire a current first temperature of the motor and a current second temperature of a driver, wherein the driver is configured to drive the motor to operate;
[0038] a first determining module, configured to predict operating parameters of the motor based on the first temperature and the second temperature, wherein the predicted operating parameters are used to represent operating parameters of the motor and the driver when the motor and the driver operate from a current temperature to a preset temperature;
[0039] a second determining module, configured to determine a predicted filtering current of a filter based on the predicted operating parameters, wherein the filter is configured to filter the output current of the driver;
[0040] A control module is configured to control the current of the motor based on the predicted filtered current.
[0041] In a third aspect, an electronic device is provided in this embodiment, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the current control method described in any embodiment of the first aspect is implemented.
[0042] In a fourth aspect, a storage medium is provided in this embodiment, on which a computer program is stored. When the program is executed by a processor, the current control method described in any embodiment of the first aspect is implemented.
[0043] The details of one or more embodiments of the present application are set forth in the accompanying drawings and the description below. Other features, objects, and advantages of the present application will become apparent from the description, drawings, and claims. BRIEF DESCRIPTION OF THE DRAWINGS
[0044] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the conventional technology, the following briefly introduces the drawings required for use in the embodiments or the conventional technology descriptions. Obviously, the drawings described below are merely embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on the disclosed drawings without any creative work.
[0045] FIG1 is a flow chart of a current control method according to one or more embodiments.
[0046] FIG2 is a flow chart of an embodiment of a current control method according to one or more embodiments.
[0047] FIG3 is a schematic diagram of a current control method according to one or more embodiments.
[0048] FIG4 is a waveform diagram of an application test of a current control method according to one or more embodiments.
[0049] FIG5 is a structural block diagram of a current control device according to one or more embodiments.
[0050] FIG6 is a structural block diagram of an electronic device according to one or more embodiments. DETAILED DESCRIPTION
[0051] The following will be combined with the drawings in the embodiments of this application to clearly and completely describe the technical solutions in the embodiments of this application. Obviously, the embodiments described are only part of the embodiments of this application, not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of this application.
[0052] Unless otherwise defined, the technical terms or scientific terms involved in this application should have the general meaning understood by people with ordinary skills in the technical field to which this application belongs. The words "one", "an", "a", "the", "these" and the like in this application do not indicate quantitative restrictions, and they can be singular or plural. The terms "include", "comprise", "have" and any variants thereof involved in this application are intended to cover non-exclusive inclusions; for example, a process, method and system, product or device comprising a series of steps or modules (units) is not limited to the listed steps or modules (units), but may include unlisted steps or modules (units), or may include other steps or modules (units) inherent to these processes, methods, products or devices. The words "connect", "connected", "coupled" and the like involved in this application are not limited to physical or mechanical connections, but may include electrical connections, whether direct or indirect. The "plurality" involved in this application refers to two or more. "And / or" describes the relationship between related objects, indicating that three possible relationships exist. For example, "A and / or B" can represent: A exists alone, A and B exist simultaneously, and B exists alone. Generally, the character " / " indicates that the related objects are in an "or" relationship. The terms "first," "second," "third," etc. used in this application are only used to distinguish similar objects and do not represent a specific ordering of the objects.
[0053] With the development and advancement of robotic joint technology, robotic joints are gradually being applied to various robots. Robots used in some special scenarios, such as legged robots for fast walking or running, have higher requirements for the explosive force of their joints. This high standard of joint explosive force also places higher demands on the high current output capability and current protection functions of the motor drivers driving the robot joints.
[0054] In order to enable the robot joints to exert their maximum output capacity and ensure that the motor driver is not damaged by high current and the motor is not damaged by overheating, the method in the related art is to set a fixed maximum allowable current based on empirical data. When the motor driver issues a current command greater than the maximum allowable current, the motor driver output current is limited to the maximum allowable current, and the motor is continuously operated at the maximum allowable current, so that the robot joints can exert their maximum output capacity. Although this method is simple and efficient, this way of setting the maximum allowable current cannot adapt to the motor driver and motor under any working conditions, and how to set a suitable maximum allowable current value is a problem. If the maximum allowable current value is set too small, the maximum output capacity of the motor cannot be exerted; if the maximum allowable current value is set too large, the motor is still at risk of overheating and damage. Ultimately, due to the inaccurate setting of the maximum allowable current value, the performance of the robot joint will be low.
[0055] Therefore, how to control the motor current to improve the performance of robot joints is a problem that needs to be solved.
[0056] A current control method provided in an embodiment of the present application can be applied to a processor in an articulated robot. The articulated robot may include a temperature acquisition module, a motor, a driver, and a processor. The temperature acquisition module can be used to collect the temperature of the motor and the driver in the articulated robot, and send the collected temperature to the processor. The processor is used to execute the current control method provided in an embodiment of the present application, and feed back the current control result to the motor in real time, thereby realizing current control of the motor.
[0057] It should be noted that the current control method of the embodiment of the present application is described by taking its application in an articulated robot as an example. In actual applications, the current control method can also be applied to equipment such as water pumps, fans, and transport vehicles, and can also be applied to other equipment, without limitation here.
[0058] In this embodiment, a current control method is provided. FIG1 is a flow chart of a current control method provided in an embodiment of the present application. The execution subject of the method may be an electronic device 600. Optionally, the electronic device 600 may be a server, a processor, or a terminal, but the present application is not limited thereto. Specifically, as shown in FIG1 , the process includes the following steps:
[0059] Step S101 , obtaining a current first temperature of the motor and a current second temperature of the driver.
[0060] Among them, the driver is used to drive the motor to operate.
[0061] Exemplarily, the articulated robot may include a motor and a driver. The driver may be used to drive the motor to operate, thereby realizing the movement of the robot joint. During the movement of the articulated robot, the current first temperature of the motor and the current second temperature of the driver are obtained.
[0062] Step S102 : determining predicted operating parameters of the motor based on the first temperature and the second temperature.
[0063] The predicted operating parameters are used to characterize the operating parameters of the motor and the driver when the motor and the driver operate from the current temperature to the preset temperature.
[0064] Furthermore, a predicted operating parameter of the motor is determined based on the current first temperature of the motor and the current second temperature of the driver. Specifically, the predicted operating parameter may represent the operating parameter of the motor and driver when continuously operating from the current temperature at the corresponding peak current to a preset temperature. The preset temperature may represent the limit temperature at which the motor and driver will not burn out. The preset operating parameter may be at least one of operating speed, operating time, and operating torque.
[0065] Step S103: determining a predicted filtering current of the filter based on the predicted operating parameters.
[0066] The filter is used to filter the output current of the driver.
[0067] Step S104: controlling the current of the motor based on the predicted filtered current.
[0068] Furthermore, the predicted filtering current of the filter is determined based on the predicted operating parameters. The filter can be used to filter the output current of the driver. The predicted filtering current after filtering under the predicted operating parameters can be determined based on the predicted operating parameters. Furthermore, the real-time current of the motor can be controlled according to the size of the filtering current.
[0069] In the above implementation process, the operating parameters of the motor and the driver when they run from the current temperature to the preset temperature are predicted in advance, and the predicted filter current of the filter when the motor and the driver run from the current temperature to the preset temperature is determined based on the predicted operating parameters, and the motor current is controlled according to the size of the predicted filter current, so that the current control of the motor can be achieved through the characteristics of the filter, avoiding the problem of low performance of the joint robot due to unreasonable setting of the maximum allowable current of the motor, and then by adjusting the real-time current of the motor in real time to ensure that the motor and the driver are not damaged due to overheating, the output capacity of the motor is maximized, so that the robot joint can exert its maximum performance as much as possible, thereby improving the performance of the robot joint.
[0070] In some embodiments, determining the predicted filter current of the filter based on the predicted operating parameters may include the following steps:
[0071] Step 1: Determine the filter coefficients of the filter based on the predicted operating parameters.
[0072] Step 2: Determine the predicted filter current based on the filter coefficient and the quadrature-axis current of the motor.
[0073] For example, the operating parameters of the motor and the driver when running to the preset temperature are different at different temperatures, and the filter coefficients corresponding to different operating parameters are different. Therefore, the filter coefficient corresponding to the filter under the predicted operating parameters can be determined based on the predicted operating parameters. Furthermore, the predicted filter current of the filter can be predicted based on the filter coefficient and the cross-axis current of the motor.
[0074] In the above implementation process, the current filter coefficient of the filter is determined by predicting the operating parameters, and further, it is convenient to accurately determine the predicted filter current of the filter based on the filter coefficient.
[0075] In some embodiments, the predicted operating parameters include predicted operating time, and determining the filter coefficients of the filter based on the predicted operating parameters may include the following steps:
[0076] Step 1: Get the current filter threshold of the filter and the peak current of the motor.
[0077] Step 2: Determine the filter coefficient based on the predicted run time, the current filter threshold, and the peak current of the motor.
[0078] For example, the predicted operating parameters include predicted operating time. Specifically, the predicted operating parameters may represent the operating time required for the motor and driver to operate from a current temperature at a corresponding peak current to a preset temperature. The preset temperature may be a limit temperature at which the motor and driver do not burn out.
[0079] Specifically, the filter may be used to filter the output current of the driver. The filter may be a first-order low-pass filter, and the motor may be a three-phase permanent magnet synchronous motor.
[0080] To ensure that the motor can exert its maximum output capacity, the motor is set to run at its peak current. That is, the maximum current output by the driver is the peak current of the motor. The process of filtering the current output by the driver by a first-order low-pass filter has the following relationship:
[0081] Among them, I q_filter (t) represents the filtered current after being filtered by a first-order low-pass filter, I prepresents the peak current of the motor, t represents the filtering time, and τ represents the filtering coefficient.
[0082] In order for the filter to perform normal filtering, it is necessary to ensure that the filter current of the motor from the current temperature to the peak current of the motor meets the filtering conditions during the preset temperature period, that is, at least the filter current must be equal to the current filter threshold. Therefore, the filter coefficient can be determined based on the predicted running time, the current filter threshold, and the peak current of the motor. Specifically, the filter coefficient can be determined by the following expression:
[0083] Among them, t p It represents the predicted running time, that is, the time for the motor to continue running at the peak current from the current temperature, τ represents the filter coefficient, I th Represents the current filtering threshold, more specifically, I th The current filter threshold represented by c .
[0084] In the above implementation process, the filter coefficient of the filter under the current predicted operating parameters is determined according to the predicted operating parameters, the current filtering threshold and the peak current of the motor, so that the filter current can be predicted according to the determined filtering coefficient.
[0085] In some embodiments, determining the predicted filtered current based on the filter coefficient and the quadrature-axis current of the motor may include the following steps:
[0086] Step 1: Discretize the filter function to obtain the discretized filter function.
[0087] Step 2: Determine the predicted filter current based on the discretized filter function, filter coefficient, and quadrature-axis current of the motor.
[0088] For example, the first-order low-pass filter function After discretization, the discretized filter function can be obtained:
[0089] Among them, k represents the filter period, ΔT represents the control period of the driver, I q (k) represents the quadrature axis current of the motor in the kth filtering cycle, I q_filter (k) represents the predicted filter current of the kth filter cycle, I q_filter (k-1) represents the predicted filter current of the k-1th filter cycle, and τ represents the filter coefficient.
[0090] Furthermore, the predicted filter current is determined based on the discretized filter function, filter coefficient, and quadrature axis current of the motor. Specifically, the determined filter coefficient τ, the quadrature axis current of the motor in the kth filter cycle, and the predicted filter current I in the k-1th filter cycle are used as the filter coefficients. q_filter Substituting (k-1) and the control period ΔT of the driver into the above expression (3), the predicted filter current in the current filter period can be determined.
[0091] More specifically, the quadrature-axis current of the motor can be determined by the following expression:
[0092] Among them, θ r Indicates the electronic rotor electrical angle, I d Indicates the direct axis current of the motor, I a and I b Represents any two-phase current among the three-phase current of the motor.
[0093] In the above implementation process, the filter function is discretized to obtain a discretized filter function, and the predicted filter current in the current filter cycle is determined based on the discretized filter function, the determined filter coefficient and the current cross-axis current of the motor. Thus, the predicted filter current in each filter cycle is determined based on the discretized filter function, which facilitates the control of the real-time current of the motor.
[0094] In some embodiments, controlling the current of the motor based on the predicted filtered current may include the following steps:
[0095] Step 1: Get the current filter threshold of the filter and the desired current of the driver.
[0096] Step 2: Determine the maximum threshold current of the driver based on the difference between the current filter threshold and the predicted filter current.
[0097] Step 3: Control the motor current based on the maximum threshold current of the driver and the desired current.
[0098] Exemplarily, a filter threshold value for the current filter cycle and a current desired current of the driver are obtained. Furthermore, the real-time current of the motor is controlled based on the difference between the current filter threshold value, the predicted filter current for the current cycle, and the desired current. The desired current of the driver refers to a preset current value output by the driver to the motor.
[0099] Specifically, the maximum threshold current of the driver can be determined based on the size between the current filter threshold and the predicted filter current. Furthermore, the current of the motor can be controlled based on the maximum threshold current of the driver and the size of the expected current. Therefore, during the operation of the motor, the maximum threshold current of the driver can be adjusted according to the size of the predicted filter current, thereby adjusting the real-time current of the motor according to the maximum threshold current of the driver.
[0100] In the above implementation process, the maximum threshold current of the driver is determined based on the size between the current filter threshold and the predicted filter current, so that the maximum threshold current of the driver can be adjusted in real time according to the size of the predicted filter current, and then the real-time current of the motor is controlled according to the adjusted maximum threshold current and the expected current, so that the motor can output maximum torque while avoiding continuous operation of the motor at peak current, which may cause damage to the motor and driver due to excessive temperature.
[0101] In some embodiments, determining the maximum threshold current of the driver based on the difference between the current filtering threshold and the predicted filtering current may include:
[0102] If the predicted filter current is less than or equal to the current filter threshold, the maximum threshold current of the driver is the peak current of the motor.
[0103] If the predicted filter current is greater than the current filter threshold, the maximum threshold current of the driver is the preset current, which is less than the peak current of the motor.
[0104] For example, if the predicted filter current is less than or equal to the current filter threshold, it means that at the current temperature, running the motor at the peak current will not cause the motor and the driver to burn out, and the maximum threshold current of the driver is the peak current of the motor.
[0105] If the predicted filter current is greater than the current filter threshold, it means that running the motor at its peak current at the current temperature will cause the motor and driver to burn out. Therefore, the driver's maximum threshold current needs to be reduced from the peak current to a preset current, which is less than the motor's peak current. Specifically, the preset current can be set to the motor's rated current.
[0106] In the above implementation process, when the predicted filtered current is greater than the current filtering threshold, it indicates that when the motor is operating at its peak current, it is likely to cause damage to the motor or the driver due to overheating. Therefore, it is necessary to reduce the maximum threshold current of the driver. When the desired current of the driver is greater than the reduced maximum threshold current, the motor is controlled to operate at the reduced maximum threshold current (i.e., the preset current), thereby avoiding damage to the motor and the driver due to overheating. When the predicted filtered current is less than or equal to the current filtering threshold, it indicates that when the motor operates at the peak current, it will not cause overheating of the motor or the driver. When the desired current of the driver is greater than the peak current of the motor, the motor is controlled to operate at the peak current, thereby ensuring that the motor outputs the maximum torque and enabling the robot joint to exhibit the maximum performance.
[0107] In some of these embodiments, controlling the current of the motor based on the maximum threshold current and the desired current of the driver includes: controlling the real-time current of the motor to be the smaller value between the maximum threshold current and the desired current of the driver.
[0108] Specifically, controlling the real-time current of the motor to operate at the smaller value between the maximum threshold current and the desired current of the driver can, when the motor is operating, as much as possible control the motor to operate at the desired current and ensure that the motor and the driver are not burned out.
[0109] In some of these embodiments, if the predicted filtered current is greater than the current filtering threshold, the method may further include: updating the current filtering threshold to obtain the filtering threshold for the next filtering cycle.
[0110] Exemplarily, when the predicted filtered current is greater than the current filtering threshold, the current filtering threshold is updated. Specifically, the reduced current filtering threshold is determined as the filtering threshold for the next filtering cycle. When the predicted filtered current is less than or equal to the current filtering threshold, the filtering threshold remains unchanged, that is, the filtering threshold for the next filtering cycle is the same as the filtering threshold for the current cycle.
[0111] Specifically, when I q_filter (k)>I th (k), I lim =I c , and at the same time update the filtering threshold I th (k + 1) = m * I th (k), where I lim represents the maximum threshold current of the driver, I c represents the rated current of the motor, I th (k + 1) represents the filtering threshold for the (k + 1)th cycle, I th (k) represents the filtering threshold for the kth cycle, 0 < m < 1, and the value of m can be selected according to actual needs and is not limited here.
[0112] When I q_filter (k)≤I th (k), I lim =I p , and update the filter threshold I th (k+1)=I th (k), where I lim Indicates the maximum threshold current of the driver, I p Indicates the peak current of the motor, I th (k+1) represents the filtering threshold of k+1 cycles, I th (k) represents the filtering threshold of k cycles.
[0113] It should be noted that the above filtering threshold I th The default value is equal to the rated current I of the motor c .
[0114] Furthermore, when the desired current of the driver is I q_sv , then the current controlling the motor is I q_ref =min(I q_sv ,I lim ).
[0115] In the above implementation process, when the predicted filtering current is greater than the current filtering threshold, the current filtering threshold is updated, so as to facilitate determination of the filtering threshold of the next filtering cycle.
[0116] In some embodiments, determining the predicted operating parameter of the motor based on the first temperature and the second temperature may include the following steps:
[0117] Step 1: Determine a first predicted operating parameter of the motor based on the first temperature and the maximum allowable temperature of the motor.
[0118] Step 2: Determine a second predicted operating parameter of the driver based on the second temperature and the maximum allowable temperature of the driver.
[0119] Step 3: Determine a predicted operating parameter based on the first predicted operating parameter and the second predicted operating parameter.
[0120] Exemplarily, a current first temperature of the motor and a maximum allowable temperature of the motor are obtained, and a first predicted operating parameter is determined when the motor starts from the first temperature and runs at a peak current of the motor to the maximum allowable temperature of the motor.
[0121] The current second temperature of the driver and the maximum allowable temperature of the driver are obtained, and a second predicted operating parameter of the driver when the driver starts from the current second temperature and runs at the peak current of the driver to the maximum allowable temperature of the driver is determined.
[0122] Furthermore, the smaller value of the first predicted operating parameter and the second predicted operating parameter is determined as the final predicted operating parameter.
[0123] Specifically, the predicted operating parameters may include predicted operating time, where the first predicted operating parameter is the first operating time when the motor starts from the current first temperature and runs at the peak current of the motor to the maximum allowable temperature of the motor, and the second predicted operating parameter is the second operating time when the drive starts from the current second temperature and runs at the peak current of the drive to the maximum allowable temperature of the drive.
[0124] As one embodiment, if the current first temperature of the motor is T m The first running time of the motor from the current first temperature to the maximum allowable temperature of the motor at the peak current of the motor is t m , then we can set t m =f(T m ), where f(T m ) can be obtained through offline testing as follows:
[0125] If the current second temperature of the driver is T d The second operating time for the driver to run from the current second temperature at the peak current of the driver to the maximum allowable temperature of the driver is t d , then we can set t d =g(T d ), where g(T d ) can be obtained through offline testing as follows:
[0126] Further, according to the first running time t m and the second running time t d Determine the predicted running time t of the motor p , specifically, predict the running time t p The first running time t m and the second running time t d The smaller value of t p =min(t m ,t d ).
[0127] In the above implementation process, the first predicted operating parameters of the motor and the second predicted operating parameters of the driver are determined, and the final predicted operating parameters are determined based on the first predicted operating parameters and the second predicted operating parameters, so as to ensure that the operation processes of the motor and the driver are within a safe temperature range.
[0128] In some embodiments, before determining the predicted operating parameters of the motor based on the first temperature and the second temperature, the method may further include:
[0129] Determine the size between the first temperature and the maximum allowable temperature of the motor, and the size between the second temperature and the maximum allowable temperature of the driver. When the first temperature is lower than the maximum allowable temperature of the motor and the second temperature is lower than the maximum allowable temperature of the driver, determine the predicted operating parameters of the motor; otherwise, turn off the output of the driver.
[0130] For example, if the maximum allowable temperature of the motor is T m_max , the maximum allowable temperature of the driver is T d_max , then in T m <T m_max And T d <T d_max When T m ≥T m_max or T d ≥T d_max When the output of the driver is turned off, the motor and driver will stop running.
[0131] In the above implementation process, whether the motor and the determiner can continue to operate is determined based on the size between the current temperature of the motor and the driver and the corresponding maximum allowable temperature. When the current temperatures of the motor and the driver are both lower than the corresponding maximum allowable temperature, the motor and the driver can continue to operate, thereby determining the predicted operating parameters of the motor. If the current temperature of any one of the motor and the driver is greater than or equal to the corresponding maximum allowable temperature, the motor and the driver are controlled to stop running, thereby avoiding the motor and the driver from burning due to overheating.
[0132] The present embodiment is described and illustrated below through optional embodiments.
[0133] FIG2 is a flow chart of an embodiment of a current control method provided in an embodiment of the present application. As shown in FIG2 , the current control method includes the following steps:
[0134] Step S201 : determining the quadrature-axis current of the motor according to the phase current of the motor.
[0135] Specifically, the robot joint motor can be a three-phase permanent magnet synchronous motor, which is driven by a driver. FIG3 is a schematic diagram of a current control method provided by an embodiment of the present application. As shown in FIG3 , during the operation of the robot joint, any two-phase current I of the three-phase current of the robot joint motor is obtained. a and I b And perform current conversion on any two-phase current to determine the current quadrature axis current I of the motor qMore specifically, during the current conversion process, the current quadrature axis current I of the motor can be determined according to the above expression (4). q .
[0136] Step S202 : determining a predicted running time of the peak current of the motor according to a current first temperature of the motor and a current second temperature of the driver.
[0137] Furthermore, the motor temperature and the driver temperature are collected to obtain the current first temperature T of the motor. m , and the current second temperature T of the driver d , and according to the first temperature T m and the second temperature T d , determine the predicted running time t of the motor peak current p .
[0138] Specifically, it is determined that the motor is at a first temperature T m , continuously run at the peak current of the motor until the maximum allowable temperature T m_max The first running time t required m , determine the driver from the current second temperature T d , the driver continues to run at the peak current until the maximum allowable temperature T of the motor d_max The required second running time t d , and the first running time t m With the second running time t d The smaller value is determined as the predicted running time t of the motor peak current p , which is the predicted maximum duration of the peak current.
[0139] Step S203 : determining a first-order low-pass filter coefficient according to the predicted running time of the motor peak current.
[0140] Furthermore, according to the predicted running time t of the motor peak current p , determine the first-order low-pass filter coefficient. Since the running time of the motor peak current will affect the filter coefficient of the low-pass filter, and thus affect the size of the filter current, the predicted running time t of the motor peak current can be used to calculate the filter coefficient of the low-pass filter. p , determine the corresponding first-order low-pass filter coefficient.
[0141] Specifically, if the predicted running time t of the motor peak current is p If the motor and driver are not damaged due to overheating, the maximum filter current at this time will not exceed the current filter threshold, and the current filter threshold is set to the rated current I of the joint motor. c , therefore, there exists Further, the current first-order low-pass filter coefficient can be determined as Thus, the current first-order low-pass filter coefficient can be accurately determined.
[0142] Step S204: Determine the filtered current according to the first-order low-pass filter coefficient and the quadrature-axis current of the motor.
[0143] Further, according to the first-order low-pass filter coefficient and the quadrature-axis current of the motor, low-pass filtering is performed to obtain the current filtered current I q_filter .
[0144] Specifically, the first-order low-pass filter function is discretized to obtain the discretized filter function as shown in the above expression (3). The determined first-order low-pass filter coefficient τ, the quadrature-axis current I q (k) of the motor in the current filtering period, the quadrature-axis current in the previous filtering period, and the control period of the drive are input into the above expression (3) to obtain the filtered current I q_filter (k) in the current filtering period.
[0145] Step S205: Determine the maximum threshold current of the driver according to the filtered current and the current filtering threshold.
[0146] Further, judge the magnitude relationship between the filtered current in the current filtering period and the current filtering threshold. If the filtered current I q_filter (k) in the current filtering period is greater than the current filtering threshold I th (k), then the maximum threshold current I lim of the driver is equal to the rated current I c of the motor, and the filtering threshold I th (k + 1) in the next filtering period is updated, that is, I th (k + 1) = m * I th (k). Where 0 < m < 1, the value of m can be selected according to actual needs and is not limited here.
[0147] If the filtered current I q_filter (k) in the current filtering period is less than or equal to the current filtering threshold I th (k), then the maximum threshold current I lim of the driver is equal to the peak current I p of the motor, and the filtering threshold I th (k + 1) in the next filtering period remains unchanged, that is, I th (k + 1) = I th (k) = I c .
[0148] Step S206 , controlling the real-time current of the motor according to the maximum threshold current of the driver and the expected current of the driver.
[0149] Furthermore, the expected current I of the driver is obtained. q_sv , and before controlling the real-time current of the motor according to the maximum threshold current of the driver and the expected current of the driver, it also includes: determining the difference between the current temperature of the motor and the driver and the corresponding maximum allowable temperature, if the current first temperature T of the motor m Less than the maximum allowable temperature T of the motor m_max , and the current second temperature of the driver T d Less than the maximum allowable temperature T of the driver d_max , then the real-time current of the motor is the maximum threshold current I lim The expected current I q_sv The smaller value of .
[0150] If the current first temperature of the motor T m Greater than or equal to the maximum allowable temperature T of the motor m_max , or the current second temperature T of the driver d Greater than or equal to the maximum allowable temperature T of the driver d_max , then turn off the motor and driver.
[0151] FIG4 is an application test waveform diagram of a current control method provided by an embodiment of the present application. In the waveform diagram shown in FIG4 , the horizontal axis represents time in seconds (s), and the vertical axis represents current magnitude in amperes (A). When the peak current I p =10A, rated current I c =5A, the expected current of the driver I q_sv For a 12A pulse, the pulse period is 15s, and the peak current duration is 4s, the following dynamic process occurs: When the desired current of the driver is 12A, the temperature of the motor and driver are not high because they start to run. At this time, I lim =I p =10A, then the real-time current of the controlled motor is 10A; when the motor runs continuously at a current of 10A for 3s, that is, t p = 3s, the temperature of the motor and driver rises, causing I q_filter >I th At this time, I lim =I c =5A, the real-time current of the motor is controlled to be 5A, thereby reducing the real-time current of the motor and avoiding damage to the motor and driver due to overtemperature.
[0152] It should be noted that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the instructions of the arrows, these steps are not necessarily performed in sequence according to the order indicated by the arrows. Unless clearly stated in this application, the execution of these steps is not strictly limited in order, and these steps can be performed in other orders. Moreover, at least a portion of the steps in the flowcharts involved in the above-mentioned embodiments may include multiple steps or multiple stages, and these steps or stages are not necessarily performed at the same time, but can be performed at different times, and the execution order of these steps or stages is not necessarily performed in sequence, but can be performed in turn or alternately with other steps or at least a portion of the steps or stages in other steps.
[0153] This embodiment also provides a current control device 500 for implementing the above-described embodiments and alternative implementations. Details already described are omitted for clarity. The terms "module," "unit," "subunit," and the like used below may refer to a combination of software and / or hardware that implements a predetermined function. Although the devices described in the following embodiments are preferably implemented using software, implementation using hardware, or a combination of software and hardware, is also possible and contemplated.
[0154] FIG5 is a structural block diagram of a current control device 500 provided in an embodiment of the present application. As shown in FIG5 , the device includes:
[0155] An acquisition module 501 is configured to acquire a current first temperature of the motor and a current second temperature of a driver, where the driver is configured to drive the motor to operate;
[0156] A first determining module 502 is configured to predict operating parameters of the motor based on the first temperature and the second temperature, where the predicted operating parameters are used to represent operating parameters of the motor and the driver when the motor and the driver are operated from a current temperature to a preset temperature;
[0157] A second determining module 503 is configured to determine a predicted filtering current of a filter based on the predicted operating parameters, where the filter is configured to filter the output current of the driver;
[0158] The control module 504 is configured to control the current of the motor based on the predicted filtered current.
[0159] In some embodiments, the second determining module 503 is specifically configured to:
[0160] determining a filter coefficient of a filter based on the predicted operating parameters;
[0161] A predicted filtered current is determined based on the filter coefficient and the quadrature-axis current of the motor.
[0162] In some embodiments, the predicted operating parameter includes a predicted operating time, and the second determining module 503 is specifically configured to:
[0163] Get the current filter threshold of the filter and the peak current of the motor;
[0164] The filter coefficient is determined based on the predicted operating time, the current filter threshold, and the peak current of the motor.
[0165] In some embodiments, the second determining module 503 is specifically configured to:
[0166] Discretize the filter function to obtain a discretized filter function;
[0167] The predicted filter current is determined based on the discretized filter function, the filter coefficient, and the quadrature-axis current of the motor.
[0168] In some embodiments, the control module 504 is specifically configured to:
[0169] Get the current filter threshold of the filter and the expected current of the driver;
[0170] Determine the maximum threshold current of the driver based on the difference between the current filter threshold and the predicted filter current;
[0171] The motor current is controlled based on the maximum threshold current of the driver and the desired current.
[0172] In some embodiments, the control module 504 is specifically configured to:
[0173] If the predicted filter current is less than or equal to the current filter threshold, the maximum threshold current of the driver is the peak current of the motor;
[0174] If the predicted filter current is greater than the current filter threshold, the maximum threshold current of the driver is the preset current, which is less than the peak current of the motor.
[0175] In some embodiments, the control module 504 is further configured to control the real-time current of the motor to be a smaller value between the maximum threshold current of the driver and the expected current.
[0176] In some embodiments, the first determining module 502 is specifically configured to: determine a first predicted operating parameter of the motor based on the first temperature and a maximum allowable temperature of the motor;
[0177] determining a second predicted operating parameter of the driver based on the second temperature and a maximum allowable temperature of the driver;
[0178] A predicted operating parameter is determined based on the first predicted operating parameter and the second predicted operating parameter.
[0179] It should be noted that the above modules can be functional modules or program modules, and can be implemented through software or hardware. For modules implemented through hardware, the above modules can be located in the same processor; or the above modules can be located in different processors in any combination.
[0180] An embodiment of the present application provides a current control device 500, which includes a processor 602, which is configured to execute the following program modules stored in a memory 601:
[0181] An acquisition module 501 is configured to acquire a current first temperature of the motor and a current second temperature of a driver, where the driver is configured to drive the motor to operate;
[0182] A first determining module 502 is configured to predict operating parameters of the motor based on the first temperature and the second temperature, where the predicted operating parameters are used to represent operating parameters of the motor and the driver when the motor and the driver are operated from a current temperature to a preset temperature;
[0183] A second determining module 503 is configured to determine a predicted filtering current of a filter based on the predicted operating parameters, where the filter is configured to filter the output current of the driver;
[0184] The control module 504 is configured to control the current of the motor based on the predicted filtered current.
[0185] In one embodiment, a computer device is provided, which may be a server. The computer device includes a processor, a memory, and a network interface connected via a system bus. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of the operating system and computer program in the non-volatile storage medium. The database of the computer device is used to store data. The network interface of the computer device is used to communicate with an external terminal via a network connection. When the computer program is executed by the processor, it implements a current control method.
[0186] Those skilled in the art will understand that the computer device provided in this application is merely a partial structure related to the solution of this application, and does not constitute a limitation on the computer device to which the solution of this application is applied. The specific computer device may include more or fewer components than the above structure, or combine certain components, or have a different component arrangement.
[0187] Referring to FIG. 6 , in one embodiment, an electronic device 600 is provided, including a memory 601 and a processor 602 . The memory 601 stores a computer program, and the processor 602 implements the steps in the above method embodiments when executing the computer program.
[0188] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by the processor 602, the steps in the above-mentioned method embodiments are implemented.
[0189] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties.
[0190] Those skilled in the art will appreciate that all or part of the processes in the above-mentioned embodiment methods can be implemented by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, database or other media used in the embodiments provided in this application may include at least one of non-volatile and volatile memory. Non-volatile memory may include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory may include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in the various embodiments provided herein may include at least one of a relational database and a non-relational database. Non-relational databases may include, but are not limited to, distributed databases based on blockchains. The processor involved in the various embodiments provided herein may be, but are not limited to, a general-purpose processor, a central processing unit, a graphics processing unit, a digital signal processor, a programmable logic unit, a data processing logic unit based on quantum computing, and the like.
[0191] The technical features of the above embodiments can be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0192] The above-described embodiments merely represent several implementation methods of the present application. While the descriptions are relatively specific and detailed, they should not be construed as limiting the scope of patent protection. It should be noted that a person of ordinary skill in the art may make various modifications and improvements without departing from the spirit of the present application, and these modifications and improvements fall within the scope of protection of the present application. Therefore, the scope of protection of the present application shall be determined by the appended claims.
Claims
1. A current control method, characterized in that: include: Acquire a current first temperature of the motor and a current second temperature of a driver, wherein the driver is used to drive the motor to operate; Based on the first temperature and the second temperature, determining a predicted operating parameter of the motor, the predicted operating parameter being used to characterize operating parameters of the motor and the driver when the motor and the driver operate from a current temperature to a preset temperature; Determining a predicted filtering current of a filter based on the predicted operating parameters, the filter being used to filter the output current of the driver; Based on the predicted filtered current, a current of the motor is controlled.
2. The current control method according to claim 1, wherein: The step of determining a predicted filtering current of a filter based on the predicted operating parameter comprises: determining a filter coefficient of the filter based on the predicted operating parameter; The predicted filtered current is determined based on the filter coefficient and the quadrature-axis current of the motor.
3. The current control method according to claim 2, wherein: The predicted operation parameters include a predicted operation time, and determining a filter coefficient of the filter based on the predicted operation parameters includes: Obtaining a current filter threshold of the filter and a peak current of the motor; The filter coefficient is determined based on the predicted operating time, the current filter threshold, and the peak current of the motor.
4. The current control method according to claim 2, wherein: The step of determining the predicted filter current based on the filter coefficient and the quadrature-axis current of the motor includes: Discretize the filter function to obtain a discretized filter function; The predicted filter current is determined based on the discretized filter function, the filter coefficient, and the quadrature-axis current of the motor.
5. The current control method according to claim 1, wherein: The controlling the current of the motor based on the predicted filtered current comprises: Obtaining a current filter threshold of the filter and an expected current of the driver; Determining a maximum threshold current of the driver based on the magnitude between the current filtering threshold and the predicted filtering current; Based on a maximum threshold current of the driver and the desired current, a current of the motor is controlled.
6. The current control method according to claim 5, wherein: The determining the maximum threshold current of the driver based on the magnitude between the current filtering threshold and the predicted filtering current includes: If the predicted filter current is less than or equal to the current filter threshold, the maximum threshold current of the driver is the peak current of the motor; If the predicted filtering current is greater than the current filtering threshold, the maximum threshold current of the driver is a preset current, and the preset current is less than the peak current of the motor.
7. The current control method according to claim 5 or 6, wherein: The controlling the current of the motor based on the maximum threshold current of the driver and the desired current comprises: The real-time current of the motor is controlled to be a smaller value between the maximum threshold current of the driver and the expected current.
8. The current control method according to claim 1, wherein: The step of determining the predicted operating parameter of the motor based on the first temperature and the second temperature includes: determining a first predicted operating parameter of the motor based on the first temperature and a maximum allowable temperature of the motor; determining a second predicted operating parameter of the drive based on the second temperature and a maximum allowable temperature of the drive; The predicted operating parameter is determined based on the first predicted operating parameter and the second predicted operating parameter.
9. A current control device, characterized in that: include: An acquisition module, used for acquiring a current first temperature of the motor and a current second temperature of a driver, wherein the driver is used for driving the motor to operate; A first determination module, configured to predict operating parameters of the motor based on the first temperature and the second temperature, wherein the predicted operating parameters are used to characterize operating parameters of the motor and the driver when the motor and the driver operate from a current temperature to a preset temperature; A second determination module, configured to determine a predicted filtering current of a filter based on the predicted operating parameters, wherein the filter is configured to filter an output current of the driver; A control module is used to control the current of the motor based on the predicted filtered current.
10. An electronic device comprising a memory and a processor, characterized in that: A computer program is stored in the memory, and the processor is configured to run the computer program to perform the current control method according to any one of claims 1 to 8.
11. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the current control method according to any one of claims 1 to 8 are implemented.
Citation Information
Patent Citations
Biped robot motor driving system and intelligent temperature protection method
CN111030559A
Motor control method and device, computer readable storage medium and electrical equipment
CN111245323A
Method and device for adjusting carrier frequency of motor driver
CN112910360A
Current control method and device, electronic device and storage medium
CN116155164A
Electric vehicle and control device of generator and its method
JP2003134609A
