Motor control system

By independently setting up freewheeling and drive circuits in the motor control system, and directly detecting torque current for closed-loop current control, the problems of complex software and poor reliability of FOC control schemes are solved, and accurate measurement of torque current and improved system reliability are achieved.

CN123144677APending Publication Date: 2026-11-20ZHONGNENG LOW CARBON ENVIRONMENTAL PROTECTION (SHENZHEN) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611424162.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-09-11
Publication Date
2026-11-20

AI Technical Summary

Technical Problem

Existing FOC control schemes are complex and unreliable in motor control, requiring multiple current sensors and complex software calculations.

Method used

A motor control system is constructed, including a control module, a power drive module, a freewheeling module, and a current sensing module. The torque current is detected through independent freewheeling and drive circuits, and current closed-loop control is performed directly, reducing complex coordinate transformations and software calculations.

Benefits of technology

It enables accurate measurement of torque current, reduces software algorithm complexity and hardware cost, and improves system reliability and efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123144677A_ABST
    Figure CN123144677A_ABST
Patent Text Reader

Abstract

The application discloses a motor control system, which comprises a control module, a power drive module, a freewheeling module, a load module and a current sensing module. The power drive module is used for entering a first state or a second state according to the control of the control module, and a drive loop is formed in the first state, so that a driving current is provided to the winding of the motor by the drive loop through a direct current power supply. The freewheeling module is used for forming a freewheeling loop when the power drive module is in the second state, so that an inductive potential generated by the winding of the motor is used to provide a current to the load module through the freewheeling loop. The current sensing module is used for detecting the sum of the currents in the drive loop and the freewheeling loop, so as to obtain a torque current detection signal. The control module is used for performing current closed-loop control on the motor according to the torque current detection signal. The technical scheme of the application greatly reduces the complexity of the software algorithm and improves the system reliability.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of electric motors, and more particularly to an electric motor control system. Background Technology

[0002] Permanent magnet synchronous motors (PMSMs) and three-phase asynchronous motors are widely used in industrial automation, new energy vehicles, and home appliances due to their high efficiency and high power density. In closed-loop control of motors, Field-Oriented Control (FOC) is currently one of the most mainstream control strategies.

[0003] Taking a three-phase motor as an example, the core idea of ​​FOC control is to decompose the stator current of the three-phase motor into excitation and torque components through coordinate transformation, and then perform closed-loop regulation separately to achieve independent control of torque and magnetic field. In the implementation of FOC control, firstly, the phase current of at least two phases of the motor's three-phase windings needs to be obtained through a current sampling circuit. Then, the controller performs Clarke and Park transformations on the sampled three-phase currents to obtain the current components in the rotating coordinate system. These components are then subjected to a series of operations, including PI regulation, inverse Park transformation, and pulse width modulation, ultimately generating the PWM signal to drive the switching transistors.

[0004] In practical applications, the aforementioned FOC control scheme requires not only at least two independent current sensors to sample at least two phase currents, but also complex software calculations to determine the electromagnetic torque. Therefore, the existing FOC control scheme suffers from software complexity and poor reliability. Summary of the Invention

[0005] The technical problem to be solved by this application is to provide a motor control system that addresses the aforementioned technical defects of complex software and poor reliability in the existing technology.

[0006] The technical solution adopted by this application to solve its technical problem is: constructing a motor control system for controlling a motor, including: a control module, a power drive module, a freewheeling module, a load module, and a current sensing module; wherein, The power drive module is connected between the DC power supply and the winding of the motor, and is used to enter a first state or a second state according to the control of the control module, and form a drive circuit in the first state so that the DC power supply provides drive current to the winding of the motor through the drive circuit. The freewheeling module is connected between the winding of the motor and the load module, and is used to form a freewheeling circuit when the power drive module is in the second state, so that the inductive electromotive force generated by the winding of the motor provides current to the load module through the freewheeling circuit; The current sensing module is used to detect the sum of the currents in the drive circuit and the freewheeling circuit to obtain a torque current detection signal. The control module is used to generate a drive control signal for the power drive module based on the torque current detection signal, so as to perform current closed-loop control on the motor.

[0007] Optionally, the current sensing module includes a magnetic induction type current sensor. The current sensor includes an iron core and a first current coil and a second current coil wound on the iron core with the same number of turns. The first current coil is connected in series in the drive circuit, and the second current coil is connected in series in the freewheeling circuit. The output terminal of the current sensor outputs a torque current detection signal.

[0008] Optionally, a first end of the first current coil is connected to the positive terminal of the DC power supply, and a second end of the first current coil is connected to the first terminal of the power drive module; or, The first end of the first current coil is connected to the second end of the power drive module, and the second end of the first current coil is connected to the negative end of the DC power supply.

[0009] Optionally, the first end of the second current coil is connected to the negative terminal of the load module, and the second end of the second current coil is connected to the second terminal of the freewheeling module; or, The first end of the second current coil is connected to the first end of the freewheeling module, and the second end of the second current coil is connected to the positive end of the load module.

[0010] Optionally, it also includes a speed sensing module, wherein, The speed sensing module is used to detect the rotor speed of the motor to obtain a speed detection signal; The control module is used to generate a drive control signal for the power drive module based on the torque current detection signal and the speed detection signal, so as to perform dual closed-loop control of the motor in terms of current and speed.

[0011] Optionally, the control module includes: a current feedback unit, a current regulator, a speed regulator, a speed feedback unit, and a pulse width modulation unit, wherein... The current feedback unit is used to process the torque current detection signal received from the current sensing module, and send the processed torque current detection signal as a current feedback value to the current regulator. The speed feedback unit is used to process the speed detection signal received from the speed sensing module, and send the processed speed detection signal as a speed feedback value to the speed regulator. The speed regulator is used to perform PID calculations based on the speed setpoint and the speed feedback value, and generate a current setpoint. The current regulator is used to perform PID calculations based on the current setpoint and the current feedback value, and generate a duty cycle control signal. The pulse width modulation unit is used to generate PWM drive signals for each switching transistor in the power drive module according to the duty cycle control signal.

[0012] Optionally, the pulse width modulation unit is used to generate PWM drive signals for each switching transistor in the power drive module using a sinusoidal pulse width modulation algorithm or a space vector pulse width modulation algorithm.

[0013] Optionally, the pulse width modulation unit is used to generate PWM drive signals for each switch in the power drive module using one of the following five switching control modes, wherein the switching control modes include: simultaneous modulation of the upper and lower bridge arm switches; modulation of the upper bridge arm switch, with the corresponding lower bridge arm switch constantly on; modulation of the lower bridge arm switch, with the corresponding upper bridge arm switch constantly on; modulation of the first 60° interval and constant on the last 60° interval within the 120° range of each switch conduction; and constant on the first 60° interval and modulation of the last 60° interval within the 120° range of each switch conduction.

[0014] Optionally, the motor is a three-phase motor; the power drive module is a three-phase bridge inverter module; The freewheeling module includes three upper freewheeling diodes and three lower freewheeling diodes. The negative terminals of the three upper freewheeling diodes are connected in parallel and serve as the first terminal of the freewheeling module. The positive terminals of the three lower freewheeling diodes are connected in parallel and serve as the second terminal of the freewheeling module. The positive terminals of the three upper freewheeling diodes are respectively connected to the windings of the corresponding phases of the three-phase motor, and the negative terminals of the three lower freewheeling diodes are respectively connected to the windings of the corresponding phases of the three-phase motor.

[0015] Optionally, the load module is a capacitor or a resistor.

[0016] In the technical solution of this application, since the power drive module and the freewheeling module are set independently, the freewheeling circuit formed by the freewheeling module is physically separated from the drive circuit formed by the power drive module. Furthermore, since the current in the drive circuit is the torque current provided by the DC power supply, and the current in the freewheeling circuit is the torque current released by the inductor (motor winding), the torque current detection signal obtained by the current sensing module by detecting the sum of the currents in the drive circuit and the freewheeling circuit can characterize the torque current, achieving accurate measurement of the torque current. Based on this, the control module can directly perform current closed-loop control based on this torque current detection signal, without needing complex calculations such as Clark and Park transformations of the motor winding phase currents. Therefore, the complexity of the software algorithm is greatly reduced, the computational load and hardware cost of the control module are reduced, and the system reliability is improved. Attached Figure Description

[0017] To more clearly illustrate the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort. In the drawings: Figure 1 This is a logic structure diagram of a motor control system in one embodiment of the present invention; Figure 2 This is a schematic diagram of the structure of a magnetic induction current sensor in one embodiment of the present invention; Figure 3 This is a circuit diagram of a motor control system according to an embodiment of the present invention; Figure 4A yes Figure 3 The diagram shows the current of the motor control system in the first state. Figure 4B yes Figure 3 The diagram shows the current of the motor control system in the second state. Figure 5 This is a circuit diagram of a motor control system according to an embodiment of the present invention; Figure 6 This is a circuit diagram of a motor control system according to an embodiment of the present invention; Figure 7 This is a logical structure diagram of the control module in one embodiment of the present invention; Figure 8A This is a schematic diagram of the induced electromotive force of each phase winding of the motor and the PWM control signal of each switching transistor in a PWM_ON control mode according to an embodiment of the present invention. Figure 8BThis is a schematic diagram of the induced electromotive force of each phase winding of the motor and the PWM control signal of each switching transistor in an embodiment of the present invention under ON_PWM control mode. Figure 9 This is a circuit structure diagram of a three-phase bridge inverter module and a freewheeling module in one embodiment of the present invention; Figure 10 This is a circuit structure diagram of the pre-drive circuit, power drive module and freewheeling module in one embodiment of the present invention; Figure 11 This is a circuit structure diagram of the pre-drive circuit, power drive module and freewheeling module in one embodiment of the present invention; Figure 12 This is a circuit structure diagram of the pre-drive circuit, power drive module and freewheeling module in one embodiment of the present invention; Figure 13 This is a circuit structure diagram of the pre-drive circuit, power drive module and freewheeling module in one embodiment of the present invention; Figure 14 This is a circuit structure diagram of the pre-drive circuit, the three-phase bridge inverter module and the freewheeling module in one embodiment of the present invention; Figure 15 This is a circuit diagram of a motor control system according to an embodiment of the present invention. Detailed Implementation

[0018] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.

[0019] First, before introducing the motor control scheme of this invention, it should be noted that for a three-phase brushless DC motor or servo motor, the torque equation is: in, i u , i v , i w The motor has three phases ( u , v , w The current of ) e u , e v , e w These are the back electromotive forces (BEMF) of the three phases of the motor. ωm T is the mechanical angular velocity of the motor. e It is electromagnetic torque.

[0020] For sinusoidal servo motors and square wave brushless motors, their electromagnetic power equations are: in, This refers to electromagnetic power.

[0021] For an ideal square-wave brushless DC motor with a three-phase star connection, if a traditional three-phase bridge inverter circuit topology and commutation logic are used, the electromagnetic torque of the motor is approximately: in, I is the amplitude of the back electromotive force. o This is the DC bus current. When the power switch is on, this current is used directly. When the power switch is off, the current reverses, so special handling of the absolute value is required.

[0022] According to the above formula, by controlling the absolute value of the DC bus current |I o This method enables control of electromagnetic torque and can currently be applied to the control of low-cost brushless DC motors. However, the above analysis is based on an ideal state where only two phases are conducting at any given time. In reality, due to the inductance of the motor windings, current flows through all three phases simultaneously during commutation. Depending on the PWM modulation method, an internal circulating current will form within the inverter bridge, causing the DC bus current to fail to accurately reflect the current generating the electromagnetic torque. Therefore, control methods based on the DC bus current can only be applied to approximate torque control or overcurrent protection control.

[0023] Since the above-mentioned control method based on DC bus current cannot achieve accurate detection of motor torque, this invention proposes a control scheme that can achieve accurate control of motor torque.

[0024] Figure 1 This is a logic diagram of a motor control system according to an embodiment of the present invention. The motor control system of this embodiment includes a control module 11, a power drive module 12, a freewheeling module 13, a load module 14, and a current sensing module 15. The motor can be a brushless DC motor or a servo motor. The load module 14 can be, for example, a capacitor, a resistor, or other devices, preferably an energy storage capacitor. The power drive module 12 is connected to a DC power supply V. dcThe power drive module 12 is connected to the motor windings and is used to enter a first state (conduction state) or a second state (freewheeling state) according to the control of the control module 11. In the first state, a drive circuit is formed so that the DC power supply provides drive current to the motor windings through the drive circuit. The freewheeling module 13 is connected between the motor windings and the load module 14 and is used to form a freewheeling circuit when the power drive module 12 is in the second state. This freewheeling circuit is independent of the drive circuit so that the inductive electromotive force generated by the motor windings provides current to the load module 14 through the freewheeling circuit. The current sensing module 15 is used to detect the sum of the currents in the drive circuit and the freewheeling circuit to obtain a torque current detection signal. The control module 11 is used to generate a drive control signal for the power drive module 12 based on the torque current detection signal to perform closed-loop current control of the motor.

[0025] In this embodiment, the power drive module and the freewheeling module are set up independently. This physically separates the freewheeling circuit formed by the freewheeling module from the drive circuit formed by the power drive module. Furthermore, since the current in the drive circuit is the torque current supplied by the DC power supply, and the current in the freewheeling circuit is the torque current released by the inductor (motor winding), the torque current detection signal obtained by the current sensing module by detecting the sum of the currents in the drive circuit and the freewheeling circuit can characterize the torque current, achieving accurate measurement of the torque current. Based on this, the control module can directly perform current closed-loop control based on this torque current detection signal, without needing complex calculations such as Clark and Park transformations of the motor winding phase currents. Therefore, the complexity of the software algorithm is greatly reduced, the computational load of the control module and hardware costs are lowered, and system reliability is improved.

[0026] It should be understood that in some embodiments, the motor may be a single-phase motor, a two-phase motor, a three-phase motor, or even a motor with more than one phase. Accordingly, the power drive module and the freewheeling module will also have various topologies. For example, when the motor is a single-phase motor, the power drive module may be a single-phase H-bridge topology or a half-bridge topology; when the motor is a three-phase motor, the power drive module may be a three-phase bridge inverter module.

[0027] Furthermore, in an optional embodiment, the current sensing module includes a magnetically inductive current sensor, such as... Figure 2 As shown, the current sensor includes an iron core Tc and a first current coil X1 and a second current coil X2 wound on the iron core Tc with the same number of turns. The first current coil X1 is connected in series in the drive circuit, and the second current coil X2 is connected in series in the freewheeling circuit. The output terminal of the current sensor outputs a torque current detection signal.

[0028] Furthermore, such as Figure 2As shown, the iron core Tc is a toroidal iron core with an air gap, and the cross-sectional area of ​​the toroidal iron core is equal at all points. A magnetic sensitive device is placed in the air gap, such as a Hall effect device Ha, or a magnetoresistive device, etc. In use, two current coils are connected to an external current loop, and an excitation current is provided externally. The Hall effect device Ha outputs a voltage proportional to the magnetic flux density of the air gap. This current sensor is a Hall effect-based current sensor. It utilizes the principle of superposition of magnetic fields in the iron core to obtain the magnetic field corresponding to the current at any given time, and outputs a voltage corresponding to the magnetic field through the Hall effect device. : Formula 1 in, R H The material coefficient of the Hall device; i It is the magnetizing current; δ H The thickness of the Hall device; B The measured magnetic flux density is denoted as .

[0029] Combination Figure 2 If all external currents flow into the corresponding current coils from their respective terminals, then the current flowing through the drive circuit in the first current coil X1 will be... i 1. Its effective value is I1, the current flowing through the freewheeling circuit in the current coil X2. i 2, its effective value is I2, which can be obtained from Kirchhoff's second law for magnetic circuits: Formula 2 Formula 3 in, l 1 The length of the iron core; l δ This is the air gap length; H 1 represents the magnetic field strength in the iron core; H δ The magnetic field strength within the air gap; μ 1 represents the magnetic permeability of the core material; μ δ Let be the permeability of the air gap.

[0030] Substituting Equation 3 into Equation 1, we can obtain the output voltage of the Hall device. for: Formula 4 in, It is the current sensor coefficient, which is related to the material and shape of the current sensor and is proportional to the number of turns N of the two current coils.

[0031] Therefore, the voltage signal output by the current sensor is the torque current detection signal, that is, the actual torque current can be characterized by the voltage signal output by the current sensor.

[0032] This embodiment of the magnetic induction current sensor enables addition and subtraction between two sampled currents without requiring current direction determination, achieving accurate measurement of torque current and significantly reducing the computational burden of current detection. Furthermore, it effectively isolates the current detection signal from the power signal, improving system safety and reliability. In addition, this current sensor is an analog current sensor with very high accuracy, typically reaching 14 to 16 bits.

[0033] Furthermore, in an optional embodiment, the load module can be a resistor, capacitor, or other device, preferably an energy storage capacitor, such as a supercapacitor C with a capacitance value greater than 10-100 farads. Thus, when in the second state, the freewheeling circuit formed by the freewheeling module allows the inductive electromotive force generated by the motor windings to charge the energy storage capacitor, thereby recovering the energy of the motor windings (inductive energy) and maximizing the utilization of inductive energy storage. Especially when the motor decelerates, goes downhill, or coasts, the motor's kinetic energy is recovered to the maximum extent, thus greatly improving the motor's efficiency.

[0034] Figure 3 This is a circuit diagram of a motor control system in one embodiment of the present invention. The motor control system in this embodiment includes a motor, a DC power supply, a drive control circuit, a load module, a current sensing module, and a control module, wherein the current sensing module is a magnetic induction type current sensor.

[0035] like Figure 3 As shown, the load module includes an energy storage capacitor C, and the DC power supply is a rechargeable battery V. dc The motor is a three-phase motor. Neglecting salient pole effect, each phase winding has the same characteristics and parameters. R is the resistance of each phase winding; L and M are the self-inductance and mutual inductance of each phase winding, respectively; e u e v e w Vu, Vv, and Ww are the back electromotive forces of phases u, v, and w, respectively; V0 is the voltage at the neutral point of the motor; Iu u I v I w These represent the effective value of the current in each phase winding. I1 、 I2 represents the effective value of the current flowing into the current coil terminal of the current sensor.

[0036] like Figure 3As shown, the power drive module is a three-phase bridge inverter module, and the three-phase bridge inverter module includes three upper switching transistors Q1, Q3, Q5 and three lower switching transistors Q4, Q6, Q2. These six switching transistors form a three-phase bridge arm circuit. Moreover, the first end (same-name end) of the first current coil of the current sensor is connected to the positive terminal of the battery, and the second end (different-name end) of the first current coil of the current sensor is connected to the common terminal of the three upper bridge arms.

[0037] like Figure 3 As shown, the freewheeling module includes three upper freewheeling diodes D1, D3, and D5, and three lower freewheeling diodes D4, D6, and D2. The cathodes of the three upper freewheeling diodes D1, D3, and D5 are connected to the positive terminal of the energy storage capacitor C, and the negative terminal of the energy storage capacitor C is connected to the first terminal (same-name terminal) of the second current coil of the current sensor. The anodes of the three lower freewheeling diodes D4, D6, and D2 are connected to the second terminal (opposite-name terminal) of the second current coil of the current sensor. The anodes of the three upper freewheeling diodes D1, D3, and D5 are respectively connected to the windings of the corresponding phases (U phase, V phase, or W phase) of the three-phase motor; the cathodes of the three lower freewheeling diodes D4, D6, and D2 are also respectively connected to the windings of the corresponding phases of the three-phase motor.

[0038] like Figure 3 As shown, the motor system also includes an isolation diode D. Furthermore, the positive terminal of the isolation diode D is connected to the positive terminal of the energy storage capacitor C, and the negative terminal of the isolation diode D is connected to the battery V. dc The positive terminal of the energy storage capacitor C is connected to the negative terminal of the battery V. dc The negative terminal is grounded. In this embodiment, the energy storage capacitor C stores the energy recovered from the motor windings. When the voltage on the energy storage capacitor C is greater than that of the battery V... dc When the voltage is [value], the battery V can be directly [applied to]. dc Charging improves the energy efficiency of the motor system and extends the battery's range.

[0039] The following is combined Figure 4A , Figure 4B This embodiment describes the process of torque current detection in the motor control system: like Figure 4A As shown, the control module controls the switching transistors Q1 and Q2 in the power drive module to turn on, and the power drive module enters the first state (conduction state). The resulting drive circuit is: V dc +→Q1→ U-phase winding→ W-phase winding→Q2→V dc - At this time, the DC power supply V dc The U and W phase windings of the motor are driven by the drive circuit.

[0040] like Figure 4BAs shown, the control module turns off the switching transistors Q1 and Q2 in the power drive module, and the power drive module enters the second state (freewheeling state). The resulting freewheeling loop is: (e w - e u ) → D5→ C → D4→ (e w - e u The loop equation for the freewheeling state is: .

[0041] Regardless of the pulse width modulation method (PWM or SWPWM) used in the control module, the switching transistors in the power drive module have only two states: on and off freewheeling. Figure 4A , Figure 4B The current of the switching transistor in the on state is The current in the off-runaway state is The sum of the two currents ( This refers to the current that generates torque in a motor.

[0042] For a PWM square wave brushless motor, its torque equation is: For an SWPWM brushless motor, its torque equation is: .

[0043] Furthermore, this embodiment not only enables accurate measurement of torque current but also allows for the recovery and utilization of the motor's inductive energy. Specifically, since the drive circuit and freewheeling circuit are physically separated, the energy storage capacitor C can be a supercapacitor C with a capacitance value, for example, greater than 10~100 farads. Typically, U C =( L - M )d i / dt> V dc A small-voltage isolation diode D is connected between the positive terminal of the energy storage capacitor C and the positive terminal of the DC power supply, providing a path for charging the DC power supply. During the freewheeling phase of each switching cycle of pulse width modulation (PWM or SVPWM), the energy storage capacitor C is charged, especially during the pulse width reduction period, i.e., during motor deceleration. This pulse width modulation produces the so-called pump-up effect. U C =( L - M )d i / dt> V dc , U C Persistently greater than V dcThe energy storage capacitor C continuously supplies power to the DC power supply. V dc Charging is then performed. This ensures rapid freewheeling and maintains the voltage of the energy storage capacitor C. U C Rapid setup. Therefore, it can make excellent use of the energy provided by the freewheeling current; ideally, the usable energy can reach up to half the maximum energy stored in the inductor. L - M ) i 2 Tests have shown that this solution can increase battery life by 25-30% and efficiency by about 5-10%, offering significant potential for energy savings. Furthermore, the solution is safe, reliable, low-cost, and highly adaptable.

[0044] It should be understood that in some other embodiments, when the motor is a single-phase motor, a two-phase motor, or a multi-phase motor, the corresponding power drive module includes N upper switching transistors and N lower switching transistors, and the corresponding freewheeling module includes N upper freewheeling diodes and N lower freewheeling diodes, where N is greater than or equal to 2. For example, when the motor is a single-phase motor, N is 2; when the motor is a two-phase motor, N is 4; when the motor is a four-phase motor, N is 8, and so on. In the freewheeling module, the negative terminals of the N upper freewheeling diodes are all connected to the positive terminal of the load module, and the positive terminals of the N lower freewheeling diodes are all connected to the negative terminal of the load module; the positive terminals of the N upper freewheeling diodes are respectively connected to the windings of the corresponding phases of the motor, and the negative terminals of the N lower freewheeling diodes are respectively connected to the windings of the corresponding phases of the motor. In the power drive module, the drains of the N upper switching transistors are all connected to the positive terminal of the DC power supply, and the sources of the N lower switching transistors are all connected to the negative terminal of the DC power supply; the sources of the N upper switching transistors are respectively connected to the windings of the corresponding phases of the motor; and the drains of the N lower switching transistors are respectively connected to the windings of the corresponding phases of the motor.

[0045] In another alternative embodiment, such as Figure 5 As shown, compared to Figure 3 The embodiment shown differs only in that the negative terminal of the isolation diode D is connected to the negative terminal of the energy storage capacitor C, and the positive terminal of the isolation diode D is connected to the battery V. dc The negative terminal of the capacitor is grounded, and the positive terminal of the energy storage capacitor C is connected to the battery V. dc The positive terminal. Additionally, the first current coil of the current sensor is connected in series in the drive circuit as follows: the first end (same-name end) of the first current coil of the current sensor is connected to the common terminal of the three lower arms of the three-phase bridge inverter module, i.e., the second terminal of the power drive module; the second end (different-name end) of the first current coil of the current sensor is connected to the battery V. dc The negative terminal. Its working principle can be found in [reference needed]. Figure 2 The embodiments shown are not described in detail here.

[0046] It should be understood that in some other embodiments, the second current coil of the current sensor can also be connected in series in the freewheeling circuit as follows: the first end (same-name end) of the second current coil of the current sensor is connected to the negative terminals of the three upper freewheeling diodes D1, D3, and D5, and the second end (opposite-name end) of the second current coil of the current sensor is connected to the positive terminal of the energy storage capacitor C. Of course, in other embodiments, the current sensor can be omitted, and the common terminal of the three upper bridge arms in the power drive module can be directly connected to the positive terminal of the battery, and the common terminal of the three lower bridge arms in the power drive module can be directly connected to the negative terminal of the battery; the negative terminals of the three upper freewheeling diodes D1, D3, and D5 can be directly connected to the positive terminal of the energy storage capacitor C, and the positive terminals of the three lower freewheeling diodes D4, D6, and D2 can be connected to the negative terminal of the energy storage capacitor C.

[0047] Furthermore, in an alternative embodiment, such as Figure 6 As shown, the motor control system in this embodiment is compared to Figure 3 The embodiment shown also includes a charging module U1, which is connected to the energy storage capacitor C and the battery V. dc It is used to convert the voltage of the energy storage capacitor C and / or to manage battery charging. The charging module U1 includes, for example, a boost circuit that can operate when the voltage of the energy storage capacitor C is lower than the battery voltage V. dc When the voltage is at a certain level, the voltage of the energy storage capacitor C is boosted, and the boosted voltage is used as the voltage for the battery V. dc Charge it.

[0048] Furthermore, in an optional embodiment, the motor control system of the present invention further includes a voltage detection module, which is used to detect the voltage of the energy storage capacitor and send the detected voltage to the control module; the control module is used to shut down the power drive module when the voltage of the energy storage capacitor is greater than a voltage threshold. In this embodiment, in low-inertia vehicle applications, such as scooters and electric bicycles, when going downhill continuously, there is more kinetic energy, and the voltage U of the energy storage capacitor increases. C There may be overvoltage. This can be addressed by configuring the voltage detection module to check the voltage U. C If an overvoltage occurs during the detection process, the control module can immediately shut down the output of the PWM or SVPWM signal to the power drive module, automatically stopping the boost process and achieving automatic protection for battery charging.

[0049] Furthermore, in an optional embodiment, the motor control system of the present invention further includes a charging current detection module, which is used to detect the charging current when the energy storage capacitor charges the battery; the control module is used to shut down the power drive module when the charging current exceeds a current threshold. In this embodiment, in high-inertia automotive applications, such as electric vehicles, charging overcurrent may occur. By setting the charging current detection module to detect the charging current, if an overcurrent occurs, the control module can immediately shut down the output of the PWM or SVPWM signal to the power drive module, thereby achieving automatic protection of the battery charging.

[0050] It should be understood that in some applications, a voltage detection module and a charging current detection module can be set up simultaneously, and overvoltage and overcurrent protection can be performed based on the detected charging voltage and charging current.

[0051] Furthermore, in one optional embodiment, there are multiple motors, power drive modules, and freewheeling modules, with each motor corresponding to one power drive module and one freewheeling module. Moreover, the energy storage capacitor is connected to multiple freewheeling modules and is used to charge the motors based on the induced electromotive force generated by the windings of the multiple motors.

[0052] In one application, when there are multiple motors, the motor control system uses a shared DC bus and a serial bus for communication. Figure 3 The motors are connected via three wires to the corresponding points Pc, Pv, and Pd (GND) in each motor control system, forming a larger motor control system. Multiple motors have energy feedback capabilities, allowing the inductive energy of each motor to be fed back to the battery V located on the bus. dc In the middle. The deceleration kinetic energy of each motor during speed changes can also be fed back to the battery V located on the bus. dc The resulting new motor control system features overall energy feedback, thus significantly improving overall efficiency and typically extending battery life on a single charge by 30% to 50%. For example, in humanoid robot applications, each robot uses nearly a hundred motors, and battery life on a single charge is a key technical indicator. The technical solution described in this embodiment can significantly achieve energy savings, which is particularly significant for humanoid robot products.

[0053] Furthermore, in an optional embodiment, the motor control system of the present invention further includes a speed sensing module, wherein the speed sensing module is used to detect the rotor speed of the motor to obtain a speed detection signal; the control module is used to generate a drive control signal for the power drive module based on the torque current detection signal and the speed detection signal, so as to perform dual closed-loop control of the motor in terms of current and speed. In this embodiment, speed closed-loop control is introduced on the basis of current closed-loop control, thus achieving not only precise control of motor torque, but also speed tracking and suppression of motor load disturbances.

[0054] Furthermore, in an alternative embodiment, such as Figure 7 As shown, the control module includes: a current feedback unit 111, a current regulator 112, a speed regulator 115, a speed feedback unit, and a pulse width modulation unit 116. The speed feedback unit includes a Hall signal processing unit 113 and a torque / torque (M / T) speed measurement unit 114. The current feedback unit 111 processes the torque current detection signal (IFBK) received from the current sensing module and sends the processed torque current detection signal as the current feedback value to the current regulator 112. The speed feedback unit processes the speed detection signal received from the speed sensing module and sends the processed speed detection signal as the speed feedback value to the speed regulator 115. Specifically, the Hall signal processing unit 113 processes the received speed detection signal (HALL signal) and sends it to the M / T speed measurement unit 114. The M / T speed measurement unit 114 determines the speed signal through M / T calculation and sends it to the speed regulator 115. Speed ​​regulator 115 performs PID calculations based on the speed setpoint (e.g., obtainable via RS-422 unit 117) and speed feedback value, and generates a current setpoint. Current regulator 112 performs PID calculations based on the current setpoint and current feedback value, and generates a duty cycle control signal. Pulse width modulation unit 116 generates PWM drive signals for each switching transistor in the power drive module based on the duty cycle control signal.

[0055] In addition, the control module also includes an RS-422 unit 117 and a register group 118. The RS-422 unit 117 enables communication with external systems, such as obtaining torque current or speed setpoints from external application modules. The register group 118 is used to store setpoints and detected values ​​of various parameters.

[0056] It should be understood that in some other applications, a current closed-loop control system can be built without the aforementioned speed sensing module. Furthermore, this control module can be a purely hardware controller, characterized by its small size and high reliability.

[0057] Furthermore, in an optional embodiment, the pulse width modulation unit employs a sinusoidal pulse width modulation (SPWM) algorithm or a space vector pulse width modulation (SVPWM) algorithm to generate PWM drive signals for each switch in the power drive module. In this embodiment, regardless of the pulse width modulation method used, the switches in the power drive module have only two states: on and off freewheeling.

[0058] In another optional embodiment, the pulse width modulation unit is used to generate PWM drive signals for each switch in the power drive module using one of the following five switching control modes, wherein the switching control modes include: H_PWM-L_PWM (simultaneous modulation of the upper and lower bridge arm switches); H_PWM-L_ON (modulation of the upper bridge arm switch, with the corresponding lower bridge arm switch constantly on); H_ON-L_PWM (modulation of the lower bridge arm switch, with the corresponding upper bridge arm switch constantly on); PWM_ON (modulation of the first 60° interval and constant on the last 60° interval within the 120° interval of each switch conduction). In this control mode, the induced electromotive force of each phase winding of the motor and the PWM control signal of each switch are as follows: Figure 8A As shown; ON_PWM (within a 120° interval of each switch being turned on, constant conduction for the first 60° interval and modulation for the last 60° interval), in this control mode, the induced electromotive force of each phase winding of the motor and the PWM control signal of each switch are as follows: Figure 8B As shown.

[0059] In some applications, although all five of the above switching control modes are suitable for open-loop or closed-loop control of motors, the PWM_ON mode is preferred because it has the highest accuracy and the smallest error in closed-loop control.

[0060] Furthermore, in an alternative embodiment, the magnetic circuit of the motor adopts a radial magnetic circuit or a tangential magnetic circuit.

[0061] Furthermore, in an optional embodiment, the switching transistors in the three-phase bridge inverter module are ordinary IGBT switching transistors, which have built-in freewheeling diodes, such as... Figure 9 As shown, in the three-phase bridge inverter module, the three upper switching transistors Q1, Q3, and Q5, and the three lower switching transistors Q4, Q6, and Q2 are all connected in anti-parallel with diodes. Furthermore, the freewheeling module includes three upper freewheeling diodes D1, D3, and D5, and three first isolation diodes D7, D8, and D9. The cathodes of the three upper freewheeling diodes D1, D3, and D5 are connected to the positive terminal (Pc) of the energy storage capacitor C, and the anodes of the three upper freewheeling diodes D1, D3, and D5 are respectively connected to the three-phase windings of the motor. The cathodes of the three first isolation diodes D7, D8, and D9 are respectively connected to the drains of the three upper switching transistors Q1, Q3, and Q5, and the anodes of the three first isolation diodes D7, D8, and D9 are connected to the battery V. dcThe positive terminal (Pv). In this embodiment, since the lower bridge arm switches Q4, Q4, and Q2 all use IGBT switches with built-in freewheeling diodes, the freewheeling module does not need to be configured with additional lower freewheeling diodes. However, the upper bridge arm switches Q1, Q3, and Q5 require three additional freewheeling diodes D1, D3, and D5, as well as three isolation diodes D7, D8, and D9. This circuit can also achieve separation of the drive circuit current and the freewheeling circuit current.

[0062] It should be understood that in other applications, the freewheeling module may also include three lower freewheeling diodes and three second isolation diodes. The anodes of the three lower freewheeling diodes are connected to the negative terminal of the energy storage module, and the cathodes are connected to the three-phase windings respectively. The anodes of the three second isolation diodes are connected to the sources of the three lower switching transistors respectively, and the cathodes are connected to the negative terminal of the battery. In this embodiment, since the upper bridge arm switching transistors all use IGBT switching transistors with built-in freewheeling diodes, the three-phase freewheeling module does not need to be additionally configured with upper freewheeling diodes. However, the lower bridge arm switching transistors Q4, Q6, and Q2 require additional configuration with three freewheeling diodes and three isolation diodes. This circuit can also achieve separation of the drive circuit current and the freewheeling circuit current.

[0063] In other embodiments, when the motor is a single-phase motor, a two-phase motor, or a multi-phase motor, the corresponding power drive module includes N upper switching transistors, N lower switching transistors, and N first isolation diodes. Each upper switching transistor and each lower switching transistor is connected in anti-parallel with a diode. The freewheeling module includes N upper freewheeling diodes, where N is greater than or equal to 2. The cathodes of the N upper freewheeling diodes are connected to the positive terminal of the load module, and the anodes of the N upper freewheeling diodes are respectively connected to the windings of the corresponding phases of the motor. The cathodes of the N first isolation diodes are respectively connected to the drains of the N upper switching transistors, and the anodes of the N first isolation diodes are all connected to the positive terminal of the DC power supply. The sources of the N upper switching transistors are respectively connected to the windings of the corresponding phases of the motor. The drains of the N lower switching transistors are respectively connected to the windings of the corresponding phases of the motor. The sources of the N lower switching transistors are all connected to the negative terminal of the DC power supply. This circuit can also separate the drive circuit and the freewheeling circuit.

[0064] In other embodiments, the power drive module includes N upper switching transistors, N lower switching transistors, and N second isolation diodes, with each upper and lower switching transistor connected in anti-parallel with a diode. The freewheeling module includes N lower freewheeling diodes, where N is greater than or equal to 2. The anodes of the N lower freewheeling diodes are connected to the negative terminal of the load module, and the cathodes of the N lower freewheeling diodes are respectively connected to the windings of the corresponding phases of the motor. The drains of the N upper switching transistors are connected to the positive terminal of the DC power supply, and the sources of the N upper switching transistors are respectively connected to the windings of the corresponding phases of the motor. The drains of the N lower switching transistors are respectively connected to the windings of the corresponding phases of the motor. The sources of the N lower switching transistors are respectively connected to the anodes of the N second isolation diodes, and the cathodes of the N second isolation diodes are all connected to the negative terminal of the DC power supply. This embodiment can also achieve separation of the drive circuit and the freewheeling circuit.

[0065] Furthermore, such as Figure 9 As shown, the three-phase bridge inverter module and the freewheeling module can be packaged and integrated into a chip to modularize them. It should be understood that the power drive module and the freewheeling module can also be packaged and integrated when they have other topologies.

[0066] Furthermore, in an optional embodiment, the power drive module includes N upper switching transistors, N lower switching transistors, and a first isolation unit for achieving ultra-low voltage drop unidirectional conduction. Each upper switching transistor and each lower switching transistor is connected in anti-parallel with a diode. The freewheeling module includes N upper freewheeling diodes, where N is greater than or equal to 2. The cathodes of the N upper freewheeling diodes are connected to the positive terminal of the load module, and the anodes of the N upper freewheeling diodes are respectively connected to the windings of the corresponding phases of the motor. The cathodes of the first isolation unit are respectively connected to the drains of the N upper switching transistors, and the anode of the first isolation unit is connected to the positive terminal of the DC power supply. The sources of the N upper switching transistors are respectively connected to the windings of the corresponding phases of the motor. The drains of the N lower switching transistors are respectively connected to the windings of the corresponding phases of the motor. The sources of the N lower switching transistors are all connected to the negative terminal of the DC power supply. This embodiment can also achieve separation of the drive circuit and the freewheeling circuit.

[0067] In other embodiments, the power drive module includes N upper switching transistors, N lower switching transistors, and a second isolation unit for achieving ultra-low voltage drop unidirectional conduction. Each upper switching transistor and each lower switching transistor is connected in anti-parallel with a diode. The freewheeling module includes N lower freewheeling diodes, where N is greater than or equal to 2. The anodes of the N lower freewheeling diodes are connected to the negative terminal of the load module, and the cathodes of the N lower freewheeling diodes are respectively connected to the windings of the corresponding phases of the motor. The drains of the N upper switching transistors are connected to the positive terminal of the DC power supply, and the sources of the N upper switching transistors are respectively connected to the windings of the corresponding phases of the motor. The drains of the N lower switching transistors are respectively connected to the windings of the corresponding phases of the motor. The sources of the N lower switching transistors are respectively connected to the positive terminal of the second isolation unit, and the negative terminal of the second isolation unit is connected to the negative terminal of the DC power supply. This embodiment can also achieve separation of the drive circuit and the freewheeling circuit.

[0068] Regarding the first isolation unit / second isolation unit in the above embodiments, it may include an ideal diode control circuit and an NMOS power transistor. By setting the NMOS transistor to a normally conducting state, its on-resistance is typically only a few milliohms or even a few tenths of a milliohm. The current capacity of the first isolation unit / second isolation unit can be about twice the capacity of a single isolation diode, reliably achieving ultra-low voltage drop unidirectional conduction.

[0069] In some embodiments, such as Figure 10 As shown, when the motor is a single-phase motor, N is 2. Figure 11 As shown, when the motor is a two-phase motor, N is 4. Figure 12 As shown, when the motor is a three-phase motor, N is 3. Figure 13 As shown, when the motor has more phases, the number of N is also a larger value. In these embodiments, the drive circuit and the freewheeling circuit can be separated by adding an isolation unit D0 and N freewheeling diodes in the power drive module.

[0070] Furthermore, in some embodiments, such as Figures 10 to 14 As shown, the motor control system of the present invention also includes a pre-drive circuit, which processes the drive control signal output by the control module, including level conversion and protection processing, and sends the processed drive control signal to each switch of the three-phase bridge inverter module. Furthermore, the pre-drive circuit can be packaged and integrated with the power drive module and the freewheeling module into a single chip for modularization. It should be understood that the power drive module and the freewheeling module can also be packaged and integrated when they have other topologies.

[0071] Furthermore, in an optional embodiment, the control module includes an MCU U2, and the power drive module and the freewheeling module are integrated into a chip U3, and the constructed motor control system is as follows: Figure 15 As shown.

[0072] The above description is merely a preferred embodiment of this application and is not intended to limit this application. Various modifications and variations can be made to this application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the scope of the claims of this application.

Claims

1. A motor control system for controlling a motor, characterized in that, include: Control module, power drive module, freewheeling module, load module, and current sensing module; among which, The power drive module is connected between the DC power supply and the winding of the motor, and is used to enter a first state or a second state according to the control of the control module, and form a drive circuit in the first state so that the DC power supply provides drive current to the winding of the motor through the drive circuit. The freewheeling module is connected between the winding of the motor and the load module, and is used to form a freewheeling circuit when the power drive module is in the second state, so that the inductive electromotive force generated by the winding of the motor provides current to the load module through the freewheeling circuit; The current sensing module is used to detect the sum of the currents in the drive circuit and the freewheeling circuit to obtain a torque current detection signal. The control module is used to generate a drive control signal for the power drive module based on the torque current detection signal, so as to perform current closed-loop control on the motor.

2. The motor control system according to claim 1, characterized in that, The current sensing module includes a magnetic induction type current sensor. The current sensor includes an iron core and a first current coil and a second current coil wound on the iron core with the same number of turns. The first current coil is connected in series in the drive circuit, and the second current coil is connected in series in the freewheeling circuit. The output terminal of the current sensor outputs a torque current detection signal.

3. The motor control system according to claim 2, characterized in that, The first end of the first current coil is connected to the positive terminal of the DC power supply, and the second end of the first current coil is connected to the first terminal of the power drive module; or, The first end of the first current coil is connected to the second end of the power drive module, and the second end of the first current coil is connected to the negative end of the DC power supply.

4. The motor control system according to claim 2, characterized in that, The first end of the second current coil is connected to the negative terminal of the load module, and the second end of the second current coil is connected to the second terminal of the freewheeling module; or, The first end of the second current coil is connected to the first end of the freewheeling module, and the second end of the second current coil is connected to the positive end of the load module.

5. The motor control system according to any one of claims 1-4, characterized in that, It also includes a speed sensing module, in which, The speed sensing module is used to detect the rotor speed of the motor in order to obtain a speed detection signal; The control module is used to generate a drive control signal for the power drive module based on the torque current detection signal and the speed detection signal, so as to perform dual closed-loop control of the motor in terms of current and speed.

6. The motor control system according to claim 5, characterized in that, The control module includes: a current feedback unit, a current regulator, a speed regulator, a speed feedback unit, and a pulse width modulation unit, wherein... The current feedback unit is used to process the torque current detection signal received from the current sensing module, and send the processed torque current detection signal as a current feedback value to the current regulator. The speed feedback unit is used to process the speed detection signal received from the speed sensing module, and send the processed speed detection signal as a speed feedback value to the speed regulator. The speed regulator is used to perform PID calculations based on the speed setpoint and the speed feedback value, and to generate a current setpoint. The current regulator is used to perform PID calculations based on the current setpoint and the current feedback value, and generate a duty cycle control signal. The pulse width modulation unit is used to generate PWM drive signals for each switching transistor in the power drive module according to the duty cycle control signal.

7. The motor control system according to claim 6, characterized in that, The pulse width modulation unit is used to generate PWM drive signals for each switching transistor in the power drive module using a sinusoidal pulse width modulation algorithm or a space vector pulse width modulation algorithm.

8. The motor control system according to claim 6, characterized in that, The pulse width modulation unit is used to generate PWM drive signals for each switch in the power drive module using one of the following five switching control modes: simultaneous modulation of the upper and lower bridge arm switches; modulation of the upper bridge arm switch with the corresponding lower bridge arm switch constantly on; modulation of the lower bridge arm switch with the corresponding upper bridge arm switch constantly on; modulation of the first 60° interval and constant on the last 60° interval within the 120° interval of each switch conduction; and constant on the first 60° interval and modulation of the last 60° interval within the 120° interval of each switch conduction.

9. The motor control system according to claim 1, characterized in that, The motor is a three-phase motor; the power drive module is a three-phase bridge inverter module; The freewheeling module includes three upper freewheeling diodes and three lower freewheeling diodes. The negative terminals of the three upper freewheeling diodes are connected in parallel and serve as the first terminal of the freewheeling module. The positive terminals of the three lower freewheeling diodes are connected in parallel and serve as the second terminal of the freewheeling module. The positive terminals of the three upper freewheeling diodes are respectively connected to the windings of the corresponding phases of the three-phase motor, and the negative terminals of the three lower freewheeling diodes are respectively connected to the windings of the corresponding phases of the three-phase motor.

10. The motor control system according to claim 1, characterized in that, The load module is a capacitor or a resistor.