Driving circuit control method and device, storage medium and vehicle

By using a pre-driver chip in the drive circuit to control the conduction of the MOS tube and collect current, the problem of low diagnosis efficiency of the drive circuit in the existing technology is solved, efficient diagnosis of the four-way H-bridge circuit is achieved, and the circuit design is simplified. and improved security and reliability.

CN118713441APending Publication Date: 2024-09-27CHINA FAW CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410814404.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-21
Publication Date
2024-09-27

AI Technical Summary

Technical Problem

In the existing technology, the diagnosis efficiency of the driving circuit is low. At least two H-bridge pre-driver chips are required for MOS driving and diagnosis, and the currents of three H-bridge circuits can only be collected and diagnosed at most.

Method used

Through a driving circuit control method, a pre-driver chip is used to control the conduction of the MOS tube, and when the MOS tube is successfully turned on, the current of the H-bridge circuit is collected. The current sampling circuit is used to collect the current, and the current is compared with the current threshold. If If the current is greater than the threshold, the micro control unit chip is triggered to turn off the pre-drive chip to realize the diagnosis of the four-way H-bridge circuit.

Benefits of technology

The diagnostic efficiency of the drive circuit is improved. Only one pre-drive chip can complete the current diagnosis of the four-way H-bridge circuit, which simplifies the circuit design, saves space resources, and improves the safety and reliability of the circuit.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118713441A
    Figure CN118713441A
Patent Text Reader

Abstract

The invention discloses a control method and device of a driving circuit, a storage medium and a vehicle, and relates to the field of vehicles, the control method and device of the driving circuit are applied to the driving circuit, the driving circuit at least comprises a pre-driving chip, an H-bridge circuit, a current sampling circuit and a micro-control unit chip, the H-bridge circuit comprises at least one full-bridge circuit, and the full-bridge circuit is composed of a metal oxide semiconductor (MOS) tube. The method comprises the following steps: in response to a driving signal of a pre-driving chip, controlling an MOS (Metal Oxide Semiconductor) tube to be conducted; under the condition that the MOS tube is successfully conducted, the pre-drive chip is controlled to collect the current of the first target number of full-bridge circuits in the H-bridge circuit, and the current sampling circuit is controlled to collect the current of the second target number of full-bridge circuits in the H-bridge circuit; comparing the collected current with a current threshold value to obtain a comparison result; and in response to the comparison result that the current is greater than the current threshold, triggering the micro-control unit chip to control the pre-drive chip to be closed. According to the invention, the technical problem of low diagnosis efficiency of the driving circuit is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of vehicles, and in particular to a control method and device for a drive circuit, a storage medium and a vehicle. Background Art

[0002] Currently, when diagnosing a drive circuit, due to the insufficient driving capability of one H-bridge pre-driver chip, at least two H-bridge pre-driver chips are needed to perform MOS driving and diagnosis, and at most only the current of three H-bridge circuits can be collected and diagnosed, resulting in low efficiency in diagnosing the drive circuit.

[0003] Currently, no effective solution has been proposed to address the above-mentioned problem of low efficiency in diagnosing the drive circuit. Summary of the invention

[0004] Embodiments of the present invention provide a control method, device, storage medium and vehicle for a drive circuit, so as to at least solve the technical problem of low efficiency in diagnosing the drive circuit.

[0005] According to one aspect of an embodiment of the present invention, a control method for a driving circuit is provided, which is applied to a driving circuit, wherein the driving circuit at least includes: a pre-driving chip, an H-bridge circuit, a current sampling circuit and a micro-control unit chip, wherein the H-bridge circuit includes at least one full-bridge circuit, and the full-bridge circuit is composed of a metal oxide semiconductor MOS tube. The method may include: in response to a driving signal of the pre-driving chip, controlling the MOS tube to be turned on; in the case where the MOS tube is turned on successfully, controlling the pre-driving chip to collect the current of the full-bridge circuit of the first target number in the H-bridge circuit, and controlling the current sampling circuit to collect the current of the full-bridge circuit of the second target number in the H-bridge circuit; comparing the collected current with the current threshold to obtain a comparison result; in response to the comparison result that the current is greater than the current threshold, triggering the micro-control unit chip to control the pre-driving chip to be turned off.

[0006] Optionally, the collected current is compared with a current threshold to obtain a comparison result, including: transmitting the collected current to a microcontroller unit chip; in response to the microcontroller unit chip receiving the current, controlling the microcontroller unit chip to compare the current with the current threshold to obtain a comparison result.

[0007] Optionally, before sending the collected current to the micro control unit chip, the method also includes: using a sampling resistor to convert the collected current into a voltage; using an amplifier circuit in a current sampling circuit to transmit the voltage to a collection pin of the micro control unit chip, wherein the collection pin is used to collect the current.

[0008] Optionally, the method further includes: determining an amplification factor of the amplifier circuit based on the voltage; and determining a recovery voltage of the pre-driver chip based on the amplification factor.

[0009] Optionally, the pre-driver chip has a built-in charge pump module, and the charge pump module is used to increase the driving voltage.

[0010] Optionally, the method further includes: acquiring the internal resistance and operating temperature of the MOS tube; and determining the driving current of the pre-driver chip based on the internal resistance and the operating temperature.

[0011] Optionally, the full-bridge circuit is composed of four MOS tubes, wherein the upper two MOS tubes among the four MOS tubes are high-side MOS tubes connected to the power supply for modulating the current waveform, and the lower two MOS tubes among the four MOS tubes are low-side MOS tubes connected to the sampling resistor.

[0012] Optionally, the pre-driver chip is used to drive the water valve and to raise and lower the vehicle logo.

[0013] According to another aspect of the embodiment of the present invention, a control device for a driving circuit is also provided, which is applied to a driving circuit, wherein the driving circuit at least includes: a pre-driving chip, an H-bridge circuit, a current sampling circuit and a micro-control unit chip, wherein the H-bridge circuit includes at least one full-bridge circuit, and the full-bridge circuit is composed of a metal oxide semiconductor MOS tube. The device may include: a first control unit, which is used to control the MOS tube to be turned on in response to a driving signal of the pre-driving chip; a second control unit, which is used to control the pre-driving chip to collect the current of the full-bridge circuit of the front target number in the H-bridge circuit, and control the current sampling circuit to collect the current of the full-bridge circuit of the rear target number in the H-bridge circuit when the MOS tube is turned on successfully; a comparison unit, which is used to compare the collected current with the current threshold to obtain a comparison result; and a third control unit, which is used to trigger the micro-control unit chip to control the pre-driving chip to be turned off in response to the comparison result that the current is greater than the current threshold.

[0014] According to another aspect of an embodiment of the present invention, a computer-readable storage medium is provided. The computer-readable storage medium includes a stored executable program, wherein when the executable program is running, the device where the computer-readable storage medium is located is controlled to execute the methods in various embodiments of the present invention.

[0015] According to another aspect of an embodiment of the present invention, there is further provided an electronic device, comprising: a memory storing an executable program; and a processor for running the program, wherein the method in each embodiment of the present invention is executed when the program is running.

[0016] According to another aspect of an embodiment of the present invention, a vehicle is further provided. When the vehicle is executed, the method in each embodiment of the present invention is implemented.

[0017] According to another aspect of an embodiment of the present invention, a computer program product is provided, including a computer program. When the computer program is executed by a processor, the method in each embodiment of the present invention is implemented.

[0018] According to another aspect of an embodiment of the present invention, a computer program product is provided, including a non-volatile computer-readable storage medium, wherein the non-volatile computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method in each embodiment of the present invention is implemented.

[0019] According to another aspect of the embodiments of the present invention, a computer program is provided. When the computer program is executed by a processor, the methods in the embodiments of the present invention are implemented.

[0020] In an embodiment of the present invention, in response to the driving signal of the pre-driver chip, the MOS tube is controlled to be turned on; when the MOS tube is successfully turned on, the pre-driver chip is controlled to collect the current of the full-bridge circuit of the front target number in the H-bridge circuit, and the current sampling circuit is controlled to collect the current of the full-bridge circuit of the rear target number in the H-bridge circuit; the collected current is compared with the current threshold to obtain a comparison result; in response to the comparison result that the current is greater than the current threshold, the micro-control unit chip is triggered to control the pre-driver chip to be turned off. In other words, the embodiment of the present invention only uses one pre-driver chip to drive and diagnose the MOS tube. When it is detected that the current of the four-way H-bridge circuit is greater than the current threshold, the micro-control unit chip is triggered to control the pre-driver chip to be turned off, thereby achieving the technical effect of improving the efficiency of diagnosing the drive circuit and solving the technical problem of low efficiency in diagnosing the drive circuit. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] The drawings described herein are used to provide a further understanding of the present invention and constitute a part of the present invention. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings:

[0022] Figure 1 is a flow chart of a control method of a driving circuit according to an embodiment of the present invention;

[0023] Figure 2 is a schematic diagram of a current sampling circuit according to an embodiment of the present invention;

[0024] Figure 3 is a schematic diagram of an H-bridge pre-driver circuit according to an embodiment of the present invention;

[0025] Figure 4 is a schematic diagram of a control device of a driving circuit according to an embodiment of the present invention. DETAILED DESCRIPTION

[0026] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.

[0027] It should be noted that the terms "first", "second", etc. in the specification of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0028] Example 1

[0029] According to an embodiment of the present invention, an embodiment of a control method for a driving circuit is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.

[0030] Figure 1 is a flow chart of a control method of a driving circuit according to an embodiment of the present invention. Figure 1 As shown, the method is applied to a driving circuit, the driving circuit at least includes: a pre-driving chip, an H-bridge circuit, a current sampling circuit and a micro control unit chip, wherein the H-bridge circuit includes at least one full-bridge circuit, and the full-bridge circuit is composed of a metal oxide semiconductor MOS tube. The method may include the following steps:

[0031] Step S102, in response to the driving signal of the pre-driving chip, controlling the MOS tube to be turned on.

[0032] In the technical solution provided in the above step S102 of the present invention, the MOS tube can be controlled to be turned on in response to the driving signal of the pre-driver chip. The pre-driver chip can be an integrated circuit for driving and controlling a DC motor, which can be used to control the MOS tube to drive and control the motor, and has a diagnostic function, which can monitor the working state of the motor and perform fault diagnosis. It can be called an H-bridge pre-driver chip. For example, the model of the pre-driver chip can be TLE92108. This is only an example, and the model of the pre-driver chip is not specifically limited.

[0033] Optionally, the drive signal can be a level signal transmitted from the pre-driver chip to the gate of the MOS tube in the H-bridge circuit, which can be used to control the conduction of the MOS tube. It should be noted that the H-bridge circuit in this embodiment is composed of four full-bridge circuits, and each full-bridge circuit is composed of four MOS tubes. The two upper MOS tubes are connected to the power supply and are high-side MOS for current waveform modulation. The two lower MOS tubes are low-side MOS and are connected to the sampling resistor.

[0034] Step S104, when the MOS tube is successfully turned on, the pre-driver chip is controlled to collect currents of the first target number of full-bridge circuits in the H-bridge circuit, and the current sampling circuit is controlled to collect currents of the second target number of full-bridge circuits in the H-bridge circuit.

[0035] In the technical solution provided in the above step S104 of the present invention, after the MOS tube is controlled to be turned on in response to the driving signal of the pre-driver chip, if the MOS tube is turned on successfully, the pre-driver chip can be controlled to collect the current of the full-bridge circuit of the first target number in the H-bridge circuit, and the current sampling circuit can be controlled to collect the current of the full-bridge circuit of the second target number in the H-bridge circuit. The H-bridge circuit can be an H-bridge driving circuit. The target number can be two, which is only for example and does not specifically limit the value of the target number.

[0036] For example, assuming that there are four full-bridge circuits in the H-bridge circuit and the target number is two, when the MOS tube is successfully turned on, the pre-driver chip can be controlled to collect the current of the first two full-bridge circuits in the H-bridge circuit through the sampling resistor, and the current sampling circuit can be controlled to collect the current of the last two full-bridge circuits in the H-bridge circuit through the sampling resistor.

[0037] Step S106, comparing the collected current with the current threshold to obtain a comparison result.

[0038] In the technical solution provided in the above step S106 of the present invention, after controlling the pre-driver chip to collect the current of the front target number of full-bridge circuits in the H-bridge circuit, and controlling the current sampling circuit to collect the current of the rear target number of full-bridge circuits in the H-bridge circuit, the collected current can be compared with the current threshold to obtain a comparison result. The current threshold can be a threshold preset according to actual needs, which can be called a diagnostic threshold.

[0039] Optionally, after the current of the H-bridge circuit is acquired, the acquired current value may be monitored, that is, the acquired current may be compared with a diagnosis threshold value set according to requirements.

[0040] Step S108 , in response to the comparison result that the current is greater than the current threshold, triggering the micro control unit chip to control the pre-driver chip to turn off.

[0041] In the technical solution provided in the above step S108 of the present invention, after comparing the collected current with the current threshold and obtaining the comparison result, when the comparison result obtained is that the current is greater than the current threshold, in response to the comparison result that the current is greater than the current threshold, the microcontrol unit chip can be triggered to control the pre-drive chip to shut down. The microcontrol unit (MCU) chip is responsible for receiving the collected value of the current collection circuit and monitoring it.

[0042] Optionally, the collected current is compared with a diagnostic threshold set according to requirements. When the collected current exceeds the set threshold, the MCU can control the pre-driver chip to shut down through its enable pin.

[0043] The above steps S102 to S108 of the present invention are applied to a driving circuit, and the driving circuit at least includes: a pre-driving chip, an H-bridge circuit, a current sampling circuit and a micro-control unit chip, wherein the H-bridge circuit includes at least one full-bridge circuit, and the full-bridge circuit is composed of a metal oxide semiconductor MOS tube. In response to the driving signal of the pre-driving chip, the MOS tube is controlled to be turned on; when the MOS tube is successfully turned on, the pre-driving chip is controlled to collect the current of the full-bridge circuit of the front target number in the H-bridge circuit, and the current sampling circuit is controlled to collect the current of the full-bridge circuit of the rear target number in the H-bridge circuit; the collected current is compared with the current threshold to obtain a comparison result; in response to the comparison result that the current is greater than the current threshold, the micro-control unit chip is triggered to control the pre-driving chip to be turned off. That is to say, the embodiment of the present invention uses only one pre-driving chip to drive and diagnose the MOS tube, and when it is detected that the current of the four-way H-bridge circuit is greater than the current threshold, the micro-control unit chip is triggered to control the pre-driving chip to be turned off, thereby achieving the technical effect of improving the efficiency of diagnosing the driving circuit and solving the technical problem of low efficiency in diagnosing the driving circuit.

[0044] The above method of this embodiment is further introduced below.

[0045] As an optional implementation method, step S106, comparing the collected current with the current threshold to obtain a comparison result, includes: transmitting the collected current to the micro control unit chip; in response to the micro control unit chip receiving the current, controlling the micro control unit chip to compare the current with the current threshold to obtain a comparison result.

[0046] In this embodiment, after controlling the pre-driver chip to collect the current of the first target number of full-bridge circuits in the H-bridge circuit, and controlling the current sampling circuit to collect the current of the second target number of full-bridge circuits in the H-bridge circuit, the collected current can be transmitted to the micro control unit chip. When the micro control unit chip receives the current, in response to the micro control unit chip receiving the current, the micro control unit chip can be controlled to compare the current with the current threshold to obtain a comparison result.

[0047] Optionally, after acquiring the current of the H-bridge circuit, the MCU chip is responsible for receiving the acquisition value of the current acquisition circuit and monitoring it, and comparing the received acquisition value with the diagnostic threshold set according to the requirements. When the received acquisition value exceeds the set threshold, the MCU can control the pre-driver chip to shut down through the enable pin.

[0048] As an optional implementation mode, before sending the collected current to the micro control unit chip, the method also includes: using a sampling resistor to convert the collected current into a voltage; using an amplifier circuit in the current sampling circuit to transmit the voltage to a collection pin of the micro control unit chip, wherein the collection pin is used to collect the current.

[0049] In this embodiment, before the collected current is sent to the micro control unit chip, the collected current can be converted into a voltage using a sampling resistor. After the collected current is converted into a voltage, the voltage can be transmitted to the collection pin of the micro control unit chip using an amplifier circuit in the current sampling circuit. Among them, the collection pin can be an analog-to-digital (AD) collection pin of the MCU chip, which can be used to collect the current.

[0050] Optionally, the current acquisition circuit can convert the current of the H-bridge driving circuit into voltage through a sampling resistor, and feed back the collected voltage value to the AD acquisition pin of the MCU chip through an amplifier circuit to perform current acquisition on the circuit that requires current diagnosis.

[0051] As an optional implementation manner, the method further includes: determining the amplification factor of the amplifier circuit based on the voltage; and determining the recovery voltage of the pre-driver chip based on the amplification factor.

[0052] In this embodiment, after the current of the H-bridge driving circuit is converted into a voltage through the sampling resistor, the amplification factor of the amplifier circuit can be determined based on the converted voltage. Further, based on the determined amplification factor, the sampling voltage of the pre-driver chip can be determined.

[0053] Optionally, the amplifier in the current sampling circuit uses a dual-channel operational amplifier (eg, LM2904W), which can be powered by 3 to 30 volts (V), and has a voltage output range of 0 to (VCC-1.5), wherein VCC can be used to represent the power supply voltage. Figure 2 is a schematic diagram of a current sampling circuit according to an embodiment of the present invention, such as Figure 2 As shown, the schematic diagram of the current sampling circuit may at least include resistors R1, R2, R3, an input voltage V IN , output voltage V OUT , voltage V1, V X , current I1, I2 and I3. Since I1=I2+I3, according to the current formula we can get:

[0054]

[0055] That is, the above formula can be expressed as:

[0056]

[0057] By eliminating the denominators on both sides of the above equations, we can finally get the amplification factor of the amplifier circuit:

[0058]

[0059] Furthermore, the sampling voltage of the pre-driver chip is calculated, that is, VCSO=Vref+(voltage difference across the sampling resistor+input voltage bias)×amplification factor, where VCSO can be used to represent the sampling result, and Vref can be used to represent the reference voltage.

[0060] As an optional implementation manner, the pre-driver chip has a built-in charge pump module, and the charge pump module is used to increase the driving voltage.

[0061] In this embodiment, the pre-driver chip used in the driving circuit is TLE92108, and the chip has a built-in charge pump module, which can raise the driving voltage. There is no need to add a second pre-driver chip, thereby achieving the purpose of saving design space and making the circuit structure simpler.

[0062] As an optional implementation manner, the method further includes: obtaining the internal resistance and operating temperature of the MOS tube; and determining the driving current of the pre-driver chip based on the internal resistance and the operating temperature.

[0063] In this embodiment, the internal resistance and operating temperature of the MOS tube can be obtained. After the internal resistance and operating temperature of the MOS tube are obtained, the driving current of the pre-driver chip can be determined based on the obtained internal resistance and operating temperature.

[0064] Optionally, since the chip used in the drive circuit is a pre-drive chip, the drive current is determined by the internal resistance of the external MOS and the operating temperature, so the H-bridge circuit can complete high-current, multi-channel load driving. The drive circuit can drive four-channel full-bridge circuits, and perform current sampling diagnosis on each channel drive respectively, to monitor the working status of each channel drive, thereby increasing the safety and reliability of the circuit.

[0065] As an optional implementation method, the full-bridge circuit is composed of four MOS tubes, wherein the upper two MOS tubes among the four MOS tubes are high-side MOS tubes, connected to the power supply and used to modulate the current waveform, and the lower two MOS tubes among the four MOS tubes are low-side MOS tubes, connected to the sampling resistor.

[0066] In this embodiment, the H-bridge circuit is composed of four full-bridge circuits, and each full-bridge circuit is composed of four MOS tubes. The upper two MOS tubes are connected to the power supply and are high-side MOS for current waveform modulation. The lower two MOS tubes are low-side MOS and are connected to the sampling resistor.

[0067] As an optional embodiment, the pre-driver chip is used to drive the water valve and to raise and lower the vehicle logo.

[0068] In this embodiment, the pre-driver chip can be used to drive the water valve and the lifting vehicle logo. The design principle of the drive circuit is simple, space resources are saved, circuit fault troubleshooting is more convenient, and up to four H-bridge circuits can be diagnosed.

[0069] This embodiment is applied to a driving circuit, and the driving circuit at least includes: a pre-driving chip, an H-bridge circuit, a current sampling circuit, and a micro-control unit chip, wherein the H-bridge circuit includes at least one full-bridge circuit, and the full-bridge circuit is composed of a metal oxide semiconductor MOS tube, and in response to the driving signal of the pre-driving chip, the MOS tube is controlled to be turned on; when the MOS tube is successfully turned on, the pre-driving chip is controlled to collect the current of the full-bridge circuit of the front target number in the H-bridge circuit, and the current sampling circuit is controlled to collect the current of the full-bridge circuit of the rear target number in the H-bridge circuit; the collected current is compared with the current threshold to obtain a comparison result; in response to the comparison result that the current is greater than the current threshold, the micro-control unit chip is triggered to control the pre-driving chip to be turned off. That is to say, the embodiment of the present invention uses only one pre-driving chip to drive and diagnose the MOS tube, and when it is detected that the current of the four-way H-bridge circuit is greater than the current threshold, the micro-control unit chip is triggered to control the pre-driving chip to be turned off, thereby achieving the technical effect of improving the efficiency of diagnosing the driving circuit and solving the technical problem of low efficiency in diagnosing the driving circuit.

[0070] Example 2

[0071] The technical solution of the embodiment of the present invention is illustrated below in conjunction with preferred implementation modes.

[0072] Currently, in the related technology, due to the insufficient driving capability of the first H-bridge pre-driver chip, at least two pre-driver chips are required for MOS driving and diagnosis, which requires a larger space when designing a printed circuit board (PCB), and can only collect and diagnose three H-bridge circuit currents at most, resulting in a low efficiency in diagnosing the driving circuit.

[0073] As an optional example, a control system and method for the clamping protection function of an H-bridge drive circuit is proposed. The method uses clamping protection, which has a different protection mechanism and does not involve a method of using an MCU to monitor the recovery current for intelligent protection. As another optional example, an open circuit detection circuit for an H-bridge drive output is also proposed. The method only performs open circuit protection and cannot perform overcurrent protection. As another optional example, an H-bridge drive charging circuit, discharge circuit, fault diagnosis method and system are also proposed. The method uses two pre-drive chips, which have a complex structure and weak driving capability, and cannot perform four-way driving or primary high current driving.

[0074] To solve the above problems, this embodiment proposes a driving circuit and a multi-channel diagnostic method thereof. The pre-driver chip used in the circuit is TLE92108. The built-in charge pump module of the chip can raise the driving voltage without adding a second pre-driver chip. Since it is a pre-driver chip, the driving current is determined by the internal resistance of the external MOS and the operating temperature. Therefore, the H-bridge circuit can complete large current and multi-channel load driving, save design space, and have a simpler structure. The circuit can drive a four-way full bridge, and perform current sampling diagnosis on each drive separately, realize monitoring of the working status of each drive, and increase the safety and reliability of the circuit. In addition, the MCU chip in this embodiment is responsible for receiving and monitoring the collected value of the current acquisition circuit, setting the diagnostic threshold according to the demand for judgment, and if the collected value exceeds the set threshold, the MCU can control the pre-driver chip to shut down through the enable pin. The circuit design principle is simple, saves space resources, and is more convenient for circuit fault troubleshooting.

[0075] Figure 3 is a schematic diagram of an H-bridge pre-driving circuit according to an embodiment of the present invention, such as Figure 3 As shown, the schematic diagram of the H-bridge pre-drive circuit may at least include a pre-drive chip 301, an external H-bridge circuit 302, a current sampling circuit 303 and an MCU chip 304. Among them, the MCU chip 304 may at least include an AD current sampling pin, an enable pin and multiple communication interfaces. The pre-drive chip 301 can be used to drive a water valve and a lifting vehicle logo. The H-bridge drive circuit 302 is composed of 4 full-bridge circuits, and each full-bridge circuit is composed of 4 MOS tubes. The upper two MOS tubes are connected to the power supply and are high-side MOS for current waveform modulation. The lower two MOS tubes are low-side MOS, which are connected to the sampling resistor. The current acquisition circuit 303 converts the current of the H-bridge drive circuit into voltage through the sampling resistor, and feeds back the collected voltage value to the AD current sampling pin of the MCU chip through the amplifier circuit, and collects current for the circuit that needs current diagnosis. The MCU chip 304 is responsible for receiving and monitoring the collected value of the current acquisition circuit, setting the diagnostic threshold according to the demand for judgment, and if the collected value exceeds the set threshold, the MCU can control the pre-drive chip to close through the enable pin.

[0076] like Figure 3 As shown, the driving signal can be a level signal transmitted from the pre-driver chip to the gate of the MOS tube in the H-bridge circuit, which can be used to control the conduction of the MOS tube. The pre-driver chip collects the current of the first two full-bridge circuits in the H-bridge circuit through the sampling resistor, and the current sampling circuit collects the current of the last two full-bridge circuits in the H-bridge circuit through the sampling resistor. The communication interface may include at least multiple interfaces for communicating with the pre-driver chip, such as overcurrent diagnosis, overvoltage diagnosis, and overtemperature diagnosis.

[0077] Furthermore, the amplifier in the current sampling circuit uses a dual-channel operational amplifier, which can be powered by 3 to 30V and has a voltage output range of 0 to (VCC-1.5). Figure 2 As shown, the schematic diagram of the current sampling circuit may at least include resistors R1, R2, R3, an input voltage V IN , output voltage V OUT , voltage V1, V X , current I1, I2 and I3. Since I1=I2+I3, according to the current formula we can get:

[0078]

[0079] That is, the above formula can be expressed as:

[0080]

[0081] By eliminating the denominators on both sides of the above equations, we can finally get the amplification factor of the amplifier circuit:

[0082]

[0083] Furthermore, the sampling voltage of the pre-driver chip is calculated, that is, VCSO = Vref + (voltage difference across the sampling resistor + input voltage bias) × amplification factor, where VCSO can be used to represent the sampling result and Vref can be used to represent the reference voltage. The circuit design principle is simple, space resources are saved, circuit fault troubleshooting is more convenient, and up to four H-bridge circuits can be diagnosed.

[0084] The circuit in this embodiment can complete high current and multi-channel load driving, save design space, and have a simpler structure. The circuit can drive four full bridges, and perform current sampling diagnosis on each drive respectively, realize monitoring of the working status of each drive, and increase the safety and reliability of the circuit. In addition, the MCU chip in this embodiment is responsible for receiving the collected value of the current collection circuit and monitoring, and can control the pre-drive chip to close through the enable pin. The circuit design principle is simple, saves space resources, and circuit fault troubleshooting is more convenient.

[0085] This embodiment is applied to a driving circuit, and the driving circuit at least includes: a pre-driving chip, an H-bridge circuit, a current sampling circuit, and a micro-control unit chip, wherein the H-bridge circuit includes at least one full-bridge circuit, and the full-bridge circuit is composed of a metal oxide semiconductor MOS tube, and in response to the driving signal of the pre-driving chip, the MOS tube is controlled to be turned on; when the MOS tube is successfully turned on, the pre-driving chip is controlled to collect the current of the full-bridge circuit of the front target number in the H-bridge circuit, and the current sampling circuit is controlled to collect the current of the full-bridge circuit of the rear target number in the H-bridge circuit; the collected current is compared with the current threshold to obtain a comparison result; in response to the comparison result that the current is greater than the current threshold, the micro-control unit chip is triggered to control the pre-driving chip to be turned off. That is to say, the embodiment of the present invention uses only one pre-driving chip to drive and diagnose the MOS tube, and when it is detected that the current of the four-way H-bridge circuit is greater than the current threshold, the micro-control unit chip is triggered to control the pre-driving chip to be turned off, thereby achieving the technical effect of improving the efficiency of diagnosing the driving circuit and solving the technical problem of low efficiency in diagnosing the driving circuit.

[0086] Example 3

[0087] According to an embodiment of the present invention, a control device for a drive circuit is further provided. It should be noted that the control device for the drive circuit can be used to execute the control method for the drive circuit in the first embodiment.

[0088] Figure 4 is a schematic diagram of a control device of a driving circuit according to an embodiment of the present invention. Figure 4 As shown, the driving circuit is applied to the driving circuit, and the driving circuit at least includes: a pre-driving chip, an H-bridge circuit, a current sampling circuit and a micro control unit chip, wherein the H-bridge circuit includes at least one full-bridge circuit, and the full-bridge circuit is composed of a metal oxide semiconductor MOS tube. The control device 400 of the driving circuit may include: a first control unit 402, a second control unit 404, a comparison unit 406 and a third control unit 408.

[0089] The first control unit 402 is used to control the MOS tube to be turned on in response to the driving signal of the pre-driving chip.

[0090] The second control unit 404 is used to control the pre-driver chip to collect the current of the first target number of full-bridge circuits in the H-bridge circuit, and control the current sampling circuit to collect the current of the second target number of full-bridge circuits in the H-bridge circuit when the MOS tube is successfully turned on.

[0091] The comparison unit 406 is used to compare the collected current with the current threshold to obtain a comparison result.

[0092] The third control unit 408 is used for triggering the micro control unit chip to control the pre-driver chip to shut down in response to the comparison result that the current is greater than the current threshold.

[0093] Optionally, the comparison unit 406 includes: a transmission module, used to transmit the collected current to the micro control unit chip; a comparison module, used to control the micro control unit chip to compare the current with the current threshold in response to the micro control unit chip receiving the current to obtain a comparison result.

[0094] Optionally, before sending the collected current to the microcontroller chip, the device also includes: a conversion unit, used to convert the collected current into a voltage using a sampling resistor; a transmission unit, used to transmit the voltage to a collection pin of the microcontroller chip using an amplifier circuit in the current sampling circuit, wherein the collection pin is used to collect the current.

[0095] Optionally, the device further includes: a first determination unit, used to determine the amplification factor of the amplifier circuit based on the voltage; and a second determination unit, used to determine the recovery voltage of the pre-driver chip based on the amplification factor.

[0096] Optionally, the pre-driver chip has a built-in charge pump module, and the charge pump module is used to increase the driving voltage.

[0097] Optionally, the device further includes: an acquisition unit, used to acquire the internal resistance and operating temperature of the MOS tube; and a third determination unit, used to determine the driving current of the pre-driver chip based on the internal resistance and the operating temperature.

[0098] Optionally, the full-bridge circuit is composed of four MOS tubes, wherein the upper two MOS tubes among the four MOS tubes are high-side MOS tubes connected to the power supply for modulating the current waveform, and the lower two MOS tubes among the four MOS tubes are low-side MOS tubes connected to the sampling resistor.

[0099] Optionally, the pre-driver chip is used to drive the water valve and to raise and lower the vehicle logo.

[0100] In an embodiment of the present invention, the device is applied to a driving circuit, and the driving circuit at least includes: a pre-driving chip, an H-bridge circuit, a current sampling circuit and a micro-control unit chip, wherein the H-bridge circuit includes at least one full-bridge circuit, and the full-bridge circuit is composed of a metal oxide semiconductor MOS tube. The first control unit 402 responds to the driving signal of the pre-driving chip to control the MOS tube to be turned on. The second control unit 404 controls the pre-driving chip to collect the current of the full-bridge circuit of the front target number in the H-bridge circuit, and controls the current sampling circuit to collect the current of the full-bridge circuit of the rear target number in the H-bridge circuit when the MOS tube is turned on successfully. The comparison unit 406 compares the collected current with the current threshold to obtain a comparison result. The third control unit 408 responds to the comparison result that the current is greater than the current threshold, and triggers the micro-control unit chip to control the pre-driving chip to be turned off. That is, the embodiment of the present invention uses only one pre-driving chip to drive and diagnose the MOS tube. When it is detected that the current of the four-way H-bridge circuit is greater than the current threshold, the micro-control unit chip is triggered to control the pre-driving chip to be turned off, thereby achieving the technical effect of improving the efficiency of diagnosing the driving circuit and solving the technical problem of low efficiency in diagnosing the driving circuit.

[0101] Example 4

[0102] An embodiment of the present invention further provides a computer-readable storage medium, the computer-readable storage medium including a stored executable program, wherein when the executable program is running, the device where the computer-readable storage medium is located is controlled to execute the methods in various embodiments of the present invention, the method is applied to a drive circuit, the drive circuit at least includes: a pre-driver chip, an H-bridge circuit, a current sampling circuit and a microcontroller unit chip, wherein the H-bridge circuit includes at least one full-bridge circuit, and the full-bridge circuit is composed of a metal oxide semiconductor MOS tube.

[0103] Optionally, the storage medium is used to control the conduction of the MOS tube in response to the driving signal of the pre-driver chip; when the MOS tube is successfully turned on, the pre-driver chip is controlled to collect the current of the full-bridge circuit of the front target number in the H-bridge circuit, and the current sampling circuit is controlled to collect the current of the full-bridge circuit of the rear target number in the H-bridge circuit; the collected current is compared with the current threshold to obtain a comparison result; in response to the comparison result that the current is greater than the current threshold, the microcontrol unit chip is triggered to control the pre-driver chip to turn off.

[0104] Optionally, the storage medium is used to transmit the collected current to the micro control unit chip; in response to the micro control unit chip receiving the current, the micro control unit chip is controlled to compare the current with a current threshold to obtain a comparison result.

[0105] Optionally, the storage medium is used to convert the collected current into voltage using a sampling resistor; and to transmit the voltage to a collection pin of a microcontroller unit chip using an amplifier circuit in a current sampling circuit, wherein the collection pin is used to collect the current.

[0106] Optionally, the storage medium is used to determine the amplification factor of the amplifier circuit based on the voltage; and to determine the recovery voltage of the pre-driver chip based on the amplification factor.

[0107] Optionally, the pre-driver chip has a built-in charge pump module, and the charge pump module is used to increase the driving voltage.

[0108] Optionally, the storage medium is used to obtain the internal resistance and operating temperature of the MOS tube; based on the internal resistance and the operating temperature, the driving current of the pre-driver chip is determined.

[0109] Optionally, the full-bridge circuit is composed of four MOS tubes, wherein the upper two MOS tubes among the four MOS tubes are high-side MOS tubes connected to the power supply for modulating the current waveform, and the lower two MOS tubes among the four MOS tubes are low-side MOS tubes connected to the sampling resistor.

[0110] Optionally, the pre-driver chip is used to drive the water valve and to raise and lower the vehicle logo.

[0111] Example 5

[0112] An embodiment of the present invention further provides an electronic device, comprising: a memory storing an executable program; a processor for running the program, wherein the method in each embodiment of the present invention is executed when the program is running, and the method is applied to a drive circuit, and the drive circuit at least comprises: a pre-driver chip, an H-bridge circuit, a current sampling circuit and a microcontroller unit chip, wherein the H-bridge circuit comprises at least one full-bridge circuit, and the full-bridge circuit is composed of a metal oxide semiconductor MOS tube.

[0113] Optionally, the electronic device is used to control the conduction of the MOS tube in response to the driving signal of the pre-driver chip; when the MOS tube is successfully turned on, the pre-driver chip is controlled to collect the current of the full-bridge circuit of the front target number in the H-bridge circuit, and the current sampling circuit is controlled to collect the current of the full-bridge circuit of the rear target number in the H-bridge circuit; the collected current is compared with the current threshold to obtain a comparison result; in response to the comparison result that the current is greater than the current threshold, the microcontrol unit chip is triggered to control the pre-driver chip to turn off.

[0114] Optionally, the electronic device is used to transmit the collected current to a micro control unit chip; in response to the micro control unit chip receiving the current, the micro control unit chip is controlled to compare the current with a current threshold to obtain a comparison result.

[0115] Optionally, the electronic device is used to convert the collected current into voltage using a sampling resistor; and transmit the voltage to a collection pin of a microcontroller unit chip using an amplifier circuit in the current sampling circuit, wherein the collection pin is used to collect the current.

[0116] Optionally, the electronic device is used to determine the amplification factor of the amplifier circuit based on the voltage; and to determine the recovery voltage of the pre-driver chip based on the amplification factor.

[0117] Optionally, the pre-driver chip has a built-in charge pump module, and the charge pump module is used to increase the driving voltage.

[0118] Optionally, the electronic device is used to obtain the internal resistance and operating temperature of the MOS tube; based on the internal resistance and the operating temperature, determine the driving current of the pre-driver chip.

[0119] Optionally, the full-bridge circuit is composed of four MOS tubes, wherein the upper two MOS tubes among the four MOS tubes are high-side MOS tubes connected to the power supply for modulating the current waveform, and the lower two MOS tubes among the four MOS tubes are low-side MOS tubes connected to the sampling resistor.

[0120] Optionally, the pre-driver chip is used to drive the water valve and to raise and lower the vehicle logo.

[0121] Example 6

[0122] An embodiment of the present invention further provides a vehicle, which is used to implement the methods in the above-mentioned various embodiments of the present invention. The method is applied to a drive circuit, and the drive circuit at least includes: a pre-driver chip, an H-bridge circuit, a current sampling circuit and a microcontroller unit chip, wherein the H-bridge circuit includes at least one full-bridge circuit, and the full-bridge circuit is composed of a metal oxide semiconductor MOS tube.

[0123] Optionally, the vehicle is used to control the MOS tube to be turned on in response to the driving signal of the pre-drive chip; when the MOS tube is turned on successfully, the pre-drive chip is controlled to collect the current of the front target number of full-bridge circuits in the H-bridge circuit, and the current sampling circuit is controlled to collect the current of the rear target number of full-bridge circuits in the H-bridge circuit; the collected current is compared with the current threshold to obtain a comparison result; in response to the comparison result that the current is greater than the current threshold, the microcontroller unit chip is triggered to control the pre-drive chip to be turned off.

[0124] Optionally, the vehicle is used to transmit the collected current to a micro control unit chip; in response to the micro control unit chip receiving the current, the micro control unit chip is controlled to compare the current with a current threshold to obtain a comparison result.

[0125] Optionally, the vehicle is used to convert the collected current into voltage using a sampling resistor; and to transmit the voltage to a collection pin of a microcontroller unit chip using an amplifier circuit in the current sampling circuit, wherein the collection pin is used to collect the current.

[0126] Optionally, the vehicle is used to determine the amplification factor of the amplifier circuit based on the voltage; and determine the recovery voltage of the pre-drive chip based on the amplification factor.

[0127] Optionally, the pre-driver chip has a built-in charge pump module, and the charge pump module is used to increase the driving voltage.

[0128] Optionally, the vehicle is used to obtain the internal resistance and operating temperature of the MOS tube; based on the internal resistance and the operating temperature, the driving current of the pre-drive chip is determined.

[0129] Optionally, the full-bridge circuit is composed of four MOS tubes, wherein the upper two MOS tubes among the four MOS tubes are high-side MOS tubes connected to the power supply for modulating the current waveform, and the lower two MOS tubes among the four MOS tubes are low-side MOS tubes connected to the sampling resistor.

[0130] Optionally, the pre-driver chip is used to drive the water valve and to raise and lower the vehicle logo.

[0131] Example 7

[0132] An embodiment of the present invention further provides a computer program product, including a computer program, and when the computer program is executed by a processor, the method in each embodiment of the present invention is implemented.

[0133] Example 8

[0134] An embodiment of the present invention further provides a computer program product, including a non-volatile computer-readable storage medium, wherein the non-volatile computer-readable storage medium is used to store a computer program, and when the computer program is executed by a processor, the method in each embodiment of the present invention is implemented.

[0135] Example 9

[0136] An embodiment of the present invention further provides a computer program, which implements the methods in the above-mentioned embodiments of the present invention when executed by a processor.

[0137] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.

[0138] In the above embodiments of the present invention, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0139] In the several embodiments provided by the present invention, it should be understood that the disclosed technical content can be implemented in other ways. Among them, the device embodiments described above are only schematic. For example, the division of the units can be a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.

[0140] The units determined as separate components may or may not be physically separated, and the components determined as unit displays may or may not be physical units, that is, they may be located in one place or distributed on multiple units. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.

[0141] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0142] If the integrated unit is implemented in the form of a software functional unit and determined to be sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disk or optical disk and other media that can store program codes.

[0143] The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principle of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.

Claims

1. A control method for a driving circuit, characterized in that: Applied to a driving circuit, the driving circuit at least comprises: a pre-driving chip, an H-bridge circuit, a current sampling circuit and a micro control unit chip, wherein the H-bridge circuit comprises at least one full-bridge circuit, and the full-bridge circuit is composed of a metal oxide semiconductor MOS tube, and the method comprises: In response to the driving signal of the pre-driving chip, controlling the MOS tube to be turned on; When the MOS tube is turned on successfully, the pre-driver chip is controlled to collect currents of the first target number of full-bridge circuits in the H-bridge circuit, and the current sampling circuit is controlled to collect currents of the second target number of full-bridge circuits in the H-bridge circuit; Comparing the collected current with a current threshold to obtain a comparison result; In response to the comparison result that the current is greater than the current threshold, the micro control unit chip is triggered to control the pre-driver chip to be turned off.

2. The method according to claim 1, characterized in that The collected current is compared with the current threshold to obtain a comparison result, including: Transmitting the collected current to the micro control unit chip; In response to the micro control unit chip receiving the current, the micro control unit chip is controlled to compare the current with the current threshold to obtain the comparison result.

3. The method according to claim 2, characterized in that Before sending the collected current to the micro control unit chip, the method further includes: Using the sampling resistor, converting the collected current into a voltage; The voltage is transmitted to the acquisition pin of the micro control unit chip by using the amplifier circuit in the current sampling circuit, wherein the acquisition pin is used to collect the current.

4. The method according to claim 3, characterized in that The method further comprises: determining an amplification factor of the amplifier circuit based on the voltage; Based on the amplification factor, the recovery voltage of the pre-driver chip is determined.

5. The method according to claim 1, characterized in that The pre-driver chip has a built-in charge pump module, and the charge pump module is used to increase the driving voltage.

6. The method according to claim 1, characterized in that The method further comprises: Obtaining the internal resistance and operating temperature of the MOS tube; Based on the internal resistance and the operating temperature, a driving current of the pre-driver chip is determined.

7. The method according to claim 1, characterized in that The full-bridge circuit is composed of four MOS tubes, wherein the upper two MOS tubes among the four MOS tubes are high-side MOS tubes connected to the power supply and used to modulate the current waveform, and the lower two MOS tubes among the four MOS tubes are low-side MOS tubes connected to the sampling resistor.

8. The method according to any one of claims 1 to 7, characterized in that The pre-driver chip is used to drive the water valve and to raise and lower the vehicle logo.

9. A control device for a drive circuit, characterized in that: Applied to a driving circuit, the driving circuit at least comprises: a pre-driving chip, an H-bridge circuit, a current sampling circuit and a micro control unit chip, wherein the H-bridge circuit comprises at least one full-bridge circuit, the full-bridge circuit is composed of a metal oxide semiconductor MOS tube, and the device comprises: A first control unit, configured to control the MOS tube to be turned on in response to a driving signal of the pre-driver chip; A second control unit is used to control the pre-driver chip to collect currents of the first target number of full-bridge circuits in the H-bridge circuit, and to control the current sampling circuit to collect currents of the second target number of full-bridge circuits in the H-bridge circuit when the MOS tube is successfully turned on; A comparison unit, used for comparing the collected current with a current threshold to obtain a comparison result; The third control unit is used for triggering the micro control unit chip to control the pre-driver chip to turn off in response to the comparison result that the current is greater than the current threshold.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored program, wherein when the program is executed by a processor, the device where the storage medium is located is controlled to execute the method according to any one of claims 1 to 8.

11. An electronic device, characterized in that: include: A memory storing an executable program; A processor, configured to run the program, wherein the program executes the method according to any one of claims 1 to 8 when running.

12. A vehicle, characterized in that: Used to perform the method according to any one of claims 1 to 8.

13. A computer program product, characterized in that The computer program product comprises a computer program, wherein The computer program is configured to execute the method according to any one of claims 1 to 8 when executed by a processor.