Battery device for driving three-phase motor and reversely charging by using motor

By introducing a battery device into the motor drive system, using the cooperation of the H-bridge circuit and the DC-DC conversion module, the effective recovery of electricity and the improvement of battery efficiency are achieved, and the problem of large energy loss in the brushless DC motor drive is solved, reducing costs and improving safety.

CN120287854APending Publication Date: 2025-07-11BEIJING ZHONGCHEN MICROELECTRONICS CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510650271.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-05-20
Publication Date
2025-07-11

AI Technical Summary

Technical Problem

The existing brushless DC motor drive method has problems such as large energy loss and easy heat generation during switching operation, resulting in a reduction in battery efficiency.

Method used

The battery device is used to connect to the motor, including a battery unit, a DC-DC conversion module, an H-bridge circuit and a control module. The H-bridge circuit and a DC-DC conversion module are controlled to discharge and charge according to the target output voltage and the motor Hall signal value. The H-bridge circuit is used to switch the output voltage polarity, and the voltage amplitude is adjusted in combination with the DC-DC conversion module to achieve effective recovery of electricity.

Benefits of technology

Reduces energy loss, improves battery usage efficiency, reduces dependence on high-power switch MOS tubes, reduces costs and improves safety.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120287854A_ABST
    Figure CN120287854A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of batteries, in particular to a battery device for driving a three-phase motor and reversely charging by utilizing the motor, which comprises a battery unit, a direct current-direct current conversion module, an H-bridge circuit and a control module, the battery unit comprises a plurality of battery monomers connected in series; the control module is used for controlling the H-bridge circuit and the DC-DC conversion module to discharge the battery unit according to the target output voltage; and the direct current-direct current conversion module is controlled to charge the battery unit according to the Hall signal value of the motor during braking. Through the reverse charging function of the motor, when a vehicle or equipment is in a braking state, reverse potential energy generated by the motor can be effectively recycled. The on-off change of the voltage is within the range of one single battery, the H-bridge circuit and the DC-DC conversion module are combined, a high-power switch MOS tube is not needed in the charging and discharging process, an inverter is not needed for voltage boosting and reducing operation, the cost is reduced, and the utilization efficiency and the safety of the power supply are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of batteries, and particularly to a battery device for driving a three-phase motor and reverse charging by using the motor. Background Art

[0002] Existing electric vehicles adopt brushless DC motors. Brushless DC motors do not use mechanical brush devices but use square wave control, replacing the carbon brush commutator with Hall sensors. They have great advantages over general traditional DC motors in terms of performance and are the most ideal speed control motors today. The driving method of brushless DC motors is generally that the motor coil is connected to a switch transistor, and an inverter is composed of 6 transistors. The upper and lower transistors alternately repeat ON-OFF in a certain order to change the direction of the coil current, and the torque generated by the six-step commutation method makes the rotor rotate; another method is to perform SPWM (sinusoidal pulse modulation) on the DC power supply voltage to generate an AC voltage, and then use a delta or Y connection of three-phase three-wire to connect the three-phase motor UVW three wires.

[0003] However, when using a switching tube to perform a switching operation on the power supply, the voltage directly drops from a high level to 0, resulting in large energy loss, easy heating, and reduced battery usage efficiency. Summary of the Invention

[0004] (I) Object of the Invention

[0005] The object of the present invention is to provide a battery device for driving a three-phase motor and reverse charging by using the motor, which can reduce energy loss and improve battery usage efficiency.

[0006] (II) Technical Solution

[0007] To solve the above problems, the present invention provides a battery device for driving a three-phase motor and reverse charging by using the motor. The battery device is connected to the motor, and the battery device includes: a battery unit, a DC-DC conversion module, an H-bridge circuit, and a control module; the battery unit includes multiple series-connected battery monomers;

[0008] The battery unit, the DC-DC conversion module, and the H-bridge circuit are all connected to the control module;

[0009] The DC-DC conversion module is connected to the battery unit, and the DC-DC conversion module is used to adjust the output voltage amplitude of the battery unit;

[0010] Both ends of the H-bridge circuit are respectively connected to the DC-DC conversion module and the battery unit, and the H-bridge circuit is used to switch the output voltage polarity;

[0011] The control module is used to control the H-bridge circuit and the DC-DC conversion module to discharge the battery unit according to the target output voltage; and control the DC-DC conversion module to charge the battery unit according to the motor Hall signal value during braking.

[0012] On the other hand, preferably, controlling the H-bridge circuit and the DC-DC conversion module to discharge the battery unit includes:

[0013] Define the target sine wave period according to the target output voltage;

[0014] Set the number of sampling points within the target sine wave period, and calculate the theoretical value of the instantaneous voltage corresponding to the current sampling point;

[0015] Determine the first number of battery cells connected to the discharge circuit and the first compensation voltage value of the DC-DC conversion module according to the theoretical value of the instantaneous voltage and the voltage of each battery cell.

[0016] On the other hand, preferably, controlling the H-bridge circuit and the DC-DC conversion module to discharge the battery unit further includes:

[0017] Determine and identify the polarity when calculating the theoretical value of the instantaneous voltage corresponding to the current sampling point;

[0018] When the theoretical value of the instantaneous voltage is zero or at every half of the target sine wave period, switch the output voltage polarity through the H-bridge circuit according to the identified polarity.

[0019] On the other hand, preferably, the theoretical value of the instantaneous voltage is calculated using the following formula:

[0020] V n =sign*24*sin(2Π / N)

[0021] Wherein, V n represents the theoretical value of the instantaneous voltage corresponding to the nth sampling point, N represents the total number of sampling points, and sign is +1 or -1 according to the polarity indication.

[0022] On the other hand, preferably, determining the first number of battery cells connected to the discharge circuit and the first compensation voltage value of the DC-DC conversion module according to the theoretical value of the instantaneous voltage and the voltage of each battery cell includes:

[0023] Determine the first number of battery cells connected to the discharge circuit according to the theoretical value of the instantaneous voltage and the voltage of each battery cell, and the first number is based on the total voltage of the connected battery cells being less than or equal to the theoretical value of the instantaneous voltage;

[0024] Calculate a first difference between the theoretical value of the instantaneous voltage and the total voltage of the battery cells connected, where the first difference is the first compensation voltage value of the DC-DC conversion module.

[0025] In another aspect of the present invention, preferably, it further includes a timer configured to interrupt according to an interruption period, and the interruption period is the time difference between two adjacent sampling points.

[0026] In another aspect of the present invention, preferably, the battery device includes a plurality of battery units, and the plurality of battery units trigger phase synchronization through motor Hall signals, so that the plurality of battery units output sine waves with a phase difference of 2π / 3.

[0027] In another aspect of the present invention, preferably, controlling the DC-DC conversion module to charge the battery unit according to the motor Hall signal value during braking includes:

[0028] Calculate the current phase of the motor rotor according to the motor Hall signal value during braking;

[0029] According to the current phase of the motor rotor, calculate the sine value voltage output by the motor;

[0030] According to the sine value voltage output by the motor, control the DC-DC conversion module to charge the battery unit.

[0031] In another aspect of the present invention, preferably, controlling the DC-DC conversion module to charge the battery unit according to the sine value voltage output by the motor includes:

[0032] According to the sine value voltage output by the motor, determine the second number of battery cells connected to the charging circuit, and the second number is based on the remaining voltage of the battery cells connected being less than or equal to the sine value voltage;

[0033] Calculate a second difference between the sine value voltage and the remaining voltage of the battery cells connected, where the second difference is the second compensation voltage value of the DC-DC conversion module.

[0034] In another aspect of the present invention, preferably, calculating the sine value voltage output by the motor according to the current phase of the motor rotor includes:

[0035] According to the current phase of the motor rotor, calculate the sine voltage value output by the motor according to the duration of each phase.

[0036] (III) Advantageous Effects

[0037] The above technical solutions of the present invention have the following beneficial technical effects:

[0038] In the present invention, through the reverse charging function of the motor, when the vehicle or device is in the braking state, the reverse potential energy generated by the motor can be effectively recovered. The switching change of the voltage is within the range of a single battery cell, and in combination with the H-bridge circuit and the DC-DC conversion module, high-power switching MOS transistors are not required during the charge and discharge process, and there is no need for an inverter to perform boost and buck operations, reducing costs, improving power utilization efficiency and safety. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] Figure 1 is a schematic diagram of the overall structure of an embodiment of the present invention;

[0040] Figure 2 is a schematic diagram of the connection between the battery device and the motor of an embodiment of the present invention;

[0041] Figure 3 is a schematic diagram of the discharge process of the battery device of an embodiment of the present invention;

[0042] Figure 4 is a waveform diagram of the output voltage of the battery device of an embodiment of the present invention;

[0043] Figure 5 is a diagram showing the correspondence between the theoretical value of the instantaneous voltage and the actual output value of an embodiment of the present invention;

[0044] Figure 6 is a schematic diagram of the frequency conversion of the output voltage of an embodiment of the present invention;

[0045] Figure 7 is a schematic diagram of the synchronous frequency conversion of two battery cells of an embodiment of the present invention;

[0046] Figure 8 is a schematic diagram of the charging process of the battery device of an embodiment of the present invention;

[0047] Figure 9 is a schematic diagram of calculating the motor phase using Hall signals of an embodiment of the present invention. DETAILED DESCRIPTION OF THE EMBODIMENTS

[0048] To make the objectives, technical solutions and advantages of the present invention clearer, the present invention will be further described in detail below in conjunction with the specific embodiments and with reference to the accompanying drawings. It should be understood that these descriptions are merely exemplary and are not intended to limit the scope of the present invention. In addition, in the following description, the descriptions of well-known structures and technologies are omitted to avoid unnecessarily confusing the concepts of the present invention.

[0049] A schematic structural diagram according to an embodiment of the present invention is shown in the accompanying drawings. These drawings are not drawn to scale, in which for the purpose of clarity, some details are enlarged and some details may be omitted. The shapes of various regions and layers shown in the drawings, as well as their relative sizes and positional relationships, are merely exemplary, and in practice, there may be deviations due to manufacturing tolerances or technical limitations. Those skilled in the art can additionally design regions / layers with different shapes, sizes, and relative positions according to actual needs.

[0050] Obviously, the described embodiments are part of the embodiments of the present invention, rather than all of the embodiments. All other embodiments obtained by those of ordinary skill in the art based on the embodiments of the present invention without creative efforts shall fall within the scope of protection of the present invention.

[0051] In the description of the present invention, it should be noted that the terms "first", "second", and "third" are only used for descriptive purposes and cannot be construed as indicating or implying relative importance.

[0052] In addition, the technical features involved in different embodiments of the present invention described below can be combined with each other as long as they do not conflict with each other.

[0053] The present invention will be described in more detail below with reference to the accompanying drawings. In each of the drawings, the same elements are denoted by similar reference numerals. For the sake of clarity, the various parts in the drawings are not drawn to scale.

[0054] Embodiment 1

[0055] A battery device for driving a three-phase motor and reverse charging the battery using the motor, Figure 1 shows an overall flowchart of an embodiment of the present invention, as Figure 1 shown, the battery device is connected to the motor, Figure 2 shows a schematic connection diagram of the battery device and the motor according to an embodiment of the present invention, as Figure 2 shown, the battery includes: a battery unit, a DC-DC conversion module, an H-bridge circuit, and a control module; the battery unit includes multiple series-connected battery cells. The control module in this embodiment is a microcontroller unit.

[0056] The battery unit, DC-DC conversion module, and H-bridge circuit are all connected to the control module. In this embodiment, 12 18650 battery cells are used for illustration. Each battery cell in the battery unit can measure voltage and temperature, and the control module estimates the state of charge of the battery. Each battery cell can perform a bypass operation to prevent overcharging or over-discharging. The DC-DC conversion module is connected to the battery unit, and the DC-DC conversion module is used to adjust the amplitude of the output voltage of the battery unit. A DC-DC conversion module is connected in series with each battery unit. During discharge, it plays a role in stabilizing the voltage, and during charging, it plays a role in adjusting the voltage and limiting the current.

[0057] Both ends of the H-bridge circuit are respectively connected to the DC-DC conversion module and the battery unit. The H-bridge circuit is used to switch the polarity of the output voltage. Multiple battery units can be connected in parallel or in series according to the application scenario. The control modules are connected through a CAN bus to form a network. The network can spontaneously organize a battery unit to be the main control module according to certain rules to manage the charging and discharging operations of all battery units.

[0058] The control module is used to control the H-bridge circuit and the DC-DC conversion module to discharge the battery unit according to the target output voltage; and control the DC-DC conversion module to charge the battery unit according to the motor Hall signal value during braking.

[0059] Further, in this embodiment, discharging the battery unit is based on the assumption that the voltage of each battery cell is 4V, and each battery unit can form a 48V voltage. In one AC sine wave cycle, N points are sampled. Then the voltage values corresponding to these N points are respectively V n= 48*sin(2Π / N), n = 1…N. Further still, if the desired sine wave cycle is T, then the frequency f = 1 / T. Each cycle still samples N points, and the time interval between two points is T / N. Thus, discrete sine wave values of any cycle can be generated, which is the power supply voltage for driving the motor. Therefore, in this embodiment, discharging the battery unit includes:

[0060] Figure 3 shows a schematic diagram of the charge and discharge process of an embodiment of the present invention, as Figure 3As shown, a target sine wave period is defined according to the target output voltage; the number of sampling points within the target sine wave period is set, and the theoretical value of the instantaneous voltage corresponding to the current sampling point is calculated; according to the theoretical value of the instantaneous voltage and the voltage of each battery cell, the first number of battery cells connected to the discharge circuit and the first compensation voltage value of the DC-DC conversion module are determined. Among them, the polarity is determined and marked when calculating the theoretical value of the instantaneous voltage corresponding to the current sampling point; when the theoretical value of the instantaneous voltage is zero or every half of the target sine wave period, the output voltage polarity is switched through the H-bridge circuit according to the marked polarity. It further includes a timer configured to interrupt according to an interruption period, and the interruption period is the time difference between two adjacent sampling points.

[0061] The theoretical value of the instantaneous voltage is calculated using the following formula:

[0062] V n = sign * 24 * sin(2Π / N)

[0063] Wherein, V n represents the theoretical value of the instantaneous voltage corresponding to the nth sampling point, N represents the total number of sampling points, and sign is +1 or -1 according to the polarity indication.

[0064] As Figure 3 shown, a target sine wave period is divided into 48 parts, and the duration of each part can be accurately defined by counting the system clock. The voltage sampling value of each time period is determined by the above formula, where sign is based on the polarity indication, and the H-bridge performs polarity conversion every half cycle to make the battery output positive or negative, that is, the sign value is +1 or -1. The interval time between sampling points can be achieved by using a hardware timer to count the number of crystal oscillator pulses and generate an overflow interrupt.

[0065] Furthermore, in this embodiment, according to the theoretical value of the instantaneous voltage and the voltage of each battery cell, determining the first number of battery cells connected to the discharge circuit and the first compensation voltage value of the DC-DC conversion module includes:

[0066] According to the theoretical value of the instantaneous voltage and the voltage of each battery cell, determine the first number of battery cells connected to the discharge circuit, and the first number of battery cells is based on the total voltage of the connected batteries being less than or equal to the theoretical value of the instantaneous voltage;

[0067] Calculate the first difference between the theoretical value of the instantaneous voltage and the total voltage of the connected battery cells. This first difference is the first compensation voltage value of the DC-DC conversion module. Assume the voltage of a single battery cell is 3V. In the actual circuit, the actual measured value of the battery is used as the standard. For example, at the 0th sampling point, the output is 3V, and one battery cell is connected to the circuit while other battery cells are bypassed; at the 1st point, the output is 6V, and two battery cells are connected to the circuit while other battery cells are bypassed, and so on. At the 4th point, the output is 11V. At this time, three battery cells can only output 9V, and the remaining 2V is used to control the DC-DC conversion module for compensation.

[0068] The battery device includes multiple battery units. The multiple battery units trigger phase synchronization through the motor Hall signal, so that the multiple battery units output sine waves with a phase difference of 2π / 3.

[0069] Use the control of the control module to generate a sine wave voltage with a desired frequency. The voltage is generated by accumulation or subtraction, avoiding switching of large voltages, reducing the performance requirements for high-power high-voltage MOS transistors, and can be achieved without an inverter.

[0070] In this embodiment, Figure 4 is the output voltage waveform diagram of a battery device according to an embodiment of the present invention; Figure 5 is the corresponding relationship diagram between the theoretical value of the instantaneous voltage and the actual output value according to an embodiment of the present invention; Figure 6 is the frequency conversion schematic diagram of the output voltage according to an embodiment of the present invention; Figure 7 is the synchronous frequency conversion schematic diagram of two battery units according to an embodiment of the present invention; as Figure 4 、 Figure 5 、 Figure 6 and Figure 7 shown, sampling is performed at each voltage sampling point, and the sampling time at each sampling point is continuous. It looks like a sine wave voltage composed of stepped voltages as Figure 4 shown. Further, the comparison between the theoretical value of the instantaneous voltage calculated according to the above calculation formula and the actual output voltage is as Figure 5 shown, and the degree of coincidence is high. The frequency conversion operation in this embodiment is as Figure 6 shown. Due to the experimental no-load reason, please ignore the amplitude change. The synchronous phase relationship and synchronous frequency conversion of two battery units are as Figure 7 shown. The sine wave period before frequency conversion is 50ms, and the period after frequency conversion is 20ms. The phase difference between the yellow and blue sine waves is 2Π / 3, corresponding to Figure 2 the two battery units supplying power to the motor in

[0071] Further, in this embodiment, Figure 8The figure shows a schematic diagram of the charging process of the battery device according to an embodiment of the present invention. As Figure 8 shown, charging does not refer to a separate charging interface. Instead, when the motor brakes, the battery system recovers the electrical energy output by the motor and charges the battery. This process is the reverse process of the discharging process: the software calculates the current phase of the motor rotor based on the motor Hall signal value, thereby calculating the sinusoidal voltage output by the motor, and controls the battery bypass and DCDC to charge the battery in the circuit. The charging of the battery unit by combining the DC-DC conversion module according to the motor Hall signal value during braking includes: Figure 9 The figure shows a schematic diagram of calculating the motor phase using Hall signals according to an embodiment of the present invention. As Figure 9 shown, the current phase of the motor rotor is calculated based on the motor Hall signal value during braking;

[0072] According to the current phase of the motor rotor, the sinusoidal voltage output by the motor is calculated. Further, the sinusoidal voltage value output by the motor is calculated based on the duration of each phase. The three Hall sensors are arranged at 120°. According to the Hall signal, the current rotation phase of the motor is located, and the sinusoidal voltage value output by the motor is calculated based on the duration of each phase. The corresponding number of single cells in the circuit is connected to achieve the charging operation of the battery.

[0073] Charging the battery unit by combining the DC-DC conversion module according to the sinusoidal voltage output by the motor includes:

[0074] According to the sinusoidal voltage output by the motor, the second number of battery cells connected to the charging circuit is determined. The second number is based on the remaining voltage of the connected battery being less than or equal to the sinusoidal voltage; the second difference between the sinusoidal voltage and the remaining voltage of the battery cells connected to the charging circuit is calculated, and the second difference is the second compensation voltage value of the DC-DC conversion module. When the frequency of the sinusoidal wave output by the motor changes, the reaction waveform is that the durations of each phase value are different. At this time, the software can still estimate the phase according to the Hall value and thus predict the value of the charging voltage. The charging step is similar to the discharging step. The only difference is the judgment of the Hall phase (2PI / 3 interval) output by the motor. The system determines the sinusoidal battery value output by the motor according to the Hall phase of the motor, and connects the corresponding number of batteries (less than or equal to the motor output voltage) in the loop to achieve the charging of the battery by the motor. During charging, due to the voltage division effect of the DCDC, there is no need to precisely match the voltage of the batteries connected in the loop, which greatly reduces the implementation difficulty.

[0075] Through the reverse charging function of the motor of the present invention, when the vehicle or device is in a braking state, the reverse potential energy generated by the motor can be effectively recovered. The switching change of the voltage is within the range of a single battery cell, and in combination with an H-bridge circuit and a DC-DC conversion module, high-power switching MOS transistors are not required for the charging and discharging process, and no inverter is needed for step-up and step-down operations, reducing costs, improving power utilization efficiency and safety. It can be applied to motor-driven power devices such as electric vehicles or electric bicycles, saving motor drive costs, improving battery drive efficiency and having benefits in terms of safety.

[0076] It should be understood that the above specific embodiments of the present invention are only used for exemplary illustration or explanation of the principle of the present invention, and do not constitute a limitation to the present invention. Therefore, any modifications, equivalent replacements, improvements, etc. made without departing from the spirit and scope of the present invention shall be included within the protection scope of the present invention. In addition, the appended claims of the present invention are intended to cover all changes and modification examples falling within the scope and boundaries of the appended claims, or equivalent forms of such scope and boundaries.

[0077] The present invention has been described above with reference to the embodiments of the present invention. However, these embodiments are only for illustrative purposes and not for limiting the scope of the present invention. The scope of the present invention is defined by the appended claims and their equivalents. Without departing from the scope of the present invention, those skilled in the art can make various substitutions and modifications, and all such substitutions and modifications should fall within the scope of the present invention.

[0078] Although the embodiments of the present invention have been described in detail, it should be understood that various changes, substitutions and alterations can be made to the embodiments of the present invention without departing from the spirit and scope of the present invention.

[0079] Obviously, the above embodiments are only examples given for clear illustration and not limitations on the embodiments. For those of ordinary skill in the art, other different forms of changes or variations can be made based on the above description. It is not necessary and impossible to enumerate all the embodiments here. And the obvious changes or variations derived therefrom are still within the protection scope of the present invention.

Claims

1. A battery device for driving a three-phase motor and reverse charging the battery using the motor, characterized in that, The battery device is connected to the motor, and the battery device includes: a battery unit, a DC-DC conversion module, an H-bridge circuit, and a control module; the battery unit includes multiple battery cells connected in series. The battery unit, the DC-DC conversion module, and the H-bridge circuit are all connected to the control module. The DC-DC conversion module is connected to the battery unit, and the DC-DC conversion module is used to adjust the amplitude of the output voltage of the battery unit. Both ends of the H-bridge circuit are respectively connected to the DC-DC conversion module and the battery unit, and the H-bridge circuit is used to switch the polarity of the output voltage. The control module is used to control the H-bridge circuit and the DC-DC conversion module to discharge the battery unit according to the target output voltage; and control the DC-DC conversion module to charge the battery unit according to the motor Hall signal value during braking.

2. The drive three-phase motor and battery device for reverse charging using the motor according to claim 1, wherein Controlling the H-bridge circuit and the DC-DC conversion module to discharge the battery unit includes: Defining a target sine wave period according to the target output voltage. Setting the number of sampling points within the target sine wave period, and calculating the theoretical value of the instantaneous voltage corresponding to the current sampling point. According to the theoretical value of the instantaneous voltage and the voltage of each battery cell, determining the first number of battery cells connected to the discharge circuit and the first compensation voltage value of the DC-DC conversion module.

3. The driving three-phase motor and battery device for reverse charging using the motor according to claim 2, characterized in that, Controlling the H-bridge circuit and the DC-DC conversion module to discharge the battery unit further includes: Determining and identifying the polarity when calculating the theoretical value of the instantaneous voltage corresponding to the current sampling point. When the theoretical value of the instantaneous voltage is zero or at every half of the target sine wave period, switching the polarity of the output voltage through the H-bridge circuit according to the identified polarity.

4. The drive three-phase motor and battery device for reverse charging using the motor according to claim 2, characterized in that, The theoretical value of the instantaneous voltage is calculated using the following formula: V n = sign * 24 * sin(2Π / N) Among them, V n represents the theoretical value of the instantaneous voltage corresponding to the nth sampling point, N represents the total number of sampling points, and sign is +1 or -1 according to the polarity indication.

5. The drive three-phase motor and battery device for reverse charging using the motor according to claim 2, characterized in that, According to the theoretical value of the instantaneous voltage and the voltage of each battery cell, determining the first number of battery cells connected to the discharge circuit and the first compensation voltage value of the DC-DC conversion module includes: According to the theoretical value of the instantaneous voltage and the voltage of each battery cell, determining the first number of battery cells connected to the discharge circuit, where the first number is based on the total voltage of the connected battery cells being less than or equal to the theoretical value of the instantaneous voltage. Calculating the first difference between the theoretical value of the instantaneous voltage and the total voltage of the connected battery cells, and the first difference is the first compensation voltage value of the DC-DC conversion module.

6. The drive three-phase motor and battery device for reverse charging using the motor according to claim 2, characterized in that, It further includes a timer, and the timer is configured to interrupt according to an interrupt period, and the interrupt period is the time difference between two adjacent sampling points.

7. The drive three-phase motor and battery device for reverse charging using the motor according to claim 2, characterized in that, The battery device includes multiple battery units, and the multiple battery units are triggered to be phase-synchronized through the motor Hall signal, so that the multiple battery units output sine waves with a phase difference of 2π / 3.

8. The drive three-phase motor and battery device for reverse charging using the motor according to claim 1, characterized in that, Controlling the DC-DC conversion module to charge the battery unit according to the motor Hall signal value during braking includes: Calculating the current phase of the motor rotor according to the motor Hall signal value during braking. Calculating the sine value voltage output by the motor according to the current phase of the motor rotor. Controlling the DC-DC conversion module to charge the battery unit according to the sine value voltage output by the motor.

9. The drive three-phase motor and battery device for reverse charging using the motor according to claim 8, characterized in that, Controlling the charging of the battery unit by the DC-DC conversion module according to the sinusoidal voltage output by the motor includes: Determining the second number of battery cells connected to the charging circuit according to the sinusoidal voltage output by the motor, where the second number is based on the remaining voltage of the connected battery cells being less than or equal to the sinusoidal voltage; Calculating a second difference between the sinusoidal voltage and the remaining voltage of the connected battery cells, where the second difference is the second compensation voltage value of the DC-DC conversion module.

10. The drive three-phase motor and battery device for reverse charging using the motor according to claim 8, characterized in that, Calculating the sinusoidal voltage output by the motor according to the current phase of the motor rotor, including: Calculating the sinusoidal voltage value output by the motor according to the current phase of the motor rotor and the duration of each phase.