A Servo Stabilization Control Method Based on MEMS Gyroscope
By measuring the load-side angular velocity and data preprocessing with the MEMS gyroscope, combined with the encoder and current data, the full-frequency range stable control of the load side of the servo motor is achieved, solving the problems of load-side speed fluctuation and frequency-dependent vibration suppression, and achieving Stable control and vibration suppression of load side speed.
Patent Information
- Application Number
- CN202410759306.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-13
- Publication Date
- 2024-09-13
- Estimated Expiration
- 2044-06-13
AI Technical Summary
Existing servo stability control methods have frequency dependence in vibration suppression and cannot effectively control in all frequency bands. Moreover, the load-side speed of the motor fluctuates greatly, making it difficult to truly reflect the load-side speed.
A MEMS gyroscope is used to measure the angular velocity of the load side, and combined with the encoder data and motor current data, through data preprocessing and a multi-level regulator structure, the full frequency range stable control of the servo motor load side is achieved, and the control parameters are automatically optimized to set Optimize weights.
It achieves stable speed control on the load side of the servo motor, solves the problem of large speed fluctuations on the load side, does not require human intervention, and can effectively suppress vibration in all frequency bands.
Smart Images

Figure CN118331159B
Abstract
Description
Technical Field
[0001] The invention belongs to the technical field of industrial robots, and specifically provides a servo stabilization control method based on a MEMS gyroscope. Background Art
[0002] In the existing servo stability control methods, in addition to the traditional PID control, there are also various advanced intelligent algorithms, such as robust control, neural network control, adaptive control, etc.; however, the vibrations occurring in the actual system are closely related to factors such as mechanical devices and load inertia, and it is not clear which stability control method to choose to achieve better results. In addition, in the existing vibration suppression strategies, most can only effectively suppress vibrations at specific frequencies; for example, the notch filter can have a good suppression effect on high-frequency vibrations, but the premise is to accurately detect the vibration frequency, otherwise it will lead to failure of vibration suppression; for example, the observer feedback strategy can effectively suppress low-frequency vibrations, but how to select appropriate controller parameters is not clear; for example, the input shaping control in passive control is widely used, but it is only suitable for vibration suppression with a small inertia ratio. Furthermore, the motor often needs to be connected to various loads through a reducer, and the reducer and the load often have flexible links. At this time, the speed fluctuation on the motor side cannot truly reflect the speed fluctuation on the load side, resulting in a large speed fluctuation on the load side. Based on this, the present invention proposes a servo stability control method based on a MEMS gyroscope. Summary of the invention
[0003] The purpose of the present invention is to provide a servo stability control method based on a MEMS gyroscope, so as to achieve stable control of the speed on the load side of a servo motor and solve the problem of large speed fluctuation on the load side of the motor. The present invention introduces a MEMS gyroscope and achieves servo stability control by sampling the sensor data of the MEMS gyroscope, so as to achieve stable control for all frequency bands.
[0004] To achieve the above object, the technical solution adopted by the present invention is:
[0005] A servo stabilization control method based on a MEMS gyroscope comprises the following steps:
[0006] Step 1. Set the gyroscope on the load side of the servo motor and measure the angular velocity of the load side through the gyroscope;
[0007] Step 2. The servo microcontroller collects gyroscope data, encoder data, and motor current data, and performs data preprocessing on the collected data respectively; among which, the gyroscope data is the load side angular velocity ω be , which is converted into load-side speed ω2 after data preprocessing; the encoder data is the motor position θ; the motor current data is the three-phase alternating current of the motor, which is converted into direct current Iq after data processing;
[0008] Step 3. Introduce the gyroscope data, encoder data and motor current data after data preprocessing into the motor control system to complete the motor control.
[0009] Furthermore, in step 3, the motor control process is:
[0010] Step 3-1. The main controller sends the expected position θ*, and the expected position θ* is subtracted from the output of the position sampling transfer function C0(s) to obtain the deviation and input it to the position regulator C p ; Among them, the input of the position sampling transfer function C0(s) is the motor position θ;
[0011] Step 3-2. Position Regulator C p The output and speed sampling ratio function C n The output is used for difference calculation, and the deviation is input to the speed regulator C v (s); where the speed sampling ratio function C n The input of (s) is the motor side speed and the load side speed;
[0012] Step 3-3. Speed regulator C v The output of (s) is subtracted from the output of the current sampling transfer function C2(s) to obtain the deviation and input it to the current regulator C I (s); wherein the input of the current sampling transfer function C2(s) is the direct current Iq;
[0013] Step 3-4. Current Regulator C I The output of (s) passes through the inverter unit C in turn. u (s), servo motor unit C m (s) is calculated to obtain the motor torque current Iq*;
[0014] Step 3-5. Input the motor torque current Iq* to the motor torque transfer function K t , get the motor electromagnetic torque Te;
[0015] Step 3-6. The motor electromagnetic torque Te drives the motor to run, and the motor drives the load to move.
[0016] Furthermore, in step 3-1, the position sampling transfer function C0(s) is expressed as:
[0017] ,
[0018] Where s represents the symbol of the complex frequency domain variable, T sp is the position sampling delay time, Q p is the position sampling gain coefficient, T fpis the position filtering coefficient;
[0019] Position regulator C p It is expressed as: , where K pp is the proportional coefficient of the position regulator.
[0020] Furthermore, in step 3-2, the speed sampling ratio function C n It is expressed as:
[0021] ,
[0022] Among them, k1 is the motor side speed sampling weight, k2 is the load side speed sampling weight; ω1 is the motor side speed, ω2 is the load side speed, which is obtained by the speed sampling transfer function C1(s);
[0023] The speed sampling transfer function C1(s) is expressed as:
[0024] ,
[0025] Among them, T sv is the speed sampling delay time, Q v is the speed sampling gain coefficient, T fv is the speed filtering coefficient;
[0026] The motor speed is given by the differential function C d (s) is obtained, the motor position θ is obtained through the differential function C d (s) performs differential operation to obtain the motor side speed;
[0027] Speed Regulator C v (s) is expressed as:
[0028] ,
[0029] Among them, K vp is the proportional coefficient of the speed regulator, T vi is the integral time constant of the speed regulator.
[0030] Furthermore, in step 3-2, the motor side speed sampling weight k1 and the load side speed sampling weight k2 are set by automatic optimization, and the optimal weights are fixed in the motor control program; the specific process of automatic optimization is:
[0031] Taking the motor-side speed sampling weight k1 and the load-side speed sampling weight k2 as the optimization targets, the motor-side speed sampling weight k1 and the load-side speed sampling weight k2 are set, the value range of k1 is [0.5~1]; the value range of k2 is [0~0.5], the adjustment step of the motor-side speed sampling weight k1 is set to 0.1, and the adjustment step of the load-side speed sampling weight k2 is set to 0.05, and the parameters of the motor-side speed sampling weight k1 and the load-side speed sampling weight k2 are scanned; the absolute value of the load-side angular velocity under each parameter pair |ω is recorded be |, search |ω be |, and take the parameter pair corresponding to the minimum value as the optimal weight.
[0032] Furthermore, in step 3-3, the current sampling transfer function C2(s) is expressed as:
[0033] ,
[0034] Where s represents the symbol of the complex frequency domain variable, T si is the current sampling delay time, Q i is the current sampling gain factor, T fi is the current filtering coefficient;
[0035] Current Regulator C I (s) is expressed as:
[0036] ,
[0037] Among them, K Ip is the proportionality factor of the current regulator, T Ii is the integral time constant of the current regulator.
[0038] Furthermore, in step 3-4, the inverter unit C u (s) is expressed as:
[0039] ,
[0040] Among them, T pwm is the switching cycle, K pwm is the power device gain factor, T dt is the dead time;
[0041] Servo motor unit C m (s) is expressed as:
[0042] ,
[0043] Among them, R s is the winding resistance, L q is the quadrature-axis inductance.
[0044] Furthermore, in step 3-5, the motor torque transfer function K t It is expressed as:
[0045] ,
[0046] Among them, N p is the number of motor pole pairs, is the permanent magnet flux.
[0047] Based on the above technical solution, the beneficial effects of the present invention are:
[0048] The present invention provides a servo stability control method based on a MEMS gyroscope, which introduces a gyroscope on the load side of a servo motor, measures the angular velocity of the load side by the gyroscope, and then collects the load side rotation speed, and further realizes stable control of the load side rotation speed of the servo motor together with encoder data (motor position and motor side rotation speed) and motor current data, thereby solving the problem of large fluctuation of the motor load side rotation speed. In addition, the present invention can solve the problem of stable control in the entire frequency band. At the same time, control parameters related to the gyroscope data weight are set through automatic optimization to achieve stable control without human intervention. BRIEF DESCRIPTION OF THE DRAWINGS
[0049] Figure 1 It is a schematic diagram of the motor control flow of the servo stabilization control method based on MEMS gyroscope in the present invention. DETAILED DESCRIPTION
[0050] In order to make the purpose, technical solution and beneficial effects of the present invention more clearly understood, the present invention is further described in detail below with reference to the accompanying drawings and embodiments.
[0051] This embodiment provides a servo stabilization control method based on a MEMS gyroscope, which specifically includes the following steps:
[0052] Step 1. Set the gyroscope on the load side of the servo motor and measure the angular velocity ω of the load side through the gyroscope be ; At the same time, the servo microcontroller unit (MCU) sets the SPI peripheral or IIC peripheral to collect gyroscope data;
[0053] In this embodiment, the SPI peripheral or the IIC peripheral can be used to collect gyroscope data at a speed greater than 3Mbit / s, and has a high priority interrupt, which is convenient for timely receiving gyroscope data and quickly adding calculations and motor control;
[0054] Step 2. The servo microcontroller unit collects gyroscope data, encoder data and motor current data, and performs data preprocessing on the collected data respectively;
[0055] The gyroscope data is the load side angular velocity ω be The data preprocessing process includes: firstly, communication verification and frame loss detection are performed on the gyroscope data, and then the load side angular velocity ω be Converted to load side speed ω2, the specific conversion process is:
[0056] ,
[0057] Where i is the reduction ratio of the reducer; servo motors are usually matched with reducers, thus obtaining the above conversion formula;
[0058] The encoder data is the motor position θ, and its data preprocessing process includes: performing communication verification and frame loss detection on the encoder data;
[0059] The motor current data is the three-phase alternating current (U, V, W current) of the motor, and its data preprocessing process includes: firstly, low-pass filtering the motor current data to obtain stable current data, and then converting the current data into direct current Iq;
[0060] In this embodiment, the servo microcontroller collects gyroscope data through an SPI peripheral or an IIC peripheral, collects motor current data through an ADC peripheral, and collects encoder data through a 485 module; and both the gyroscope data and the encoder data contain verification data. To ensure the accuracy of the received data, communication verification and frame loss detection are required to complete data preprocessing; in addition, it should be noted that the load side speed and the motor side speed need to be used in the subsequent motor control process. To ensure that the two are in the same dimension, the load side angular velocity ω needs to be be (gyroscope data) is converted into load side speed ω2, and the motor position θ (encoder data) is converted into motor side speed ω1 through differential operation;
[0061] Step 3. Introduce the gyroscope data, encoder data and motor current data into the motor control system to complete the motor control;
[0062] According to the system architecture of the servo stabilization control method based on MEMS gyroscope, the control system is modularized and the system closed-loop control process based on the complex frequency domain s is obtained, such as Figure 1 As shown, specifically:
[0063] Step 3-1. The main controller sends the expected position θ*, and the expected position θ* is subtracted from the output of the position sampling transfer function C0(s) to obtain the deviation and input it to the position regulator C p ;
[0064] The input of the position sampling transfer function C0(s) is the motor position θ, which is specifically expressed as:
[0065] ,
[0066] Where s is the symbol of the complex frequency domain variable, T sp is the position sampling delay time, Q p is the position sampling gain coefficient, T fp is the position filtering coefficient, then represents the transfer function of a first-order low-pass filter;
[0067] The position regulator C p Adopt single gain proportional regulation, the proportional coefficient is K pp , specifically expressed as: ;
[0068] Step 3-2. Position Regulator C p The output and speed sampling ratio function C n The output is used for difference calculation, and the deviation is input to the speed regulator C v (s);
[0069] The speed sampling ratio function C n The input is the motor side speed and the load side speed, which can be expressed as:
[0070] ,
[0071] Among them, k1 is the motor side speed sampling weight, k2 is the load side speed sampling weight, 0.5≤k1≤1, 0≤k2≤0.5; ω1 is the sampling value of the motor side speed, ω2 is the sampling value of the load side speed, which is obtained by the speed sampling transfer function C1(s);
[0072] The speed sampling transfer function C1(s) is specifically expressed as:
[0073] ,
[0074] Among them, T sv is the speed sampling delay time, Q v is the speed sampling gain coefficient, T fv is the speed filtering coefficient;
[0075] The motor side speed is given by the differential function C d (s) is obtained, the motor position θ is obtained through the differential function C d (s) performs differential operation to obtain the motor side speed;
[0076] The speed regulator C v (s) adopts proportional integral regulation, which is specifically expressed as:
[0077] ,
[0078] Among them, K vp is the proportional coefficient of the speed regulator, T vi is the integral time constant of the speed regulator;
[0079] Step 3-3. Speed regulator C v The output of (s) is subtracted from the output of the current sampling transfer function C2(s) to obtain the deviation and input it to the current regulator C I (s);
[0080] The input of the current sampling transfer function C2(s) is direct current Iq, which is specifically expressed as:
[0081] ,
[0082] Among them, T si is the current sampling delay time, Q i is the current sampling gain factor, T fi is the current filtering coefficient;
[0083] The current regulator C I (s) Proportional integral regulation is adopted, which is specifically expressed as:
[0084] ,
[0085] Among them, K Ip is the proportionality factor of the current regulator, T Ii is the integral time constant of the current regulator;
[0086] Step 3-4. Current Regulator C I The output of (s) passes through the inverter unit C in turn. u (s), servo motor unit C m (s) is calculated to obtain the motor torque current Iq*;
[0087] The inverter unit C u The transfer function of (s) needs to consider the switching action delay, dead zone effect and power device gain, which can be expressed as:
[0088] ,
[0089] Among them, T pwm is the switching cycle, K pwm is the power device gain factor, T dt is the dead time;
[0090] The servo motor unit C mThe transfer function of (s) is derived from the state equation. Here, it is the transfer function of the Q-axis current to the Q-axis voltage, so the influence of the rotation voltage is ignored. It is specifically expressed as:
[0091] ,
[0092] Among them, R s is the winding resistance, L q is the quadrature-axis inductance;
[0093] Step 3-5. Input the motor torque current Iq* to the motor torque transfer function K t , get the motor electromagnetic torque Te (Nm);
[0094] The motor torque transfer function K t It is expressed as:
[0095]
[0096] Among them, N p is the number of motor pole pairs, is the permanent magnet flux; since the system adopts an equal-amplitude coordinate transformation system, the motor torque current Iq* is two-phase controlled, and the motor is three-phase controlled, so the motor torque transfer function has a coefficient of 3 / 2;
[0097] Step 3-6. The motor electromagnetic torque Te drives the motor to run, and the motor drives the load to move.
[0098] Furthermore, in step 3-2, the motor side speed sampling weight k1 and the load side speed sampling weight k2 are set by automatic optimization, and the optimal weight is fixed in the motor control program; the specific process is:
[0099] Taking the motor-side speed sampling weight k1 and the load-side speed sampling weight k2 as the optimization targets, the motor-side speed sampling weight k1 and the load-side speed sampling weight k2 are set, the value range of k1 is [0.5~1.0], and the value range of k2 is [0~0.5]; the adjustment step of the motor-side speed sampling weight k1 is set to 0.1, and the adjustment step of the load-side speed sampling weight k2 is set to 0.05, and the parameters of the motor-side speed sampling weight k1 and the load-side speed sampling weight k2 are scanned; the absolute value of the load-side angular velocity under each parameter pair |ω is recorded be |, search |ω be |, and take the parameter pair corresponding to the minimum value as the optimal weight.
[0100] In summary, the present invention introduces a MEMS gyroscope and combines gyroscope data, encoder data and motor current data to achieve servo stability control, which can achieve stable control for all frequency bands and effectively solve the problem of large speed fluctuation on the load side in the prior art.
[0101] The above description is only a specific implementation mode of the present invention. Any feature disclosed in this specification, unless otherwise stated, can be replaced by other alternative features that are equivalent or have similar purposes; all the disclosed features, or all the steps in the methods or processes, except for mutually exclusive features and / or steps, can be combined in any way.
Claims
1. A servo stabilization control method based on MEMS gyroscope, characterized in that: The following steps are involved: Step 1. Set the gyroscope on the load side of the servo motor and measure the angular velocity of the load side through the gyroscope; Step 2. The servo microcontroller collects gyroscope data, encoder data, and motor current data, and performs data preprocessing on the collected data respectively; among which, the gyroscope data is the load side angular velocity ω be , which is converted into load-side speed ω2 after data preprocessing; the encoder data is the motor position θ; the motor current data is the three-phase alternating current of the motor, which is converted into direct current Iq after data processing; Step 3. Introduce the gyroscope data, encoder data and motor current data after data preprocessing into the motor control system to complete the motor control; the motor control process is: Step 3-1. The main controller sends the expected position θ*, and the expected position θ* is subtracted from the output of the position sampling transfer function C0(s) to obtain the deviation and input it to the position regulator C p ; Among them, the input of the position sampling transfer function C0(s) is the motor position θ; the position sampling transfer function C0(s) is expressed as: , Where s represents the symbol of the complex frequency domain variable, T sp is the position sampling delay time, Q p is the position sampling gain coefficient, T fp is the position filtering coefficient; Position regulator C p It is expressed as: , where K pp is the proportional coefficient of the position regulator; Step 3-2. Position Regulator C p The output and speed sampling ratio function C n The output is used for difference calculation, and the deviation is input to the speed regulator C v (s); where the speed sampling ratio function C n The input is the motor side speed and the load side speed; the speed sampling ratio function C n It is expressed as: , Among them, k1 is the motor side speed sampling weight, k2 is the load side speed sampling weight; ω1 is the motor side speed, ω2 is the load side speed, which is obtained by the speed sampling transfer function C1(s); The speed sampling transfer function C1(s) is expressed as: , Among them, T sv is the speed sampling delay time, Q v is the speed sampling gain coefficient, T fv is the speed filtering coefficient; Speed Regulator C v (s) is expressed as: , Among them, K vp is the proportional coefficient of the speed regulator, T vi is the integral time constant of the speed regulator; Step 3-3. Speed regulator C v The output of (s) is subtracted from the output of the current sampling transfer function C2(s) to obtain the deviation and input it to the current regulator C I (s); wherein, the input of the current sampling transfer function C2(s) is the direct current Iq; the current sampling transfer function C2(s) is expressed as: , Where s represents the symbol of the complex frequency domain variable, T si is the current sampling delay time, Q i is the current sampling gain factor, T fi is the current filtering coefficient; Current Regulator C I (s) is expressed as: , Among them, K Ip is the proportionality factor of the current regulator, T Ii is the integral time constant of the current regulator; Step 3-4. Current Regulator C I The output of (s) passes through the inverter unit C in turn. u (s), servo motor unit C m (s) is calculated to obtain the motor torque current Iq*; the inverter unit C u (s) is expressed as: , Where s represents the symbol of the complex frequency domain variable, T pwm is the switching cycle, K pwm is the power device gain factor, T dt is the dead time; Servo motor unit C m (s) is expressed as: , Among them, R s is the winding resistance, L q is the quadrature-axis inductance; Step 3-5. The motor torque current Iq* passes through the motor torque transfer function K t , get the motor electromagnetic torque Te; motor torque transfer function K t It is expressed as: , Among them, N p is the number of motor pole pairs, is the permanent magnet flux; Step 3-6. The motor electromagnetic torque Te drives the motor to run, and the motor drives the load to move.
2. The servo stabilization control method based on MEMS gyroscope according to claim 1, characterized in that: In step 3-2, the motor side speed sampling weight k1 and the load side speed sampling weight k2 are set by automatic optimization, and the optimal weights are fixed in the motor control program; the specific process of automatic optimization is: Taking the motor-side speed sampling weight k1 and the load-side speed sampling weight k2 as the optimization targets, the motor-side speed sampling weight k1 and the load-side speed sampling weight k2 are set, the value range of k1 is [0.5~1]; the value range of k2 is [0~0.5], the adjustment step of the motor-side speed sampling weight k1 is set to 0.1, and the adjustment step of the load-side speed sampling weight k2 is set to 0.05, and the parameters of the motor-side speed sampling weight k1 and the load-side speed sampling weight k2 are scanned; the absolute value of the load-side angular velocity under each parameter pair |ω is recorded be |, search |ω be |, and take the parameter pair corresponding to the minimum value as the optimal weight.
Citation Information
Patent Citations
Sliding mode adaptive controller with built-in brushless DC motor current loop control for two-wheeled self-balancing robot
CN106452206A
Gyroscope stabilized platform drifting inhibition method for high-speed rolling carrier
CN106843293A
Inertial platform hybrid servo control loop
CN107102546A
On-orbit spacecraft gyroscope and star sensor fault diagnosis method based on principal component analysis
CN114923503A
Electronic component mounting apparatus
JP2008091856A
