A current sampling method, device and storage medium

By pulse-width modulating the motor's three-phase drive debugging signal, the problem of the single-resistance sampling method's sampling blind zone during low-speed operation or no-load is solved, achieving smooth sector switching and reducing the motor's power consumption and noise.

CN114665774BActive Publication Date: 2024-08-30SHENZHEN HANGSHUN CHIP TECH DEV CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210371217.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-04-08
Publication Date
2024-08-30
Estimated Expiration
2042-04-08

AI Technical Summary

Technical Problem

The single-resistance sampling method has a sampling blind zone when the motor is running at low speed or no-load, resulting in uneven sector switching and increasing motor power consumption and noise.

Method used

The first sampling interval and the second sampling interval are respectively obtained according to the three-phase driving debugging signals of the current sector. If it is less than the minimum sampling time interval, pulse width modulation is performed on at least one driving debugging signal to ensure that the sampling interval meets the minimum requirements, and Set the sampling point time to achieve sampling and reconstruction of three-phase current.

Benefits of technology

It solves the sampling blind zone problem in the single-resistance sampling method, ensures smooth sector switching, and reduces motor power consumption and noise.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114665774B
    Figure CN114665774B
Patent Text Reader

Abstract

The present application discloses a current sampling method, device and storage medium. The current sampling method includes the following steps: obtaining a first sampling interval and a second sampling interval respectively according to the three-phase drive debugging signal of the current sector motor; if the first sampling interval and / or the second sampling interval is less than the minimum sampling time interval, pulse width modulation is performed on at least one drive debugging signal in the three-phase drive debugging signal; the sampling point time of the current sector is set according to the current three-phase drive debugging signal, so as to sample and reconstruct the three-phase current of the motor after setting the sampling point time of all sectors, so as to obtain the three-phase current of the motor. The present application can solve the sampling problem of the sampling blind area in the single resistance sampling method, so that the sector switching is smooth, thereby reducing the power consumption and noise of the motor.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of motor technology, and in particular, relates to a current sampling method, device and storage medium. Background Art

[0002] During the operation of the motor, it is usually necessary to sample the phase current of the three-phase coil of the motor to realize the control of the motor. The method used to sample the three-phase current of the motor will affect the cost of controlling the operation of the motor. At present, there are generally single-resistance sampling, dual-resistance sampling and three-resistance sampling methods for sampling the three-phase current of the motor. Compared with the other two sampling methods, the single-resistance sampling method has been more and more widely used due to its simpler hardware structure and lower implementation cost. However, in the actual application process, we found that this single-resistance sampling method will have some sampling blind spots, which are mainly reflected in the transition area and low-speed area of ​​sector change when the motor is running at low speed or no load. Because the modulated three-phase PWM is too close, it is impossible to find a sampling point that meets the conditions, and then the current sampling is difficult or even impossible to sample. This problem will cause the sector switching to be not smooth, thereby increasing the power consumption and noise of the motor. Summary of the invention

[0003] The embodiments of the present application provide a current sampling method, device and storage medium, aiming to solve the technical problem that the prior art uses a single resistor sampling method to sample the three-phase current of a motor, which has some sampling blind areas, causes uneven sector switching, and thus increases the power consumption and noise of the motor.

[0004] In a first aspect, an embodiment of the present application provides a current sampling method, comprising the following steps: obtaining a first sampling interval and a second sampling interval respectively according to a three-phase drive debugging signal of a current sector motor; if the first sampling interval and / or the second sampling interval is less than a minimum sampling time interval, pulse width modulation is performed on at least one drive debugging signal in the three-phase drive debugging signal; the sampling point time of the current sector is set according to the current three-phase drive debugging signal, so as to perform three-phase current sampling and reconstruct and restore the motor after setting the sampling point time of all sectors, so as to obtain the three-phase current of the motor.

[0005] Optionally, in some embodiments of the present application, before the step of obtaining the first sampling interval and the second sampling interval respectively according to the three-phase drive debugging signal of the current sector motor, the step further includes:

[0006] The motor is driven by using SVPWM to form multiple sectors of vector control.

[0007] Optionally, in some embodiments of the present application, the step of obtaining the first sampling interval and the second sampling interval respectively according to the three-phase drive debugging signal of the current sector motor specifically includes: sorting the three-phase drive debugging signal of the current sector motor according to the pulse width from small to large, and obtaining the first drive debugging signal, the second drive debugging signal, and the third drive debugging signal in sequence; obtaining the first sampling interval according to the second drive debugging signal and the third drive debugging signal, and obtaining the second sampling interval according to the first drive debugging signal and the second drive debugging signal.

[0008] Optionally, in some embodiments of the present application, the steps of obtaining the first sampling interval according to the second drive debugging signal and the third drive debugging signal, and obtaining the second sampling interval according to the first drive debugging signal and the second drive debugging signal specifically include: sequentially acquiring the first time, the second time, and the third time for starting to output the target level in the first drive debugging signal, the second drive debugging signal, and the third drive debugging signal; obtaining the first sampling interval according to the time difference between the second time and the third time, and obtaining the second sampling interval according to the time difference between the first time and the second time.

[0009] Optionally, in some embodiments of the present application, if the first sampling interval and / or the second sampling interval is less than the minimum sampling time interval, the step of pulse width modulating at least one of the three-phase drive debugging signals specifically includes: if the first sampling interval is less than the minimum sampling time interval, pulse width modulating the second drive debugging signal or the third drive debugging signal.

[0010] Optionally, in some embodiments of the present application, the step of setting the sampling point time of the current sector according to the current three-phase drive debugging signal specifically includes: setting the first sampling point time of the current sector according to the third drive debugging signal after pulse width modulation, and setting the second sampling point time of the current sector according to the second drive debugging signal; or, setting the first sampling point time of the current sector according to the third drive debugging signal, and setting the second sampling point time of the current sector according to the second drive debugging signal after pulse width modulation.

[0011] Optionally, in some embodiments of the present application, if the first sampling interval and / or the second sampling interval is less than the minimum sampling time interval, the step of pulse width modulating at least one of the three-phase drive debugging signals specifically includes: if the second sampling interval is less than the minimum sampling time interval, pulse width modulating the first drive debugging signal or the second drive debugging signal.

[0012] Optionally, in some embodiments of the present application, the step of setting the sampling point time of the current sector according to the current three-phase drive debugging signal specifically includes: setting the first sampling point time of the current sector according to the third drive debugging signal, and setting the second sampling point time of the current sector according to the second drive debugging signal after pulse width modulation; or, setting the first sampling point time of the current sector according to the third drive debugging signal, and setting the second sampling point time of the current sector according to the second drive debugging signal.

[0013] Optionally, in some embodiments of the present application, if the first sampling interval and / or the second sampling interval is smaller than the minimum sampling time interval, the step of pulse width modulating at least one of the three-phase drive debugging signals specifically includes: if the first sampling interval and the second sampling interval are both smaller than the minimum sampling time interval, pulse width modulating the second drive debugging signal and the third drive debugging signal in sequence, or pulse width modulating the second drive debugging signal and the first drive debugging signal in sequence.

[0014] Optionally, in some embodiments of the present application, the step of setting the sampling point time of the current sector according to the current three-phase drive debugging signal specifically includes: setting the first sampling point time of the current sector according to the third drive debugging signal after pulse width modulation, and setting the second sampling point time of the current sector according to the second drive debugging signal after pulse width modulation; or, setting the first sampling point time of the current sector according to the third drive debugging signal, and setting the second sampling point time of the current sector according to the second drive debugging signal after pulse width modulation.

[0015] Optionally, in some embodiments of the present application, the pulse width modulation includes pulse width expansion modulation or pulse width reduction modulation.

[0016] Optionally, in some embodiments of the present application, after the pulse width expansion modulation is performed on the driving debugging signal, the pulse width modulation further includes performing secondary modulation on the driving debugging signal after the pulse width expansion modulation within the same PWM cycle.

[0017] In a second aspect, an embodiment of the present application provides a device, comprising: a memory, a processor, a program stored on the memory and running on the processor, and a data bus for realizing connection and communication between the processor and the memory, wherein the program implements the steps of the above-mentioned method when executed by the processor.

[0018] In a third aspect, an embodiment of the present application provides a storage medium for computer-readable storage, wherein the storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement the steps of the above method.

[0019] In the present application, when the three-phase current of the motor is sampled by a single resistor sampling method, the first sampling interval and the second sampling interval are obtained respectively according to the three-phase drive debugging signal of the current sector motor, so that when the first sampling interval and / or the second sampling interval is less than the minimum sampling time interval, at least one drive debugging signal in the three-phase drive debugging signal is pulse-width modulated to ensure that the first sampling interval and the second sampling interval can meet the minimum sampling time interval requirements. Then, the sampling point time of the current sector is set according to the current three-phase drive debugging signal, so that after the sampling point time of all sectors is set, the motor is sampled and reconstructed and restored to obtain the three-phase current of the motor. In this way, when the sampling point time of the current sector is set according to the current three-phase drive debugging signal, the current three-phase drive debugging signal may be pulse-width modulated to ensure that the first sampling interval and the second sampling interval can meet the minimum sampling time interval requirements, and then the present application can solve the sampling problem of the sampling blind area in the single resistor sampling method, so that the sector switching is smooth, thereby reducing the power consumption and noise of the motor. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] The technical solution and beneficial effects of the present application will be made apparent by describing in detail the specific implementation methods of the present application in conjunction with the accompanying drawings.

[0021] Figure 1 It is a flow chart of the current sampling method provided in the embodiment of the present application.

[0022] Figure 2 4 is a circuit schematic diagram of a three-phase drive and sampling circuit of a motor according to an embodiment of the present application.

[0023] Figure 3 It is a schematic diagram of the six sectors of vector control obtained by driving the motor according to the SVPWM method.

[0024] Figures 4a-4f yes Figure 3 The waveform diagram of the three-phase drive debugging signal of the motor in each sector is shown.

[0025] Figure 5 It is a waveform diagram of the embodiment of the present application after sorting the pulse width of the three-phase drive debugging signal of the zone I motor from small to large.

[0026] Figure 6 yes Figure 1 The specific flow chart of step S120 of the current sampling method is shown.

[0027] Figure 7 Yes Figure 6 The schematic diagram of the principle for explaining the situation of step S121 is shown.

[0028] Figure 8 It is a schematic diagram of the principle of performing pulse width enlargement modulation on PWM3 and performing secondary modulation on the third driving debugging signal PWM3 after pulse width enlargement modulation within the same PWM cycle in the embodiment of the present application.

[0029] Fig. 9 Yes Figure 6 The schematic diagram of the principle for explaining the situation of step S122 is shown.

[0030] Fig.10 Yes Figure 6 The schematic diagram of the principle is used to illustrate the situation of step S123.

[0031] Fig.11 It is a schematic diagram of the process of the device provided in the embodiment of the present application. DETAILED DESCRIPTION

[0032] The technical solutions in the embodiments of the present application are clearly and completely described below in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present application. In the absence of conflict, the following embodiments and their technical features can be combined with each other.

[0033] During the operation of the motor, it is usually necessary to sample the phase current of the three-phase coil of the motor to realize the control of the motor. The method used to sample the three-phase current of the motor will affect the cost of controlling the operation of the motor. At present, there are generally single-resistance sampling, dual-resistance sampling and three-resistance sampling methods for sampling the three-phase current of the motor. Compared with the other two sampling methods, the single-resistance sampling method has been more and more widely used due to its simpler hardware structure and lower implementation cost. However, in the actual application process, we found that this single-resistance sampling method will have some sampling blind spots, which are mainly reflected in the transition area and low-speed area of ​​sector change when the motor is running at low speed or no load. Because the modulated three-phase PWM is too close, it is impossible to find a sampling point that meets the conditions, and then the current sampling is difficult or even impossible to sample. This problem will cause the sector switching to be not smooth, thereby increasing the power consumption and noise of the motor.

[0034] Based on this, it is necessary to provide a new current sampling solution to solve the technical problem that the existing technology uses a single resistor sampling method to sample the three-phase current of the motor, which has some sampling blind areas, resulting in uneven sector switching, thereby increasing the motor power consumption and noise.

[0035] like Figure 1As shown, in one embodiment, the present application provides a current sampling method, which specifically includes the following steps:

[0036] Step S110: obtaining a first sampling interval and a second sampling interval respectively according to the three-phase drive debugging signal of the current sector motor.

[0037] Specifically, since the embodiment of the present application mainly solves the technical problem that the existing technology uses a single resistor sampling method to sample the three-phase current of the motor, there are some sampling blind areas, which causes uneven sector switching, thereby increasing the power consumption and noise of the motor. Therefore, the current sampling method of the embodiment of the present application is also mainly aimed at the single resistor sampling method, and specifically, it can be to drive the motor using the SVPWM method. The theoretical basis of SVPWM is the average value equivalence principle, that is, by combining the basic voltage vectors in one switching cycle, its average value is equal to the given voltage vector. At a certain moment, the voltage vector rotates to a certain area, which can be obtained by the different time combinations of two adjacent non-zero vectors and zero vectors that constitute this area. The action time of the two vectors is applied multiple times within a sampling cycle, thereby controlling the action time of each voltage vector, so that the voltage space vector rotates close to a circular trajectory, and the actual magnetic flux generated by the different switching states of the inverter approaches the ideal magnetic flux circle, and the switching state of the inverter is determined by the comparison result of the two, thereby forming a PWM waveform. Figure 2 Taking the three-phase drive and sampling circuit of the motor in as an example, the SVPWM method is used to drive the motor to form Figure 3 The six sectors of vector control shown in FIG. 1 are shown in FIG. 1 , where the three-phase drive debugging signal of the motor in zone I (0° to 60°) is as follows: Figure 4a As shown, the three-phase drive debugging signal of the motor in zone II (60°~120°) is as follows Figure 4b As shown, the three-phase drive debugging signal of the motor in zone III (120°~180°) is as follows Figure 4c As shown, the three-phase drive debugging signal of the motor in zone IV (180°~240°) is as follows Figure 4d As shown, the three-phase drive debugging signal of the motor in zone V (240°~300°) is as follows Figure 4e As shown, the three-phase drive debugging signal of the motor in zone VI (300°~360°) is as follows Figure 4f As shown, different drive debugging signals PWM can be used to perform different opening and closing controls on the six switches of the upper bridge arm P1 and the lower bridge arm P2, so as to obtain different switch combinations to output different phase currents at the upper end of the resistor R1.

[0038] At this point, in order to facilitate the subsequent steps of "calculating the first sampling interval and the second sampling interval" and "setting the sampling point time", the three-phase drive debugging signal of the current sector motor can be sorted by pulse width first, and the pulse width sorting can be specifically sorted from small to large pulse width. At this point, the specific process of executing the step of "obtaining the first sampling interval and the second sampling interval respectively according to the three-phase drive debugging signal of the current sector motor" of this method can be: sorting the three-phase drive debugging signal of the current sector motor according to pulse width from small to large, and obtaining the first drive debugging signal PWM1, the second drive debugging signal PWM2 and the third drive debugging signal PWM3 in turn; obtaining the first sampling interval Ta according to the second drive debugging signal PWM2 and the third drive debugging signal PWM3, and obtaining the second sampling interval Tb according to the first drive debugging signal PWM1 and the second drive debugging signal PWM2. Figure 4a As an example, the three-phase drive debugging signal of the motor in zone I (0°~60°) shown in FIG. 1 is used. After the first drive debugging signal PWM1, the second drive debugging signal PWM2 and the third drive debugging signal PWM3 are obtained in sequence according to the order of pulse width from small to large, the following is formed: Figure 5 The waveform diagram is shown. That is, in this sector, since the pulse width of the drive debugging signal of the w phase is the smallest, it is the first drive debugging signal PWM1, the pulse width of the drive debugging signal of the u phase is the largest, it is the third drive debugging signal PWM3, and the remaining drive debugging signal of the v phase is the second drive debugging signal PWM2. Similarly, the three-phase drive debugging signals of the motors in other sectors can be sorted from small to large in pulse width to obtain the first drive debugging signal PWM1, the second drive debugging signal PWM2 and the third drive debugging signal PWM3 in sequence.

[0039] The specific process of "obtaining the first sampling interval Ta according to the third driving debugging signal PWM3 and the second driving debugging signal PWM2, and obtaining the second sampling interval Tb according to the second driving debugging signal PWM2 and the first driving debugging signal PWM1" can be: Figure 5As shown, the first time T1, the second time T2 and the third time T3 at which the target level (here specifically a high level) is outputted in the first drive debugging signal PWM1, the second drive debugging signal PWM2 and the third drive debugging signal PWM3 are obtained in sequence. Then, the first sampling interval Ta is obtained according to the time difference between the second time T2 and the third time T3, that is, Ta=T3-T2, and the second sampling interval Tb is obtained according to the time difference between the first time T1 and the second time T2, that is, =T2-T1. The purpose of calculating the first sampling interval Ta and the second sampling interval Tb is to ensure that the first sampling interval Ta and the second sampling interval Tb can meet the minimum sampling time interval requirement when setting the sampling point time of the current sector later, that is, assuming that the minimum sampling time interval is Tmin, Tmin=ADC sampling time+dead time+noise time, wherein the ADC sampling time is the time required for the analog signal quantity to be converted into the digital signal quantity when the ADC is sampling. The dead time is a protection time set to prevent the switches of the upper and lower bridge arms from being turned on at the same time when the PWM is output, and needs to be configured according to the speed of the switch. The noise time is the noise caused by the MOS tube switching, which is generally caused by the performance of the components themselves. It is necessary to ensure that the first sampling interval Ta and the second sampling interval Tb can meet the minimum sampling time interval requirements, that is, Ta≥Tmin, Tb≥Tmin. That is, after obtaining the first sampling interval Ta and the second sampling interval Tb, the following process can be performed: respectively determine whether the first sampling interval Ta and the second sampling interval Tb meet the minimum sampling time interval requirements, that is, respectively determine whether the first sampling interval Ta and the second sampling interval Tb are greater than or equal to the minimum sampling time interval Tmin.

[0040] Step S120: If the first sampling interval and / or the second sampling interval is smaller than the minimum sampling time interval, pulse width modulation is performed on at least one of the three-phase driving debugging signals.

[0041] Specifically, the first sampling interval Ta and the second sampling interval Tb are obtained through the above method steps, and after a corresponding judgment is made on whether the first sampling interval Ta and the second sampling interval Tb meet the minimum sampling time interval requirement, when the first sampling interval Ta and / or the second sampling interval Tb cannot meet the minimum sampling time interval requirement, that is, the first sampling interval and / or the second sampling interval is less than the minimum sampling time interval, pulse width modulation is performed on at least one drive debugging signal in the three-phase drive debugging signal to ensure that the first sampling interval Ta and the second sampling interval Tb can both meet the minimum sampling time interval requirement.

[0042] It can be seen that the above-mentioned situation of pulse width modulation of at least one of the three-phase drive debugging signals can specifically include three sampling blind area situations that exist in the prior art of sampling the three-phase current of the motor using a single resistor sampling method, namely, the situation where only the first sampling interval Ta is less than the minimum sampling time interval Tmin, the situation where only the second sampling interval Tb is less than the minimum sampling time interval Tmin, and the situation where both the first sampling interval Ta and the second sampling interval Tb are less than the minimum sampling time interval Tmin.

[0043] In some examples, taking the case where only the first sampling interval Ta is less than the minimum sampling time interval Tmin as an example, the specific process of the above steps can be as shown in 6, including the following steps:

[0044] Step S121: if the first sampling interval is smaller than the minimum sampling time interval, pulse width modulation is performed on the second driving debugging signal or the third driving debugging signal.

[0045] Specifically, assuming that the waveforms of the first drive debugging signal PWM1, the second drive debugging signal PWM2, and the third drive debugging signal PWM3 after the pulse widths are sorted are as follows: Figure 7As shown by the solid line, at this time, before pulse width modulation is performed, the first sampling interval is marked as Ta1. It can be seen that only Ta1<Tmin cannot meet the minimum sampling time interval requirement. Therefore, the second driving debugging signal PWM2 or the third driving debugging signal PWM3 can be pulse-width modulated so that the modulated first sampling interval Ta≥Tmin, that is, the first sampling interval Ta can also meet the minimum sampling time interval requirement, to ensure that the first sampling interval Ta and the second sampling interval Tb can both meet the minimum sampling time interval requirement. Since the first sampling interval Ta is calculated from the time difference between the second time T2 and the third time T3, in principle, the second time T2 can be increased by pulse width modulation of the second drive debugging signal PWM2 (the pulse width modulation can be specifically pulse width reduction modulation of the second drive debugging signal PWM2), or the third time T3 can be reduced by pulse width modulation of the third drive debugging signal PWM3 (the pulse width modulation can be specifically pulse width expansion modulation of the third drive debugging signal PWM3). Both can achieve the purpose of increasing the value of the first sampling interval Ta. However, since re-modulating the pulse width of the second drive debugging signal PWM2 will not only change the value of the first sampling interval Ta, but also cause The value of the second sampling interval Tb is changed. Here, in order to avoid the influence on the second sampling interval Tb as much as possible, it is better to perform pulse width modulation on the third driving debugging signal PWM3, that is, the third driving debugging signal PWM3 is pulse width enlarged and modulated to reduce the value of the third time T3, so as to achieve the purpose of increasing the value of the first sampling interval Ta, so that the modulated first sampling interval Ta2 ≥ Tmin. In addition, in order to maintain the consistency of the driving ability, the third driving debugging signal PWM3 after pulse width enlargement and modulation can also be modulated twice within the same PWM cycle. Finally, the third driving debugging signal PWM3 after pulse width modulation is as follows: Figure 7 Shown by the dashed line.

[0046] The above-mentioned implementation of pulse width expansion modulation of the third drive debugging signal PWM3 and secondary modulation of the third drive debugging signal PWM3 after pulse width expansion modulation within the same PWM cycle can be implemented in different ways for different chips. Taking the chip HK32_ASPIN0x series as an example, it can be implemented through the comparison output function of the PWM module of TIM1. Specifically, it can be achieved by reducing the value of the comparison register (CCR3) to expand the output pulse width of the third drive debugging signal PWM3, and at the same time adding a comparison register (CCR4) to control the moment of triggering DMA to write to CCR3, so as to control the intermediate re-modulation function (that is, the third drive debugging signal PWM3 after pulse width expansion modulation is subjected to secondary modulation within the same PWM cycle). Figure 8As shown, the working mode of TIM can be: 1. There is a counter CNT, which starts from 0 and increases by 1 for each clock. After reaching the value of the automatic reload register (ARR) (the value of ARR in the figure is 900), it starts to decrease by 1 for each clock, that is, Figure 8 The triangle shown in . 2. There is a comparison register (CCR3). When CNT is less than or equal to 300, PWM outputs 0, and when CNT is greater than 300, the output is 1. That is, the waveform shown by the solid line in the figure can represent the waveform of the third drive debugging signal PWM3 before modulation. When the third drive debugging signal PWM3 is pulse width expanded and modulated, and the third drive debugging signal PWM3 after pulse width expanded modulation is modulated twice within the same PWM cycle, the following operations can be performed: 1. Reduce the value of CCR3. As shown in the above figure, the value of CCR3 changes from 300 to 260 (the reduction amplitude is preferably such that the Ta2 value is just equal to or slightly greater than the value of the minimum sampling time interval Tmin). 2. Add a comparison register (CCR4), and CCR4 is configured to 860. At the same time, DMA is linked, and the preset DMA source is ram (value 900, 260), and the DMA target is CCR3. When CNT and CCR4 are equal, a DMA transfer event is triggered, that is, the waveform shown by the dotted line in the figure, which can represent the waveform of the third drive debugging signal PWM3 after the final modulation.

[0047] In some examples, taking the example that only the second sampling interval Tb cannot meet the minimum sampling time interval requirement, the specific process of the above steps can also be as follows: Figure 6 As shown, the following steps are also included:

[0048] Step S122: If the second sampling interval is smaller than the minimum sampling time interval, pulse width modulation is performed on the first driving debugging signal or the second driving debugging signal.

[0049] Specifically, assuming that the waveforms of the first drive debugging signal PWM1, the second drive debugging signal PWM2, and the third drive debugging signal PWM3 after the pulse widths are sorted are as follows: Fig. 9As shown by the solid line, at this time, before pulse width modulation is performed, the second sampling interval is marked as Tb1. It can be seen that only Tb1<Tmin cannot meet the minimum sampling time interval requirement. Therefore, the first driving debugging signal PWM1 or the second driving debugging signal PWM2 can be pulse-width modulated so that the modulated second sampling interval Tb≥Tmin, that is, the second sampling interval Tb can also meet the minimum sampling time interval requirement, to ensure that the first sampling interval Ta and the second sampling interval Tb can both meet the minimum sampling time interval requirement. Since the second sampling interval Tb is calculated from the time difference between the first time T1 and the second time T2, in principle, the value of the first time T1 can be increased by pulse width modulation of the first driving debugging signal PWM1 (here, the pulse width modulation can be specifically pulse width reduction modulation of the first driving debugging signal PWM1), or the value of the second time T2 can be reduced by pulse width modulation of the second driving debugging signal PWM2 (here, the pulse width modulation can be specifically pulse width expansion modulation of the second driving debugging signal PWM2). Both can achieve the purpose of increasing the value of the second sampling interval Tb. Here, taking the pulse width modulation of the second driving debugging signal PWM2 as an example, the second driving debugging signal PWM2 can be pulse width expansion modulation to reduce the value of the second time T2, so as to achieve the purpose of increasing the value of the second sampling interval Tb, so that the modulated second sampling interval Tb2 ≥ Tmin. In addition, in order to maintain the consistency of the driving capability, the second driving debugging signal PWM2 after pulse width expansion modulation is also modulated twice within the same PWM cycle, and finally the second driving debugging signal PWM2 after pulse width modulation is as follows: Fig. 9 Shown by the dashed line.

[0050] The implementation of the pulse width enlargement modulation of the second driving debugging signal PWM2 and the secondary modulation of the second driving debugging signal PWM2 after pulse width enlargement modulation within the same PWM cycle can be specifically referred to the pulse width modulation process of the third driving debugging signal PWM3 in the above embodiment.

[0051] In some examples, taking the example that both the first sampling interval Ta and the second sampling interval Tb cannot meet the minimum sampling time interval requirement, the specific process of the above steps can also be as follows: Figure 6 As shown, the following steps are also included:

[0052] Step S123: If the first sampling interval and the second sampling interval are both smaller than the minimum sampling time interval, pulse width modulation is performed on the second drive debugging signal and the third drive debugging signal in sequence, or pulse width modulation is performed on the second drive debugging signal and the first drive debugging signal in sequence.

[0053] Specifically, assuming that the waveforms of the first drive debugging signal PWM1, the second drive debugging signal PWM2, and the third drive debugging signal PWM3 after the pulse widths are sorted are as follows: Fig.10 As shown by the solid line, at this time, before pulse width modulation is performed, the first sampling interval is marked as Ta1, and the second sampling interval is marked as Tb1. It can be seen that Ta1<Tmin, Ta2<Tmin, and both cannot meet the minimum sampling time interval requirement. Therefore, the second drive debugging signal PWM2 and the third drive debugging signal PWM3 can be pulse-width modulated in sequence, or the second drive debugging signal PWM2 and the first drive debugging signal PWM1 can be pulse-width modulated in sequence, so that the modulated first sampling interval Ta≥Tmin, and the second sampling interval Tb≥Tmin, to ensure that the first sampling interval Ta and the second sampling interval Tb can meet the minimum sampling time interval requirement. Since the second sampling interval Tb is calculated by the time difference between the first time T1 and the second time T2, and the first sampling interval Ta is calculated by the time difference between the second time T2 and the third time T3, in principle, the second time T2 and the first time T1 can be increased by sequentially performing pulse width modulation on the second drive debugging signal PWM2 and the first drive debugging signal PWM1 (here, the pulse width modulation can specifically be the pulse width of the second drive debugging signal PWM2 and the first drive debugging signal PWM1 being sequentially reduced), or the second time T2 and the third time T3 can be reduced by sequentially performing pulse width modulation on the second drive debugging signal PWM2 and the third drive debugging signal PWM3 (here, the pulse width modulation can specifically be the pulse width of the second drive debugging signal PWM2 and the third drive debugging signal PWM3 being sequentially expanded), both of which can achieve the purpose of increasing the first sampling interval Tb. The purpose of the interval Ta and the second sampling interval Tb is to perform pulse width modulation on the second drive debugging signal PWM2 and the third drive debugging signal PWM3 in sequence as an example. The pulse widths of the second drive debugging signal PWM2 and the third drive debugging signal PWM3 can be enlarged in sequence to reduce the values ​​of the second time T2 and the third time T3, so as to achieve the purpose of increasing the first sampling interval Ta and the second sampling interval Tb, so that the modulated first sampling interval Ta2 ≥ Tmin, and the second sampling interval Tb2 ≥ Tmin. In addition, in order to maintain the consistency of the driving capability, the second drive debugging signal PWM2 after pulse width enlargement modulation and the third drive debugging signal PWM3 after pulse width enlargement modulation are respectively modulated twice within the same PWM cycle, and finally the second drive debugging signal PWM2 and the third drive debugging signal PWM3 after pulse width enlargement modulation are respectively as follows: Fig.10 Shown by the dashed line.

[0054] The above-mentioned implementation of pulse width expansion modulation of the pulse widths of the second drive debugging signal PWM2 and the third drive debugging signal PWM3 in turn and secondary modulation of the second drive debugging signal PWM2 and the third drive debugging signal PWM3 after pulse width expansion modulation within the same PWM cycle can be specifically referred to the pulse width modulation process of the third drive debugging signal PWM3 in the above-mentioned embodiment.

[0055] Step S130: setting the sampling point time of the current sector according to the current three-phase drive debugging signal, so as to sample and reconstruct the three-phase current of the motor after setting the sampling point time of all sectors to obtain the three-phase current of the motor.

[0056] Specifically, since the current sampling method of the embodiment of the present application is mainly aimed at the single resistor sampling method, and the single resistor sampling method requires two ADC samplings at different times within one PWM cycle (ie, Figure 2 As shown, the ADC samples the current at the upper end of R1 twice at different times within one PWM cycle), obtains two-phase currents, and then reconstructs and restores the current based on a basic assumption that the sum of the three-phase currents is 0 to obtain the three-phase current of the motor. Therefore, when the sampling point time of the current sector is set according to the current three-phase drive debugging signal, and the three-phase current of the motor is sampled and reconstructed after the sampling point time of all sectors is set to obtain the three-phase current of the motor, it only needs to set the two sampling point times of the current sector according to two of the current three-phase drive debugging signals, namely the first sampling point time and the second sampling point time, so as to realize the sampling and reconstruction of the three-phase current of the current sector of the motor to obtain the three-phase current of the current sector of the motor.

[0057] Specifically, when the pulse widths of the first drive debugging signal PWM1, the second drive debugging signal PWM2, and the third drive debugging signal PWM3 are arranged in an ascending order, the first sampling point time Ts1 of the current sector can be set according to the third drive debugging signal PWM3 (Ts1=T3+dead time+noise time), and the second sampling point time Ts2 of the current sector can be set according to the second drive debugging signal PWM2 (Ts2=T2+dead time+noise time). When the pulse widths of the first drive debugging signal PWM1, the second drive debugging signal PWM2, and the third drive debugging signal PWM3 are arranged in an ascending order, the first sampling point time Ts1 of the current sector can be set according to the first drive debugging signal PWM1 (Ts1=T1+dead time+noise time), and the second sampling point time Ts2 of the current sector can be set according to the second drive debugging signal PWM2 (Ts2=T2+dead time+noise time).

[0058] When the pulse widths of the first drive debugging signal PWM1, the second drive debugging signal PWM2, and the third drive debugging signal PWM3 are arranged in ascending order, the first sampling point time of the current sector is set according to the third drive debugging signal PWM3, and the second sampling point time of the current sector is set according to the third drive debugging signal PWM2 as an example:

[0059] (1) When the first sampling interval Ta and the second sampling interval Tb both meet the minimum sampling time interval requirement at the initial stage, it is not necessary to perform pulse width modulation on the first drive debugging signal PWM1, the second drive debugging signal PWM2, and the third drive debugging signal PWM3. At this time, it is only necessary to directly set the first sampling point time of the current sector according to the third drive debugging signal PWM3, and to set the second sampling point time of the current sector according to the second drive debugging signal PWM2.

[0060] (2) When initially, only the first sampling interval Ta is less than the minimum sampling time interval Tmin, and it is necessary to perform pulse width modulation on the second drive debugging signal PWM2 or the third drive debugging signal PWM3. At this time, the first sampling point time of the current sector can be set according to the third drive debugging signal PWM3 after pulse width modulation, and the second sampling point time of the current sector can be set according to the second drive debugging signal PWM2; or, the first sampling point time of the current sector can be set according to the third drive debugging signal PWM3, and the second sampling point time of the current sector can be set according to the second drive debugging signal PWM2 after pulse width modulation.

[0061] (3) When initially, only the second sampling interval Tb is less than the minimum sampling time interval Tmin, and it is necessary to perform pulse width modulation on the second driving debugging signal PWM2 or the first driving debugging signal PWM1. At this time, the first sampling point time of the current sector can be set according to the third driving debugging signal PWM3, and the second sampling point time of the current sector can be set according to the second driving debugging signal PWM2 after pulse width modulation; or, the first sampling point time of the current sector can be set according to the third driving debugging signal PWM3, and the second sampling point time of the ADC can be set according to the second driving debugging signal PWM2.

[0062] (4) When initially, the first sampling interval Ta and the second sampling interval Tb are both smaller than the minimum sampling time interval Tmin, it is necessary to perform pulse width modulation on the second drive debugging signal PWM2 and the third drive debugging signal PWM3 in sequence, or it is necessary to perform pulse width modulation on the second drive debugging signal PWM2 and the first drive debugging signal PWM1 in sequence. At this time, the first sampling point time of the current sector can be set according to the third drive debugging signal PWM3 after pulse width modulation, and the second sampling point time of the current sector can be set according to the second drive debugging signal PWM2 after pulse width modulation; or, the first sampling point time of the current sector can be set according to the third drive debugging signal PWM3, and the second sampling point time of the current sector can be set according to the second drive debugging signal PWM2 after pulse width modulation.

[0063] In this way, when the present application sets the sampling point time of the current sector according to the current three-phase drive debugging signal, its current three-phase drive debugging signal may be pulse width modulated, so as to ensure that its first sampling interval and the second sampling interval can meet the minimum sampling time interval requirements. Therefore, the present application can solve the sampling problem of the sampling blind area in the single resistor sampling method, make the sector switching smooth, and thus reduce the motor power consumption and noise.

[0064] It should be noted that, in the above-mentioned method steps of the embodiment of the present invention, "the three-phase drive debugging signal of the current sector motor is sorted according to the pulse width from small to large, and the first drive debugging signal PWM1, the second drive debugging signal PWM2 and the third drive debugging signal PWM3 are obtained in sequence" as an example to illustrate each method step accordingly. This is only to more intuitively illustrate the technical solution of the present application, and does not limit the patent scope of the present application. For technical personnel in this field, according to actual needs, the above-mentioned pulse width sorting can also be specifically sorted according to the pulse width from large to small. At this time, it is only necessary to make corresponding adaptive adjustments to the subsequent method steps. It is an equivalent replacement of the technical means of the present invention, does not deviate from the concept of the present invention, and is also included in the patent protection scope of the present application.

[0065] like Fig.11 As shown, in one embodiment, an embodiment of the present invention proposes a terminal 20, which includes a memory 21, a processor 22, a program stored in the memory and running on the processor, and a data bus 23 for realizing connection and communication between the processor 21 and the memory 22. When the program is executed by the processor, the steps of the current sampling method in the above embodiment are implemented, which are specifically as described above and will not be repeated here.

[0066] It should be noted that the terminal 20 embodiment of the embodiment of the present invention and the above-mentioned current sampling method embodiment belong to the same concept, and its specific implementation process is detailed in the above-mentioned current sampling method embodiment, and the technical features in the above-mentioned current sampling method embodiment are correspondingly applicable in the terminal 20 embodiment, which will not be repeated here.

[0067] In one embodiment, an embodiment of the present invention provides a storage medium for computer-readable storage, the storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement the specific steps of the current sampling method in the above embodiment, which are specifically as described above and will not be repeated here.

[0068] It should be noted that the above-mentioned storage medium and the above-mentioned current sampling method embodiment belong to the same concept, and the specific implementation process is detailed in the above-mentioned current sampling method embodiment, and the technical features in the above-mentioned current sampling method embodiment are correspondingly applicable in the storage medium embodiment, which will not be repeated here.

[0069] Although the present application has been shown and described with respect to one or more implementations, equivalent variations and modifications will occur to those skilled in the art based on reading and understanding of this specification and the accompanying drawings. The present application includes all such modifications and variations and is limited only by the scope of the appended claims. In particular, with respect to the various functions performed by the above-mentioned components, the terms used to describe such components are intended to correspond to any component (unless otherwise indicated) that performs the specified function of the component (e.g., it is functionally equivalent), even if it is not structurally equivalent to the disclosed structure that performs the functions in the exemplary implementation of this specification shown herein.

[0070] That is, the above description is only an embodiment of the present application, and does not limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the specification and drawings of the present application, such as the mutual combination of technical features between the embodiments, or direct or indirect application in other related technical fields, are also included in the patent protection scope of the present application.

[0071] In addition, for structural elements with the same or similar characteristics, the present application may use the same or different reference numerals for identification. In addition, the terms "first" and "second" are used for descriptive purposes only and cannot be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, the features defined as "first" and "second" may explicitly or implicitly include one or more features. In the description of the present application, the meaning of "multiple" is two or more, unless otherwise clearly and specifically defined.

[0072] In this application, the word "exemplary" is used to mean "used as an example, illustration or description". Any embodiment described as "exemplary" in this application is not necessarily to be construed as being more preferred or more advantageous than other embodiments. In order to enable any technician in the field to implement and use the present application, the present application provides the above description. In the above description, various details are listed for the purpose of explanation. It should be understood that a person of ordinary skill in the art can recognize that the present application can be implemented without using these specific details. In other embodiments, well-known structures and processes will not be elaborated in detail to avoid unnecessary details that make the description of the present application obscure. Therefore, the present application is not intended to be limited to the embodiments shown, but is consistent with the widest range of principles and features disclosed in the present application.

Claims

1. A current sampling method, characterized in that: The following steps are involved: The motor is driven by SVPWM to form multiple sectors of vector control; The three-phase drive debugging signals of the current sector motor are sorted from small to large according to the pulse width, and a first drive debugging signal, a second drive debugging signal and a third drive debugging signal are obtained in sequence; Obtaining a first sampling interval according to the second driving debugging signal and the third driving debugging signal, and obtaining a second sampling interval according to the first driving debugging signal and the second driving debugging signal; If the first sampling interval and / or the second sampling interval is less than a minimum sampling time interval, pulse width modulation is performed on at least one of the three-phase driving debugging signals; The sampling point time of the current sector is set according to the current three-phase drive debugging signal, so that the three-phase current of the motor is sampled and reconstructed and restored after the sampling point times of all sectors are set, so as to obtain the three-phase current of the motor.

2. The current sampling method according to claim 1, characterized in that: The steps of obtaining the first sampling interval according to the second drive debugging signal and the third drive debugging signal, and obtaining the second sampling interval according to the first drive debugging signal and the second drive debugging signal specifically include: sequentially acquiring a first time, a second time, and a third time when a target level is started to be output from the first drive debugging signal, the second drive debugging signal, and the third drive debugging signal; The first sampling interval is obtained according to the time difference between the second time and the third time, and the second sampling interval is obtained according to the time difference between the first time and the second time.

3. The current sampling method according to claim 1, characterized in that: The step of pulse width modulating at least one of the three-phase drive debugging signals if the first sampling interval and / or the second sampling interval is less than the minimum sampling time interval specifically includes: If the first sampling interval is smaller than a minimum sampling time interval, pulse width modulation is performed on the second driving debugging signal or the third driving debugging signal.

4. The current sampling method according to claim 3, characterized in that: The step of setting the sampling point time of the current sector according to the current three-phase drive debugging signal specifically includes: Setting a first sampling point time of the current sector according to the third drive debugging signal after pulse width modulation, and setting a second sampling point time of the current sector according to the second drive debugging signal; Or, the first sampling point time of the current sector is set according to the third driving debugging signal, and the second sampling point time of the current sector is set according to the second driving debugging signal after pulse width modulation.

5. The current sampling method according to claim 1, characterized in that: If the first sampling interval and / or the second sampling interval is less than the minimum sampling time interval, the step of pulse width modulating at least one of the three-phase driving debugging signals specifically includes: If the second sampling interval is smaller than a minimum sampling time interval, pulse width modulation is performed on the first driving debugging signal or the second driving debugging signal.

6. The current sampling method according to claim 5, characterized in that: The step of setting the sampling point time of the current sector according to the current three-phase drive debugging signal specifically includes: Setting a first sampling point time of the current sector according to the third drive debugging signal, and setting a second sampling point time of the current sector according to the second drive debugging signal after pulse width modulation; Or, a first sampling point time of the current sector is set according to the third drive debugging signal, and a second sampling point time of the current sector is set according to the second drive debugging signal.

7. The current sampling method according to claim 1, characterized in that: The step of pulse width modulating at least one of the three-phase drive debugging signals if the first sampling interval and / or the second sampling interval is less than the minimum sampling time interval specifically includes: If the first sampling interval and the second sampling interval are both smaller than the minimum sampling time interval, the second drive debugging signal and the third drive debugging signal are pulse width modulated in sequence, or the second drive debugging signal and the first drive debugging signal are pulse width modulated in sequence.

8. The current sampling method according to claim 7, characterized in that: The step of setting the sampling point time of the current sector according to the current three-phase drive debugging signal specifically includes: Setting a first sampling point time of the current sector according to the third drive debugging signal after pulse width modulation, and setting a second sampling point time of the current sector according to the second drive debugging signal after pulse width modulation; Or, the first sampling point time of the current sector is set according to the third driving debugging signal, and the second sampling point time of the current sector is set according to the second driving debugging signal after pulse width modulation.

9. The current sampling method according to any one of claims 1 to 8, characterized in that: The pulse width modulation includes pulse width expansion modulation or pulse width reduction modulation.

10. The current sampling method according to claim 9, characterized in that: After the pulse width expansion modulation is performed on the driving debugging signal, the pulse width modulation further includes performing secondary modulation on the driving debugging signal after the pulse width expansion modulation within the same PWM cycle.

11. A current sampling device, characterized in that: include: A memory, a processor, a program stored in the memory and running on the processor, and a data bus for realizing connection and communication between the processor and the memory, wherein the program, when executed by the processor, realizes the steps of the method according to any one of claims 1 to 10.

12. A storage medium for computer-readable storage, characterized in that: The storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement the steps of any one of the methods described in claims 1-10.

Citation Information

Patent Citations

  • Single-resistor sampling method

    CN112422017A

  • Single-resistor current sampling method and device

    CN113687126A