Control system for motor, current sampling method and device, readable storage medium and vehicle

By using multiple ADC modules for polling and sampling in the motor control system, the problem of high cost of multiple motor control systems is solved, and the effect of reducing the sampling rate requirement and improving the system efficiency is achieved.

CN118971712APending Publication Date: 2024-11-15CHONGQING CHANGAN TECH CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202411196927.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-29
Publication Date
2024-11-15

AI Technical Summary

Technical Problem

In the prior art, the control system of multiple motors is relatively high, mainly due to the increase in the number of MCU and ADC chips in the single-resistance inductor-free current sampling scheme, resulting in high production costs.

Method used

Multiple ADC modules are used, and each motor uses two ADC modules to sample phase currents. Multiple ADC modules are used to poll and sample the phase currents of multiple motors, reducing the sampling window time requirements and the sampling rate requirements of the ADC module.

Benefits of technology

It realizes the reduction of production costs without increasing MCU performance requirements, and improves the efficiency and reliability of the motor control system, avoiding the sampling conflict of ADC modules.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118971712A_ABST
    Figure CN118971712A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of motor control, in particular to a control system for a motor, a current sampling method and device, a readable storage medium and a vehicle. The control system comprises: a micro-control unit comprising a plurality of ADC modules; phase current sampling is carried out on each motor through two ADC modules, one of the two ADC modules is used for collecting the first phase current of the motor, and the other one of the two ADC modules is used for collecting the second phase current of the motor; and the micro-control unit is used for controlling the plurality of ADC modules to perform polling sampling on the phase current of the plurality of motors. For a single-resistor scheme of an FOC 20K control frequency, a software algorithm generally requires that the ADC sampling time of a single motor is less than or equal to 0.5 us (the sampling rate is greater than or equal to 2MSPS), and the sampling rate is increased by two times compared with a scheme that a single ADC module acquires single resistors of two motors, so that the system can be realized by an MCU (Microprogrammed Control Unit) of the ADC module less than 2MSPS, and the system has a wide application prospect. The performance requirement for the micro-control unit in the control system is further reduced, and meanwhile the production cost is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of motor control, and in particular to a control system for a motor, a current sampling method and device thereof, a readable storage medium and a vehicle. Background Art

[0002] With the development of automobile intelligence, automobiles have more and more functions, which in turn increases the number of motors needed by automobiles. With the evolution of automobile architecture, multiple single controllers are integrated into domain controllers. Taking the front cabin of a car as an example, the front cabin domain controller integrates 5 brushless DC motors, which are motors used for water pumps, oil pumps, cooling fans and other functions. Consider production costs, circuit board size and software complexity. The brushless DC motor control adopts a single resistor non-sensing (no Hall sensor) solution. Based on the requirements of the single resistor sampling FOC control algorithm, the single motor requires the ADC module sampling rate ≥ 2MSPS and the sampling time ≤ 0.5us.

[0003] In the related art, the single resistor current sampling solutions designed for this situation include the following: The first solution uses an MCU with 5 ADC modules. The second solution uses an MCU with 3 ADC modules and two ADC chips to implement motor current sampling. However, the MCU selected in the implementation of the above two solutions and the combination of ADC chips will increase the cost. Summary of the invention

[0004] The object of the present invention is to provide a control system for a motor, a current sampling method and device thereof, a readable storage medium and a vehicle, so as to solve the problem of high cost of control systems for multiple motors in the related art.

[0005] In order to achieve the above object, the technical solution adopted by the present invention is as follows: A control system for a motor is used to control the operation of multiple motors. The control system includes: multiple ADC modules, each motor performs phase current sampling through two ADC modules, one of the two ADC modules is used to collect the first phase current of the motor, and the other is used to collect the second phase current of the motor; wherein the multiple ADC modules are used to perform polling sampling on the phase currents of the multiple motors.

[0006] According to the above technical means, two ADC modules are used to collect the two-phase current of a motor, and multiple motors are polled using multiple ADC modules. One of the two ADC modules is used to collect the first-phase current of the motor, and the other is used to collect the second-phase current of the motor. Compared with the related art that uses one ADC module to sample the two-phase current, the sampling window time requirement of the present application is reduced, thereby reducing the sampling rate requirement of the ADC module.

[0007] Furthermore, the control system for the motor also includes: a micro control unit, a plurality of ADC modules are arranged in the micro control unit, and the micro control unit is used to control the plurality of ADC modules to perform polling sampling on the phase currents of the plurality of motors.

[0008] According to the above technical means, for the single resistor sampling scheme of FOC 20K control frequency, the software algorithm usually requires that the ADC sampling time of a single motor is ≤0.5us (sampling rate ≥2MSPS), and the sampling rate is increased by 2 times when a single ADC module collects two motors in the single resistor scheme. The system using the present application can be implemented with an MCU with an ADC module of less than 2MSPS, further reducing the performance requirements for the microcontroller unit in the control system while reducing production costs.

[0009] Furthermore, the number of the multiple ADC modules is at least two, and the number of the multiple motors is at least two; wherein the number of motors is greater than or equal to the number of ADC modules.

[0010] According to the above technical means, the number of ADC modules is at least two, and two ADC modules are used for each motor to respectively collect the first phase current and the second phase motor current, so as to reduce the sampling time and lower the demand for sampling rate.

[0011] Furthermore, the number of ADC modules is m, which are respectively recorded as ADC1, ADC2, ..., ADCm, where m≥2; the number of motors is n, which are respectively recorded as BLDC1, BLDC2, ..., BLDCn, where n≥2; the control frequencies of the FOC algorithms corresponding to the multiple motors are: the FOC control frequency of BLDC1 is f1, the FOC control frequency of BLDC2 is f2, ..., the FOC control frequency of BLDCn is fn; the target sampling frequency of the phase current corresponding to the multiple motors is: f 电流采样 =(f1+f2+…+fn)×α, where α is the number of phase currents of a single motor that needs to be collected for FOC algorithm control; the total sampling frequency of multiple ADC modules: f ADC =(f ADC1 + f ADC2 +…+f ADCm )×η, where η is the sampling utilization rate of multiple ADC modules, 1 / 2≤η≤1; where f ADC ≥f 电流采样 .

[0012] According to the above technical means, the number of motors and the number of ADC modules are set, combined with the control frequency of the FOC algorithm and the sampling frequency of the ADC module, to determine that the target sampling frequency of the phase currents corresponding to the multiple motors and the total sampling frequency of the multiple ADC modules satisfy the relationship f ADC ≥f 电流采样, in order to achieve the stability of current sampling for multiple motors.

[0013] Furthermore, the number of motors is 5, the number of ADC modules is 3, and the 3 ADC modules are respectively a first ADC module, a second ADC module and a third ADC module; wherein, the first motor performs current sampling through the first ADC module and the second ADC module, and the first ADC module is used to collect the first phase current, and the second ADC module is used to collect the second phase current; the second motor performs current sampling through the third ADC module and the first ADC module, and the third ADC module is used to collect the first phase current, and the first ADC module is used to collect the second phase current; the third motor performs current sampling through the second ADC module and the third ADC module, and the second ADC module is used to collect the first phase current, and the third ADC module is used to collect the second phase current; the fourth motor performs current sampling through the first ADC module and the second ADC module, and the first ADC module is used to collect the first phase current, and the second ADC module is used to collect the second phase current; the fifth motor performs current sampling through the third ADC module and the first ADC module, and the third ADC module is used to collect the first phase current, and the first ADC module is used to collect the second phase current.

[0014] According to the above technical means, three ADC modules are used to poll and sample the phase currents of five motors, reducing the ADC sampling rate performance requirements and the number of ADC modules, thereby reducing MCU performance and cost.

[0015] Furthermore, the number of motors is 3, the number of ADC modules is 3, and the 3 ADC modules are respectively a first ADC module, a second ADC module and a third ADC module; wherein, the first motor performs current sampling through the first ADC module and the second ADC module, and the first ADC module is used to collect the first phase current, and the second ADC module is used to collect the second phase current; the second motor performs current sampling through the third ADC module and the first ADC module, and the third ADC module is used to collect the first phase current, and the first ADC module is used to collect the second phase current; the third motor performs current sampling through the second ADC module and the third ADC module, and the second ADC module is used to collect the first phase current, and the third ADC module is used to collect the second phase current.

[0016] According to the above technical means, three ADC modules are used to poll and sample the phase currents of the three motors, reducing the ADC sampling rate performance requirements and the number of ADC modules, thereby reducing MCU performance and cost.

[0017] Furthermore, the number of motors is 2, the number of ADC modules is 2, and the 2 ADC modules are respectively a first ADC module and a second ADC module; wherein, the first motor performs current sampling through the first ADC module and the second ADC module, and the first ADC module is used to collect the first phase current, and the second ADC module is used to collect the second phase current; the second motor performs current sampling through the first ADC module and the second ADC module, and the first ADC module is used to collect the first phase current, and the second ADC module is used to collect the second phase current.

[0018] According to the above technical means, two ADC modules are used to collect the two-phase current of a motor. One of the two ADC modules is used to collect the first-phase current of the motor, and the other is used to collect the second-phase current of the motor. The sampling window time requirement is reduced, thereby reducing the sampling rate requirement of the ADC module.

[0019] Furthermore, the control system for the motor also includes: a plurality of drive circuits, the drive circuits are connected to the motors and used to drive the motors to work, each motor is provided with a drive circuit, and the drive circuit is connected between the DC buses; a plurality of current sampling circuits, the current sampling circuits are used to sample the phase currents of the motors, each motor is provided with a corresponding current sampling circuit, the current sampling circuit includes a single sampling resistor, the single sampling resistor is connected in series with the three-phase inverter bridge, and is arranged at the ground bus position of the DC bus. A plurality of motor pre-drive chips, each pre-drive chip includes an operational amplifier, each operational amplifier is arranged in a one-to-one correspondence with the single sampling resistor, the input end of the operational amplifier is electrically connected to the single sampling resistor, and the output end of the operational amplifier is connected to the ADC module.

[0020] According to the above technical means, each motor is provided with a drive circuit to realize independent control of each motor. Each motor is provided with a current sampling circuit corresponding to the motor, which samples the phase current of the motor through a single sampling resistor. The single sampling resistor is connected in series with the drive circuit and is arranged at the ground bus position of the DC bus to effectively monitor the actual phase current flowing through the motor for closed-loop control of the motor. Multiple operational amplifiers are integrated in the motor pre-driver chip, and each operational amplifier is set in one-to-one correspondence with a single sampling resistor. The output end of the operational amplifier is connected to the ADC module, so that the amplified current signal can be converted into a digital signal for processing by the microcontroller unit (MCU), and the sampling resolution and accuracy are improved by amplifying the sampled current.

[0021] A current sampling method is applied to a control system for a motor as described in any of the above technical solutions, the sampling method comprising: determining multiple target motors to be controlled and target control sequences of the multiple target motors; determining a trigger sequence of multiple ADC modules according to the target control sequence; based on a FOC control algorithm, polling and sampling the phase currents of the multiple target motors in turn using multiple ADC modules according to the target control sequence and the trigger sequence; wherein, for each motor, two ADC modules are controlled to sample the first phase current and the second phase current respectively.

[0022] According to the above technical means, two ADC modules are used to collect the two-phase current of a motor, one of the two ADC modules is used to collect the first phase current of the motor, and the other is used to collect the second phase current of the motor. Based on the FOC control algorithm, multiple ADC modules are used to poll multiple motors in turn, and the sampling time is triggered based on the FOC algorithm. Compared with the use of one ADC module to sample two-phase currents in the related art, the sampling window time requirement of the present application is reduced, thereby reducing the sampling rate requirement of the ADC module. For the single-resistance sampling scheme of the FOC 20K control frequency, the software algorithm usually requires a single motor ADC sampling time ≤ 0.5us (sampling rate ≥ 2MSPS), and the sampling rate is increased by 2 times when a single ADC module collects two motor single-resistance schemes. The system using the present application can be implemented with an MCU with an ADC module of less than 2MSPS, further reducing the performance requirements of the microcontroller unit in the control system, thereby reducing production costs. In the case of a limited number of ADC modules, the polling sampling method can efficiently utilize the hardware resources of the control system for the motor to achieve control of multiple motors.

[0023] Furthermore, for each motor, the steps of controlling two ADC modules to sample the first phase current and the second phase current respectively include: controlling the motor operation based on the FOC control algorithm; after the first phase current is stable, triggering one of the two ADC modules to start and collect the first phase current of the motor; after the second phase current is stable, triggering the other ADC module of the two ADC modules to start and collect the second phase current of the motor.

[0024] According to the above technical means, the control of the acquisition of the two-phase current of a motor is based on the FOC control algorithm to control the operation of the motor. After the first-phase current is stable, an ADC module is triggered to start, and the first-phase current of the motor is collected, thereby improving the accuracy of the collected first-phase current. After the second-phase current is stable, another ADC module is triggered to start, and the second-phase current of the motor is collected, thereby improving the accuracy of the collected second-phase current. In addition, the acquisition of the second-phase current does not need to wait until the first-phase current acquisition is completed before starting. Compared with using one ADC module to sample two-phase currents, the sampling window time requirement becomes lower, and the sampling rate requirement of the ADC module is correspondingly reduced.

[0025] Furthermore, after the second phase current is stable, the acquisition method further includes: after a first time interval, triggering another ADC module to start.

[0026] According to the above technical means, before starting to sample the second phase current, an interval of a first time length is set to improve the accuracy and stability of the second phase current sampling.

[0027] Furthermore, the step of determining the multiple target motors to be controlled and the target control sequence of the multiple target motors includes: obtaining an initial control sequence of the multiple motors of the control system; when the number of the multiple target motors is equal to the number of the multiple motors included in the control system, using the initial control sequence as the target control sequence of the multiple target motors; when the number of the multiple target motors is less than the number of the multiple motors included in the control system, adjusting the initial control sequence according to the multiple target motors to obtain the target control sequence of the multiple target motors.

[0028] According to the above technical means, target control sequences of multiple target motors can be determined based on the FOC control algorithm according to the multiple target motors that need to be controlled, so as to achieve applicability in various application scenarios.

[0029] Furthermore, based on the FOC control algorithm, according to the target control sequence and the trigger sequence, the steps of polling and sampling the phase currents of multiple target motors in sequence using multiple ADC modules include: based on the FOC control algorithm, controlling the multiple target motors in sequence according to the target control sequence; according to the trigger sequence, controlling one of the two ADC modules corresponding to the first motor in the target control sequence to collect the first phase current of the current motor, and the other ADC module to collect the second phase current of the current motor; when the first phase current of the current motor is sampled, according to the trigger sequence, controlling one of the two ADC modules corresponding to the next motor to collect the first phase current of the next motor, and the other ADC module to collect the second phase current of the next motor; when the first phase current of the current motor is not sampled, controlling the delay processing of the next motor; and so on, according to the target control sequence and the trigger sequence, completing the acquisition of the phase currents of the remaining target motors in sequence; wherein, two adjacent motors in the target control sequence share the same ADC module.

[0030] According to the above technical means, based on the FOC control algorithm, according to the target control sequence and the trigger sequence, the current polling of multiple motors is completed in sequence. According to the two ADC modules connected to each motor, the first phase current and the second phase current of each target motor are triggered in sequence to sample. Moreover, since the two adjacent motors have a common ADC module, before starting the phase current sampling of the next motor, it is first determined whether the first phase current of the current motor is sampled. When the first phase current of the current motor is sampled, the two ADC modules corresponding to the next motor are triggered to start according to the FOC control algorithm, and the first phase current and the second phase current of the next motor are sampled. If the first phase current of the current motor is not sampled, the delay processing of the next motor is controlled. By analogy, the polling of the phase currents of the remaining motors is completed. In this way, in the process of sampling the phase currents of multiple target motors by sampling multiple ADC modules based on the FOC control algorithm, the reliability of the phase current sampling is improved, thereby avoiding the sampling conflict problem of the same ADC module that may be caused during the FOC control process of multiple motors.

[0031] Further, the step of determining whether the sampling of the first phase current of the current motor has been completed includes: timing the collection time of the first phase current of the current motor; when the collection time of the first phase current of the current motor is greater than or equal to the sampling time threshold, determining that the collection of the first phase current of the current motor is completed; when the collection time of the first phase current of the current motor is less than the sampling time threshold, determining that the collection of the first phase current of the current motor is not completed.

[0032] According to the above technical means, the phase current of each motor is sampled by two ADC modules, because the next motor will use the third ADC module and the first ADC module of the current motor to complete the current sampling. The timing starts when the first ADC module of the current motor samples. After the timing time is greater than or equal to the sampling time of the ADC module, the phase current sampling of the next motor can be performed according to the FOC control requirements, thereby improving the reliability of the current sampling and avoiding the problem of ADC module sampling conflict.

[0033] A current sampling device is applied to a control system for a motor as described in any of the above technical solutions. The current sampling device includes a processor and a memory storing program instructions. The processor is configured to execute the current sampling method as described in any of the above technical solutions when running the program instructions.

[0034] A computer-readable storage medium stores program instructions, which, when executed, are used to enable a computer to execute a current sampling method as described in any of the above technical solutions.

[0035] A vehicle comprises: a control system for a motor as described in any of the above technical solutions; or a current sampling device as described in any of the above technical solutions.

[0036] Beneficial effects of the present invention: (1) By using two ADC modules to collect the two-phase current of a motor, one of the two ADC modules is used to collect the first phase current of the motor, and the other is used to collect the second phase current of the motor. Compared with the related art that uses one ADC module to sample the two-phase current, the sampling window time requirement of this application is reduced, thereby reducing the sampling rate requirement of the ADC module. The 0.5us sampling requirement of the FOC algorithm can be implemented with an MCU with an ADC module of less than 2MSPS, further reducing the performance requirements of the microcontroller unit in the control system, thereby reducing the production cost.

[0037] (2) By using two ADC modules to collect the two-phase current of a motor, multiple motors are polled using multiple ADC modules. Compared with the related art that uses one ADC module to sample the two-phase current, compared with a single ADC module to collect the current of a single motor, the number of ADC modules required is reduced.

[0038] (3) The phase current of each motor is sampled using two ADC modules, because the next motor will use the third ADC module and the first ADC module of the current motor to complete current sampling. The timing starts when the first ADC module of the current motor samples. When the sampling time is greater than or equal to the sampling time of the ADC module, the phase current sampling of the next motor can be performed according to the FOC control requirements, thereby improving the reliability of the current sampling and avoiding the problem of ADC module sampling conflict.

[0039] The above general description and the following description are exemplary and explanatory only and are not intended to limit the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] One or more embodiments are exemplarily described by corresponding drawings, which do not limit the embodiments. Elements with the same reference numerals in the drawings are shown as similar elements, and the drawings do not constitute a scale limitation, and wherein: Figure 1 This is the field oriented control (FOC) block diagram; Figure 2 MOS drive and sampling schematic for a single brushless motor; Figure 3 A schematic diagram of a single resistor sampling for a control system of a motor according to an embodiment of the present invention; Figure 4 for Figure 3 A schematic diagram of the structure of a single motor pre-driver chip and two ADC modules implementing single resistor sampling in a control system for a motor in the illustrated embodiment; Figure 5 is the voltage space vector diagram; Figure 6 is the corresponding relationship between the MOS switch state and the bus sampling current under the corresponding space voltage vector; Figure 7 for Figure 5 Schematic diagram of PWM waveforms and phase current sampling time corresponding to the three vectors in the first sector; Figure 8 for Figure 5 A vector current sampling diagram in the first sector; Fig. 9 A flow chart of a current sampling method according to an embodiment of the present invention; Fig.10 A flow chart of controlling two ADC modules to sample the first phase current and the second phase current respectively for each motor provided by the present invention; Fig.11 A sampling timing diagram of an ADC module for FOC control of multiple motors according to an embodiment of the present invention; Fig.12 A flow chart of a current sampling method according to another embodiment of the present invention; Fig.13 A flow chart of a current sampling method according to another embodiment of the present invention; Fig.14 A flow chart of a current sampling method according to another embodiment of the present invention; Fig.15A block diagram of a current sampling device according to an embodiment of the present invention.

[0041] Reference numerals: 1. Control system for motor; 110, micro control unit; 112, ADC module; 1121, first ADC module; 1122, second ADC module; 1123, third ADC module; 120, motor; 121, first motor; 122, second motor; 123, third motor; 124, fourth motor; 125, fifth motor; 130, drive circuit; 132, three-phase inverter circuit; 140, current sampling circuit; 142, single sampling resistor; 1421, first single sampling resistor; 1422, second single sampling resistor; 1423, third single sampling resistor; 1424, fourth single sampling resistor; 1425, fifth single sampling resistor; 150, motor pre-driver chip; 152, operational amplifier; 1500, current sampling device; 1501. Processor; 1502. Memory; 1503. Communication interface; 1504. Bus. DETAILED DESCRIPTION

[0042] The following will describe the embodiments of the present invention with reference to the accompanying drawings and preferred embodiments. Those skilled in the art can easily understand other advantages and effects of the present invention from the contents disclosed in this specification. The present invention can also be implemented or applied through other different specific embodiments, and the details in this specification can also be modified or changed in various ways based on different viewpoints and applications without departing from the spirit of the present invention. It should be understood that the preferred embodiments are only for illustrating the present invention, not for limiting the scope of protection of the present invention.

[0043] It should be noted that the illustrations provided in the following embodiments are only schematic illustrations of the basic concept of the present invention, and thus the drawings only show components related to the present invention rather than being drawn according to the number, shape and size of components in actual implementation. In actual implementation, the type, quantity and proportion of each component may be changed arbitrarily, and the component layout may also be more complicated.

[0044] In some embodiments, the software control of the brushless motor 120 uses a FOC (Field Oriented Control) control algorithm. Figure 1 The field oriented control (FOC) block diagram is shown in Figure 1. Phase current is the basis of the brushless motor 120 FOC control algorithm. Phase current sampling adopts a single resistor sampling scheme, combined with Figure 2As shown, in the single-resistance sampling scheme, the single sampling resistor 142 is placed at the ground bus position, and the two-phase current of the brushless motor 120 is collected in time-sharing in each FOC control cycle, and the third-phase current of the motor 120 is calculated according to Kirchhoff's law IA+IB+IC=0. The single-resistance scheme requires a sampling resistor and an op amp. Compared with the three-resistance sampling scheme and the dual-resistance sampling scheme, the single-resistance sampling scheme has a low hardware cost. However, in the related art, the single resistor current sampling scheme designed for current sampling of multiple brushless motors 120 samples an ADC (Analog to Digital Converter) ADC module 112 to collect the phase current of a motor 120, or the ADC module 112 is combined with the ADC chip to collect the phase current of the motor 120 one-to-one, or the MCU containing a high sampling rate ADC module 112, considering that the software requires a single motor 120 sampling time of less than 0.5us, and a sampling rate of 2MSPS and above. If two motors 120 use one ADC module 112, the sampling rate of the ADC module 112 needs to reach 4MSPS. There is currently no MCU with this performance on the market, that is, this scheme is not feasible. The previous two schemes will lead to a substantial increase in production costs. Based on this, the present application provides a control system 1 for a motor to achieve sampling of phase currents of multiple motors 120, and compared with the sampling schemes in the related art, the production cost is reduced.

[0045] In some embodiments, in combination Figure 3 As shown, a control system 1 for a motor is provided, which is used to control multiple motors 120. The control system 1 includes: multiple ADC modules 112, each motor 120 performs phase current sampling through two ADC modules 112, one of the two ADC modules 112 is used to collect the first phase current of the motor 120, and the other is used to collect the second phase current of the motor 120. Among them, the multiple ADC modules 112 are used to poll and sample the phase currents of the multiple motors 120.

[0046] The control system 1 for a motor provided by the present application uses two ADC modules 112 to collect two-phase currents of a motor 120, and multiple motors 120 are polled using multiple ADC modules 112. One of the two ADC modules 112 is used to collect the first phase current of the motor 120, and the other is used to collect the second phase current of the motor 120. Compared with the related art that uses one ADC module 112 to sample two-phase currents, the sampling window time requirement of the present application is reduced, thereby reducing the sampling rate requirement of the ADC module 112.

[0047] In some embodiments, in combination Figure 3As shown, a control system 1 for a motor is provided, comprising: a microcontroller unit 110 and a plurality of motors 120. The microcontroller unit 110 comprises a plurality of ADC modules 112. The plurality of motors 120, each motor 120 performs phase current sampling through two ADC modules 112, one of the two ADC modules 112 is used to collect the first phase current of the motor 120, and the other is used to collect the second phase current of the motor 120. The microcontroller unit 110 is used to control the plurality of ADC modules 112 to perform polling sampling on the phase currents of the plurality of motors 120.

[0048] The control system 1 for the motor provided in this application is combined with Figure 3 and Figure 4 As shown, two ADC modules 112 are used to collect the two-phase current of a motor 120, and multiple motors 120 are polled using multiple ADC modules 112. One of the two ADC modules 112 is used to collect the first phase current of the motor 120, and the other is used to collect the second phase current of the motor 120. Compared with the use of one ADC module 112 to sample the two-phase current in the related art, the sampling window time requirement of the present application is reduced, thereby reducing the sampling rate requirement of the ADC module 112. For the sampling requirement of 0.5us of the FOC algorithm, an MCU with an ADC module 112 of less than 2MSPS can be used to implement it, further reducing the performance requirements of the microcontroller unit 110 in the control system, while reducing the production cost.

[0049] In some embodiments, in combination Figure 3 and Figure 4As shown, the control system 1 for the motor also includes: multiple drive circuits 130, multiple current sampling circuits 140 and multiple motor pre-drive chips 150. The micro control unit 110 includes multiple ADC modules 112. Multiple motors 120, each motor 120 performs phase current sampling through two ADC modules 112, one of the two ADC modules 112 is used to collect the first phase current of the motor 120, and the other is used to collect the second phase current of the motor 120. Among them, the micro control unit 110 is used to control the multiple ADC modules 112 to perform polling sampling on the phase currents of the multiple motors 120. The drive circuit 130 is connected to the motor 120 and is used to drive the motor 120 to work. Each motor 120 is provided with a drive circuit 130, and the drive circuit 130 is connected between the DC bus bars. The current sampling circuit 140 is used to sample the phase current of the motor 120, and each motor 120 is correspondingly provided with a current sampling circuit 140. The current sampling circuit 140 includes a single sampling resistor 142, which is connected in series with the three-phase inverter bridge and is arranged at the ground bus position of the DC bus. Each motor pre-drive chip 150 includes an operational amplifier 152, which is arranged one-to-one with the single sampling resistor 142, the input end of the operational amplifier 152 is electrically connected to the single sampling resistor 142, and the output end of the operational amplifier 152 is connected to the ADC module 112.

[0050] In this embodiment, each motor 120 is provided with a drive circuit 130 to achieve independent control of each motor 120. Each motor 120 is provided with a current sampling circuit 140, which samples the phase current of the motor 120 through a single sampling resistor 142. The single sampling resistor 142 is connected in series with the drive circuit 130 and is arranged at the ground bus position of the DC bus to effectively monitor the actual phase current flowing through the motor 120 for closed-loop control of the motor 120. An operational amplifier 152 is integrated inside the motor pre-driver chip 150, and each operational amplifier 152 is arranged in a one-to-one correspondence with a single sampling resistor 142. The output end of the operational amplifier 152 is connected to the ADC module 112, so that the amplified current signal can be converted into a digital signal for processing by the micro control unit 110 (MCU), and the sampling resolution and accuracy are improved by amplifying the sampled current.

[0051] Further, combined with Figure 2 and Figure 4As shown, the drive circuit 130 includes a three-phase inverter circuit 132, and the three-phase inverter circuit 132 includes 6 MOS tubes. The micro control unit 110 controls the motor pre-drive chip 150, and the motor pre-drive chip 150 controls the conduction or shutdown of the 6 MOS tubes. The 6 MOS tubes are represented by Q1, Q2, Q3, Q4, Q5, and Q6 in sequence. The upper three MOS tubes Q1, Q2, and Q5 constitute the upper bridge arm of the inverter circuit, and the lower three MOS tubes Q3, Q4, and Q6 are called the lower bridge arm. The upper bridge arm and the lower bridge arm of the same phase cannot be turned on at the same time, and simultaneous conduction will cause a power supply short circuit. These 6 MOS tubes have 8 switch combinations, and the MOS tube of the upper bridge arm is defined as 1 when it is turned on and 0 when it is turned off. According to the conduction state of the three-phase inverter circuit 132, six standard vectors V100, V110, V010, V011, V001, V101 and two zero vectors V000, V111 are obtained.

[0052] According to the conduction state of the three-phase inverter circuit 132 and the voltage space correspondence, the combined Figure 5 The voltage space vector diagram shown is divided into 6 sectors, represented by Ⅰ, Ⅱ, Ⅲ, Ⅳ, Ⅴ, Ⅵ respectively. Any vector in a sector is composed of two adjacent standard vectors (U4[V100], U6[V110], U2[V010], U3[V011], U1[V001], U5[V101]) and two zero vectors (U0[V000], U7[V111]). The first sector is composed of U4[V100], U6[V110], U0[V000], U7[V111] vectors. The second sector is composed of U6[V110], U2[V010], U0[V000], U7[V111] vectors. The third sector is composed of U2[V010], U3[V011], U0[V000], and U7[V111] vectors. The fourth sector is composed of U3[V011], U1[V001], U0[V000], and U7[V111] vectors. The fifth sector is composed of U1[V001], U5[V101], U0[V000], and U7[V111] vectors. The sixth sector is composed of U5[V101], U4[V100], U0[V000], and U7[V111] vectors. Combined Figure 6 As shown in Figure 1, the spatial voltage vector corresponds to the bus sampling current. Figure 5 and Figure 6 , using a single resistor sampling scheme, each sector contains the observable area ( Figure 5 The white area shown in Figure 2) and the non-observation area ( Figure 5 The non-observation area is composed of the gray area in the figure. The non-observation area is because the sampling window time is too short and the ADC module 112 cannot complete the ADC sampling. In the non-observation area, the PWM control needs to shift the term for processing. Phase shifting is a common practice for current sampling in the non-observation area, which will not be elaborated here.

[0053] by Figure 5 Taking the first sector in the example, in the current observable area of ​​the first sector, the PWM waveforms corresponding to the three vectors are as follows: Figure 7 As shown, the current acquisition diagram is as follows Figure 8 As shown. Combined Figure 7 As shown in Figure 2, different vectors correspond to different phase current sampling window times. Figure 7 As shown in the figure (the dark gray is the U-phase current sampling window, and the light gray is the W-phase current sampling window), the closer the vector is to the standard vector U4, the shorter the W-phase sampling window time is. If the ADC setup time is greater than the sum of the sampling window time and the current stabilization time, the W-phase current cannot be collected. The closer the vector is to the standard vector U6, the shorter the U-phase sampling window time is. If the ADC setup time is greater than the sum of the sampling window time and the current stabilization time, the U-phase current cannot be collected. Among them, the sampling time of the ADC module 112 includes the setup time and the conversion time, and the setup time accounts for about 1 / 4 of the sampling time.

[0054] The control system 1 for a motor disclosed in the present invention uses two ADC modules 112 to complete current sampling of a single motor 120. The first ADC module 112 collects the first phase current, and the second ADC module 112 collects the second phase current. The current sampling can be completed by controlling the sampling window time to be greater than the establishment time of the ADC module 112. The sampling time of the ADC module 112 is triggered by the FOC control algorithm. The present invention uses two ADC modules 112 to sample the first phase current and the second phase current of a motor respectively. The second ADC module 112 can sample after the second phase current is stable, without waiting for the first ADC module 112 to complete sampling. Compared with using one ADC module 112 to complete two-phase current sampling within one FOC control cycle, the sampling window time requirement becomes lower, and the sampling rate requirement of the ADC module 112 is correspondingly reduced.

[0055] In some embodiments, the number of the plurality of ADC modules 112 is at least two, and the number of the plurality of motors 120 is at least two. The number of the motors 120 is greater than or equal to the number of the ADC modules 112 .

[0056] In this embodiment, the number of ADC modules 112 is at least two, and two ADC modules 112 are used for each motor 120 to respectively collect the first phase current and the second phase motor 120, so as to reduce the sampling time and reduce the demand for the sampling rate. Furthermore, three or more ADC modules 112 can be set, and two ADC modules 112 are allocated to each motor 120 for sampling, and three or more ADC modules 112 are used to perform polling sampling on the phase currents of multiple motors 120 in sequence, so as to reduce the performance requirements of the ADC, and further reduce the performance requirements of the microcontroller unit 110, so as to reduce the production cost while reducing the sampling rate performance requirements.

[0057] In some embodiments, the number of ADC modules is m, which are respectively recorded as ADC1, ADC2, ..., ADCm, where m≥2; the number of motors is n, which are respectively recorded as BLDC1, BLDC2, ..., BLDCn, where n≥2; the control frequencies of the FOC algorithms corresponding to the multiple motors are: the FOC control frequency of BLDC1 is f1, the FOC control frequency of BLDC2 is f2, ..., the FOC control frequency of BLDCn is fn; the target sampling frequency of the phase current corresponding to the multiple motors is: f 电流采样 =(f1+f2+…+fn)×α, where α is the number of phase currents of a single motor that needs to be collected for FOC algorithm control; the total sampling frequency of multiple ADC modules: f ADC =(f ADC1 +f ADC2 +…+f ADCm )×η, where η is the sampling utilization rate of multiple ADC modules, 1 / 2≤η≤1; where f ADC ≥f 电流采样 .

[0058] According to the above embodiment, the number of motors and the number of ADC modules are set, combined with the control frequency of the FOC algorithm and the sampling frequency of the ADC module, to determine that the target sampling frequency of the phase currents corresponding to the multiple motors and the total sampling frequency of the multiple ADC modules satisfy the relationship f ADC ≥f 电流采样 , in order to achieve the stability of current sampling for multiple motors.

[0059] Among them, in the case of sampling a single resistor sampling circuit, the value of α is 2, that is, two-phase current is collected. η is the sampling utilization rate of multiple ADC modules, that is, the effective sampling time ratio of multiple ADC modules in unit time. ADC1 、f ADC2 ,…,f ADCm f are the sampling rates corresponding to ADC1, ADC2, ..., ADCm respectively. ADC ≥f 电流采样, that is, (f1+f2+…+fn)≤(f ADC1 + f ADC2 +…+f ADCm )×η / α, so the number of motors can be reasonably set according to this relationship.

[0060] In some embodiments, the number of motors and ADC modules can be set according to the actual application scenario, and two ADC modules are allocated to each motor for sampling, and the phase currents of multiple motors are polled and sampled to reduce the performance requirements of the ADC, thereby reducing the performance requirements of the microcontroller unit, thereby improving the sampling rate while reducing production costs. The number of motors and ADC modules includes but is not limited to 2 motors, 2 ADC modules; or 3 motors, 3 ADC modules; or 4 motors, 3 ADC modules; or 5 motors, 2 ADC modules; or 5 motors, 3 ADC modules; or 6 motors, 2 ADC modules; or 6 motors, 3 ADC modules, etc., and examples are not given one by one here.

[0061] In some embodiments, in combination Figure 3 As shown, a control system 1 for a motor is provided, with the number of motors 120 being 5, and the 5 motors are respectively: the first motor 121, the second motor 122, the third motor 123, the fourth motor 124, and the fifth motor 125. The 5 motors are respectively provided with single sampling resistors 142, which are respectively the first single sampling resistor 1421, the second single sampling resistor 1422, the third single sampling resistor 1423, the fourth single sampling resistor 1424, and the fifth single sampling resistor 1425. And each single sampling resistor 142 is respectively connected to the motor pre-drive chip 150 and the operational amplifier 152. For example, the number of ADC modules 112 is 3. The three ADC modules 112 are respectively the first ADC module 1121, the second ADC module 1122, and the third ADC module 1123.

[0062] Among them, the first motor 121 performs current sampling through the first ADC module 1121 and the second ADC module 1122, and the first ADC module 1121 is used to collect the first phase current, and the second ADC module 1122 is used to collect the second phase current. The second motor 122 performs current sampling through the third ADC module 1123 and the first ADC module 1121, and the third ADC module 1123 is used to collect the first phase current, and the first ADC module 1121 is used to collect the second phase current. The third motor 123 performs current sampling through the second ADC module 1122 and the third ADC module 1123, and the second ADC module 1122 is used to collect the first phase current, and the third ADC module 1123 is used to collect the second phase current. The fourth motor 124 performs current sampling through the first ADC module 1121 and the second ADC module 1122, and the first ADC module 1121 is used to collect the first phase current, and the second ADC module 1122 is used to collect the second phase current. The fifth motor 125 performs current sampling through the third ADC module 1123 and the first ADC module 1121 , and the third ADC module 1123 is used to collect the first phase current, and the first ADC module 1121 is used to collect the second phase current.

[0063] In this embodiment, the system includes 5 motors 120, and 3 ADC modules 112 are used to poll and sample the phase currents of the 5 motors 120. Based on the ADC module 112 used for sampling the phase current of each motor 120, the ADC modules 112 are allocated to the 5 motors 120, and the hardware connection is completed. Among them, the ADC module 112 used for sampling the first phase current of the current motor 120 is used as the ADC module 112 for sampling the second phase current of the next motor 120, and the ADC module 112 used for sampling the first phase current of the next motor 120 and the ADC module 112 used for sampling the first phase current of the current motor 120 are two independent ADC modules 112. In this way, 3 ADC modules 112 can be used to implement polling sampling of the phase currents of the 5 motors 120. Compared with the single resistor sampling scheme in the related art, the control system 1 for the motor disclosed in the present invention reduces the performance requirements for the sampling rate of the ADC module 112 and the number requirements of the ADC modules 112, thereby reducing the MCU performance and cost.

[0064] In some embodiments, a control system 1 for a motor is provided, taking the number of motors 120 as 2 and the number of ADC modules 112 as 2 as an example. The two ADC modules 112 are respectively a first ADC module and a second ADC module.

[0065] The first motor performs current sampling through the first ADC module and the second ADC module, and the first ADC module is used to collect the first phase current, and the second ADC module is used to collect the second phase current. The second motor performs current sampling through the first ADC module and the second ADC module, and the first ADC module is used to collect the first phase current, and the second ADC module is used to collect the second phase current. After the first ADC module completes the first phase current collection of the first motor, it can start collecting the first phase current of the second motor according to the FOC control requirements, and after the second ADC module completes the second phase current collection of the first motor, it can start collecting the second phase current of the second motor according to the FOC control requirements.

[0066] In some embodiments, a control system 1 for a motor is provided, taking the case where the number of motors 120 is 3 and the number of ADC modules 112 is 3 as an example. The three ADC modules 112 are respectively a first ADC module, a second ADC module and a third ADC module.

[0067] Among them, the first motor performs current sampling through the first ADC module and the second ADC module, and the first ADC module is used to collect the first phase current, and the second ADC module is used to collect the second phase current. The second motor performs current sampling through the third ADC module and the first ADC module, and the third ADC module is used to collect the first phase current, and the first ADC module is used to collect the second phase current. The third motor performs current sampling through the second ADC module and the third ADC module, and the second ADC module is used to collect the first phase current, and the third ADC module is used to collect the second phase current.

[0068] It should be noted that the number of motors 120 and the number of ADC modules 112 given in the above examples are for illustrative purposes only, and the number settings in actual applications are not limited to the listed ones, and can be reasonably selected and set according to the actual application scenario, and no examples are given one by one here.

[0069] In some embodiments, in combination Figure 3 and Figure 4 The control system for the motor shown, combined with Fig. 9 As shown, a current sampling method is provided, which is applied to a control system for a motor as described in any of the above technical solutions, and the sampling method includes: S901, determining a plurality of target motors to be controlled and a target control sequence of the plurality of target motors.

[0070] S902: Determine a trigger sequence of multiple ADC modules according to a target control sequence.

[0071] S903, based on the FOC control algorithm, according to the target control sequence and the trigger sequence, the phase currents of the multiple target motors are polled and sampled in turn using multiple ADC modules.

[0072] For each motor, two ADC modules are controlled to sample the first phase current and the second phase current respectively.

[0073] The current acquisition method provided by the present disclosure is applied to the control system for the motor shown in any of the above embodiments, and the two-phase current of a motor is collected by using two ADC modules, one of the two ADC modules is used to collect the first phase current of the motor, and the other is used to collect the second phase current of the motor. The current acquisition method includes polling multiple target motors in turn using multiple ADC modules based on the FOC control algorithm, and the sampling time is triggered based on the FOC algorithm. Compared with the use of one ADC module to sample the two-phase current in the related art, the sampling window time requirement of the present application is reduced, thereby reducing the sampling rate requirement of the ADC module. For the sampling requirement of 0.5us of the FOC algorithm, an MCU with an ADC module of less than 2MSPS can be used to implement it, further reducing the performance requirements of the microcontroller unit in the control system, thereby reducing the production cost. In the case of a limited number of ADC modules, the polling sampling method can efficiently utilize the hardware resources of the control system for the motor to achieve control of multiple target motors.

[0074] In one example, for multiple motors included in the control system, an ADC module is configured for each motor. Each motor is configured with two ADC modules. According to the target control sequence of the multiple target motors that need to be controlled to run this time, the trigger sequence of the multiple ADC modules is determined. Based on the FOC control algorithm, the multiple target motors and the multiple ADC modules are controlled to work according to the target control sequence and the trigger sequence.

[0075] In this embodiment, according to the target control sequence of multiple target motors, the trigger sequence of the corresponding multiple ADC modules is determined, so that the multiple ADC modules can poll and sample the phase currents of the multiple target motors. The trigger sequence includes the startup sequence and sampling time of the multiple ADC modules, which improves the utilization rate of the ADC modules and reduces the phase current sampling window time.

[0076] Wherein, the number of motors included in the control system is greater than or equal to the number of target motors that need to be controlled. For example, there are 5 motors in the control system for the motor, and the number of target motors for this operation is 4. Then, according to the 4 target motors and their respective matching ADC modules, the trigger sequence of multiple ADC modules is determined. Alternatively, there are 5 motors in the control system for the motor, and the number of target motors for this operation is 5. Then, according to the 5 target motors and their respective matching ADC modules, the trigger sequence of multiple ADC modules is determined.

[0077] In one example, target control sequences of the multiple target motors are determined according to the implemented functions of the multiple target motors.

[0078] In one example, multiple target motors are sorted according to the frequency of use of the functions implemented by the multiple target motors to obtain a target control sequence. Among the multiple target motors, the motor with the highest frequency of use is located at the first position of the target control sequence, and the motor with the lowest frequency of use is located at the last position of the target control sequence. In this way, the control efficiency of multiple target motors can be improved and the difficulty of adjusting the control sequence can be reduced.

[0079] In some embodiments, in combination Figure 3 The control system for the motor shown, combined with Fig.10 As shown, the steps of controlling two ADC modules to sample the first phase current and the second phase current respectively for each motor include: S1001, based on the FOC control algorithm, controls the motor operation.

[0080] S1002, after the first phase current is stable, trigger one of the two ADC modules to start and collect the first phase current of the motor.

[0081] S1003, after the second phase current is stable, trigger another ADC module of the two ADC modules to start and collect the second phase current of the motor.

[0082] In this embodiment, the control of the acquisition of the two-phase current of a motor is based on the FOC control algorithm to control the operation of the motor. After the first-phase current is stable, an ADC module is triggered to start, and the first-phase current of the motor is acquired, thereby improving the accuracy of the acquired first-phase current. After the second-phase current is stable, another ADC module is triggered to start, and the second-phase current of the motor is acquired, thereby improving the accuracy of the acquired second-phase current. In addition, the acquisition of the second-phase current does not need to wait until the first-phase current acquisition is completed before starting. Compared with using one ADC module to sample two-phase currents, the sampling window time requirement becomes lower, and the sampling rate requirement of the ADC module is correspondingly reduced.

[0083] Among them, combined Figure 8As shown in the figure, when the three-phase inverter circuit is switched, the current and voltage will not stabilize immediately, and there will be instantaneous oscillation. Therefore, after the phase current is stable, the ADC module is triggered to start and the phase current is sampled. In this way, triggering the ADC module to start after the current reaches a stable state can improve the accuracy and stability of phase current acquisition.

[0084] Furthermore, after the second phase current is stable, the acquisition method further includes: after a first time interval, triggering another ADC module to start.

[0085] In this embodiment, after the three-phase inverter circuit is controlled to perform switch switching, there are not only current and current instantaneous oscillations, but also the conduction time of the MOS tube and the time when the two complementary PWMs are inserted into the dead zone. The current sampling performed during this period will have the problem of inaccurate current collection.

[0086] Also, in the process of controlling the motor, in order to obtain the phase difference between the two-phase current of the motor for vector control, the current sampling time difference is set. The current sampling time difference refers to the time interval between the sampling moments when sampling the current of two different phases in the control system for the motor. The current sampling time difference is determined by the FOC control algorithm and is related to the PWM waveform.

[0087] Therefore, before triggering the start of the other ADC module, the sampling time point of the other ADC module is delayed for a first time period to improve the accuracy of phase current sampling and the stability of motor control. The specific value of the first time period can be determined according to the hardware performance parameters and FOC algorithm used in the control system of the motor, and is not specifically limited here.

[0088] In one example, combining Fig.11 As shown, the first ADC module is triggered to sample the first phase current of the motor. The sampling time point of triggering the second ADC module to sample the second phase current is the sampling establishment time of the first ADC module, and the sampling time difference of the delayed phase current is used to start the second ADC module to sample the second phase current. Among them, the delayed sampling time difference is composed of the current stabilization time and the FOC control phase current interval time. The sampling time point setting of the second phase current of each motor is the same, and no further description is given.

[0089] In some embodiments, the step of determining the multiple target motors to be controlled and the target control sequence of the multiple target motors includes: obtaining an initial control sequence of the multiple motors of the control system. When the number of the multiple target motors is equal to the number of the multiple motors included in the control system, the initial control sequence is used as the target control sequence of the multiple target motors. When the number of the multiple target motors is less than the number of the multiple motors included in the control system, the target control sequence of the multiple target motors is obtained after adjusting the initial control sequence according to the multiple target motors.

[0090] In this embodiment, two ADC modules are configured for each of the multiple motors included in the control system. In this way, the control system sorts the control of all the multiple motors included to obtain an initial control sequence, and determines the initial trigger sequence of all ADC modules for the initial control sequence of all the motors.

[0091] In one example, the number of target motors to be controlled is equal to the number of motors included in the control system, which means that all motors in the control system participate in this control. In this way, the initial control sequence corresponding to all motors is used as the target control sequence for multiple target motors this time. In addition, the trigger sequence of multiple ADC modules for multiple target motors is also the initial trigger sequence corresponding to the initial control sequence.

[0092] In one example, if the number of target motors to be controlled is less than the number of motors included in the control system, that is, there are motors that do not participate in this operation, then based on the multiple target motors, the motors not included in the multiple target motors are deleted from the initial control sequence to obtain an adjusted sequence as the target control sequence for the multiple target motors in this control operation. The step of determining the trigger sequence of multiple ADC modules based on the target control sequence includes: based on the adjusted target control sequence, deleting the ADC modules corresponding to the motors not included from the initial trigger sequence to obtain an adjusted trigger sequence as the target trigger sequence for the multiple ADC modules corresponding to the multiple target motors.

[0093] In some embodiments, a control system for a motor as described in any of the above technical solutions is applied, and the control system includes 3 motors, and the number of ADC modules is 3. The 3 ADC modules are respectively a first ADC module, a second ADC module, and a third ADC module. Among them, the first motor performs current sampling through the first ADC module and the second ADC module, and the first ADC module is used to collect the first phase current, and the second ADC module is used to collect the second phase current. The second motor performs current sampling through the third ADC module and the first ADC module, and the third ADC module is used to collect the first phase current, and the first ADC module is used to collect the second phase current. The third motor performs current sampling through the second ADC module and the third ADC module, and the second ADC module is used to collect the first phase current, and the third ADC module is used to collect the second phase current. The following gives control examples for two situations where the number of target motors is equal to the number of motors included in the control system, and the number is not equal.

[0094] In one embodiment, combining Fig.12 As shown, a current sampling method is provided, which is applied to a control system for a motor as described in any of the above technical solutions. The number of target motors involved in the operation is 3, and the initial control sequence is: the first motor, the second motor, and the third motor. The initial trigger sequence is the first ADC module and the second ADC module of the first motor, the third ADC module and the first ADC module of the second motor, and the second ADC module and the third ADC module of the third motor.

[0095] Combination Fig.12 As shown, the sampling method includes: S1201, according to the target control sequence, based on the FOC control algorithm, control the first motor in the target control sequence.

[0096] S1202, according to the trigger sequence, controlling the first ADC module corresponding to the first motor in the target control sequence to collect the first phase current of the current motor, and the second ADC module to collect the second phase current of the current motor.

[0097] S1203, when the first phase current of the first motor is sampled, the second motor in the target control sequence is controlled based on the FOC control algorithm according to the target control sequence.

[0098] S1204, according to the trigger sequence, control the third ADC module corresponding to the second motor to collect the first phase current of the second motor, and the first ADC module to collect the second phase current of the second motor.

[0099] S1205, when the first phase current of the second motor is sampled, the third motor in the target control sequence is controlled based on the FOC control algorithm according to the target control sequence.

[0100] S1206, according to the trigger sequence, control the second ADC module corresponding to the third motor to collect the first phase current of the third motor, and the third ADC module to collect the second phase current of the third motor.

[0101] In this embodiment, based on the FOC control algorithm, the current polling of the three target motors is completed in sequence. According to the two ADC modules connected to each motor, the sampling of the first phase current and the second phase current is triggered in sequence. Moreover, since the two adjacent motors have a common ADC module, before starting the phase current sampling of the next motor, it is first determined whether the sampling of the first phase current of the current motor is completed. In the case where the sampling of the first phase current of the current motor is completed, an ADC module corresponding to the next motor can be triggered to start based on the FOC control algorithm to sample the first phase current of the next motor, and the ADC module that has completed the sampling of the first phase current of the current motor can be triggered based on the FOC control algorithm to sample the second phase current of the next motor. If the sampling of the first phase current of the current motor is not completed, the delay processing of the next motor is controlled, and the sampling of the first phase current of the current motor is continued. If the judgment is completed, another ADC module other than the two ADC modules used by the current motor and the ADC module corresponding to the first phase current of the current motor are triggered, and the first phase current and the second phase current of the next motor are respectively collected. If it is not completed, the delay continues. By analogy, the polling of the phase currents of the remaining motors is completed. In this way, in the process of polling and sampling the phase currents of multiple target motors by sampling multiple ADC modules based on the FOC control algorithm, the reliability of phase current sampling is improved, thereby avoiding the sampling conflict problem of the same ADC module that may be caused during the FOC control of multiple motors.

[0102] In this embodiment, when each motor is started to sample the first phase current, the timing is started to count the sampling time of the first phase current. The actual sampling time obtained by timing is compared with the sampling time threshold. If it is greater than or equal to the sampling time threshold, it means that the collection of the first phase current has been completed. If the sampling time obtained by timing is less than the sampling time threshold, it means that it is not completed, and then the next motor delay processing is controlled by the FOC control algorithm, and the sampling time of the first phase current is continuously judged until it is greater than or equal to the sampling time threshold, so as to improve the accuracy and stability of the phase current sampling of each motor.

[0103] In one example, the step of controlling the delay processing of the next motor includes: controlling the delay for a second time length to trigger the phase current sampling of the next motor.

[0104] The second duration is determined by a sampling time threshold, a difference between sampling times obtained by timing, and a FOC control algorithm requirement. The sampling time threshold is determined according to performance parameters of the ADC module.

[0105] In one example, the step of controlling the delay processing of the next motor includes: based on the FOC algorithm, reducing the control frequency of the next motor. In this way, the control time interval between two adjacent motors is increased to increase the sampling time length of the current motor.

[0106] In one example, the number of target motors participating in the operation is the first motor and the third motor, and the target control sequence is the first motor and the third motor. The target trigger sequence is the first ADC module and the second ADC module of the first motor, and the second ADC module and the third motor through the third ADC module.

[0107] Combination Fig.13 As shown, a current sampling method is provided, and the sampling method includes: S1301, according to the target control sequence, based on the FOC control algorithm, control the first motor in the target control sequence.

[0108] S1302, according to the trigger sequence, controlling the first ADC module corresponding to the first motor in the target control sequence to collect the first phase current of the current motor, and the second ADC module to collect the second phase current of the current motor.

[0109] S1303, when the sampling of the second phase current of the first motor is completed, the third motor in the target control sequence is controlled based on the FOC control algorithm according to the target control sequence.

[0110] S1304, according to the trigger sequence, control the second ADC module corresponding to the third motor to collect the first phase current of the second motor, and the third ADC module to collect the second phase current of the second motor.

[0111] In this embodiment, the first motor and the third motor share the second ADC module, and the second ADC module is located at an adjacent position in the target trigger sequence. Before starting the sampling of the phase current of the second motor, it is determined whether the sampling of the second phase current of the first motor is completed. If it is completed, the sampling of the phase current of the second motor is started. If it is not completed, the delay processing of the next motor is controlled by the FOC control algorithm, and the sampling time of the second phase current is continued to be determined until it is greater than or equal to the sampling time threshold. In this way, in the process of polling and sampling the phase currents of multiple target motors by sampling multiple ADC modules based on the FOC control algorithm, the reliability of phase current sampling is improved, thereby avoiding the sampling conflict problem of the same ADC module that may be caused during the FOC control process of multiple motors.

[0112] In this embodiment, when the sampling of the second phase current of the first motor is started, the timing is started to count the sampling time of the second phase current. The actual sampling time obtained by timing is compared with the sampling time threshold. If it is greater than or equal to the sampling time threshold, it means that the collection of the second phase current has been completed. If the sampling time obtained by timing is less than the sampling time threshold, it means that it is not completed, and then the next motor delay processing is controlled by the FOC control algorithm, and the sampling time of the first phase current is continuously judged until it is greater than or equal to the sampling time threshold, so as to improve the accuracy and stability of the phase current sampling of each motor.

[0113] In some embodiments, in combination Fig.14 As shown, a current sampling method is provided, which is applied to Figure 4 In the control system for a motor shown in the figure, the number of motors in the system is 5, and the number of ADC modules is 3. The 3 ADC modules are respectively a first ADC module, a second ADC module, and a third ADC module. The 5 motors are respectively a first motor, a second motor, a third motor, a fourth motor, and a fifth motor, and the sampling method includes: S1401, based on the FOC control algorithm, controls the first motor.

[0114] S1402: Based on the FOC control algorithm, trigger the first ADC module to sample the first phase current of the first motor, and start the timer to count the sampling time.

[0115] S1403, based on the FOC control algorithm, trigger the second ADC module to collect the second phase current of the first motor.

[0116] S1404, based on the FOC control algorithm, controls the second motor.

[0117] S1405, determine whether the acquisition time of the first phase current is greater than or equal to the sampling time threshold. If the judgment result is no, it is determined that the acquisition of the first phase current of the first motor has not been completed, and enter S1406. If the judgment result is yes, it is determined that the acquisition of the first phase current of the first motor has been completed, and enter S1407.

[0118] S1406, based on the FOC control algorithm, control the next motor delay processing and return to S1405.

[0119] S1407: Based on the FOC control algorithm, trigger the third ADC module to collect the first phase current of the second motor, and start the timer to count the sampling time.

[0120] S1408, based on the FOC control algorithm, trigger the first ADC module to collect the second phase current of the second motor.

[0121] S1409, based on the FOC control algorithm, controls the third motor.

[0122] S1410, determine whether the acquisition time of the first phase current is greater than or equal to the sampling time threshold. If the judgment result is no, it is determined that the acquisition of the first phase current of the second motor has not been completed, and enter S1411. If the judgment result is yes, it is determined that the acquisition of the first phase current of the second motor has been completed, and enter S1412. S1411, based on the FOC control algorithm, control the delay processing of the next motor and return to S1410.

[0123] S1412: Based on the FOC control algorithm, trigger the second ADC module to collect the first phase current of the third motor, and start the timer to count the sampling time.

[0124] S1413, based on the FOC control algorithm, trigger the third ADC module to collect the second phase current of the third motor.

[0125] S1414, based on the FOC control algorithm, controls the fourth motor.

[0126] S1415, determine whether the acquisition time of the first phase current is greater than or equal to the sampling time threshold. If the judgment result is no, it is determined that the acquisition of the first phase current of the third motor has not been completed, and enter S1416. If the judgment result is yes, it is determined that the acquisition of the first phase current of the third motor has been completed, and enter S1417. S1416, based on the FOC control algorithm, control the next motor delay processing and return to S1415.

[0127] S1417: Based on the FOC control algorithm, trigger the first ADC module to collect the first phase current of the fourth motor, and start the timer to count the sampling time.

[0128] S1418, based on the FOC control algorithm, trigger the second ADC module to collect the second phase current of the fourth motor.

[0129] S1419, based on the FOC control algorithm, controls the fifth motor.

[0130] S1420, determine whether the acquisition time of the first phase current is greater than or equal to the sampling time threshold. If the judgment result is no, it is determined that the acquisition of the first phase current of the fourth motor has not been completed, and enter S1421. If the judgment result is yes, it is determined that the acquisition of the first phase current of the fourth motor has been completed, and enter S1422. S1421, based on the FOC control algorithm, control the next motor delay processing and return to S1420.

[0131] S1422, based on the FOC control algorithm, trigger the third ADC module to collect the first phase current of the fifth motor.

[0132] S1423, based on the FOC control algorithm, trigger the first ADC module to collect the second phase current of the fifth motor.

[0133] Combination Fig.15 As shown, an embodiment of the present disclosure provides a current sampling device 1500, which is applied to a control system for a motor as described in any of the above technical solutions. The current sampling device 1500 includes a processor 1501 and a memory 1502. Optionally, the device 150 may also include a communication interface 1503 and a bus 1504. Among them, the processor 1501, the communication interface 1503, and the memory 1502 can communicate with each other through the bus 1504. The communication interface 1503 can be used for information transmission. The processor 1501 can call the logic instructions in the memory 1502 to execute the current sampling method of the above embodiment.

[0134] In addition, the logic instructions in the memory 1502 described above may be implemented in the form of software functional units and when sold or used as independent products, may be stored in a computer-readable storage medium.

[0135] The memory 1502 is a computer-readable storage medium that can be used to store software programs and computer executable programs, such as program instructions / modules corresponding to the method in the embodiment of the present disclosure. The processor 1501 executes the function application and data processing by running the program instructions / modules stored in the memory 1502, that is, the current sampling method in the above embodiment is implemented.

[0136] The memory 1502 may include a program storage area and a data storage area, wherein the program storage area may store an operating system and an application required for at least one function. The data storage area may store data created according to the use of the terminal device, etc. In addition, the memory 1502 may include a high-speed random access memory and may also include a non-volatile memory.

[0137] In some embodiments, a computer-readable storage medium is provided, which stores program instructions. When the program instructions are executed, the computer is used to execute the current sampling method of any of the above embodiments.

[0138] In some embodiments, a vehicle is provided, comprising: a control system for a motor as described in any of the above technical solutions. Or a current sampling device as described in any of the above embodiments. The control system or current sampling device for the motor is installed on the vehicle body. The installation relationship described here is not limited to placement inside the vehicle body, but also includes installation connections with other components of the vehicle, including but not limited to physical connections, electrical connections, or signal transmission connections. It can be understood by those skilled in the art that the control system or current sampling device for the motor can be adapted to a feasible vehicle body, thereby realizing other feasible embodiments.

[0139] In one example, a vehicle includes a front cabin, and the front cabin includes a control system for a motor according to any of the above technical solutions. A plurality of brushless motors are arranged in the front cabin. The plurality of brushless motors include but are not limited to: a motor for a water pump, a motor for an oil pump, a motor for a cooling fan, a radiator fan motor and / or an electronic power steering motor.

[0140] The above embodiments are only preferred embodiments for fully illustrating the present invention, and the protection scope of the present invention is not limited thereto. Equivalent substitutions or changes made by technicians in the technical field on the basis of the present invention are all within the protection scope of the present invention. The embodiments represent only possible changes. Unless explicitly required, separate components and functions are optional, and the order of operation can be changed. Parts and features of some embodiments may be included in or replace parts and features of other embodiments. Moreover, the words used in this application are only used to describe the embodiments and are not used to limit the claims. As used in the description of the embodiments and claims, unless the context clearly indicates, the singular forms of "a", "an" and "the" are intended to include plural forms as well. Similarly, the term "and / or" as used in this application refers to any and all possible combinations of one or more associated listings. In addition, when used in this application, the term "comprise" and its variants "comprises" and / or comprising refer to the presence of stated features, wholes, steps, operations, elements, and / or components, but do not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or groups thereof. In the absence of further restrictions, the elements defined by the sentence "including one..." do not exclude the presence of other identical elements in the process, method or device including the elements. In this article, each embodiment may focus on the differences from other embodiments, and the same and similar parts between the embodiments may refer to each other. For the methods, products, etc. disclosed in the embodiments, if they correspond to the method part disclosed in the embodiments, then the relevant parts can refer to the description of the method part.

[0141] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software may depend on the specific application and design constraints of the technical solution. The technicians may use different methods for each specific application to implement the described functions, but such implementations should not be considered to exceed the scope of the embodiments of the present disclosure. The technicians may clearly understand that, for the convenience and simplicity of description, the specific working processes of the systems, devices and units described above may refer to the corresponding processes in the aforementioned method embodiments, and will not be repeated here.

[0142] In the embodiments disclosed herein, the disclosed methods and products (including but not limited to devices, equipment, etc.) can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units can be only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the coupling or direct coupling or communication connection between each other shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms. The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to implement this embodiment. In addition, each functional unit in the embodiment of the present disclosure may be integrated in a processing unit, or each unit may exist physically alone, or two or more units may be integrated in one unit.

[0143] The flowchart and block diagram in the accompanying drawings show the possible architecture, function and operation of the system, method and computer program product according to the embodiment of the present disclosure. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of the code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. In some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, which can depend on the functions involved. In the description corresponding to the flowchart and the block diagram in the accompanying drawings, the operations or steps corresponding to different boxes can also occur in a different order from the order disclosed in the description, and sometimes there is no specific order between different operations or steps. For example, two consecutive operations or steps can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, which can depend on the functions involved. Each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, may be implemented by a dedicated hardware-based system that performs the specified functions or actions, or may be implemented by a combination of dedicated hardware and computer instructions.

Claims

1. A control system for a motor, It is characterized in that Used to control the operation of multiple motors, the control system includes: Multiple ADC modules, each motor performs phase current sampling through two ADC modules, one of the two ADC modules is used to collect the first phase current of the motor, and the other is used to collect the second phase current of the motor; Among them, multiple ADC modules are used to poll and sample the phase currents of multiple motors.

2. The control system for a motor according to claim 1, It is characterized in that Also includes: A micro control unit, wherein a plurality of ADC modules are arranged in the micro control unit, and the micro control unit is used for controlling the plurality of ADC modules to perform polling sampling on the phase currents of the plurality of motors.

3. The control system for a motor according to claim 1, It is characterized in that The number of the multiple ADC modules is at least two, and the number of the multiple motors is at least two; The number of motors is greater than or equal to the number of ADC modules.

4. The control system for a motor according to claim 3, It is characterized in that The number of ADC modules is m, which are denoted as ADC1, ADC2, ..., ADCm, where m≥2; The number of motors is n, which are denoted as BLDC1, BLDC2, ..., BLDCn, where n≥2; The control frequencies of the FOC algorithms corresponding to the multiple motors are: the FOC control frequency of BLDC1 is f1, the FOC control frequency of BLDC2 is f2, ..., the FOC control frequency of BLDCn is fn; Target sampling frequency of phase current corresponding to multiple motors: f 电流采样 = (f1+f2+…+fn)×α, where α is the number of phase currents of a single motor that needs to be collected for FOC algorithm control; The total sampling frequency of multiple ADC modules: f ADC = (f ADC1 + f ADC2 +…+f ADCm )×η, where η is the sampling utilization rate of multiple ADC modules, 1 / 2≤η≤1; Among them, f ADC ≥f 电流采样 .

5. A control system for a motor according to any one of claims 1 to 4, It is characterized in that Also includes: A plurality of drive circuits, the drive circuits are connected to the motors and used to drive the motors to work, each motor is provided with a drive circuit, and the drive circuits are connected between the DC bus bars; Multiple current sampling circuits, the current sampling circuits are used to sample the phase current of the motor, each motor is provided with a corresponding current sampling circuit, the current sampling circuit includes a single sampling resistor, the single sampling resistor is connected in series with the drive circuit, and is provided at the ground bus position of the DC bus; Multiple motor pre-drive chips, each pre-drive chip includes an operational amplifier, each operational amplifier is set in one-to-one correspondence with a single sampling resistor, the input end of the operational amplifier is electrically connected to the single sampling resistor, and the output end of the operational amplifier is connected to the ADC module.

6. A current sampling method, It is characterized in that Applied to the control system for a motor according to any one of claims 1 to 5, the sampling method comprises: determining a plurality of target motors to be controlled and a target control sequence of the plurality of target motors; Determine the trigger sequence of multiple ADC modules according to the target control sequence; Based on the FOC control algorithm, according to the target control sequence and trigger sequence, the phase currents of multiple target motors are sampled in turn using multiple ADC modules; For each motor, two ADC modules are controlled to sample the first phase current and the second phase current respectively.

7. The sampling method according to claim 6, It is characterized in that For each motor, the steps of controlling two ADC modules to sample the first phase current and the second phase current respectively include: Control the motor operation based on FOC control algorithm; After the first phase current is stable, one of the two ADC modules is triggered to start and collect the first phase current of the motor; After the second-phase current is stable, another ADC module of the two ADC modules is triggered to start and collect the second-phase current of the motor.

8. The sampling method according to claim 7, It is characterized in that After the second phase current is stable, the acquisition method also includes: After an interval of the first time length, another ADC module is triggered to start.

9. The sampling method according to any one of claims 6 to 8, It is characterized in that The steps of determining a plurality of target motors to be controlled and a target control sequence of the plurality of target motors include: Obtaining initial control sequences for multiple motors of the control system; When the number of the plurality of target motors is equal to the number of the plurality of motors included in the control system, the initial control sequence is used as a target control sequence for the plurality of target motors; When the number of the multiple target motors is less than the number of the multiple motors included in the control system, the target control sequences of the multiple target motors are obtained after adjusting the initial control sequence according to the multiple target motors.

10. The sampling method according to claim 9, It is characterized in that Based on the FOC control algorithm, according to the target control sequence and the trigger sequence, the steps of sequentially polling and sampling the phase currents of multiple target motors using multiple ADC modules include: Based on the FOC control algorithm, multiple target motors are controlled in sequence according to the target control sequence; According to the trigger sequence, one of the two ADC modules corresponding to the first motor in the target control sequence is controlled to collect the first phase current of the current motor, and the other ADC module is controlled to collect the second phase current of the current motor; When the first phase current of the current motor is sampled, one of the two ADC modules corresponding to the next motor is controlled to collect the first phase current of the next motor and the other ADC module is controlled to collect the second phase current of the next motor according to the trigger sequence; When the first phase current of the current motor has not been sampled, the next motor is controlled to delay processing; According to the target control sequence and the trigger sequence, the phase currents of the remaining target motors are collected in sequence; Among them, two adjacent motors in the target control sequence share the same ADC module.

11. The sampling method according to claim 10, It is characterized in that The steps of determining whether the first phase current of the current motor has completed sampling include: Timing the acquisition time of the first phase current of the current motor; When the acquisition time of the first phase current of the current motor is greater than or equal to the sampling time threshold, it is determined that the acquisition of the first phase current of the current motor is completed; When the acquisition time of the first phase current of the current motor is less than the sampling time threshold, it is determined that the acquisition of the first phase current of the current motor is not completed.

12. A current sampling device, It is characterized in that Applied to a control system for a motor as described in any one of claims 1 to 5, the current sampling device includes a processor and a memory storing program instructions, and the processor is configured to execute the current sampling method as described in any one of claims 6 to 11 when running the program instructions.

13. A readable storage medium storing program instructions, It is characterized in that When the program instructions are executed, the computer is used to execute the current sampling method according to any one of claims 6 to 11.

14. A vehicle, It is characterized in that include: A control system for a motor as claimed in any one of claims 1 to 5; or The current sampling device as claimed in claim 12.

Citation Information

Cited By

  • Motor current sampling method and device and electronic equipment

    CN119945234A