H-bridge driving circuit, driving method and automobile
By using electronic loads and relay modules to switch current paths in the H-bridge drive circuit, the problem of low analog load accuracy is solved, accurate simulation and efficient adjustment of the motor mode is achieved, the load regulation range is expanded, and automated testing is realized .
Patent Information
- Application Number
- CN202411137587.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-19
- Publication Date
- 2024-11-26
AI Technical Summary
The analog load composed of power resistor and inductor has low accuracy in the load regulation range and cannot effectively simulate the forward and inversion modes of the motor.
Using H-bridge driving circuit, combining electronic load and relay module, the current path is switched through the relay module to ensure that the current flows in from the positive electrode of the electronic load and out from the negative electrode in the forward and reverse mode, achieving accurate motor mode simulation.
The accuracy and adjustment range of simulated loads are improved, the current and voltage characteristics of the motor are simulated under different load conditions, and the test efficiency is improved through automated testing.
Smart Images

Figure CN119024814A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of circuit technology, and in particular to an H-bridge drive circuit, a drive method and a vehicle. Background Art
[0002] The H-bridge is a typical DC motor control circuit, named because its circuit shape resembles the letter "H". The H-bridge is composed of four switching components (such as transistors or field effect transistors), which are usually used to drive loads with large currents, such as motors. The core function of the H-bridge drive circuit is to switch the forward and reverse modes of the motor by controlling the different closed states of these four switching components. Figure 1 As shown:
[0003] Forward mode: When Q1 and Q4 on the diagonal are turned on and Q2 and Q3 are turned off, the current flows through the motor M from left to right, driving the motor M to rotate forward. That is, the current passes through A, M, and B in sequence. Figure 1 The current paths are marked with dashed lines.
[0004] Reverse mode: When Q2 and Q3 on the diagonal are turned on and Q1 and Q4 are turned off, the current flows through the motor M from right to left, driving the motor M to reverse. That is, the current flows through B, M, and A in sequence. Figure 1 The current paths are marked with dashed lines.
[0005] When the H-bridge driving circuit is used in the early stage of the test of the electronic control unit (ECU) in the car, the motor is missing, so a simulated load is needed to replace the motor to perform the ECU test.
[0006] Considering that the motor needs to realize forward and reverse rotation, we can choose a power resistor and inductor without polarity to form a simulated load, and use this simulated load to replace the motor, such as Figure 2 Simulated load bank shown.
[0007] like Figure 3 As shown, power resistors and inductors are used to simulate the forward and reverse modes of the motor:
[0008] Forward mode: When Q1 and Q4 on the diagonal are turned on and Q2 and Q3 are turned off, the current flows through the resistor from left to right. That is, the current flows through A, the resistor, B, and then Figure 3 The current paths are marked with dashed lines.
[0009] Inverting mode: When Q2 and Q3 on the diagonal are turned on and Q1 and Q4 are turned off, the current flows through the resistor from right to left. That is, the current flows through B, the resistor, A, and Figure 3 The current paths are marked with dashed lines.
[0010] However, the simulated load composed of power resistors and inductors has low accuracy and is subject to certain limitations in the load regulation range. Summary of the invention
[0011] The present application provides an H-bridge driving circuit, a driving method and a vehicle, which are used to solve the problem that the simulation load composed of power resistors and inductors in the related art has low accuracy and is subject to certain limitations in the load adjustment range. The technical solution is as follows:
[0012] According to a first aspect of the present application, an H-bridge driving circuit is provided, the H-bridge driving circuit comprising: an H-bridge, an electronic load and a relay module, the H-bridge comprising a first switch tube, a second switch tube, a third switch tube and a fourth switch tube;
[0013] The drains of the first switch tube and the second switch tube are respectively connected to the voltage signal input terminal, the source of the first switch tube is respectively connected to the first terminal of the relay module and the drain of the third switch tube, the source of the second switch tube is respectively connected to the second terminal of the relay module and the drain of the fourth switch tube, the source of the third switch tube and the fourth switch tube is grounded, and the gates of the first switch tube, the second switch tube, the third switch tube and the fourth switch tube are respectively connected to the drive signal input terminal;
[0014] The third end of the relay module is connected to the positive electrode of the electronic load, and the fourth end of the relay module is connected to the negative electrode of the electronic load;
[0015] The electronic load is used to simulate a motor to perform an electronic controller ECU test, and the working mode of the motor includes a forward mode and a reverse mode;
[0016] When the electronic load simulates a motor in a forward rotation mode, the relay module is used to control the current in the H-bridge drive circuit to form a first current path; when the electronic load simulates a motor in a reverse rotation mode, the relay module is used to control the current in the H-bridge drive circuit to form a second current path, and the currents in the first current path and the second current path both flow into the positive pole of the electronic load and flow out of the negative pole of the electronic load.
[0017] In a possible implementation, the relay module includes four relays, or the relay module includes a relay board.
[0018] In a possible implementation, when the relay module includes four relays,
[0019] One end of the first relay and one end of the third relay are connected to serve as the first end of the relay module;
[0020] One end of the second relay and one end of the fourth relay are connected to serve as the second end of the relay module;
[0021] The other end of the first relay and the other end of the fourth relay are connected to serve as the third end of the relay module;
[0022] The other end of the second relay and the other end of the third relay are connected to serve as the fourth end of the relay module.
[0023] In one possible implementation,
[0024] When the electronic load simulates a motor in a forward rotation mode, the first relay and the second relay are closed, and the third relay and the fourth relay are opened;
[0025] When the electronic load simulates a motor in a reverse mode, the third relay and the fourth relay are closed, and the first relay and the second relay are opened.
[0026] In a possible implementation, when the relay module includes a relay card,
[0027] The first input pin and the third input pin of the relay board serve as the first end of the relay module;
[0028] The second input pin and the fourth input pin of the relay board serve as the second end of the relay module;
[0029] The first output pin and the fourth output pin of the relay board serve as the third end of the relay module;
[0030] The second output pin and the third output pin of the relay board serve as the fourth end of the relay module;
[0031] The control pin of the relay module is connected to the control end.
[0032] In one possible implementation,
[0033] When the electronic load simulates a motor in a forward rotation mode, the relay board is used to control the current in the H-bridge drive circuit to form a first current path under the instruction of the first control signal sent by the control terminal;
[0034] When the electronic load simulates a motor in a reversing mode, the relay board is used to control the current in the H-bridge drive circuit to form a second current path under the instruction of the second control signal sent by the control end.
[0035] In a possible implementation, the control end includes an upper computer and a lower computer, and the lower computer is connected to the control pin;
[0036] When the electronic load simulates a motor in a forward rotation mode, the upper computer is used to send a first control instruction to the lower computer, and the lower computer is used to convert the first control instruction into the first control signal and then send it to the relay board;
[0037] When the electronic load simulates a motor in a reversing mode, the upper computer is used to send a second control instruction to the lower computer, and the lower computer is used to convert the second control instruction into the second control signal and send it to the relay board.
[0038] In one possible implementation,
[0039] When the electronic load simulates a motor in a forward rotation mode, the first switch tube and the fourth switch tube are closed, and the second switch tube and the third switch tube are opened;
[0040] When the electronic load simulates a motor in a reversing mode, the second switch tube and the third switch tube are closed, and the first switch tube and the fourth switch tube are opened.
[0041] According to a second aspect of the present application, a driving method of an H-bridge driving circuit is provided, which is used in the above-mentioned H-bridge driving circuit, and the method includes:
[0042] Determine the working mode of the motor to be simulated by the electronic load;
[0043] When the working mode is the forward mode, the relay module controls the current in the H-bridge driving circuit to form a first current path;
[0044] When the working mode is the reversal mode, the relay module controls the current in the H-bridge driving circuit to form a second current path;
[0045] The currents in the first current path and the second current path both flow in from the positive electrode of the electronic load and flow out from the negative electrode of the electronic load.
[0046] According to a fourth aspect of the present application, a vehicle is provided, comprising the above-mentioned H-bridge drive circuit.
[0047] The beneficial effects of the technical solution provided by this application include at least:
[0048] Since electronic loads can provide fully controllable loads, using electronic loads instead of motors for ECU testing can not only improve the accuracy of simulated loads, but also simulate the current and voltage characteristics of motors under different load conditions, thus expanding the adjustment range of simulated loads.
[0049] The electronic load has positive and negative polarities, and an alarm will be issued when the electronic load is reversely connected. Therefore, a relay module is needed to switch the current path in the H-bridge drive circuit so that the current flows into the positive pole of the electronic load and flows out of the negative pole of the electronic load regardless of the forward mode or the reverse mode, thereby simulating the forward mode and reverse mode of the motor.
[0050] By using relays or relay cards to switch the current path, a high degree of automated testing can be achieved. BRIEF DESCRIPTION OF THE DRAWINGS
[0051] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0052] Figure 1 It is a circuit diagram of an H-bridge driving circuit including a motor provided by the related art;
[0053] Figure 2 It is a schematic diagram of a simulated load box provided by the related art;
[0054] Figure 3 It is a circuit diagram of an H-bridge driving circuit including a resistor provided by the related art;
[0055] Figure 4 It is a circuit diagram of an H-bridge driving circuit including an electronic load provided by the related art;
[0056] Figure 5 is a circuit diagram of an H-bridge driving circuit including an electronic load and a relay module provided in this embodiment;
[0057] Figure 6 is a circuit diagram of an H-bridge driving circuit including an electronic load and four relays provided in this embodiment;
[0058] Figure 7 is a circuit diagram of an H-bridge drive circuit including an electronic load and a relay board provided in this embodiment;
[0059] Figure 8 It is a flow chart of a driving method of an H-bridge driving circuit provided in one embodiment of the present application. DETAILED DESCRIPTION
[0060] In order to make the objectives, technical solutions and advantages of the embodiments of the present application clearer, the implementation methods of the present application will be further described in detail below in conjunction with the accompanying drawings.
[0061] Since the electronic load can provide a fully controllable load, it can be used to replace the motor for ECU testing. The motor has two working modes, one is the forward mode and the other is the reverse mode. The forward mode is a mode in which the current flows into the positive pole of the motor and flows out of the negative pole; the reverse mode is a mode in which the current flows into the negative pole of the motor and flows out of the positive pole.
[0062] However, the electronic load has positive and negative polarity, and an alarm will be issued when the electronic load is reversely connected. Figure 4 As shown, when the electronic load simulates a motor in a forward rotation mode, the first switch tube Q1 and the fourth switch tube Q4 are controlled to be closed, and the second switch tube Q2 and the third switch tube Q3 are disconnected, and the current flows into the positive electrode of the electronic load E and flows out of the negative electrode; when the electronic load simulates a motor in a reverse rotation mode, the second switch tube Q2 and the third switch tube Q3 are controlled to be closed, and the first switch tube Q1 and the fourth switch tube Q4 are disconnected, and the current flows into the negative electrode of the electronic load E and flows out of the positive electrode, and the electronic load will alarm at this time.
[0063] In order to solve the problem that the electronic load will alarm when simulating a motor in reverse mode, a relay module is introduced in the H-bridge drive circuit in this embodiment. The relay module is used to switch the current path so that the current flows into the positive pole of the electronic load and flows out of the negative pole of the electronic load regardless of the forward mode or the reverse mode, thereby realizing the simulation of the forward mode and reverse mode of the motor.
[0064] like Figure 5 , which shows a circuit diagram of an H-bridge driving circuit provided by an embodiment of the present application. The H-bridge driving circuit may include: an H-bridge 510 , an electronic load 520 and a relay module 530 .
[0065] The H-bridge 510 includes a first switch tube Q1 , a second switch tube Q2 , a third switch tube Q3 and a fourth switch tube Q4 .
[0066] The electronic load 520 is an electronic device designed to provide a controllable load for the output of a power supply, and is usually capable of dynamic loading. In practical applications, a suitable electronic load 520 can be selected according to actual business needs. For example, the electronic load 520 can be an IT8400 series electronic load of Itech, which is a single-channel electronic load, that is, it has only one set of positive and negative poles, can range from 6KW to 54KW, and has a single-digit resolution. It has multiple test functions such as dynamic, automatic testing, battery and short circuit, and is suitable for testing fuel cells, power battery discharge, DC charging piles, on-board chargers, power electronics, photovoltaic solar energy, automotive high-voltage accessories, DC-DC (DC-DC), motors and other power electronic products.
[0067] The relay module 530 is an electronic component that combines multiple relays and can switch the current path by controlling the closing of the relays.
[0068] The connection relationship between the H-bridge 510 , the electronic load 520 and the relay module 530 is described below.
[0069] The drains of the first switch tube Q1 and the second switch tube Q2 are respectively connected to the voltage signal input end, the source of the first switch tube Q1 is respectively connected to the first end of the relay module 530 and the drain of the third switch tube Q3, the source of the second switch tube Q2 is respectively connected to the second end of the relay module 530 and the drain of the fourth switch tube Q4, the source of the third switch tube Q3 and the fourth switch tube Q4 is grounded, and the gates of the first switch tube Q1, the second switch tube Q2, the third switch tube Q3 and the fourth switch tube Q4 are respectively connected to the drive signal input end; the third end of the relay module 530 is connected to the positive electrode of the electronic load 520, and the fourth end of the relay module 530 is connected to the negative electrode of the electronic load 520.
[0070] In this embodiment, the electronic load 520 is used to simulate the motor for ECU testing, and the working modes of the motor include a forward mode and a reverse mode. When the electronic load 520 simulates the motor in the forward mode, the relay module 530 is used to control the current in the H-bridge 510 drive circuit to form a first current path; when the electronic load 520 simulates the motor in the reverse mode, the relay module 530 is used to control the current in the H-bridge 510 drive circuit to form a second current path, and the currents in the first current path and the second current path both flow in from the positive electrode of the electronic load 520 and flow out from the negative electrode of the electronic load 520.
[0071] To sum up, the H-bridge drive circuit provided in the embodiment of the present application, since the electronic load can provide a fully controllable load, using an electronic load instead of a motor for ECU testing can not only improve the accuracy of the simulated load, but also simulate the current and voltage characteristics of the motor under different load conditions, thereby expanding the adjustment range of the simulated load.
[0072] The electronic load has positive and negative polarities, and an alarm will be issued when the electronic load is reversely connected. Therefore, a relay module is needed to switch the current path in the H-bridge drive circuit so that the current flows into the positive pole of the electronic load and flows out of the negative pole of the electronic load regardless of the forward mode or the reverse mode, thereby simulating the forward mode and reverse mode of the motor.
[0073] By using relays or relay cards to switch the current path, a high degree of automated testing can be achieved.
[0074] The relay module 530 has a variety of circuit structures, and two of them are used as examples in this embodiment. The first relay module 530 includes four relays, and the second relay module 530 includes a relay board. The circuit structures of the two relay modules 530 are described below.
[0075] (1) Figure 6 As shown, the relay module 530 includes four relays:
[0076] One end of the first relay S1 and one end of the third relay S3 are connected to serve as the first end of the relay module 530; that is, one end of the first relay S1 and one end of the third relay S3 are connected to the source of the first switch tube Q1 and the drain of the third switch tube Q3.
[0077] One end of the second relay S2 and one end of the fourth relay S4 are connected to serve as the second end of the relay module 530; that is, one end of the second relay S2 and one end of the fourth relay S4 are connected to the source of the second switch tube Q2 and the drain of the fourth switch tube Q4.
[0078] The other end of the first relay S1 and the other end of the fourth relay S4 are connected to serve as the third end of the relay module 530 ; that is, the other end of the first relay S1 and the other end of the fourth relay S4 are connected to the positive electrode of the electronic load 520 .
[0079] The other end of the second relay S2 is connected to the other end of the third relay S3 and then serves as the fourth end of the relay module 530 ; that is, the other end of the second relay S2 is connected to the other end of the third relay S3 and then connected to the negative electrode of the electronic load 520 .
[0080] When the electronic load 520 simulates a motor in forward rotation mode, the first switch tube Q1 and the fourth switch tube Q4 are closed, and the second switch tube Q2 and the third switch tube Q3 are opened; the first relay S1 and the second relay S2 are closed, and the third relay S3 and the fourth relay S4 are opened; the first current path is: UB→S1→A(+)→E→B(-)→S2→GND. Among them, UB represents the voltage signal input terminal, A(+) represents the positive electrode of the electronic load 520, E represents the electronic load 520, B(-) represents the negative electrode of the electronic load 520, and GND represents the ground.
[0081] When the electronic load 520 simulates a motor in reverse mode, the second switch tube Q2 and the third switch tube Q3 are closed, and the first switch tube Q1 and the fourth switch tube Q4 are opened; the third relay S3 and the fourth relay S4 are closed, and the first relay S1 and the second relay S2 are opened; the second current path is: UB→S4→A(+)→E→B(-)→S3→GND.
[0082] (2) Figure 7 As shown, the relay module 530 includes a relay board:
[0083] The first input pin IN1 and the third input pin IN3 of the relay card serve as the first terminal H1+ of the relay module 530 ; that is, the first input pin IN1 and the third input pin IN3 are connected to the source of the first switch tube Q1 and the drain of the third switch tube Q3 .
[0084] The second input pin IN2 and the fourth input pin IN4 of the relay card serve as the second terminal H1- of the relay module 530; that is, the second input pin IN2 and the fourth input pin IN4 are connected to the source of the second switch tube Q2 and the drain of the fourth switch tube Q4.
[0085] The first output pin OUT1 and the fourth output pin OUT4 of the relay card serve as the third terminal of the relay module 530 ; that is, the first output pin OUT1 and the fourth output pin OUT4 are connected to the positive electrode of the electronic load 520 .
[0086] The second output pin OUT2 and the third output pin OUT3 of the relay card serve as the fourth end of the relay module 530 ; that is, the second output pin OUT2 and the third output pin OUT3 are connected to the negative electrode of the electronic load 520 .
[0087] The control pin ETH of the relay module 530 is connected to the control end.
[0088] In this embodiment, the control end includes an upper computer and a lower computer, the upper computer is connected to the lower computer, and the lower computer is connected to the control pin. The upper computer and the lower computer communicate via Ethernet (ETH), and the lower computer communicates with the control pin via ETH.
[0089] When the electronic load simulates a motor in forward rotation mode, the first switch tube Q1 and the fourth switch tube Q4 are closed, and the second switch tube Q2 and the third switch tube Q3 are opened; the upper computer is used to send a first control instruction to the lower computer, and the lower computer is used to convert the first control instruction into a first control signal and send it to the relay card; the relay card is used to control the current in the H-bridge drive circuit to form a first current path under the instruction of the first control signal sent by the control end;
[0090] When the electronic load simulates a motor in reversing mode, the second switch tube Q2 and the third switch tube Q3 are closed, and the first switch tube Q1 and the fourth switch tube Q4 are opened; the upper computer is used to send a second control instruction to the lower computer, and the lower computer is used to convert the second control instruction into a second control signal and send it to the relay board; the relay board is used to control the current in the H-bridge drive circuit to form a second current path under the instruction of the second control signal sent by the control end.
[0091] like Figure 8 As shown, it shows a flow chart of a driving method of an H-bridge driving circuit provided by an embodiment of the present application, and the driving method can be applied to the H-bridge driving circuit. The driving method of the H-bridge driving circuit may include:
[0092] Step 801, determining the working mode of the motor to be simulated by the electronic load.
[0093] The motor has two working modes, one is the forward mode and the other is the reverse mode. In the forward mode, the current flows into the positive pole of the motor and flows out of the negative pole; in the reverse mode, the current flows into the negative pole of the motor and flows out of the positive pole.
[0094] When performing ECU testing, it is usually necessary to test the forward mode and the reverse mode. The test order of the forward mode and the reverse mode can be set according to business needs.
[0095] When the forward mode needs to be tested this time, it is determined that the working mode is the forward mode; when the reverse mode needs to be tested this time, it is determined that the working mode is the reverse mode.
[0096] Step 802: When the working mode is the forward mode, the relay module controls the current in the H-bridge driving circuit to form a first current path.
[0097] The relay module may include four relays, or the relay module may include one relay board.
[0098] (1) The relay module includes four relays:
[0099] like Figure 6 As shown, when the electronic load simulates a motor in forward rotation mode, the first switch tube Q1 and the fourth switch tube Q4 are closed, and the second switch tube Q2 and the third switch tube Q3 are opened; the first relay S1 and the second relay S2 are closed, and the third relay S3 and the fourth relay S4 are opened; the first current path is: UB→S1→A(+)→E→B(-)→S2→GND. Among them, UB represents the voltage signal input terminal, A(+) represents the positive electrode of the electronic load, E represents the electronic load, B(-) represents the negative electrode of the electronic load, and GND represents the ground.
[0100] (2) The relay module includes a relay board:
[0101] like Figure 7 As shown, when the electronic load simulates a motor in forward rotation mode, the first switch tube Q1 and the fourth switch tube Q4 are closed, and the second switch tube Q2 and the third switch tube Q3 are opened; the upper computer sends a first control instruction to the lower computer, and the lower computer converts the first control instruction into a first control signal and sends it to the relay board; under the instruction of the first control signal sent by the control end, the relay board controls the current in the H-bridge drive circuit to form a first current path.
[0102] The current in the first current path flows in from the positive electrode of the electronic load and flows out from the negative electrode of the electronic load.
[0103] Step 803, when the working mode is the reversal mode, the relay module controls the current in the H-bridge driving circuit to form a second current path; wherein the currents in the first current path and the second current path both flow in from the positive electrode of the electronic load and flow out from the negative electrode of the electronic load.
[0104] The relay module may include four relays, or the relay module may include one relay board.
[0105] (1) The relay module includes four relays:
[0106] like Figure 6 As shown, when the electronic load simulates a motor in reversing mode, the second switch tube Q2 and the third switch tube Q3 are closed, and the first switch tube Q1 and the fourth switch tube Q4 are opened; the third relay S3 and the fourth relay S4 are closed, and the first relay S1 and the second relay S2 are opened; the second current path is: UB→S4→A(+)→E→B(-)→S3→GND.
[0107] (2) The relay module includes a relay board:
[0108] like Figure 7 As shown, when the electronic load simulates a motor in a reversing mode, the second switch tube Q2 and the third switch tube Q3 are closed, and the first switch tube Q1 and the fourth switch tube Q4 are opened; the upper computer is used to send a second control instruction to the lower computer, and the lower computer is used to convert the second control instruction into a second control signal and send it to the relay board; the relay board is used to control the current in the H-bridge drive circuit to form a second current path under the instruction of the second control signal sent by the control end.
[0109] The current in the second current path flows in from the positive electrode of the electronic load and flows out from the negative electrode of the electronic load.
[0110] In summary, the driving method of the H-bridge driving circuit provided in the embodiment of the present application, since the electronic load can provide a fully controllable load, using an electronic load instead of a motor for ECU testing can not only improve the accuracy of the simulated load, but also simulate the current and voltage characteristics of the motor under different load conditions, thereby expanding the adjustment range of the simulated load.
[0111] The electronic load has positive and negative polarities, and an alarm will be issued when the electronic load is reversely connected. Therefore, a relay module is needed to switch the current path in the H-bridge drive circuit so that the current flows into the positive pole of the electronic load and flows out of the negative pole of the electronic load regardless of the forward mode or the reverse mode, thereby simulating the forward mode and reverse mode of the motor.
[0112] By using relays or relay cards to switch the current path, a high degree of automated testing can be achieved.
[0113] An embodiment of the present application provides a car, which includes the above-mentioned H-bridge drive circuit.
[0114] A person skilled in the art will understand that all or part of the steps to implement the above embodiments may be accomplished by hardware or by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a disk or an optical disk, etc.
[0115] The above description is not intended to limit the embodiments of the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the embodiments of the present application should be included in the protection scope of the embodiments of the present application.
Claims
1. An H-bridge driving circuit, characterized in that: The H-bridge driving circuit comprises: an H-bridge, an electronic load and a relay module, wherein the H-bridge comprises a first switch tube, a second switch tube, a third switch tube and a fourth switch tube; The drains of the first switch tube and the second switch tube are respectively connected to the voltage signal input terminal, the source of the first switch tube is respectively connected to the first terminal of the relay module and the drain of the third switch tube, the source of the second switch tube is respectively connected to the second terminal of the relay module and the drain of the fourth switch tube, the source of the third switch tube and the fourth switch tube is grounded, and the gates of the first switch tube, the second switch tube, the third switch tube and the fourth switch tube are respectively connected to the drive signal input terminal; The third end of the relay module is connected to the positive electrode of the electronic load, and the fourth end of the relay module is connected to the negative electrode of the electronic load; The electronic load is used to simulate a motor to perform an electronic controller ECU test, and the working mode of the motor includes a forward mode and a reverse mode; When the electronic load simulates a motor in a forward rotation mode, the relay module is used to control the current in the H-bridge drive circuit to form a first current path; when the electronic load simulates a motor in a reverse rotation mode, the relay module is used to control the current in the H-bridge drive circuit to form a second current path, and the currents in the first current path and the second current path both flow into the positive pole of the electronic load and flow out of the negative pole of the electronic load.
2. The H-bridge driving circuit according to claim 1, characterized in that: The relay module includes four relays, or the relay module includes a relay board.
3. The H-bridge driving circuit according to claim 2, characterized in that: When the relay module includes four relays, One end of the first relay and one end of the third relay are connected to serve as the first end of the relay module; One end of the second relay and one end of the fourth relay are connected to serve as the second end of the relay module; The other end of the first relay and the other end of the fourth relay are connected to serve as the third end of the relay module; The other end of the second relay and the other end of the third relay are connected to serve as the fourth end of the relay module.
4. The H-bridge driving circuit according to claim 3, characterized in that: When the electronic load simulates a motor in a forward rotation mode, the first relay and the second relay are closed, and the third relay and the fourth relay are opened; When the electronic load simulates a motor in a reverse mode, the third relay and the fourth relay are closed, and the first relay and the second relay are opened.
5. The H-bridge driving circuit according to claim 2, characterized in that: When the relay module includes a relay card, The first input pin and the third input pin of the relay board serve as the first end of the relay module; The second input pin and the fourth input pin of the relay board serve as the second end of the relay module; The first output pin and the fourth output pin of the relay board serve as the third end of the relay module; The second output pin and the third output pin of the relay board serve as the fourth end of the relay module; The control pin of the relay module is connected to the control end.
6. The H-bridge driving circuit according to claim 5, characterized in that: When the electronic load simulates a motor in a forward rotation mode, the relay board is used to control the current in the H-bridge drive circuit to form a first current path under the instruction of the first control signal sent by the control terminal; When the electronic load simulates a motor in a reversing mode, the relay board is used to control the current in the H-bridge drive circuit to form a second current path under the instruction of the second control signal sent by the control end.
7. The H-bridge driving circuit according to claim 6, characterized in that: The control end includes an upper computer and a lower computer, and the lower computer is connected to the control pin; When the electronic load simulates a motor in a forward rotation mode, the upper computer is used to send a first control instruction to the lower computer, and the lower computer is used to convert the first control instruction into the first control signal and then send it to the relay board; When the electronic load simulates a motor in a reversing mode, the upper computer is used to send a second control instruction to the lower computer, and the lower computer is used to convert the second control instruction into the second control signal and send it to the relay board.
8. The H-bridge driving circuit according to any one of claims 1 to 7, characterized in that: When the electronic load simulates a motor in a forward rotation mode, the first switch tube and the fourth switch tube are closed, and the second switch tube and the third switch tube are opened; When the electronic load simulates a motor in a reversing mode, the second switch tube and the third switch tube are closed, and the first switch tube and the fourth switch tube are opened.
9. A driving method for an H-bridge driving circuit, characterized in that: Used in the H-bridge driving circuit according to any one of claims 1 to 8, the method comprises: Determine the working mode of the motor to be simulated by the electronic load; When the working mode is the forward mode, the relay module controls the current in the H-bridge driving circuit to form a first current path; When the working mode is the reversal mode, the relay module controls the current in the H-bridge driving circuit to form a second current path; The currents in the first current path and the second current path both flow in from the positive electrode of the electronic load and flow out from the negative electrode of the electronic load.
10. An automobile, characterized in that: The automobile comprises the H-bridge driving circuit according to any one of claims 1 to 8.
