Driving circuit and circuit current limiting method

By introducing a current limiting unit and a feedback circuit into the motor drive circuit to identify and limit overcurrent, the problem of inability to respond immediately in the existing technology is solved, the risk of motor damage is reduced, and safe and stable operation of the motor is achieved.

CN118868686APending Publication Date: 2024-10-29BEIJING CO WHEELS TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310483469.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-04-28
Publication Date
2024-10-29

AI Technical Summary

Technical Problem

Existing motor drive circuits cannot respond immediately when abnormally large currents are detected, and there is a risk of motor damage.

Method used

A drive circuit is designed, including a micro control unit MCU, a current limiting unit, an H-bridge circuit and a feedback circuit. The current limiting unit identifies the current information and limits the control level of the MCU output when overcurrent is detected to ensure that the current remain within the preset range.

Benefits of technology

It reduces the response time for the drive circuit to adjust the motor status when identifying overcurrent, reduces the risk of motor damage, and achieves safe and stable operation of the motor.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118868686A_ABST
    Figure CN118868686A_ABST
Patent Text Reader

Abstract

The invention provides a driving circuit and a circuit current limiting method, and relates to the technical field of motor control, the driving circuit comprises a micro control unit MCU, a current limiting unit, an H-bridge circuit and a feedback circuit, the MCU is used for outputting multiple paths of control levels to the H-bridge circuit; the current limiting unit is connected between the MCU and the H-bridge circuit, and the current limiting unit is used for identifying current information from the H-bridge circuit and limiting multiple paths of control levels output by the MCU when overcurrent exists in the current information, so that the multiple paths of control levels are maintained in a preset level range; the H-bridge circuit is used for controlling the working state of the motor according to the multi-path control level; the feedback circuit is connected between the H-bridge circuit and the current limiting unit, and the feedback circuit is used for outputting current information in the H-bridge circuit to the current limiting unit. According to the technical scheme, the response time for adjusting the state of the motor when the driving circuit recognizes overcurrent can be shortened, and the risk of damage to the motor is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of motor control technology, and in particular to a drive circuit and a circuit current limiting method. Background Art

[0002] The normal operation of the motor depends on the control of the motor drive circuit. In the existing motor drive circuit, the microcontroller unit (MCU) directly controls the drive chip to control the rotation of the motor by outputting multiple pulse width modulation (PWM) signals. At the same time, in view of the excessive current that may occur during the operation of the motor, the commonly used motor drive strategy is to trigger an interrupt response after detecting the overcurrent, and reduce the PWM duty cycle output by the MCU to achieve the purpose of reducing the high current of the motor.

[0003] However, adjusting PWM is a dynamic adjustment process, and there is a periodic interval between confirming the adjustment of PWM duty cycle and starting to adjust PWM duty cycle, so the strategy of reducing duty cycle cannot respond immediately. Therefore, using the strategy of reducing PWM duty cycle to reduce current may cause the risk of motor damage. Summary of the invention

[0004] In view of this, the present application provides a driving circuit and a circuit current limiting method, the main purpose of which is to solve the problem in the prior art that when the motor circuit detects an abnormally large current when the motor is working normally, it can solve the problem that the motor cannot be controlled immediately and the motor cannot be protected from overcurrent conditions.

[0005] To achieve the above-mentioned purpose, a driving circuit is provided in a first aspect of the present application, comprising: a microcontroller unit MCU, a current limiting unit, an H-bridge circuit and a feedback circuit;

[0006] The MCU is used to output multiple control levels to the H-bridge circuit;

[0007] The current limiting unit is connected between the MCU and the H-bridge circuit, and is used to identify current information from the H-bridge circuit, and when there is an overcurrent in the current information, limit the multi-channel control levels output by the MCU so that the multi-channel control levels are maintained within a preset level range;

[0008] The H-bridge circuit is used to control the working state of the motor according to the multi-channel control level;

[0009] The feedback circuit is connected between the H-bridge circuit and the current limiting unit, and is used to output current information in the H-bridge circuit of the driving circuit to the current limiting unit.

[0010] Optionally, the current limiting unit includes: a comparator circuit and a logic gate circuit, the comparator circuit includes a comparator, and the logic gate circuit includes a first logic gate;

[0011] The first input terminal of the comparator is connected to the output terminal of the H-bridge circuit, the output terminal of the comparator is connected to the second input terminal of the first logic gate in the logic gate circuit, and the second input terminal of the comparator is connected to the reference voltage input terminal;

[0012] The output end of the first logic gate is connected to the base of the first switch tube, and the collector of the second end of the first switch tube is connected to the first input end of the comparator.

[0013] Optionally, the MCU is specifically configured to output a pulse width modulation (PWM) signal through a first output port, and the MCU further outputs commutation signals through a plurality of commutation signal output ports.

[0014] Optionally, the first logic gate is a NAND gate, a first input end of the first logic gate is connected to a first output port of the MCU, and an output end of the first logic gate is connected to a first output port of the MCU via a first resistor and a first diode.

[0015] Optionally, the number of the plurality of commutation signal ports outputting commutation signals is a target number, the plurality of commutation signal ports include: a first commutation signal port, a second commutation signal port, a third commutation signal port and a fourth commutation signal port, and the logic gate circuit further includes: a first AND gate, a second AND gate, a first NOR gate and a second NOR gate;

[0016] The first input ends of the first AND gate and the second AND gate are respectively connected to the first output port of the MCU through a first resistor, the second input end of the first AND gate is connected to the first commutation signal port, and the second input end of the second AND gate is connected to the second commutation signal port;

[0017] The output end of the first AND gate is connected to the first input end of the second NOR gate, the output end of the second AND gate is connected to the first input end of the first NOR gate, the second input end of the first NOR gate is connected to the third switching signal port, and the second input end of the second NOR gate is connected to the fourth switching signal port;

[0018] The output ends of the first AND gate, the second AND gate, the first NOR gate and the second NOR gate are used to output multiple control levels.

[0019] Optionally, the driving circuit further includes: a pre-driving chip;

[0020] The pre-driver chip is connected between the current limiting unit and the H-bridge circuit, and the driver chip is used to output multiple execution levels to the H-bridge circuit in response to multiple control levels;

[0021] There is a one-to-one correspondence between the multiple execution levels and the multiple control levels, and the multiple execution levels are used to control multiple switch tubes in the H-bridge circuit.

[0022] Optionally, the feedback circuit includes: an operational amplifier circuit;

[0023] The H-bridge circuit is grounded via a second resistor;

[0024] The first input end of the operational amplifier circuit is connected to the ground ends of both ends of the second resistor, the second input end of the operational amplifier circuit is connected to the other end of the second resistor, the output end of the operational amplifier is connected to the first input end of the operational amplifier circuit, and the output end of the operational amplifier is used to output the current information of the driving circuit to the current limiting unit.

[0025] Optionally, the feedback circuit is also connected to the first feedback terminal of the MCU through a third resistor.

[0026] In a second aspect of the present application, an embodiment provides a current limiting method for a driving circuit, comprising:

[0027] Identifying current information from an H-bridge circuit through a feedback circuit, wherein the H-bridge circuit is used to control the working state of the motor according to multiple control levels output by a microcontroller unit MCU;

[0028] When there is an overcurrent in the current information, the multiple control levels output by the MCU are limited so that the multiple control levels are maintained within a preset level range.

[0029] According to a third aspect of the present application, an electronic device is provided, including:

[0030] At least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to execute the method of the second aspect.

[0031] According to a fourth aspect of the present application, a computer-readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the method of the second aspect is implemented.

[0032] According to a fifth aspect of the present application, a vehicle is provided, in which the electronic device as described in the third aspect is mounted.

[0033] The present disclosure provides a driving circuit and a circuit current limiting method, providing a driving circuit, including a microcontroller unit MCU, a current limiting unit, an H-bridge circuit and a feedback circuit, wherein the MCU is used to output multiple control levels to the H-bridge circuit; the current limiting unit is connected between the MCU and the H-bridge circuit, the current limiting unit is used to identify current information from the H-bridge circuit, and when there is an overcurrent in the current information, the multiple control levels output by the MCU are limited so that the multiple control levels are maintained within a preset level range; the H-bridge circuit is used to control the working state of the motor according to the multiple control levels; the feedback circuit is connected between the H-bridge circuit and the current limiting unit, and the feedback circuit is used to output the current information in the H-bridge circuit to the current limiting unit. The current information is identified from the H-bridge circuit through the feedback circuit, and the H-bridge circuit is used to control the working state of the motor according to the multiple control levels output by the microcontroller unit MCU; when there is an overcurrent in the current information, the multiple control levels output by the MCU are limited so that the multiple control levels are maintained within a preset level range. The technical solution of the present application detects the current information fed back by the feedback circuit. When overcurrent is detected in the current information, the current limiting unit adjusts the multi-channel control level output by the MCU to control the working state of the motor in the H-bridge circuit. The technical solution of the present application can reduce the response time of the drive circuit to adjust the motor state when identifying overcurrent, and reduce the risk of motor damage.

[0034] The above description is only an overview of the technical solution of the present application. In order to more clearly understand the technical means of the present application, it can be implemented in accordance with the contents of the specification. In order to make the above and other purposes, features and advantages of the present application more obvious and easy to understand, the specific implementation methods of the present application are listed below. BRIEF DESCRIPTION OF THE DRAWINGS

[0035] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present disclosure and do not constitute an improper limitation on the present application. In the drawings: Figure 1 It shows a diagram provided by an embodiment of the present application;

[0036] Figure 1 The present embodiment provides a schematic diagram of a driving circuit;

[0037] Figure 2 A schematic diagram of the level of the MCU multi-port output provided in an embodiment of the present application is shown;

[0038] Figure 3 It shows a schematic diagram of the control level obtained by the H-bridge circuit 3 provided in the embodiment of the present application;

[0039] Figure 4 A schematic diagram of an existing motor drive circuit provided in an embodiment of the present application is shown;

[0040] Figure 5 A flow chart of a current limiting method for a driving circuit provided in an embodiment of the present application is shown. DETAILED DESCRIPTION

[0041] In the description of the present application, it should be understood that the terms "center", "longitudinal", "lateral", "length", "width", "thickness", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside", "outside", "clockwise", "counterclockwise" and the like indicate orientations or positional relationships based on the orientations or positional relationships shown in the accompanying drawings, and are only for the convenience of describing the present application and simplifying the description, and do not indicate or imply that the referred device or element must have a specific orientation, be constructed and operated in a specific orientation, and therefore should not be understood as a limitation on the present application.

[0042] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features. In the description of this application, the meaning of "plurality" is two or more, unless otherwise clearly and specifically defined.

[0043] In this application, unless otherwise clearly specified and limited, the terms "installed", "connected", "connected", "fixed" and the like should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or it can be an indirect connection through an intermediate medium, or it can be the internal communication of two components. For ordinary technicians in this field, the specific meanings of the above terms in this application can be understood according to specific circumstances.

[0044] The present application will be described in detail below with reference to the accompanying drawings and in combination with embodiments. It should be noted that the embodiments and features in the embodiments of the present application can be combined with each other without conflict.

[0045] Combine the following Figure 1 A driving circuit according to some embodiments of the present application is described.

[0046] This embodiment provides a driving circuit such as Figure 1As shown, the driving circuit includes: a microcontroller unit MCU1, a current limiting unit 2, an H-bridge circuit 3 and a feedback circuit 4; the MCU is used to output multiple control levels to the H-bridge circuit; the current limiting unit is connected between the MCU and the H-bridge circuit, and the current limiting unit is used to identify current information from the H-bridge circuit in the driving circuit, and when there is an overcurrent in the current information, the multiple control levels output by the MCU are limited so that the multiple control levels are maintained within a preset level range; the H-bridge circuit is used to control the working state of the motor according to the multiple control levels; the feedback circuit is connected between the H-bridge circuit and the current limiting unit, and the feedback circuit is used to output the current information in the H-bridge circuit of the driving circuit to the current limiting unit. In the specific working process, the MCU1 is used to output the multiple control levels so that the H-bridge circuit 3 adjusts the working state of the motor according to the multiple control levels, and the feedback circuit 4 is used to obtain the current information in the H-bridge circuit 3 and feed the current information back to the current limiting unit 2. The current limiting unit 2 adjusts the multiple control levels of the MCU1 according to the current information fed back by the feedback circuit 4, so that the H-bridge circuit 3 adjusts the working state of the motor according to the adjusted multiple control levels.

[0047] In a specific application scenario, as a preferred implementation, the current limiting unit includes: a comparator circuit 21 and a logic gate circuit 22, the comparator circuit 21 includes a comparator 211, and the logic gate circuit 22 includes a first logic gate 221; the first input end of the comparator 211 is connected to the output end of the H-bridge circuit 4, the output end of the comparator 211 is connected to the second input end of the first logic gate 221 in the logic gate circuit 22, and the second input end of the comparator 211 is connected to the reference voltage input end; the output end of the first logic gate 221 is connected to the base of the first switch tube M1, and the collector of the first switch tube M1 is connected to the first input end of the comparator 211.

[0048] In the technical solution of this embodiment, a specific structure of a current limiting unit is proposed, including a comparator circuit 21 and a logic gate circuit 22, wherein the first input end of the comparator 211 in the comparator circuit 21 is used to connect to the output end of the H-bridge circuit 3, and is used to compare the current signal extracted from the H-bridge circuit 3 with the reference voltage signal, and output the comparison result, so as to identify whether there is an overcurrent in the H-bridge circuit 3. At the same time, the first logic gate 221 in the logic gate circuit 22 adjusts the working state of the first switch tube M1 through logic control according to the comparison result output by the comparator, so as to lock the input value of the first input end of the control comparator 211, maintain the overcurrent identification result, so that the current limiting unit continues to limit the driving circuit, and prevents the motor from repeatedly changing when the current limiting unit 2 adjusts the working state of the motor due to the jump of the current.

[0049] In a specific application scenario, as a preferred implementation, the MCU1 is specifically configured to output a pulse width modulation (PWM) signal through a first output port, and the MCU1 further outputs commutation signals through a plurality of commutation signal ports.

[0050] In the content of this embodiment, the multi-channel control levels output by MCU1 are specifically described. In the existing motor drive circuit, in order to realize the control of the motor by MCU, when the motor is located in the H-bridge circuit 3, MCU1 outputs multiple PWM signals respectively for controlling each switch tube in the H-bridge circuit 3, so as to adjust the working state of the motor. The technical solution of this embodiment proposes that when the H-bridge circuit 3 is controlled by MCU1, MCU1 outputs PWM signals only through one output port, and outputs commutation signals through multiple output ports. In this embodiment, according to the difference in high and low levels between the commutation signals, the PWM signal can perform logical control on each commutation signal respectively, generate corresponding control levels, and realize the control of the H-bridge circuit 3. Figure 2 As shown, Figure 2 FIG. 1 is a schematic diagram of the level of the MCU multi-port output disclosed in this embodiment. After the PWM signal and the commutation signal are logically converted, a corresponding control level signal is generated, such as Figure 3 As shown, Figure 3 The control level diagram obtained for the H-bridge circuit 3 can realize the precise control of the H-bridge circuit 3 by MCU1 when only one PWM signal is output. At the same time, before the commutation signal is logically converted with the PWM signal, in each group of high-speed commutation signals or low-speed commutation signals, the high and low complement each other, and the control signals received by the switch tube are also completely complementary, so that when the high-side switch tube in the H-bridge circuit 3 is turned off, the motor current is continued through the low-side switch tube, rather than through the parasitic diode of the switch tube, which can reduce the power consumption of the switch tube of the H-bridge circuit 3. The characteristics of the MCU port output signal disclosed in the technical solution of this embodiment are different from the traditional circuit MCU that needs to output multiple PWM signals. This MCU only needs one PWM signal, which can reduce the internal resource occupation of the MCU.

[0051] In a specific application scenario, as a preferred implementation, the first logic gate 221 is a NAND gate, the first input end of the first logic gate 221 is connected to the first output port of the MCU, and the output end of the first logic gate 221 is connected to the first output port of the MCU through the first resistor R1 and the first diode D1.

[0052] The technical solution of this embodiment further discloses a specific connection method between the first logic gate 221 in the current limiting unit 2 and the MCU. The first input end of the first logic gate 221 is connected to the first output port of the MCU1 to obtain the PWM signal of the MCU1. The second input end of the first logic gate 221 is connected to the output end of the comparator circuit 21. The first logic gate 221 is used to realize the logic calculation between the output PWM signal and the output result of the comparator circuit 21, and control the working state of the first switch tube M1 according to the logic calculation result, and control the voltage of the first input end of the comparator 221 so that the comparator limits / releases the working state of the driving circuit.

[0053] In a specific application scenario, as a preferred implementation, the number of commutation signal ports that output commutation signals is a target number, and the multiple commutation signal ports include: a first commutation signal port, a second commutation signal port, a third commutation signal port, and a fourth commutation signal port. The logic gate circuit 22 also includes: a first AND gate 222, a second AND gate 223, a first NOR gate 224, and a second NOR gate 225; the first input terminals of the first AND gate 222 and the second AND gate 223 are respectively connected to the first output port of the MCU through the first resistor R1, and the second input terminal of the first AND gate 222 is connected to the first output port of the MCU through the first resistor R2. Connected to the first commutation signal port, the second input end of the second AND gate 223 is connected to the second commutation signal port; the output end of the first AND gate 222 is connected to the first input end of the second NOR gate 225, the output end of the second AND gate 223 is connected to the first input end of the first NOR gate 224, the second input end of the first NOR gate 224 is connected to the third commutation signal port, and the second input end of the second NOR gate 225 is connected to the fourth commutation signal port; the output ends of the first AND gate 222, the second AND gate 223, the first NOR gate 224 and the second NOR gate 225 are used to output multi-channel control levels.

[0054] This embodiment further discloses the types and connection relationships of the logic gates included in the logic gate circuit 22. The first input ends of the first AND gate 222 and the second AND gate 223 are respectively connected to the first output port of the MCU1 through a pull-down resistor, and the second input end of the first AND gate 222 is connected to the first commutation signal port of the MCU1, and the second input end of the second AND gate 223 is respectively connected to the second commutation signal port of the MCU1, which are respectively used to output the logic operation results of the commutation signal and the PWM signal to control the two switch tubes in the H-bridge circuit 3. The first NOR gate 224 and the second NOR gate 225 perform logic operations on the signals output from the third commutation signal port and the fourth commutation signal port based on the logic operation results of the first AND gate 222 and the second AND gate 223, and generate logic operation results for controlling the other two switch tubes in the circuit 3. At the same time, it should be emphasized that the commutation signals output by the four commutation signal ports in this embodiment may include a group of high-speed control signals and a group of low-speed control signals, which respectively control the two groups of switch tubes connected in parallel in the H-bridge circuit 3. However, the connection states of the high-speed control signal and the low-speed control signal with the four logic gates are not fixed. Figure 1 In the embodiment, a group of high-speed control signals are connected to the first AND gate 222 and the second AND gate 223 respectively. However, in some embodiments, a group of low-speed control signals can be connected to the first AND gate 222 and the second AND gate 223 respectively.

[0055] In a specific application scenario, as a preferred implementation, the driving circuit also includes: a pre-driver chip; the pre-driver chip is connected between the current limiting unit and the H-bridge circuit, and the driver chip is used to respond to multiple control levels and output multiple execution levels to the H-bridge circuit; there is a one-to-one correspondence between the multiple execution levels and the multiple control levels, and the multiple execution levels are used to control multiple switching tubes in the H-bridge circuit.

[0056] In the content of this embodiment, it is further disclosed that the driving circuit further includes a pre-driver chip. After identifying the control level output by the current limiting unit 2, the pre-driver chip identifies the control level, generates an execution level, and controls multiple switching tubes in the H-bridge circuit 3 according to the execution level, so that the motor can achieve a corresponding working state according to the control level output by the current limiting unit.

[0057] In a specific application scenario, as a preferred implementation, the feedback circuit 4 includes: an operational amplifier circuit 41; the H-bridge circuit 3 is grounded through a second resistor R2; the first input terminal of the operational amplifier circuit 41 is connected to the ground terminals at both ends of the second resistor R2, the second input terminal of the operational amplifier circuit 41 is connected to the other end of the second resistor R2, the output terminal of the operational amplifier 41 is connected to the first input terminal of the operational amplifier circuit 41, and the output terminal of the operational amplifier 41 is used to output the current information of the driving circuit to the current limiting unit 2.

[0058] In the present embodiment, the feedback circuit structure is further described. The operational amplifier circuit 41 included in the feedback circuit 4 is used to extract and amplify the working current in the H-bridge circuit 3, generate a corresponding voltage result, and send the generated voltage result to the comparator 211 of the current limiting unit 2 for comparison and identification.

[0059] In a specific application scenario, as a preferred implementation, the feedback circuit is also connected to the first feedback terminal of the MCU through a third resistor.

[0060] In this embodiment, the feedback circuit 4 outputs the extraction and amplification result to the first feedback terminal of the MCU1 through the third resistor R3, so that the MCU can directly obtain the feedback result of the feedback circuit 4 and can promptly feed back the feedback result to the user through the communication mode.

[0061] The present application provides a schematic diagram of an existing motor drive circuit, such as Figure 4 As shown. It mainly consists of four parts: MCU, pre-driver chip, H-bridge and current feedback. MCU U1 generates 4 PWM signals MCU_HS1, MCU_HS2, MCU_LS1 and MCU_LS2, which are processed by pre-driver chip U2 to generate 4 PWM signals HS1_Gtae, HS2_Gtae, LS1_Gtae and LS2_Gtae for directly driving the H-bridge (MH1, MH2, ML1 and ML2) switch tubes. The current flows through the sampling resistor R1 to form a voltage signal, which is amplified by the operational amplifier U3 and input to the MCU AD port to achieve the effect of current closed-loop feedback. If the pre-driver chip contains an op amp module, the op amp module in the box can be omitted and directly implemented with the op amp module inside the pre-driver chip. In addition, the voltage signal output by the op amp will be input to the comparator U4, and the other end of the comparator U4 is a fixed reference voltage Vref. When the motor current exceeds a certain value, the voltage feedback value MCU_AD_Current of the current will be greater than Vref, and the output voltage MCU_IO_Overcurrent of the comparator U4 will flip from a low level to a high level. At this time, the corresponding interrupt response of the MCU can be triggered, and the motor can be turned off or the PWM duty cycle can be reduced through the MCU to achieve the purpose of reducing the current.

[0062] However, there are two main problems with this circuit.

[0063] First, the strategy of directly shutting down the motor through the MCU after overcurrent occurs, because the overcurrent condition will occur when the motor is in the process of stopping and starting, and the motor current is

[0064]

[0065] In formula (1), U batis the power supply voltage, Duty is the PWM duty cycle, is the reverse electromotive force, and R is the loop resistance. During the startup process, the speed is zero, the reverse electromotive force of the motor is zero, and a large current shock will occur during the startup process. If an overcurrent is detected during the startup and the motor is directly turned off, the motor will not start normally.

[0066] Secondly, regarding the strategy of reducing the current by reducing the PWM duty cycle through the MCU after an overcurrent occurs, since the frequency of motor control is relatively high, generally between 10kHz and 20kHz, it will take some time to trigger the reduction of the PWM duty cycle through the MCU, generally more than two PWM cycles, and a large current shock will be generated during this period. In addition, the reduction of the duty cycle by the MCU is a dynamic adjustment process. The current may still overcurrent in the current PWM cycle with the reduced duty cycle, and the duty cycle needs to be further reduced in the next PWM cycle until the current is lower than the overcurrent limit. Therefore, the current during this period will exceed the current limit, and there is a risk of damage to the controller and the motor body.

[0067] And as Figure 1 The driving circuit provided by the present application shown in the figure is mainly composed of five parts: MCU, pre-driver chip, H-bridge, current feedback and current limiting circuit, wherein the current limiting circuit is mainly composed of NAND gate 221, AND gates 222, 223, NOR gates 224, 225, diode D1, comparator 21, operational amplifier U1, and a controllable switch M1, which is turned on at a low level. Among them, the input pin of the pre-driver chip is effective at a high level, that is, when the output level of the MCU commutation signal port MCU_HSx (MCU_HSx includes MCU_HS1 and MCU_HS2) and MCU_LSx (MCU_LSx includes MCU_LS1 and MCU_LS2) is high, MCU_HSx is the high-speed signal control port of the MCU, and MCU_LSx is the low-speed signal control port of the MCU. The output level of the corresponding pre-driver chip output ports HSx_Gate (HSx_Gate includes HS1_Gate and HS2_Gate) and LSx_Gate (LSx_Gate includes LS1_Gate and LS2_Gate) is high, and the corresponding switch tubes MHx and MLx are turned on. HSx_Gate is the high-speed signal control port of the pre-driver chip, and LSx_Gate is the low-speed signal control port of the pre-driver chip. The switch tube MHx includes MH1 and MH2, and the switch tube MLx includes ML1 and ML2. The corresponding relationships are as follows: Figure 1 When the MCU_HSx and MCU_LSx levels are low, HSx_Gate and LSx_Gate are low, and the corresponding switch tubes MHx and MLx are turned off.

[0068] The specific working process is as follows: motor overcurrent will occur when PWM is at a high level. At this time, the motor current continues to increase. When the current reaches the limit value, the current voltage feedback value MCU_AD_Current output by the operational amplifier U1 will be greater than the overcurrent reference voltage Vref, and the output voltage MOC to the current limiting circuit and the output voltage MCU_IO_Overcurrent to the MCU of the comparator 21 will change from a low level to a high level. The output voltage Overcurrent_clamp signal of the NAND gate 225 will change from a high level to a low level. At this time, the voltage at the lower end of the resistor R1 will be forced to the diode voltage drop of 0.7V through the diode D1, so the Pin1 of the AND gates 222 and 223 will be pulled to a low level, so MCU_HS1 and MCU_HS2 will be low, and the corresponding HS1_Gate and HS2_Gate will also be pulled low. The high-side switches MH1 and MH2 of the H-bridge are both closed, and the motor current will decrease. At the same time, since the Overcurrent_clamp voltage is low, the switch tube M1 (low voltage turn-on) will be turned on, forcing the MCU_AD_Current voltage to be equal to the VDD voltage (VDD voltage is greater than Vref voltage), so that MCU_AD_Current is always greater than Vref during the period when PWM is high, so that MH1 and MH2 can be guaranteed to be in a closed state during this period, preventing the current drop from causing the switch tube to be repeatedly turned on and off, causing large turn-on and turn-off losses to damage the device. When PWM changes from a high level to a low level, the first input port of the NAND gate 221 changes to a low level, and the output Overcurrent_clamp of 221 changes from a low level to a high level again, so the switch tube M1 will be turned off, and MCU_AD_Current will return to the voltage feedback value of the current. Due to the decrease in current, this value is already less than Vref, so the output MOC and MCU_IO_Overcurrent of the first logic gate 221 change from a high level to a low level again, and the diode D1 will be in a reverse cut-off state. When the PWM low level ends and enters the next PWM cycle, PWM re-enters the high level state. Since MOC is low at this time, Overcurrent_clamp will remain high, diode D1 is still reverse cutoff, the lower end of resistor R1 is high, and the first input port of AND gates 222 and 223 is pulled to a high level again. At this time, one of Hall_HSx must be high, so MCU_HSx must have an output high, and one of the high-side switches MH1 and MH2 must be on. At this time, the motor current begins to rise rapidly again until the current rises to the overcurrent value, which will re-trigger the current limiting mechanism. In addition, every time an overcurrent occurs, the MCU_IO_Overcurrent signal will jump once, and the number of overcurrents can be monitored by the MCU.

[0069] Therefore, when overcurrent occurs, through the logic device, it can be realized that when MCU_HSx is high, the corresponding MCU_LSx must be low through the NOR gate; when MCU_LSx is high, MCU_HSx must be low. In this way, the high and low side switches of the same half bridge are prevented from being turned on at the same time from the hardware, which will cause the power supply and ground to be short-circuited, and a large current will be generated to burn the PCB and devices. When overcurrent occurs, this circuit will immediately limit the current of the motor to the designed current and keep working, avoiding the situation of short-term high current shock caused by turning off the motor or limiting the duty cycle. While keeping the motor running, it can also realize the function of protecting the hardware circuit.

[0070] The present disclosure provides a current limiting method for a driving circuit, see Figure 5 , which may include the following steps:

[0071] Step 501, identifying current information from an H-bridge circuit through a feedback circuit, the H-bridge circuit being used to control the working state of the motor according to the multi-channel control levels output by the microcontroller unit MCU;

[0072] Step 502: When there is an overcurrent in the current information, the multi-channel control levels output by the MCU are limited so that the multi-channel control levels are maintained within a preset level range.

[0073] With regard to the content of this embodiment, after the feedback circuit obtains the overcurrent signal used to represent the H-bridge current information in the H-bridge circuit, the limiting circuit immediately limits the multi-channel control levels output by the MCU, and limits the current of the motor to the designed current to keep it working, thereby avoiding the situation of turning off the motor or short-term high current shock caused by limiting the duty cycle, and the function of protecting the hardware circuit can be realized while allowing the motor to continue to run.

[0074] This embodiment can quickly respond to the overcurrent detection result and can keep the motor in a safe and stable working state at all times, thereby protecting the safety of the motor.

[0075] Based on this understanding, the technical solution of the present application can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, USB flash drive, mobile hard disk, etc.), including a number of instructions for enabling a computer device (which can be a personal computer, server, or network device, etc.) to execute the methods of various implementation scenarios of the present application.

[0076] Based on the above Figure 5The method shown, in order to achieve the above purpose, the embodiment of the present application also provides an electronic device, which can be configured on the vehicle (such as a new energy vehicle) side, the device includes at least one processor; and a memory connected to the at least one processor in communication; wherein the memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute Figure 5 The method described.

[0077] Optionally, the above-mentioned physical device may also include a user interface, a network interface, a camera, a radio frequency (RF) circuit, a sensor, an audio circuit, a WI-FI module, etc. The user interface may include a display, an input unit such as a keyboard, etc., and the optional user interface may also include a USB interface, a card reader interface, etc. The network interface may optionally include a standard wired interface, a wireless interface (such as a WI-FI interface), etc.

[0078] Those skilled in the art will appreciate that the above-mentioned physical device structure provided in this embodiment does not constitute a limitation on the physical device, and may include more or fewer components, or a combination of certain components, or different arrangements of components.

[0079] The storage medium may also include an operating system and a network communication module. The operating system is a program that manages the hardware and software resources of the above-mentioned physical device, and supports the operation of the information processing program and other software and / or programs. The network communication module is used to realize the communication between the components inside the storage medium, and the communication with other hardware and software in the information processing physical device.

[0080] Based on the above Figure 5 The method shown in the embodiment also provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the above-mentioned Figure 5 The method shown.

[0081] Based on the above electronic device, the embodiment of the present application further provides a vehicle, which may specifically include: Figure 5 The device shown in the figure or the electronic device as described above. The vehicle can be a new energy vehicle or a traditional vehicle.

[0082] All articles and references disclosed above, including patent applications and publications, are incorporated herein by reference for all purposes. The term "consisting essentially of..." describing a combination should include the identified elements, ingredients, parts or steps and other elements, ingredients, parts or steps that do not substantially affect the basic novel features of the combination. The use of the terms "comprising" or "including" to describe the combination of elements, ingredients, parts or steps herein also contemplates embodiments that are essentially composed of these elements, ingredients, parts or steps. By using the term "may", it is intended to illustrate that any attribute described that "may" include is optional.

[0083] Multiple elements, ingredients, parts or steps can be provided by a single integrated element, ingredient, part or step. Alternatively, a single integrated element, ingredient, part or step can be divided into separate multiple elements, ingredients, parts or steps. The disclosure "one" or "an" used to describe an element, ingredient, part or step is not intended to exclude other elements, ingredients, parts or steps.

[0084] It should be understood that the above description is for illustration and not for limitation. By reading the above description, many embodiments and many applications beyond the examples provided will be apparent to those skilled in the art. Therefore, the scope of this teaching should not be determined with reference to the above description, but should be determined with reference to the aforementioned claims and the full scope of equivalents possessed by these claims. For the purpose of comprehensiveness, all articles and references, including the disclosures of patent applications and announcements, are incorporated herein by reference. The omission of any aspect of the subject matter disclosed herein in the aforementioned claims is not intended to abandon the subject matter, nor should it be considered that the applicant has not considered the subject matter as part of the disclosed subject matter. Obviously, a person skilled in the art can make various changes and modifications to the present disclosure without departing from the spirit and scope of the present disclosure. Thus, if these modifications and variations of the present disclosure fall within the scope of the claims of the present disclosure and their equivalents, the present disclosure is also intended to include these changes and variations.

Claims

1. A driving circuit, characterized in that: include: Microcontroller unit MCU, current limiting unit, H-bridge circuit and feedback circuit; The MCU is used to output multiple control levels to the H-bridge circuit; The current limiting unit is connected between the MCU and the H-bridge circuit, and is used to identify current information from the H-bridge circuit, and when there is an overcurrent in the current information, limit the multi-channel control levels output by the MCU so that the multi-channel control levels are maintained within a preset level range; The H-bridge circuit is used to control the working state of the motor according to the multi-channel control level; The feedback circuit is connected between the H-bridge circuit and the current limiting unit, and is used to output current information in the H-bridge circuit to the current limiting unit.

2. The driving circuit according to claim 1, characterized in that: The current limiting unit comprises: a comparator circuit and a logic gate circuit, the comparator circuit comprises a comparator, and the logic gate circuit comprises a first logic gate; The first input end of the comparator circuit is connected to the output end of the H-bridge circuit, the output end of the comparator circuit is connected to the second input end of the first logic gate in the logic gate circuit, and the second input end of the comparator circuit is connected to the reference voltage input end; The output end of the first logic gate is connected to the base of the first switch tube, and the collector of the first switch tube is connected to the first input end of the comparator.

3. The driving circuit according to claim 2, characterized in that: The MCU is specifically used to output a pulse width modulation (PWM) signal through a first output port, and the MCU also outputs commutation signals through a plurality of commutation signal ports.

4. The driving circuit according to claim 3, characterized in that: The first logic gate is a NAND gate, a first input end of the first logic gate is connected to a first output port of the MCU, and an output end of the first logic gate is connected to a first output port of the MCU via a first resistor and a first diode.

5. The driving circuit according to claim 3, characterized in that: The number of the plurality of commutation signal ports is a target number, the plurality of commutation signal ports include: a first commutation signal port, a second commutation signal port, a third commutation signal port and a fourth commutation signal port, and the logic gate circuit further includes: a first AND gate, a second AND gate, a first NOR gate and a second NOR gate; The first input ends of the first AND gate and the second AND gate are respectively connected to the first output port of the MCU through a first resistor, the second input end of the first AND gate is connected to the first commutation signal port, and the second input end of the second AND gate is connected to the second commutation signal port; The output end of the first AND gate is connected to the first input end of the second NOR gate, the output end of the second AND gate is connected to the first input end of the first NOR gate, the second input end of the first NOR gate is connected to the third switching signal port, and the second input end of the second NOR gate is connected to the fourth switching signal port; The output ends of the first AND gate, the second AND gate, the first NOR gate and the second NOR gate are used to output multiple control levels.

6. The driving circuit according to claim 1, characterized in that: The driving circuit further includes: a pre-driving chip; The pre-driver chip is connected between the current limiting unit and the H-bridge circuit, and the driver chip is used to output multiple execution levels to the H-bridge circuit in response to multiple control levels; There is a one-to-one correspondence between the multiple execution levels and the multiple control levels, and the multiple execution levels are used to control multiple switch tubes in the H-bridge circuit.

7. The driving circuit according to claim 1, characterized in that: The feedback circuit comprises: an operational amplifier circuit; The H-bridge circuit is grounded via a second resistor; The first input end of the operational amplifier circuit is connected to the ground ends of both ends of the second resistor, the second input end of the operational amplifier circuit is connected to the other end of the second resistor, the output end of the operational amplifier is connected to the first input end of the operational amplifier circuit, and the output end of the operational amplifier is used to output the current information of the driving circuit to the current limiting unit.

8. The method according to claim 7, characterized in that The feedback circuit is also connected to the first feedback terminal of the MCU through a third resistor.

9. A current limiting method for a driving circuit, characterized in that: The method comprises: Identifying current information from an H-bridge circuit through a feedback circuit, wherein the H-bridge circuit is used to control the working state of the motor according to multiple control levels output by a microcontroller unit MCU; When there is an overcurrent in the current information, the multiple control levels output by the MCU are limited so that the multiple control levels are maintained within a preset level range.

10. An electronic device, characterized in that: include: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method of claim 9.

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 method according to claim 9 is implemented.

12. A vehicle, characterized in that: The electronic device according to claim 10 is mounted in the vehicle.