WO2019242434A1 - Vacuum cleaner, and back electromotive force zero crossing detection method and apparatus and control system for motor - Google Patents

Vacuum cleaner, and back electromotive force zero crossing detection method and apparatus and control system for motor Download PDF

Info

Publication number
WO2019242434A1
WO2019242434A1 PCT/CN2019/087066 CN2019087066W WO2019242434A1 WO 2019242434 A1 WO2019242434 A1 WO 2019242434A1 CN 2019087066 W CN2019087066 W CN 2019087066W WO 2019242434 A1 WO2019242434 A1 WO 2019242434A1
Authority
WO
WIPO (PCT)
Prior art keywords
crossing detection
brushless
emf
motor
emf zero
Prior art date
Application number
PCT/CN2019/087066
Other languages
French (fr)
Chinese (zh)
Inventor
王浩东
吴偏偏
Original Assignee
江苏美的清洁电器股份有限公司
美的集团股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Priority claimed from CN201810628717.9A external-priority patent/CN108809164B/en
Priority claimed from CN201810628718.3A external-priority patent/CN108736769B/en
Application filed by 江苏美的清洁电器股份有限公司, 美的集团股份有限公司 filed Critical 江苏美的清洁电器股份有限公司
Publication of WO2019242434A1 publication Critical patent/WO2019242434A1/en

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R19/00Arrangements for measuring currents or voltages or for indicating presence or sign thereof
    • G01R19/175Indicating the instants of passage of current or voltage through a given value, e.g. passage through zero
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02PCONTROL OR REGULATION OF ELECTRIC MOTORS, ELECTRIC GENERATORS OR DYNAMO-ELECTRIC CONVERTERS; CONTROLLING TRANSFORMERS, REACTORS OR CHOKE COILS
    • H02P6/00Arrangements for controlling synchronous motors or other dynamo-electric motors using electronic commutation dependent on the rotor position; Electronic commutators therefor
    • H02P6/14Electronic commutators
    • H02P6/16Circuit arrangements for detecting position
    • H02P6/18Circuit arrangements for detecting position without separate position detecting elements
    • H02P6/182Circuit arrangements for detecting position without separate position detecting elements using back-emf in windings

Definitions

  • the present application relates to the technical field of motor control, and in particular, to a method for detecting a back-EMF zero-crossing of a brushless DC motor, a device for detecting a back-EMF zero-crossing of a brushless DC motor, a control system for a brushless DC motor, and a vacuum cleaner.
  • the back-EMF zero-crossing method is simple, effective, and widely used.
  • the basic principle of the back-EMF zero-crossing method is that when the back-EMF of a phase winding of a brushless DC motor crosses zero, the direct axis of the rotor coincides with the winding axis of that phase, so as long as the back-EMF zero-crossing point of each phase winding can be determined, Know the rotor position of the motor.
  • the ADC Analog-to-Digital Converter
  • PWM Pulse Width Modulation
  • the terminal voltage of the floating phase of the brushless DC motor is compared once, and then the sampling result is compared with the reference voltage to determine whether a zero crossing has occurred.
  • an external comparator is added to compare the terminal voltage of the floating phase of the brushless DC motor with the reference voltage by using hardware. Relationship to achieve back-EMF zero-crossing detection.
  • the above detection method has the following disadvantages: 1) When the method 1 is used to perform back-EMF zero-crossing detection, the detected back-EMF zero-crossing time lags behind the actual back-EMF zero-crossing time is about one PWM cycle, and in a brushless DC motor When the rotation speed of the PWM control signal is low, there are multiple PWM cycles in one commutation interval, and the lag of one PWM cycle has less effect on the commutation of the brushless DC motor. However, when the rotation speed of the brushless DC motor is small, When it is higher, the number of PWM cycles in one commutation interval is less.
  • the back-EMF zero-crossing detection lag may lead to the brushless DC motor commutation lag, which affects the stability of the brushless DC motor. 2) Use method 2 When performing back-EMF zero-crossing detection, the cost will be higher due to the addition of an external comparator.
  • the first purpose of this application is to propose a back-EMF zero-crossing detection method for a brushless DC motor, which can not only detect the back-EMF zero-crossing point in a timely and accurate manner, ensure stable operation of the motor at extremely high speeds, but also eliminate the need for Adding extra comparators can reduce costs.
  • a second object of the present application is to propose a non-transitory computer-readable storage medium.
  • a third object of the present application is to provide a back-EMF zero-crossing detection device for a brushless DC motor.
  • a fourth object of the present application is to provide a control system for a brushless DC motor.
  • a fifth object of the present application is to propose a vacuum cleaner.
  • an embodiment of the first aspect of the present application proposes a method for detecting a back-EMF zero-crossing of a brushless DC motor, including the following steps: obtaining a back-EMF zero-crossing detection time gap of the brushless DC motor; detecting and It is confirmed that the back-EMF zero-crossing detection time gap is entered, the back-EMF of the brushless DC motor is continuously sampled multiple times, and the back-EMF is detected according to the sampling result.
  • the back-EMF zero-crossing detection time gap of the brushless DC motor is obtained, and the back-EMF zero-crossing detection time gap is detected and confirmed.
  • the back-EMF of the brushless DC motor is continuously sampled multiple times, and the back-EMF is zero-crossed according to the sampling result. Therefore, not only the back-EMF zero-crossing point can be detected in a timely and accurate manner, and the motor can be stably operated at a very high speed, but also without an additional comparator, which can reduce costs.
  • an embodiment of the second aspect of the present application proposes a non-transitory computer-readable storage medium on which a computer program is stored.
  • the program is executed by a processor, the above-mentioned back-EMF of the brushless DC motor is implemented. Zero detection method.
  • the back-EMF zero-crossing can be detected in a timely and accurate manner, and the stable operation of the motor at the pole High speed and no need for additional comparators can reduce costs.
  • a back-EMF zero-crossing detection device for a brushless DC motor provided in an embodiment of the third aspect of the present application includes: an obtaining unit, configured to obtain a back-EMF zero-crossing detection time gap of the brushless DC motor A confirming unit configured to detect and confirm entering the back-EMF zero-crossing detection time gap; a sampling unit configured to continuously and repeatedly sample the back-EMF of the brushless DC motor according to a confirmation result of the confirming unit, and Zero-crossing detection is performed on the back-EMF according to a sampling result.
  • the back-EMF zero-crossing detection time gap of the brushless DC motor is acquired by the acquisition unit, and the back-EMF zero-crossing detection is detected and confirmed by the confirmation unit.
  • Time gap, and the sampling unit performs multiple consecutive samplings of the back EMF of the brushless DC motor according to the confirmation result of the confirmation unit, and performs zero crossing detection on the back EMF according to the sampling result. Therefore, not only the back-EMF zero-crossing point can be detected in a timely and accurate manner, and the motor can be stably operated at a very high speed, but also without an additional comparator, which can reduce costs.
  • an embodiment of the fourth aspect of the present application proposes a control system of a brushless DC motor, which includes the above-mentioned back-EMF zero crossing detection device of the brushless DC motor.
  • the above-mentioned back-EMF zero-crossing detection device of the brushless DC motor can not only detect the back-EMF zero-crossing point in a timely and accurate manner, and ensure that the motor runs stably at a very high speed. And without the need for additional comparators, it can reduce costs.
  • an embodiment of the fifth aspect of the present application provides a vacuum cleaner including the above-mentioned control system of a brushless DC motor.
  • the vacuum cleaner of the embodiment of the present application through the above-mentioned control system of the brushless DC motor, not only the back-EMF zero-crossing point can be detected in a timely and accurate manner, the stable operation of the motor at extremely high speed can be ensured, but no additional comparator is needed, which can reduce the cost.
  • FIG. 1 is a flowchart of a method for detecting a back-EMF zero-crossing of a brushless DC motor according to an embodiment of the present application
  • FIG. 2a is a terminal voltage waveform diagram of a period of phase A
  • FIG. 2b is a terminal voltage waveform diagram of a phase A suspension period
  • FIG. 3 is a schematic diagram of a back-EMF zero-crossing detection of a brushless DC motor in the related art
  • FIG. 4 is a schematic diagram of a back-EMF detection time gap according to an embodiment of the present application.
  • FIG. 5 is a schematic diagram of a back-EMF detection time gap according to another embodiment of the present application.
  • 6a-6b are schematic diagrams of back-EMF zero-crossing detection of a brushless DC motor according to an embodiment of the present application
  • FIGS. 7a-7c are flowcharts of a method for detecting a back-EMF zero-crossing of a brushless DC motor according to a specific embodiment of the present application;
  • FIG. 8 is a schematic diagram of a back-EMF zero-crossing detection of a brushless DC motor according to an embodiment of the present application.
  • FIG. 9 is a schematic block diagram of a back-EMF zero-crossing detection device of a brushless DC motor according to an embodiment of the present application.
  • FIG. 1 is a flowchart of a method for detecting a back-EMF zero-crossing of a brushless DC motor according to an embodiment of the present application. As shown in FIG. 1, a method for detecting a back-EMF zero-crossing of a brushless DC motor according to an embodiment of the present application includes the following steps:
  • the duty ratio of the PWM control signal of the brushless DC motor may also be obtained, and whether the duty ratio is greater than the first preset Set the duty cycle.
  • the duty cycle is greater than the first preset duty cycle, obtain the back-EMF zero-crossing detection time gap of the brushless DC motor, and determine whether it enters the back-EMF zero-crossing detection time gap, and within the back-EMF zero-crossing detection time gap ,
  • the back-EMF of the brushless DC motor is sampled multiple times in succession, and it is judged whether the back-EMF crosses zero; if the duty cycle is less than the second preset duty cycle, the The back-EMF of the brushed DC motor is sampled once, and it is determined whether the back-EMF crosses zero according to the sampling result.
  • the second preset duty cycle is smaller than the first preset duty cycle, which can be calibrated according to the actual situation.
  • the current back-EMF zero-crossing detection is comparing the relationship between the voltage of the floating phase terminal and the reference voltage.
  • phase A the voltage waveform of the phase A winding during a period is shown in FIG. 2a, and during the period of BC and CB, the phase A is floating, and the waveform of the terminal voltage is shown in FIG. 2b.
  • the phase A terminal voltage U A e A + 1 / 2U DC .
  • U A 1 / 2U DC
  • e A 0, which is the time when the opposite potential of A is zero.
  • the back-EMF zero-crossing detection is performed during the PWM on-time, the reference voltage is selected as 1 / 2U DC , and the back-EMF zero-crossing detection is performed during the PWM-off period, and the reference voltage is selected as 0V.
  • the back-EMF is detected during PWM on-time. Take zero crossing as an example.
  • the phase A terminal voltage is increasing.
  • the phase A terminal voltage is sampled once and compared with the reference voltage.
  • U A ⁇ 1 / 2U DC the back EMF does not cross zero.
  • U A > 1 / 2U DC it is detected that the back EMF has passed zero.
  • the CB is turned on.
  • the phase A terminal voltage showed a downward trend.
  • U A > 1 / 2U DC the back EMF did not cross zero, and at time b3, U A ⁇ 1 / 2U DC , at this time it was detected that the back EMF had passed zero .
  • the detected back-EMF zero-crossing time lags behind the actual back-EMF zero-crossing time by about one PWM control cycle.
  • low speed low duty cycle
  • the brushless DC motor runs at a very high speed, such as 100000RPM (1 pair of poles)
  • the time of one phase sector is 100us
  • one PWM control cycle is 50us (that is, 20KHz, the PWM of the brushless DC motor).
  • the frequency of the control signal is generally in the range of 5 ⁇ 30KHz, and then increasing it will adversely affect the switching loss, efficiency, and heat dissipation of the power switch.
  • the back-EMF zero-crossing can only be detected at time c2 of the second PWM control cycle, and the real back-EMF zero-crossing point at time c2 is about 1 PWM control cycle (about 1/2 change Phase interval), resulting in the back-EMF zero-crossing detection lag, which in turn leads to commutation lag, causing bad conditions such as large current ripples and out of step.
  • the operation of the brushless DC motor can be divided into two phases, namely a low speed phase and a high speed phase.
  • the brushless DC motor can be The operation is divided into a low duty cycle phase and a high duty cycle phase.
  • the conventional back-EMF zero-crossing detection method is still used, for example, one back-EMF AD sampling is performed in each PWM control cycle, and the back-EMF is judged according to the sampling result. zero.
  • the duty cycle rises above the first preset duty cycle, it enters the high duty cycle stage (that is, the high-speed stage).
  • the back-EMF of the brushless DC motor is entered when the back-EMF zero-crossing detection time gap is entered. Performing multiple consecutive samplings can save CPU resources. Therefore, in the high duty cycle stage, during each PWM control cycle, when the back-EMF zero-crossing detection time gap is entered, the back-EMF of the brushless DC motor is continuously Sampling multiple times and determine if the back EMF crosses zero. When the duty cycle drops below the second preset duty cycle again, the conventional back-EMF zero-crossing detection method is used again.
  • the control requirements can be met by using the conventional back-EMF zero-crossing detection method in the low-speed operation stage of the brushless DC motor.
  • the back-EMF of the brushless DC motor can be sampled multiple times continuously during the back-EMF zero-crossing detection time interval, so the timeliness and accuracy of the back-EMF zero-crossing detection can be guaranteed, which can support brushless
  • the DC motor runs stably in the extremely high speed range without additional comparators, which can reduce costs and reduce the size of the controller PCB.
  • the electric speed of the brushless DC motor can reach more than 80,000 r / min.
  • obtaining the back-EMF zero-crossing detection time gap of the brushless DC motor includes: obtaining the first N back-EMF zero-crossing interval times, wherein N is obtained according to the current rotation speed; and according to the previous N back-EMF passes Zero interval time to obtain the time corresponding to the half sector of the current speed; to obtain the back-EMF zero-crossing detection advance time of the brushless DC motor; to obtain the difference between the time corresponding to the half-sector and the back-EMF zero-crossing detection advance time To get back EMF zero crossing detection time gap.
  • the back-EMF zero-crossing detection method of the brushless DC motor further includes: judging whether the time corresponding to half a sector from the last commutation time to the current time and the back-EMF zero-crossing detection advance time are between If the difference between the time between the last commutation time and the current time exceeds half a sector and the back-EMF zero-crossing detection advance time, the back-EMF zero-crossing detection time gap is entered.
  • obtaining the time corresponding to the lower half of the current speed of the brushless DC motor includes: obtaining the number of sampling times of the back-EMF zero-crossing interval according to the current speed, and obtaining the number of previous samples The time interval of the second back-EMF zero crossing; according to the previous sampling times, the time of the second back-EMF zero-crossing interval to obtain the time corresponding to the lower half of the current rotation speed.
  • the time corresponding to the half sector of the current speed can be obtained by the following formula:
  • Ts0 is the time corresponding to the half sector at the current rotation speed
  • Tzci is the i-th back-EMF zero-crossing interval time
  • N is an integer greater than or equal to 1.
  • obtaining the back-EMF zero-crossing detection advance time of the brushless DC motor includes: obtaining the back-EMF zero-crossing detection advance time according to the highest operating speed of the brushless DC motor; or, passing a look-up table according to the current speed Obtain the back-EMF zero-crossing detection advance time; or, based on the current rotation speed, obtain the back-EMF zero-crossing detection advance time through a look-up table and a linear interpolation algorithm.
  • the back-EMF zero-crossing detection time gap after brushless DC motor commutation can be obtained.
  • the first N back-EMF zero-crossing intervals (the time interval between the two back-EMF zero-crossings) can be obtained first, for example, the first N back-EMF zero-crossing intervals obtained For Tzc1, Tzc2, Tzc3, Tzc4, ..., TzcN, and then according to the obtained first N back-EMF zero-crossing interval times to obtain the time Ts0 corresponding to the half sector at the current speed (30 ° electrical angle corresponds to half sector), As shown in the following formula (2):
  • N is related to the current speed of the brushless DC motor.
  • N can be set in sections according to the speed of the motor.
  • the speed range of a brushless DC motor is w 0 to w x (x is an integer greater than or equal to 2).
  • the speed range of a brushless DC motor can be divided into w 0 to w 1 , w 1 to w 2 , ..., w x-1 to w x total x intervals, when the speed of the brushless DC motor is in the range of w 0 to w 1 , the corresponding value of N is N1; when the speed of the brushless DC motor is w 1 to w 2 Within the range, the value corresponding to N is N 2 ; ...; when the speed of the brushless DC motor is in the range of w x-1 to w x , the value corresponding to N is N x .
  • the start time of the back-EMF zero-crossing detection needs to be slightly advanced, that is, a period before the expected back-EMF zero-crossing point (that is, the back-EMF zero-crossing detection advance time Ta). , The back-EMF zero-crossing detection is started.
  • the back-EMF zero-crossing detection advance time Ta of the brushless DC motor can be determined by the following three methods: 1) The back-EMF zero-crossing detection advance time Ta can be set to a fixed value, and the fixed value can be determined according to the brushless DC Configure the maximum operating speed of the motor; 2) Update the back-EMF zero-crossing detection advance time Ta in real time by checking the table according to the speed of the brushless DC motor; 3) According to the table of the speed of the brushless DC motor, Combined with the linear interpolation algorithm, the real-time update of the back-EMF zero-crossing detection advance time Ta is performed in real time.
  • the time Ts0 corresponding to the half sector is subtracted from the back-EMF zero-crossing detection advance time Ta to obtain the back-EMF zero-crossing detection time gap start time.
  • the time between the start of the back-EMF zero-crossing detection time gap and the detection of the back-EMF zero-crossing point can be defined as the back-EMF zero-crossing detection time gap Tslot, and no back-EMF is performed before entering this time gap Zero-crossing detection.
  • the back-EMF zero-crossing detection advance time Ta is started, the back-EMF is sampled for multiple consecutive single-channel ADs and compared with a reference voltage to determine whether the back-EMF is zero-crossing.
  • obtaining the back-EMF zero-crossing detection time gap of the brushless DC motor includes: obtaining the time corresponding to the lower half of the current speed of the brushless DC motor, the back-EMF zero-crossing detection advance time, and Freewheeling time interval; Obtain the difference between the time corresponding to half a sector and the back-EMF zero-crossing detection advance time, and place the difference in the free-wheeling time interval to obtain the back-EMF zero-crossing detection time gap.
  • the back-EMF zero-crossing detection time gap Tslot in addition to obtaining the back-EMF zero-crossing detection time gap Tslot according to the time Ts0 corresponding to the half-sector and the back-EMF zero-crossing detection advance time Ta, it can also correspond to the half-sector.
  • the time Ts0 of the back-EMF zero-crossing detection advance time Ta and the freewheeling time interval are used to obtain the back-EMF zero-crossing detection time gap Tslot.
  • obtaining the freewheeling time interval of the brushless DC motor includes: obtaining the freewheeling time interval according to the highest operating speed of the brushless DC motor; or obtaining the freewheeling time interval by looking up a table according to the current speed; Alternatively, the freewheeling time interval is obtained through a look-up table and a linear interpolation algorithm according to the current rotation speed.
  • the time Ts0 corresponding to the lower half of the current speed of the brushless DC motor and the back-EMF zero-crossing detection advance time Ta can be obtained in the foregoing manner, and then the time Ts0 corresponding to the half-sector is subtracted from the back-EMF time.
  • Tfw (min) is the minimum threshold of commutation freewheeling time
  • Tfw (max) is the maximum threshold of commutation freewheeling time
  • the minimum threshold of commutation freewheeling time, Tfw (min) and commutation freewheeling time maximum threshold Tfw (max) is set to a fixed value, and the fixed value can be configured according to the maximum operating speed of the brushless DC motor; 2) According to the speed of the brushless DC motor, through the look-up table The real-time update of the minimum threshold value Tfw (min) of commutation freewheeling time and the maximum threshold value Tfw (max) of commutation freewheeling time are performed in real time; 3) According to the speed of the brushless DC motor, by looking up the table and combining the linear interpolation algorithm, The minimum commutation freewheeling time threshold Tfw (min) and the maximum commutation freewheeling time threshold Tfw (max) are updated in
  • the time when the commutation freewheeling time Tfw ends is the start time of the back-EMF zero-crossing detection time gap, and the time from the start of the back-EMF zero-crossing detection time gap to the detection of back-EMF
  • the time between zeros is defined as the back-EMF zero-crossing detection time gap Tslot.
  • Back-EMF zero-crossing detection is not performed before entering the back-EMF zero-crossing detection time gap Tslot.
  • the back-EMF is detected.
  • Single-channel AD sampling is performed multiple times in succession and compared with a reference voltage to determine whether the back EMF crosses zero.
  • the following describes in detail how to combine the back-EMF zero-crossing detection time gap in the PWM control cycle with a single channel of the ADC module to continuously sample the back-EMF of the brushless DC motor multiple times during the PWM control cycle, and during the sampling process, Determine whether the back EMF crosses zero based on the last sampling result.
  • the back-EMF of the brushless DC motor is continuously sampled multiple times, and whether the back-EMF is zero-crossing is detected, including: when the back-EMF zero-crossing detection is entered.
  • a single channel of the ADC module as the ADC channel corresponding to the current floating phase terminal voltage and trigger the single channel of the ADC module to sample the back-EMF of the brushless DC motor for the i-th sample, where i is greater than or equal to 1
  • the i-th sampling result is obtained, and the single channel of the ADC module is triggered to perform the i + 1th sampling of the back electromotive force of the brushless DC motor, and the i + 1-th sampling
  • a PWM control cycle is started and a first preset time is delayed (the length of time is configured by a software program) , Such as 4us) trigger the sampling of the bus voltage AD (because the reference voltage for back-EMF zero-crossing detection is different during the high and low levels of the PWM control signal, so when the back-EMF is performed only during the low-level period of the PWM control signal (There is no need to AD sample the bus voltage during zero crossing detection).
  • the AD sampling of the bus voltage after the first preset time is set to avoid the inaccurate sampling of the bus voltage caused by the influence of the switching of the power switch tube.
  • the duty cycle of the PWM control signal can be compared and judged. If the duty cycle is less than the second preset duty cycle, the conventional back-EMF sampling method is used to determine whether the back-EMF crosses zero, such as After the sampling of the bus voltage AD is completed, it enters the back-EMF zero-crossing detection stage. At this time, a single channel of the ADC module is used to sample the floating phase terminal voltage once, and the sampling result is compared with the reference voltage to determine whether the back-EMF has passed. Zero; if the duty cycle is greater than the first preset duty cycle, after the sampling of the bus voltage AD is completed, it is judged whether to enter the back-EMF zero-crossing detection time gap. If so, the single channel of the ADC module is used for brushless DC. The back-EMF of the motor is sampled multiple times in succession, and during the sampling process, it is judged whether the back-EMF crosses zero according to the last sampling result.
  • an AD interrupt is automatically generated after the sampling of the bus voltage AD is completed (about 1us).
  • the AD sampling result of the bus voltage is read, and the ADC module ’s
  • the single-channel configuration is the ADC channel corresponding to the current floating phase terminal voltage, and it is prepared for subsequent single-channel back-EMF AD sampling. Then, it is divided into two cases according to the front-back relationship between the start time of the back-EMF zero-crossing detection time gap and the occurrence of AD interruption.
  • the back-EMF zero-crossing detection time gap has been entered (the corresponding entry into the back-EMF zero-crossing detection phase flag has been set), then continuous in the AD interrupt Multiple single-channel back-EMF AD sampling.
  • the specific sampling process is: first trigger the single channel of the ADC module to sample the back-EMF of the brushless DC motor for the first time, and after the first sampling is completed, read the first sampling result, and simultaneously trigger the single channel of the ADC module
  • the back-EMF of the brushless DC motor is sampled a second time, and during the second sampling process, the first sampling result is compared with the reference voltage to determine whether the back-EMF crosses zero.
  • the back-EMF crosses zero, exit AD Interrupt, and the back-EMF zero-crossing detection of the current PWM control cycle ends. If the back EMF does not cross zero, then after the second sampling is finished, read the second sampling result and trigger the single channel of the ADC module to sample the back EMF of the brushless DC motor for the third time, and at the third time During the sampling process, it is judged whether the back-EMF crosses zero according to the second sampling result and the bus voltage.
  • the AD interrupt is exited; if the back-EMF does not cross zero, then after the third sampling is finished, read the first Three sampling results, and trigger the single channel of the ADC module to perform the fourth sampling of the back electromotive force of the brushless DC motor, ... After the i-th sampling is completed, the i-th sampling result is obtained, and the single-channel of the ADC module is triggered at the same time.
  • the i-th sampling result is obtained when the i-th sampling is completed, and the i + 1th back-EMF sampling is triggered at the same time.
  • the The sampling and conversion of i + 1 times back-EMF is also performed automatically, which is beneficial to collect as much back-EMF as possible during the PWM control cycle.
  • This continuous multiple single-channel back-EMF AD sampling can be reversed in each single channel.
  • the back-EMF zero-crossing judgment is performed when the potential AD sampling is completed, so that the back-EMF zero-crossing can be detected in time, so that the commutation is more accurate, so that the brushless DC motor can run stably at extremely high speed without the need for an additional comparator Can reduce costs.
  • the preset number of times in the above embodiment is related to the current PWM control period, and N represents the maximum number of times that the back-EMF AD sampling is performed before the end of the current PWM control period.
  • the back-EMF zero-crossing detection time interval after entering the AD interrupt, the back-EMF zero-crossing detection time interval has not yet been entered (the corresponding entry of the back-EMF zero-crossing detection phase flag is not set), then the AD interrupt is exited.
  • the potential zero-crossing detection time interval automatically enters the back-EMF zero-crossing detection timing interrupt TF, and is set in the back-EMF zero-crossing detection timing interrupt TF first to enter the back-EMF zero-crossing detection phase flag, and then performs multiple consecutive single orders Channel back-EMF AD sampling.
  • the specific sampling process please refer to the above, which will not be described in detail here.
  • the back-EMF zero-crossing detection method of the brushless DC motor may include the following steps:
  • step S501 After entering the AD interrupt, it is judged whether the back-EMF zero-crossing detection time gap is entered. If it is, that is, case one shown in FIG. 6a, step S502 is performed; if not, the AD interrupt is exited.
  • step S503 Determine whether the current back-EMF AD sampling ends. If yes, go to step S504; if no, go to step S503.
  • step S505. Determine whether the back-EMF crosses zero according to the back-EMF AD sampling result. If yes, go to step S507; if no, go to step S506.
  • S506 Determine whether the current PWM control period ends. If yes, exit the AD interrupt; if not, return to step S502.
  • a delayed commutation interrupt TP is entered to control the brushless DC motor for commutation.
  • the specific method may include the following steps:
  • step S601. Determine whether the zero-crossing detection success flag is set. If yes, execute step S602; if no, exit the delayed commutation interrupt TP.
  • the back-EMF zero-crossing detection time gap has not yet been entered, as shown in Figure 2b.
  • the back-EMF zero-crossing detection timing is automatically entered. Interrupting the TF, the back-EMF zero-crossing detection method may include the following steps:
  • step S703 Determine whether it is in the current PWM control cycle. If yes, execute step S704; if not, exit the back-EMF zero-crossing detection timing interrupt TF.
  • S704 Trigger single-channel back-EMF AD sampling.
  • step S705 Determine whether the current back-EMF AD sampling ends. If yes, go to step S706; if no, go to step S705.
  • step S707. Determine whether the back-EMF crosses zero according to the sampling result of the back-EMF AD. If yes, step S709 is performed. If not, step S708 is performed.
  • S708 Determine whether the current PWM control period ends. If yes, exit the back-EMF zero-crossing detection timing interrupt TF; if not, return to step S704.
  • S710 Set the zero-crossing detection success flag bit, and clear the back-EMF zero-crossing detection flag bit when entering the back-EMF zero-crossing detection stage.
  • the back-EMF zero-crossing detection time gap and the back-EMF zero-crossing can be determined based on the inverse relationship between the start time of the back-EMF zero-crossing detection time gap and the time when the AD interrupt is generated. Detection, and then according to the judgment result, the back-EMF zero-crossing detection is performed on the brushless DC motor through the different methods described above, so as to achieve the purpose of back-EMF zero-crossing determination within the time interval of the back-EMF zero-crossing detection.
  • FIG. 8 is a schematic diagram of a back-EMF zero-crossing detection of a brushless DC motor according to an embodiment of the present application. As shown in FIG. 8, during an actual operation of the brushless DC motor, an advance time of the back-EMF zero-crossing detection may be calculated.
  • the back-EMF zero-crossing detection in the back-EMF zero-crossing detection time gap Tslot after the commutation of the brushless DC motor performs a single-channel AD sampling of the back-EMF multiple times in a row, that is, every time During the PWM period, if the back-EMF zero-crossing detection time gap Tslot is not entered, no back-EMF sampling is performed. Once the back-EMF zero-crossing detection time gap Tslot is entered, continuous back-EMF sampling is performed.
  • the motor can be stably operated at a very high speed, but also the CPU usage can be reduced. At the same time, no additional comparator is needed, which can reduce costs.
  • the back-EMF zero-crossing detection time gap of the brushless DC motor is obtained, and the back-EMF zero-crossing is detected and confirmed.
  • the time gap is detected, and the back-EMF of the brushless DC motor is continuously sampled multiple times, and the back-EMF is zero-crossed according to the sampling result. Therefore, not only the back-EMF zero-crossing point can be detected in a timely and accurate manner, and the motor can be stably operated at a very high speed, but also without an additional comparator, which can reduce costs.
  • the embodiment of the present application also proposes a non-transitory computer-readable storage medium on which a computer program is stored.
  • the program is executed by a processor, the above-mentioned method for detecting a back-EMF zero-crossing of a brushless DC motor is implemented.
  • the back-EMF zero-crossing point can be detected in a timely and accurate manner, and the stable operation of the motor at the pole can be ensured. High speed and no need for additional comparators can reduce costs.
  • FIG. 9 is a schematic block diagram of a back-EMF zero-crossing detection device of a brushless DC motor according to an embodiment of the present application.
  • the back-EMF zero-crossing detection device of the brushless DC motor according to the embodiment of the present application may include an obtaining unit 100, a confirmation unit 200, and a sampling unit 300.
  • the obtaining unit 100 is configured to obtain a back-EMF zero-crossing detection time gap of the brushless DC motor; the confirming unit 200 is configured to detect and confirm entering the back-EMF zero-crossing detection time gap; the sampling unit 300 is configured to The confirmation result of the confirmation unit 200 samples the back-EMF of the brushless DC motor for multiple consecutive times, and performs zero-crossing detection on the back-EMF according to the sampling result.
  • the obtaining unit 100 is specifically configured to obtain the time corresponding to the lower half of the current rotation speed of the brushless DC motor, and obtain the back-EMF zero-crossing detection advance time of the brushless DC motor, and calculate the half time.
  • the difference between the time corresponding to each sector and the back-EMF zero-crossing detection advance time, and the back-EMF zero-crossing detection time gap is obtained according to the difference.
  • the obtaining unit 100 is specifically configured to obtain the back-EMF zero-crossing detection advance time according to the highest operating speed of the brushless DC motor; or obtain the back-EMF zero-crossing detection advance time according to the current speed through a look-up table; Or, based on the current rotation speed, a look-up table and a linear interpolation algorithm are used to obtain the back-EMF zero-crossing detection advance time.
  • the obtaining unit 100 is specifically configured to obtain the time corresponding to the lower half of the current rotation speed of the brushless DC motor, the back-EMF zero-crossing detection advance time and the freewheeling time interval, and obtain a half fan The difference between the time corresponding to the zone and the back-EMF zero-crossing detection advance time, and the difference is in the freewheeling time interval to obtain the back-EMF zero-crossing detection time gap.
  • the obtaining unit 100 is configured to obtain a freewheeling time interval according to the highest operating speed of the brushless DC motor; or to obtain a freewheeling time interval through a look-up table according to the current speed; or Table and linear interpolation algorithm to obtain freewheeling time interval.
  • the obtaining unit 100 obtains the number of sampling times of the back-EMF zero-crossing interval according to the current rotation speed, and obtains the number of times of the back-EMF zero-crossing interval according to the previous sampling times; Time Gets the time corresponding to the half sector at the current speed.
  • the time corresponding to the lower half of the current rotational speed is obtained by the following formula:
  • Ts0 is the time corresponding to the half sector of the current rotation speed
  • Tzci is the i-th back-EMF zero-crossing interval time
  • N is the number of samples
  • N is an integer greater than or equal to 1.
  • the back-EMF zero-crossing detection time gap of the brushless DC motor is acquired by the acquisition unit, and the back-EMF zero-crossing detection is detected and confirmed by the confirmation unit.
  • Time gap, and the sampling unit performs multiple consecutive samplings of the back EMF of the brushless DC motor according to the confirmation result of the confirmation unit, and performs zero crossing detection on the back EMF according to the sampling result. Therefore, not only the back-EMF zero-crossing point can be detected in a timely and accurate manner, and the motor can be stably operated at a very high speed, but also without an additional comparator, which can reduce costs.
  • an embodiment of the present application also provides a control system for a brushless DC motor, which includes the above-mentioned back-EMF zero-crossing detection device of the brushless DC motor.
  • the above-mentioned back-EMF zero-crossing detection device of the brushless DC motor can not only detect the back-EMF zero-crossing point in a timely and accurate manner, and ensure that the motor runs stably at a very high speed. And without the need for additional comparators, it can reduce costs.
  • an embodiment of the present application further provides a vacuum cleaner including the above-mentioned control system of the brushless DC motor.
  • the vacuum cleaner of the embodiment of the present application through the above-mentioned control system of the brushless DC motor, not only the back-EMF zero-crossing point can be detected in a timely and accurate manner, the stable operation of the motor at extremely high speed can be ensured, but no additional comparator is needed, which can reduce the cost.
  • each part of the application may be implemented by hardware, software, firmware, or a combination thereof.
  • multiple steps or methods may be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system.
  • a suitable instruction execution system For example, if implemented in hardware, as in another embodiment, it may be implemented using any one or a combination of the following techniques known in the art: Discrete logic circuits, application specific integrated circuits with suitable combinational logic gate circuits, programmable gate arrays (PGA), field programmable gate arrays (FPGA), etc.
  • 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. Therefore, the features defined as “first” and “second” may explicitly or implicitly include at least one of the features. In the description of the present application, the meaning of "plurality” is at least two, for example, two, three, etc., unless it is specifically and specifically defined otherwise.
  • the terms “installation,” “connected,” “connected,” and “fixed” should be understood broadly unless otherwise specified and limited, for example, they may be fixed connections or removable connections Or integrated; it can be mechanical or electrical; it can be directly connected or indirectly connected through an intermediate medium; it can be the internal connection of two elements or the interaction between two elements, unless otherwise specified The limit.
  • the specific meanings of the above terms in this application can be understood according to specific situations.
  • the first feature "on” or “down” of the second feature may be the first and second features in direct contact, or the first and second features indirectly through an intermediate medium. contact.
  • the first feature is “above”, “above”, and “above” the second feature.
  • the first feature is directly above or obliquely above the second feature, or it only indicates that the first feature is higher in level than the second feature.
  • the first feature is “below”, “below”, and “below” of the second feature.
  • the first feature may be directly below or obliquely below the second feature, or it may simply indicate that the first feature is less horizontal than the second feature.

Abstract

Disclosed in the present application are a vacuum cleaner, and a back electromotive force zero crossing detection method and apparatus and a control system for a brushless direct current motor. The method comprises: obtaining a back electromotive force zero crossing detection time slot of a brushless direct current motor; and detecting and confirming the entry into the back electromotive force zero crossing detection time slot, continuously sampling the back electromotive force of the brushless direct current motor multiple times, and performing zero crossing detection on the back electromotive force according to the sampling result. The method can not only accurately detect a back electromotive force zero crossing point in time, but also ensure the motor to stably operate at extremely high rotation speed. Moreover, it is unnecessary to add an additional comparator, and the costs can thus be reduced.

Description

吸尘器、电机的反电势过零检测方法、装置和控制系统Zero-crossing detection method, device and control system of vacuum cleaner and motor
相关申请的交叉引用Cross-reference to related applications
本申请基于申请号为201810628717.9和201810628718.3,申请日为2018年06月19日的中国专利申请提出,并要求该中国专利申请的优先权,该中国专利申请的全部内容在此引入本申请作为参考。This application is based on a Chinese patent application with application numbers of 201810628717.9 and 201810628718.3, the filing date of which is June 19, 2018, and claims the priority of the Chinese patent application. The entire contents of the Chinese patent application are incorporated herein by reference.
技术领域Technical field
本申请涉及电机控制技术领域,特别涉及一种无刷直流电机的反电势过零检测方法、一种无刷直流电机的反电势过零检测装置、一种无刷直流电机的控制系统和一种吸尘器。The present application relates to the technical field of motor control, and in particular, to a method for detecting a back-EMF zero-crossing of a brushless DC motor, a device for detecting a back-EMF zero-crossing of a brushless DC motor, a control system for a brushless DC motor, and a vacuum cleaner.
背景技术Background technique
目前,在无刷直流电机无传感器驱动控制技术领域中,电机的转子位置检测方法有多种,其中以反电势过零法简单、有效而被广泛应用。反电势过零法的基本原理是当无刷直流电机的某相绕组的反电势过零时,转子直轴与该相绕组轴线恰好重合,因此只要判断出各相绕组的反电势过零点就可获知电机的转子位置。At present, in the technical field of sensorless drive control of a brushless DC motor, there are various methods for detecting the rotor position of a motor, among which the back-EMF zero-crossing method is simple, effective, and widely used. The basic principle of the back-EMF zero-crossing method is that when the back-EMF of a phase winding of a brushless DC motor crosses zero, the direct axis of the rotor coincides with the winding axis of that phase, so as long as the back-EMF zero-crossing point of each phase winding can be determined, Know the rotor position of the motor.
相关技术中,反电势过零检测的方法有两种:一、采用ADC(Analog-to-Digital Converter,模/数转换器)模块在每个PWM(Pulse Width Modulation,脉冲宽度调制)控制周期采样一次无刷直流电机悬空相的端电压,然后将采样结果与参考电压进行比较判断是否发生过零;二、增加外部比较器,利用硬件比较无刷直流电机悬空相的端电压与参考电压的大小关系,实现反电势过零检测。In the related technology, there are two methods for detecting the back-EMF zero crossing: First, the ADC (Analog-to-Digital Converter) module is used to sample at each PWM (Pulse Width Modulation) control cycle. The terminal voltage of the floating phase of the brushless DC motor is compared once, and then the sampling result is compared with the reference voltage to determine whether a zero crossing has occurred. Second, an external comparator is added to compare the terminal voltage of the floating phase of the brushless DC motor with the reference voltage by using hardware. Relationship to achieve back-EMF zero-crossing detection.
然而,上述检测方法存在以下缺点:1)当采用方法一进行反电势过零检测时,检测到的反电势过零时刻均滞后实际反电势过零时刻约为一个PWM周期,在无刷直流电机的转速较低,PWM控制信号的占空比较小时,一个换相间隔内有多个PWM周期,滞后一个PWM周期对无刷直流电机换相的影响较小,但是,当无刷直流电机的转速较高时,一个换相间隔内的PWM周期的个数较少,反电势过零检测滞后可能会导致无刷直流电机换相滞后,从而影响无刷直流电机的稳定性;2)采用方法二进行反电势过零检测时,由于增加了外部比较器,因此会导致成本较高。However, the above detection method has the following disadvantages: 1) When the method 1 is used to perform back-EMF zero-crossing detection, the detected back-EMF zero-crossing time lags behind the actual back-EMF zero-crossing time is about one PWM cycle, and in a brushless DC motor When the rotation speed of the PWM control signal is low, there are multiple PWM cycles in one commutation interval, and the lag of one PWM cycle has less effect on the commutation of the brushless DC motor. However, when the rotation speed of the brushless DC motor is small, When it is higher, the number of PWM cycles in one commutation interval is less. The back-EMF zero-crossing detection lag may lead to the brushless DC motor commutation lag, which affects the stability of the brushless DC motor. 2) Use method 2 When performing back-EMF zero-crossing detection, the cost will be higher due to the addition of an external comparator.
发明内容Summary of the Invention
本申请旨在至少在一定程度上解决相关技术中的技术问题之一。为此,本申请的第一个目的在于提出一种无刷直流电机的反电势过零检测方法,不仅能够及时、准确地检测到 反电势过零点,保证电机稳定运行在极高转速,而且无需额外增加比较器,能够降低成本。This application is intended to solve at least one of the technical problems in the related technology. For this reason, the first purpose of this application is to propose a back-EMF zero-crossing detection method for a brushless DC motor, which can not only detect the back-EMF zero-crossing point in a timely and accurate manner, ensure stable operation of the motor at extremely high speeds, but also eliminate the need for Adding extra comparators can reduce costs.
本申请的第二个目的在于提出一种非临时性计算机可读存储介质。A second object of the present application is to propose a non-transitory computer-readable storage medium.
本申请的第三个目的在于提出一种无刷直流电机的反电势过零检测装置。A third object of the present application is to provide a back-EMF zero-crossing detection device for a brushless DC motor.
本申请的第四个目的在于提出一种无刷直流电机的控制系统。A fourth object of the present application is to provide a control system for a brushless DC motor.
本申请的第五个目的在于提出一种吸尘器。A fifth object of the present application is to propose a vacuum cleaner.
为实现上述目的,本申请第一方面实施例提出了一种无刷直流电机的反电势过零检测方法,包括以下步骤:获取所述无刷直流电机的反电势过零检测时间间隙;检测并确认进入所述反电势过零检测时间间隙,对所述无刷直流电机的反电势进行连续多次采样,并根据采样结果对所述反电势进行过零检测。In order to achieve the above objective, an embodiment of the first aspect of the present application proposes a method for detecting a back-EMF zero-crossing of a brushless DC motor, including the following steps: obtaining a back-EMF zero-crossing detection time gap of the brushless DC motor; detecting and It is confirmed that the back-EMF zero-crossing detection time gap is entered, the back-EMF of the brushless DC motor is continuously sampled multiple times, and the back-EMF is detected according to the sampling result.
根据本申请实施例的无刷直流电机的反电势过零检测方法,获取所述无刷直流电机的反电势过零检测时间间隙,以及检测并确认进入所述反电势过零检测时间间隙,对所述无刷直流电机的反电势进行连续多次采样,并根据采样结果对所述反电势进行过零检测。从而不仅能够及时、准确地检测到反电势过零点,保证电机稳定运行在极高转速,而且无需额外增加比较器,能够降低成本。According to the back-EMF zero-crossing detection method of the brushless DC motor according to the embodiment of the present application, the back-EMF zero-crossing detection time gap of the brushless DC motor is obtained, and the back-EMF zero-crossing detection time gap is detected and confirmed. The back-EMF of the brushless DC motor is continuously sampled multiple times, and the back-EMF is zero-crossed according to the sampling result. Therefore, not only the back-EMF zero-crossing point can be detected in a timely and accurate manner, and the motor can be stably operated at a very high speed, but also without an additional comparator, which can reduce costs.
为实现上述目的,本申请第二方面实施例提出了一种非临时性计算机可读存储介质,其上存储有计算机程序,该程序被处理器执行时实现上述的无刷直流电机的反电势过零检测方法。In order to achieve the above object, an embodiment of the second aspect of the present application proposes a non-transitory computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, the above-mentioned back-EMF of the brushless DC motor is implemented. Zero detection method.
根据本申请实施例的非临时性计算机可读存储介质,通过执行上述的无刷直流电机的反电势过零检测方法,不仅能够及时、准确地检测到反电势过零点,保证电机稳定运行在极高转速,而且无需额外增加比较器,能够降低成本。According to the non-transitory computer-readable storage medium of the embodiment of the present application, by performing the above-mentioned method of detecting the back-EMF zero-crossing of the brushless DC motor, the back-EMF zero-crossing can be detected in a timely and accurate manner, and the stable operation of the motor at the pole High speed and no need for additional comparators can reduce costs.
为实现上述目的,本申请第三方面实施例提出的一种无刷直流电机的反电势过零检测装置,包括:获取单元,用于获取所述无刷直流电机的反电势过零检测时间间隙;确认单元,用于检测并确认进入所述反电势过零检测时间间隙;采样单元,用于根据所述确认单元的确认结果对所述无刷直流电机的反电势进行连续多次采样,并根据采样结果对所述反电势进行过零检测。In order to achieve the above object, a back-EMF zero-crossing detection device for a brushless DC motor provided in an embodiment of the third aspect of the present application includes: an obtaining unit, configured to obtain a back-EMF zero-crossing detection time gap of the brushless DC motor A confirming unit configured to detect and confirm entering the back-EMF zero-crossing detection time gap; a sampling unit configured to continuously and repeatedly sample the back-EMF of the brushless DC motor according to a confirmation result of the confirming unit, and Zero-crossing detection is performed on the back-EMF according to a sampling result.
根据本申请实施例的无刷直流电机的反电势过零检测装置,通过获取单元获取无刷直流电机的反电势过零检测时间间隙,以及通过确认单元检测并确认进入所述反电势过零检测时间间隙,并通过采样单元根据所述确认单元的确认结果对所述无刷直流电机的反电势进行连续多次采样,并根据采样结果对所述反电势进行过零检测。从而不仅能够及时、准确地检测到反电势过零点,保证电机稳定运行在极高转速,而且无需额外增加比较器,能够降低成本。According to the back-EMF zero-crossing detection device of the brushless DC motor according to the embodiment of the present application, the back-EMF zero-crossing detection time gap of the brushless DC motor is acquired by the acquisition unit, and the back-EMF zero-crossing detection is detected and confirmed by the confirmation unit. Time gap, and the sampling unit performs multiple consecutive samplings of the back EMF of the brushless DC motor according to the confirmation result of the confirmation unit, and performs zero crossing detection on the back EMF according to the sampling result. Therefore, not only the back-EMF zero-crossing point can be detected in a timely and accurate manner, and the motor can be stably operated at a very high speed, but also without an additional comparator, which can reduce costs.
为实现上述目的,本申请第四方面实施例提出了一种无刷直流电机的控制系统,其包 括上述的无刷直流电机的反电势过零检测装置。In order to achieve the above object, an embodiment of the fourth aspect of the present application proposes a control system of a brushless DC motor, which includes the above-mentioned back-EMF zero crossing detection device of the brushless DC motor.
根据本申请实施例的无刷直流电机的控制系统,通过上述的无刷直流电机的反电势过零检测装置,不仅能够及时、准确地检测到反电势过零点,保证电机稳定运行在极高转速,而且无需额外增加比较器,能够降低成本。According to the control system of the brushless DC motor in the embodiment of the present application, the above-mentioned back-EMF zero-crossing detection device of the brushless DC motor can not only detect the back-EMF zero-crossing point in a timely and accurate manner, and ensure that the motor runs stably at a very high speed. And without the need for additional comparators, it can reduce costs.
为实现上述目的,本申请第五方面实施例提出了一种吸尘器,其包括上述的无刷直流电机的控制系统。In order to achieve the above object, an embodiment of the fifth aspect of the present application provides a vacuum cleaner including the above-mentioned control system of a brushless DC motor.
根据本申请实施例的吸尘器,通过上述的无刷直流电机的控制系统,不仅能够及时、准确地检测到反电势过零点,保证电机稳定运行在极高转速,而且无需额外增加比较器,能够降低成本。According to the vacuum cleaner of the embodiment of the present application, through the above-mentioned control system of the brushless DC motor, not only the back-EMF zero-crossing point can be detected in a timely and accurate manner, the stable operation of the motor at extremely high speed can be ensured, but no additional comparator is needed, which can reduce the cost.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
图1是根据本申请实施例的无刷直流电机的反电势过零检测方法的流程图;1 is a flowchart of a method for detecting a back-EMF zero-crossing of a brushless DC motor according to an embodiment of the present application;
图2a是A相一个周期的端电压波形图;FIG. 2a is a terminal voltage waveform diagram of a period of phase A;
图2b是A相悬空阶段的端电压波形图;FIG. 2b is a terminal voltage waveform diagram of a phase A suspension period; FIG.
图3是相关技术中无刷直流电机的反电势过零检测的示意图;3 is a schematic diagram of a back-EMF zero-crossing detection of a brushless DC motor in the related art;
图4是根据本申请一个实施例的反电势检测时间间隙的示意图;4 is a schematic diagram of a back-EMF detection time gap according to an embodiment of the present application;
图5是根据本申请另一个实施例的反电势检测时间间隙的示意图;5 is a schematic diagram of a back-EMF detection time gap according to another embodiment of the present application;
图6a-6b是根据本申请一个实施例的无刷直流电机的反电势过零检测的示意图;6a-6b are schematic diagrams of back-EMF zero-crossing detection of a brushless DC motor according to an embodiment of the present application;
图7a-图7c是根据本申请一个具体实施例的无刷直流电机的反电势过零检测方法的流程图;7a-7c are flowcharts of a method for detecting a back-EMF zero-crossing of a brushless DC motor according to a specific embodiment of the present application;
图8是根据本申请一个实施例的无刷直流电机的反电势过零检测的示意图;FIG. 8 is a schematic diagram of a back-EMF zero-crossing detection of a brushless DC motor according to an embodiment of the present application; FIG.
图9是根据本申请实施例的无刷直流电机的反电势过零检测装置的方框示意图。FIG. 9 is a schematic block diagram of a back-EMF zero-crossing detection device of a brushless DC motor according to an embodiment of the present application.
具体实施方式detailed description
下面详细描述本申请的实施例,所述实施例的示例在附图中示出,其中自始至终相同或类似的标号表示相同或类似的元件或具有相同或类似功能的元件。下面通过参考附图描述的实施例是示例性的,旨在用于解释本申请,而不能理解为对本申请的限制。Hereinafter, embodiments of the present application are described in detail. Examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals represent the same or similar elements or elements having the same or similar functions throughout. The embodiments described below with reference to the drawings are exemplary, and are intended to explain the present application, and should not be construed as limiting the present application.
下面参考附图来描述根据本申请实施例提出的无刷直流电机的反电势过零检测方法、非临时性计算机可读存储介质、无刷直流电机的反电势过零检测装置、无刷直流电机的控制系统以及吸尘器。The following describes a method for detecting a back-EMF zero-crossing of a brushless DC motor, a non-transitory computer-readable storage medium, a device for detecting a back-EMF zero-crossing of a brushless DC motor, and a brushless DC motor according to embodiments of the present application with reference to the drawings. Control system and vacuum cleaner.
图1是根据本申请实施例的无刷直流电机的反电势过零检测方法的流程图。如图1所示,本申请实施例的无刷直流电机的反电势过零检测方法包括以下步骤:FIG. 1 is a flowchart of a method for detecting a back-EMF zero-crossing of a brushless DC motor according to an embodiment of the present application. As shown in FIG. 1, a method for detecting a back-EMF zero-crossing of a brushless DC motor according to an embodiment of the present application includes the following steps:
S1,获取无刷直流电机的反电势过零检测时间间隙。S1. Obtain the back-EMF zero-crossing detection time gap of the brushless DC motor.
S2,判断是否进入反电势过零检测时间间隙。其中,判断是否进入反电势过零检测时间间隙,即判断是否进入反电势过零检测阶段。S2. Determine whether the back-EMF zero-crossing detection time gap is entered. Among them, it is judged whether to enter the back-EMF zero-crossing detection time gap, that is, whether to enter the back-EMF zero-crossing detection stage.
S3,如果进入反电势过零检测时间间隙,则对无刷直流电机的反电势进行连续多次采样,并判断反电势是否过零。S3. If the back-EMF zero-crossing detection time gap is entered, the back-EMF of the brushless DC motor is continuously sampled multiple times and it is determined whether the back-EMF crosses zero.
根据本申请的一个实施例,在获取无刷直流电机的反电势过零检测时间间隙之前,还可以获取无刷直流电机的PWM控制信号的占空比,并判断占空比是否大于第一预设占空比。如果占空比大于第一预设占空比,则获取无刷直流电机的反电势过零检测时间间隙,并判断是否进入反电势过零检测时间间隙,以及在反电势过零检测时间间隙内,对无刷直流电机的反电势进行连续多次采样,并判断反电势是否过零;如果占空比小于第二预设占空比,则在PWM控制周期内通过常规反电势采样方法对无刷直流电机的反电势进行一次采样,并根据采样结果判断反电势是否过零,其中,第二预设占空比小于第一预设占空比,具体可根据实际情况进行标定。According to an embodiment of the present application, before the back-EMF zero-crossing detection time gap of the brushless DC motor is obtained, the duty ratio of the PWM control signal of the brushless DC motor may also be obtained, and whether the duty ratio is greater than the first preset Set the duty cycle. If the duty cycle is greater than the first preset duty cycle, obtain the back-EMF zero-crossing detection time gap of the brushless DC motor, and determine whether it enters the back-EMF zero-crossing detection time gap, and within the back-EMF zero-crossing detection time gap , The back-EMF of the brushless DC motor is sampled multiple times in succession, and it is judged whether the back-EMF crosses zero; if the duty cycle is less than the second preset duty cycle, the The back-EMF of the brushed DC motor is sampled once, and it is determined whether the back-EMF crosses zero according to the sampling result. Among them, the second preset duty cycle is smaller than the first preset duty cycle, which can be calibrated according to the actual situation.
具体地,目前反电势过零检测是比较悬空相端电压与参考电压的关系。以A相为例,在一个周期内A相绕组端电压波形如图2a所示,其中在BC和CB期间,A相悬空,其端电压波形如图2b所示。在PWM开通期间,A相端电压U A=e A+1/2U DC,当U A=1/2U DC时,e A=0,即为A相反电势过零时刻;在PWM关断期间,A相端电压U A=e A,当U A=0时,即为A相反电势过零时刻。因此,在PWM开通期间进行反电势过零检测,参考电压选择1/2U DC,在PWM关断期间进行反电势过零检测,参考电压选择0V。 Specifically, the current back-EMF zero-crossing detection is comparing the relationship between the voltage of the floating phase terminal and the reference voltage. Taking phase A as an example, the voltage waveform of the phase A winding during a period is shown in FIG. 2a, and during the period of BC and CB, the phase A is floating, and the waveform of the terminal voltage is shown in FIG. 2b. During the PWM ON period, the phase A terminal voltage U A = e A + 1 / 2U DC . When U A = 1 / 2U DC , e A = 0, which is the time when the opposite potential of A is zero. During the PWM off period, A-phase terminal voltage U A = e A , when U A = 0, it is the time when the opposite potential of A is zero. Therefore, the back-EMF zero-crossing detection is performed during the PWM on-time, the reference voltage is selected as 1 / 2U DC , and the back-EMF zero-crossing detection is performed during the PWM-off period, and the reference voltage is selected as 0V.
相关技术中,当使用ADC模块在每个PWM控制周期内采样一次悬空相的端电压,并将采样结果与参考电压进行比较,以判断反电势是否过零时,以在PWM开通期间检测反电势过零为例。如图2a和2b所示,在BC导通期间,A相端电压呈上升趋势,在每个PWM开通期间对A相端电压进行一次采样,并与参考电压进行比较,在图2b中的a1时刻,U A<1/2U DC,反电势未过零,在下一PWM控制周期的a2时刻,U A>1/2U DC,此时检测到反电势已过零;同理,在CB导通期间,A相端电压呈下降趋势,在b2时刻,U A>1/2U DC,反电势未过零,而在b3时刻,U A<1/2U DC,此时检测到反电势已过零。 In the related art, when the ADC module is used to sample the terminal voltage of the floating phase once in each PWM control cycle, and the sampling result is compared with the reference voltage to determine whether the back-EMF crosses zero, the back-EMF is detected during PWM on-time. Take zero crossing as an example. As shown in Figures 2a and 2b, during the BC turn-on period, the phase A terminal voltage is increasing. During each PWM turn-on period, the phase A terminal voltage is sampled once and compared with the reference voltage. A1 in Figure 2b At time, U A <1 / 2U DC , the back EMF does not cross zero. At time a2 of the next PWM control cycle, U A > 1 / 2U DC , it is detected that the back EMF has passed zero. At the same time, the CB is turned on. During the period, the phase A terminal voltage showed a downward trend. At time b2, U A > 1 / 2U DC , the back EMF did not cross zero, and at time b3, U A <1 / 2U DC , at this time it was detected that the back EMF had passed zero .
上述检测到的反电势过零时刻均滞后实际的反电势过零时刻约一个PWM控制周期,在转速较低(占空比较低)的情况下,一个换相间隔内有多个PWM控制周期,因此滞后一个PWM控制周期对换相影响较小。但是,当无刷直流电机以极高转速运行时,如100000RPM(1对极),此时一个相位扇区的时间是100us,而一个PWM控制周期是50us(即20KHz,无刷直流电机的PWM控制信号的频率一般在5~30KHz范围内,再提高会对功率开关管的开关损耗、效率以及散热等造成不利),此时一个换相间隔内最多有2个PWM控制周期,而每 个PWM控制周期只进行一次反电势过零采样,因而无法及时获知反电势是否过零,从而很容易因反电势过零检测滞后较大引起无刷直流电机失步。The detected back-EMF zero-crossing time lags behind the actual back-EMF zero-crossing time by about one PWM control cycle. In the case of low speed (low duty cycle), there are multiple PWM control cycles in one commutation interval. Therefore, lagging one PWM control cycle has less effect on commutation. However, when the brushless DC motor runs at a very high speed, such as 100000RPM (1 pair of poles), the time of one phase sector is 100us, and one PWM control cycle is 50us (that is, 20KHz, the PWM of the brushless DC motor). The frequency of the control signal is generally in the range of 5 ~ 30KHz, and then increasing it will adversely affect the switching loss, efficiency, and heat dissipation of the power switch. At this time, there is a maximum of 2 PWM control cycles in a commutation interval, and each PWM The control cycle only performs one back-EMF zero-crossing sampling, so it is not possible to know in time whether the back-EMF zero-crossing occurs, and it is easy to cause the brushless DC motor to lose step due to the large back-EMF zero-crossing detection lag.
具体而言,如图3所示,当无刷直流电机以极高转速运行时,一个换相间隔内只有2个PWM控制周期,如果按照常规反电势采样方法,即在这两个PWM控制周期内均进行一次反电势AD(Analog-to-Digital,模/数转换)采样,分别对应c1、c2时刻,而实际反电势过零发生在c1时刻之后,因此无法在第一个PWM控制周期内及时检测到反电势过零,只能在第二个PWM控制周期的c2时刻检测到反电势过零,而c2时刻滞后真正的反电势过零点约1个PWM控制周期(约为1/2换相间隔),导致反电势过零检测滞后,继而导致换相滞后,引起电流脉动大甚至失步等不良状况。Specifically, as shown in Figure 3, when the brushless DC motor is running at a very high speed, there are only 2 PWM control cycles in a commutation interval. If the conventional back-EMF sampling method is used, the two PWM control cycles A back-EMD (Analog-to-Digital, analog-to-digital conversion) sampling is performed in each of them, corresponding to time c1 and c2 respectively, and the actual back-EMF zero crossing occurs after time c1, so it cannot be within the first PWM control cycle Back-EMF zero-crossing is detected in time. The back-EMF zero-crossing can only be detected at time c2 of the second PWM control cycle, and the real back-EMF zero-crossing point at time c2 is about 1 PWM control cycle (about 1/2 change Phase interval), resulting in the back-EMF zero-crossing detection lag, which in turn leads to commutation lag, causing bad conditions such as large current ripples and out of step.
因此,在本申请的实施例中,可将无刷直流电机的运行划分为两个阶段,分别为低速阶段和高速阶段,进一步地,根据PWM控制信号的占空比,可将无刷直流电机的运行划分为低占空比阶段和高占空比阶段。其中,在低占空比阶段(即,低速阶段),仍采用常规反电势过零检测方法,例如,在每个PWM控制周期内进行一次反电势AD采样,并根据采样结果判断反电势是否过零。而当占空比升高至超过第一预设占空比时,进入高占空比阶段(即,高速阶段),在该阶段内,由于无刷直流电机换相后存在一个续流过程,在该续流期间悬空相端电压被强行拉到母线电压或者电源地,导致部分反电势波形被湮没,因此在续流期间进行反电势过零检测是无效的,同时,如果在换相完成后立即进行反电势过零检测,可能会受到开关管的影响,从而导致反电势过零检测不准确的问题。因而,综合考虑多种可能会影响反电势过零检测的准确性和及时性的因素,无刷直流电机换相后,当进入反电势过零检测时间间隙时再对无刷直流电机的反电势进行连续多次采样,这样能够节省CPU资源,因此,在高占空比阶段,在每个PWM控制周期内,当进入反电势过零检测时间间隙时,对无刷直流电机的反电势进行连续多次采样,并判断反电势是否过零。当占空比再次下降至低于第二预设占空比时,再使用常规反电势过零检测方法。Therefore, in the embodiment of the present application, the operation of the brushless DC motor can be divided into two phases, namely a low speed phase and a high speed phase. Further, according to the duty cycle of the PWM control signal, the brushless DC motor can be The operation is divided into a low duty cycle phase and a high duty cycle phase. Among them, in the low duty cycle stage (that is, the low-speed stage), the conventional back-EMF zero-crossing detection method is still used, for example, one back-EMF AD sampling is performed in each PWM control cycle, and the back-EMF is judged according to the sampling result. zero. When the duty cycle rises above the first preset duty cycle, it enters the high duty cycle stage (that is, the high-speed stage). In this stage, because there is a freewheeling process after the commutation of the brushless DC motor, During this freewheeling period, the voltage of the floating phase terminal is forcibly pulled to the bus voltage or power ground, causing some back-EMF waveforms to be obliterated. Therefore, it is invalid to perform back-EMF zero-crossing detection during free-wheeling. Immediate back-EMF zero-crossing detection may be affected by the switching tube, resulting in inaccurate back-EMF zero-crossing detection. Therefore, a variety of factors that may affect the accuracy and timeliness of back-EMF zero-crossing detection are comprehensively considered. After commutation of the brushless DC motor, the back-EMF of the brushless DC motor is entered when the back-EMF zero-crossing detection time gap is entered. Performing multiple consecutive samplings can save CPU resources. Therefore, in the high duty cycle stage, during each PWM control cycle, when the back-EMF zero-crossing detection time gap is entered, the back-EMF of the brushless DC motor is continuously Sampling multiple times and determine if the back EMF crosses zero. When the duty cycle drops below the second preset duty cycle again, the conventional back-EMF zero-crossing detection method is used again.
由于低占空比阶段的反电势过零检测滞后对无刷直流电机的换相几乎没有影响,所以在无刷直流电机低速运行阶段,采用常规反电势过零检测方法就可满足控制需求,而在高占空比阶段,可在反电势过零检测时间间隙内对无刷直流电机的反电势进行连续多次采样,因而可以保证反电势过零检测的及时性和准确性,可支持无刷直流电机稳定运行在极高转速范围内,并且无需额外增加比较器,能够降低成本,减小控制器PCB的尺寸。Since the back-EMF zero-crossing detection lag in the low duty cycle stage has almost no effect on the commutation of the brushless DC motor, the control requirements can be met by using the conventional back-EMF zero-crossing detection method in the low-speed operation stage of the brushless DC motor. During the high duty cycle phase, the back-EMF of the brushless DC motor can be sampled multiple times continuously during the back-EMF zero-crossing detection time interval, so the timeliness and accuracy of the back-EMF zero-crossing detection can be guaranteed, which can support brushless The DC motor runs stably in the extremely high speed range without additional comparators, which can reduce costs and reduce the size of the controller PCB.
需要说明的,在实际应用中,无刷直流电机的电转速可达到80000r/min以上。It should be noted that in practical applications, the electric speed of the brushless DC motor can reach more than 80,000 r / min.
根据本申请的一个实施例,获取无刷直流电机的反电势过零检测时间间隙,包括:获取前N次反电势过零间隔时间,其中,N根据当前转速获取;根据前N次反电势过零间隔时间获取当前转速下半个扇区对应的时间;获取无刷直流电机的反电势过零检测提前时间; 获取半个扇区对应的时间与反电势过零检测提前时间之间的差值,以获得反电势过零检测时间间隙。According to an embodiment of the present application, obtaining the back-EMF zero-crossing detection time gap of the brushless DC motor includes: obtaining the first N back-EMF zero-crossing interval times, wherein N is obtained according to the current rotation speed; and according to the previous N back-EMF passes Zero interval time to obtain the time corresponding to the half sector of the current speed; to obtain the back-EMF zero-crossing detection advance time of the brushless DC motor; to obtain the difference between the time corresponding to the half-sector and the back-EMF zero-crossing detection advance time To get back EMF zero crossing detection time gap.
根据本申请的一个实施例,无刷直流电机的反电势过零检测方法还包括:判断从上一换相时刻到当前时间是否超过半个扇区对应的时间与反电势过零检测提前时间之间的差值,如果从上一换相时刻到当前时间超过半个扇区对应的时间与反电势过零检测提前时间之间的差值,则进入反电势过零检测时间间隙。According to an embodiment of the present application, the back-EMF zero-crossing detection method of the brushless DC motor further includes: judging whether the time corresponding to half a sector from the last commutation time to the current time and the back-EMF zero-crossing detection advance time are between If the difference between the time between the last commutation time and the current time exceeds half a sector and the back-EMF zero-crossing detection advance time, the back-EMF zero-crossing detection time gap is entered.
根据本申请的一个实施例,所述获取所述无刷直流电机的当前转速下半个扇区对应的时间,包括:根据当前转速获取反电势过零间隔时间的采样次数,并获取前采样次数次反电势过零间隔时间;根据前采样次数次反电势过零间隔时间获取当前转速下半个扇区对应的时间。According to an embodiment of the present application, obtaining the time corresponding to the lower half of the current speed of the brushless DC motor includes: obtaining the number of sampling times of the back-EMF zero-crossing interval according to the current speed, and obtaining the number of previous samples The time interval of the second back-EMF zero crossing; according to the previous sampling times, the time of the second back-EMF zero-crossing interval to obtain the time corresponding to the lower half of the current rotation speed.
根据本申请的一个实施例,可通过以下公式获取当前转速下半个扇区对应的时间:According to an embodiment of the present application, the time corresponding to the half sector of the current speed can be obtained by the following formula:
Figure PCTCN2019087066-appb-000001
Figure PCTCN2019087066-appb-000001
其中,Ts0为当前转速下半个扇区对应的时间,Tzci为第i次反电势过零间隔时间,N为大于等于1的整数。Among them, Ts0 is the time corresponding to the half sector at the current rotation speed, Tzci is the i-th back-EMF zero-crossing interval time, and N is an integer greater than or equal to 1.
根据本申请的一个实施例,获取无刷直流电机的反电势过零检测提前时间,包括:根据无刷直流电机的最高运行转速获取反电势过零检测提前时间;或者,根据当前转速通过查表获取反电势过零检测提前时间;或者,根据当前转速通过查表和线性插值算法获取反电势过零检测提前时间。According to an embodiment of the present application, obtaining the back-EMF zero-crossing detection advance time of the brushless DC motor includes: obtaining the back-EMF zero-crossing detection advance time according to the highest operating speed of the brushless DC motor; or, passing a look-up table according to the current speed Obtain the back-EMF zero-crossing detection advance time; or, based on the current rotation speed, obtain the back-EMF zero-crossing detection advance time through a look-up table and a linear interpolation algorithm.
具体而言,综合考虑多种可能会影响反电势过零检测的准确性和及时性的因素,可获取无刷直流电机换相后的反电势过零检测时间间隙。在获取反电势过零检测时间间隙时,可先获取前N次反电势过零间隔时间(前后两次反电势过零的时间间隔),例如,获取的前N次反电势过零间隔时间分别为Tzc1、Tzc2、Tzc3、Tzc4、…、TzcN,然后根据获取的前N次反电势过零间隔时间获取当前转速下半个扇区(30°电角度对应半个扇区)对应的时间Ts0,如下述公式(2)所示:Specifically, considering a variety of factors that may affect the accuracy and timeliness of back-EMF zero-crossing detection, the back-EMF zero-crossing detection time gap after brushless DC motor commutation can be obtained. When obtaining the back-EMF zero-crossing detection time interval, the first N back-EMF zero-crossing intervals (the time interval between the two back-EMF zero-crossings) can be obtained first, for example, the first N back-EMF zero-crossing intervals obtained For Tzc1, Tzc2, Tzc3, Tzc4, ..., TzcN, and then according to the obtained first N back-EMF zero-crossing interval times to obtain the time Ts0 corresponding to the half sector at the current speed (30 ° electrical angle corresponds to half sector), As shown in the following formula (2):
Figure PCTCN2019087066-appb-000002
Figure PCTCN2019087066-appb-000002
其中,N的取值与无刷直流电机的当前转速相关,在实际应用中,可以根据电机转速对N进行分段设置。例如,无刷直流电机的转速范围为w 0~w x(x为大于等于2的整数),可将无刷直流电机的转速范围划分为w 0~w 1、w 1~w 2、…、w x-1~w x共x个区间,当无刷直流电机的转速处于w 0~w 1范围内时,对应N的取值为N1;当无刷直流电机的转速处于w 1~w 2范围内时,对应N的取值为N 2;…;当无刷直流电机的转速处于w x-1~w x范围内时,对应N的取值为N xThe value of N is related to the current speed of the brushless DC motor. In practical applications, N can be set in sections according to the speed of the motor. For example, the speed range of a brushless DC motor is w 0 to w x (x is an integer greater than or equal to 2). The speed range of a brushless DC motor can be divided into w 0 to w 1 , w 1 to w 2 , ..., w x-1 to w x total x intervals, when the speed of the brushless DC motor is in the range of w 0 to w 1 , the corresponding value of N is N1; when the speed of the brushless DC motor is w 1 to w 2 Within the range, the value corresponding to N is N 2 ; ...; when the speed of the brushless DC motor is in the range of w x-1 to w x , the value corresponding to N is N x .
可以理解的是,如果无刷直流电机匀速运转,则在无刷直流电机换相后,经过半个扇区对应的时间Ts0正好是反电势过零点的时间,但是在实际运行中,无刷直流电机的转速存在波动,每个扇区的时间是不均匀的,并且当负载变化较快时,扇区的时间也会发生波动。所以,为了能够及时可靠地检测到反电势过零点,反电势过零检测起始时刻需要略微提前,即在预计的反电势过零点之前的一段时间(即,反电势过零检测提前时间Ta),就开始进行反电势过零检测。It can be understood that if the brushless DC motor runs at a constant speed, after the commutation of the brushless DC motor, the time Ts0 corresponding to half a sector is exactly the time of the zero-crossing of the back EMF, but in actual operation, the brushless DC motor The speed of the motor fluctuates, the time of each sector is uneven, and when the load changes quickly, the time of the sector will also fluctuate. Therefore, in order to be able to detect the back-EMF zero-crossing point in a timely and reliable manner, the start time of the back-EMF zero-crossing detection needs to be slightly advanced, that is, a period before the expected back-EMF zero-crossing point (that is, the back-EMF zero-crossing detection advance time Ta). , The back-EMF zero-crossing detection is started.
其中,无刷直流电机的反电势过零检测提前时间Ta可通过以下三种方法确定:1)可将反电势过零检测提前时间Ta设置为一个固定值,且该固定值可根据无刷直流电机的最高运行转速进行配置;2)根据无刷直流电机的转速,通过查表的方式对反电势过零检测提前时间Ta进行实时更新;3)根据无刷直流电机的转速,通过查表并结合线性插值算法,对反电势过零检测提前时间Ta进行实时更新。The back-EMF zero-crossing detection advance time Ta of the brushless DC motor can be determined by the following three methods: 1) The back-EMF zero-crossing detection advance time Ta can be set to a fixed value, and the fixed value can be determined according to the brushless DC Configure the maximum operating speed of the motor; 2) Update the back-EMF zero-crossing detection advance time Ta in real time by checking the table according to the speed of the brushless DC motor; 3) According to the table of the speed of the brushless DC motor, Combined with the linear interpolation algorithm, the real-time update of the back-EMF zero-crossing detection advance time Ta is performed in real time.
进一步地,将半个扇区对应的时间Ts0减去反电势过零检测提前时间Ta以获得反电势过零检测时间间隙起始时刻。如图4所示,可将反电势过零检测时间间隙起始时刻到检测到反电势过零点之间的时间定义为反电势过零检测时间间隙Tslot,在进入该时间间隙之前不进行反电势过零检测,进入该时间间隙之后,即开始进入反电势过零检测提前时间Ta时,对反电势进行连续多次的单通道AD采样,并与参考电压进行比较以判断反电势是否过零。Further, the time Ts0 corresponding to the half sector is subtracted from the back-EMF zero-crossing detection advance time Ta to obtain the back-EMF zero-crossing detection time gap start time. As shown in Figure 4, the time between the start of the back-EMF zero-crossing detection time gap and the detection of the back-EMF zero-crossing point can be defined as the back-EMF zero-crossing detection time gap Tslot, and no back-EMF is performed before entering this time gap Zero-crossing detection. After entering this time gap, when the back-EMF zero-crossing detection advance time Ta is started, the back-EMF is sampled for multiple consecutive single-channel ADs and compared with a reference voltage to determine whether the back-EMF is zero-crossing.
根据本申请的另一个实施例,获取无刷直流电机的反电势过零检测时间间隙,包括:获取无刷直流电机的当前转速下半个扇区对应的时间、反电势过零检测提前时间和续流时间区间;获取半个扇区对应的时间与反电势过零检测提前时间之间的差值,并使差值处于续流时间区间,以获得反电势过零检测时间间隙。According to another embodiment of the present application, obtaining the back-EMF zero-crossing detection time gap of the brushless DC motor includes: obtaining the time corresponding to the lower half of the current speed of the brushless DC motor, the back-EMF zero-crossing detection advance time, and Freewheeling time interval; Obtain the difference between the time corresponding to half a sector and the back-EMF zero-crossing detection advance time, and place the difference in the free-wheeling time interval to obtain the back-EMF zero-crossing detection time gap.
也就是说,在本申请的实施例中,除了可以根据半个扇区对应的时间Ts0和反电势过零检测提前时间Ta获取反电势过零检测时间间隙Tslot,还可以根据半个扇区对应的时间Ts0、反电势过零检测提前时间Ta和续流时间区间获取反电势过零检测时间间隙Tslot。That is, in the embodiment of the present application, in addition to obtaining the back-EMF zero-crossing detection time gap Tslot according to the time Ts0 corresponding to the half-sector and the back-EMF zero-crossing detection advance time Ta, it can also correspond to the half-sector. The time Ts0 of the back-EMF zero-crossing detection advance time Ta and the freewheeling time interval are used to obtain the back-EMF zero-crossing detection time gap Tslot.
根据本申请的一个实施例,获取无刷直流电机的续流时间区间,包括:根据无刷直流电机的最高运行转速获取续流时间区间;或者,根据当前转速通过查表获取续流时间区间;或者,根据当前转速通过查表和线性插值算法获取续流时间区间。According to an embodiment of the present application, obtaining the freewheeling time interval of the brushless DC motor includes: obtaining the freewheeling time interval according to the highest operating speed of the brushless DC motor; or obtaining the freewheeling time interval by looking up a table according to the current speed; Alternatively, the freewheeling time interval is obtained through a look-up table and a linear interpolation algorithm according to the current rotation speed.
具体而言,可通过前述方式获取无刷直流电机的当前转速下半个扇区对应的时间Ts0和反电势过零检测提前时间Ta,然后将半个扇区对应的时间Ts0减去反电势过零检测提前时间Ta以获得换相续流时间Tfw,即Tfw=Ts0-Ta,并且,该换相续流时间Tfw需要满足Tfw(min)≦Tfw≦Tfw(max),即换相续流时间Tfw需要处于续流时间区间[Tfw(min),Tfw(max)]内。Specifically, the time Ts0 corresponding to the lower half of the current speed of the brushless DC motor and the back-EMF zero-crossing detection advance time Ta can be obtained in the foregoing manner, and then the time Ts0 corresponding to the half-sector is subtracted from the back-EMF time. Zero detection advance time Ta to obtain commutation freewheeling time Tfw, that is, Tfw = Ts0-Ta, and the commutation freewheeling time Tfw needs to satisfy Tfw (min) ≦ Tfw ≦ Tfw (max), ie commutation freewheeling time Tfw needs to be within the freewheeling time interval [Tfw (min), Tfw (max)].
其中,Tfw(min)为换相续流时间最小阈值,Tfw(max)为换相续流时间最大阈值,具体可通过以下三种方法确定:1)可分别将换相续流时间最小阈值Tfw(min)和换相续流时间最大阈值Tfw(max)设置为固定值,且该固定值可根据无刷直流电机的最高运行转速进行配置;2)根据无刷直流电机的转速,通过查表的方式对换相续流时间最小阈值Tfw(min)和换相续流时间最大阈值Tfw(max)进行实时更新;3)根据无刷直流电机的转速,通过查表并结合线性插值算法,对换相续流时间最小阈值Tfw(min)和换相续流时间最大阈值Tfw(max)进行实时更新。Among them, Tfw (min) is the minimum threshold of commutation freewheeling time, and Tfw (max) is the maximum threshold of commutation freewheeling time, which can be determined by the following three methods: 1) The minimum threshold of commutation freewheeling time, Tfw (min) and commutation freewheeling time maximum threshold Tfw (max) is set to a fixed value, and the fixed value can be configured according to the maximum operating speed of the brushless DC motor; 2) According to the speed of the brushless DC motor, through the look-up table The real-time update of the minimum threshold value Tfw (min) of commutation freewheeling time and the maximum threshold value Tfw (max) of commutation freewheeling time are performed in real time; 3) According to the speed of the brushless DC motor, by looking up the table and combining the linear interpolation algorithm, The minimum commutation freewheeling time threshold Tfw (min) and the maximum commutation freewheeling time threshold Tfw (max) are updated in real time.
进一步地,如图5所示,换相续流时间Tfw结束的时刻,即为反电势过零检测时间间隙起始时刻,可将反电势过零检测时间间隙起始时刻到检测到反电势过零点之间的时间定义为反电势过零检测时间间隙Tslot,在进入反电势过零检测时间间隙Tslot之前不进行反电势过零检测,进入该反电势过零检测时间间隙Tslot之后,对反电势进行连续多次的单通道AD采样,并与参考电压进行比较以判断反电势是否过零。Further, as shown in FIG. 5, the time when the commutation freewheeling time Tfw ends is the start time of the back-EMF zero-crossing detection time gap, and the time from the start of the back-EMF zero-crossing detection time gap to the detection of back-EMF The time between zeros is defined as the back-EMF zero-crossing detection time gap Tslot. Back-EMF zero-crossing detection is not performed before entering the back-EMF zero-crossing detection time gap Tslot. After entering the back-EMF zero-crossing detection time gap Tslot, the back-EMF is detected. Single-channel AD sampling is performed multiple times in succession and compared with a reference voltage to determine whether the back EMF crosses zero.
下面结合图6-图8来详细说明如何在PWM控制周期内结合反电势过零检测时间间隙通过ADC模块的单通道对无刷直流电机的反电势进行连续多次采样,并在采样的过程中根据上一次采样结果判断反电势是否过零。The following describes in detail how to combine the back-EMF zero-crossing detection time gap in the PWM control cycle with a single channel of the ADC module to continuously sample the back-EMF of the brushless DC motor multiple times during the PWM control cycle, and during the sampling process, Determine whether the back EMF crosses zero based on the last sampling result.
根据本申请的一个实施例,如果进入反电势过零检测时间间隙,则对无刷直流电机的反电势进行连续多次采样,并判断反电势是否过零,包括:在进入反电势过零检测时间间隙时,将ADC模块的单通道配置为当前悬空相端电压对应的ADC通道,并触发ADC模块的单通道对无刷直流电机的反电势进行第i次采样,其中,i为大于等于1的整数;在第i次采样完成后,获取第i次采样结果,同时触发ADC模块的单通道对无刷直流电机的反电势进行第i+1次采样,并在第i+1次采样的过程中根据第i次采样结果和参考电压判断反电势是否过零;如果反电势过零,则退出反电势过零检测阶段。According to an embodiment of the present application, if the back-EMF zero-crossing detection time gap is entered, the back-EMF of the brushless DC motor is continuously sampled multiple times, and whether the back-EMF is zero-crossing is detected, including: when the back-EMF zero-crossing detection is entered. During the time gap, configure a single channel of the ADC module as the ADC channel corresponding to the current floating phase terminal voltage and trigger the single channel of the ADC module to sample the back-EMF of the brushless DC motor for the i-th sample, where i is greater than or equal to 1 After the i-th sampling is completed, the i-th sampling result is obtained, and the single channel of the ADC module is triggered to perform the i + 1th sampling of the back electromotive force of the brushless DC motor, and the i + 1-th sampling In the process, it is judged whether the back EMF crosses zero according to the i-th sampling result and the reference voltage; if the back EMF crosses zero, it exits the back EMF zero cross detection stage.
具体而言,参考图6a-图6b所示,在采用PWM控制信号对无刷直流电机控制的过程中,在PWM控制周期起始并延时第一预设时间(时间的长短由软件程序配置,例如4us)后触发母线电压AD采样(由于在PWM控制信号高电平和低电平期间进行反电势过零检测的参考电压不同,因此,当仅在PWM控制信号的低电平期间进行反电势过零检测时无需对母线电压进行AD采样)。其中,设置在第一预设时间后对母线电压进行AD采样是为了避免受功率开关管开关的影响导致母线电压采样不准确。而在第一预设时间内,可对PWM控制信号的占空比进行比较判断,如果占空比小于第二预设占空比,则采用常规反电势采样方法判断反电势是否过零,如,在对母线电压AD采样完成后进入反电势过零检测阶段,此时采用ADC模块的单通道对悬空相端电压进行一次采样,并将采样结果与参考电压进行比较,以判断反电势是否过零;如果占空比大于第一预设占空比,则在对母线电压AD采样完成后先 判断是否进入反电势过零检测时间间隙,如果是,则通过ADC模块的单通道对无刷直流电机的反电势进行连续多次采样,并在采样的过程中根据上一次采样结果判断反电势是否过零。Specifically, referring to FIG. 6a to FIG. 6b, in the process of controlling a brushless DC motor by using a PWM control signal, a PWM control cycle is started and a first preset time is delayed (the length of time is configured by a software program) , Such as 4us) trigger the sampling of the bus voltage AD (because the reference voltage for back-EMF zero-crossing detection is different during the high and low levels of the PWM control signal, so when the back-EMF is performed only during the low-level period of the PWM control signal (There is no need to AD sample the bus voltage during zero crossing detection). The AD sampling of the bus voltage after the first preset time is set to avoid the inaccurate sampling of the bus voltage caused by the influence of the switching of the power switch tube. In the first preset time, the duty cycle of the PWM control signal can be compared and judged. If the duty cycle is less than the second preset duty cycle, the conventional back-EMF sampling method is used to determine whether the back-EMF crosses zero, such as After the sampling of the bus voltage AD is completed, it enters the back-EMF zero-crossing detection stage. At this time, a single channel of the ADC module is used to sample the floating phase terminal voltage once, and the sampling result is compared with the reference voltage to determine whether the back-EMF has passed. Zero; if the duty cycle is greater than the first preset duty cycle, after the sampling of the bus voltage AD is completed, it is judged whether to enter the back-EMF zero-crossing detection time gap. If so, the single channel of the ADC module is used for brushless DC. The back-EMF of the motor is sampled multiple times in succession, and during the sampling process, it is judged whether the back-EMF crosses zero according to the last sampling result.
具体地,继续参考图6a-图6b所示,在母线电压AD采样完成(约为1us)后自动产生AD中断,在进入AD中断后,读取母线电压的AD采样结果,并将ADC模块的单通道配置为当前悬空相端电压对应的ADC通道,为后续连续多次的单通道反电势AD采样做准备。然后,根据反电势过零检测时间间隙起始时刻与AD中断发生的前后关系分为两种情况。Specifically, referring to FIG. 6a to FIG. 6b, an AD interrupt is automatically generated after the sampling of the bus voltage AD is completed (about 1us). After entering the AD interrupt, the AD sampling result of the bus voltage is read, and the ADC module ’s The single-channel configuration is the ADC channel corresponding to the current floating phase terminal voltage, and it is prepared for subsequent single-channel back-EMF AD sampling. Then, it is divided into two cases according to the front-back relationship between the start time of the back-EMF zero-crossing detection time gap and the occurrence of AD interruption.
第一种情况,如图6a所示,在进入AD中断之后已经进入反电势过零检测时间间隙(对应的进入反电势过零检测阶段标志位已经被置位),则在AD中断中进行连续多次的单通道反电势AD采样。具体采样过程是:先触发ADC模块的单通道对无刷直流电机的反电势进行第一次采样,并在第一采样完成后,读取第一次采样结果,同时触发ADC模块的单通道对无刷直流电机的反电势进行第二次采样,并在第二次采样的过程中根据第一次采样结果和参考电压进行比较以判断反电势是否过零,如果反电势过零,则退出AD中断,当前PWM控制周期的反电势过零检测结束。如果反电势未过零,则在第二次采样结束后,读取第二次采样结果,并触发ADC模块的单通道对无刷直流电机的反电势进行第三次采样,并在第三次采样的过程中根据第二次采样结果和母线电压判断反电势是否过零,如果反电势过零,则退出AD中断;如果反电势未过零,则在第三次采样结束后,读取第三次采样结果,并触发ADC模块的单通道对无刷直流电机的反电势进行第四次采样,…,在第i次采样完成后,获取第i次采样结果,同时触发ADC模块的单通道对无刷直流电机的反电势进行第i+1次采样,并在第i+1次采样的过程中根据第i次采样结果和参考电压判断反电势是否过零,直至判断出反电势过零或者采样次数大于等于预设次数N或者本次PWM控制周期结束,退出AD中断。In the first case, as shown in FIG. 6a, after entering the AD interruption, the back-EMF zero-crossing detection time gap has been entered (the corresponding entry into the back-EMF zero-crossing detection phase flag has been set), then continuous in the AD interrupt Multiple single-channel back-EMF AD sampling. The specific sampling process is: first trigger the single channel of the ADC module to sample the back-EMF of the brushless DC motor for the first time, and after the first sampling is completed, read the first sampling result, and simultaneously trigger the single channel of the ADC module The back-EMF of the brushless DC motor is sampled a second time, and during the second sampling process, the first sampling result is compared with the reference voltage to determine whether the back-EMF crosses zero. If the back-EMF crosses zero, exit AD Interrupt, and the back-EMF zero-crossing detection of the current PWM control cycle ends. If the back EMF does not cross zero, then after the second sampling is finished, read the second sampling result and trigger the single channel of the ADC module to sample the back EMF of the brushless DC motor for the third time, and at the third time During the sampling process, it is judged whether the back-EMF crosses zero according to the second sampling result and the bus voltage. If the back-EMF crosses zero, the AD interrupt is exited; if the back-EMF does not cross zero, then after the third sampling is finished, read the first Three sampling results, and trigger the single channel of the ADC module to perform the fourth sampling of the back electromotive force of the brushless DC motor, ... After the i-th sampling is completed, the i-th sampling result is obtained, and the single-channel of the ADC module is triggered at the same time. Perform the i + 1th sampling of the back EMF of the brushless DC motor, and determine whether the back EMF crosses zero based on the i-th sampling result and the reference voltage during the i + 1th sampling process, until it is determined that the back EMF is zero crossing Either the number of samples is greater than or equal to the preset number N or the current PWM control cycle ends, and the AD interrupt is exited.
在上述实施例中,在第i次采样完成时获取第i次采样结果,同时触发第i+1次反电势的采样,这样在利用第i次采样结果进行反电势过零判断的同时,第i+1次反电势的采样及转换也在自动进行,有利于在PWM控制周期内尽可能多的采集反电势,这种连续多次的单通道反电势AD采样,可以在每个单通道反电势AD采样完成时就进行反电势过零判断,因而能够及时检测到反电势过零,从而使得换相更加精准,进而使得无刷直流电机能够稳定运行在极高转速,而且无需额外增加比较器,能够降低成本。In the above embodiment, the i-th sampling result is obtained when the i-th sampling is completed, and the i + 1th back-EMF sampling is triggered at the same time. In this way, while using the i-th sampling result to make a back-EMF zero-crossing judgment, the The sampling and conversion of i + 1 times back-EMF is also performed automatically, which is beneficial to collect as much back-EMF as possible during the PWM control cycle. This continuous multiple single-channel back-EMF AD sampling can be reversed in each single channel. The back-EMF zero-crossing judgment is performed when the potential AD sampling is completed, so that the back-EMF zero-crossing can be detected in time, so that the commutation is more accurate, so that the brushless DC motor can run stably at extremely high speed without the need for an additional comparator Can reduce costs.
需要说明的是,上述实施例中的预设次数与当前PWM控制周期相关,N代表当前PWM控制周期结束之前进行反电势AD采样的最多次数。It should be noted that the preset number of times in the above embodiment is related to the current PWM control period, and N represents the maximum number of times that the back-EMF AD sampling is performed before the end of the current PWM control period.
第二种情况,如图6b所示,在进入AD中断之后尚未进入反电势过零检测时间间隙(对应的进入反电势过零检测阶段标志位未置位),则退出AD中断,一旦进入反电势过零检测 时间间隙,则自动进入反电势过零检测定时中断TF,并在反电势过零检测定时中断TF中先置位进入反电势过零检测阶段标志位,然后进行连续多次的单通道反电势AD采样,具体采样过程可参见前述,这里就不再进行详细描述。In the second case, as shown in Figure 6b, after entering the AD interrupt, the back-EMF zero-crossing detection time interval has not yet been entered (the corresponding entry of the back-EMF zero-crossing detection phase flag is not set), then the AD interrupt is exited. The potential zero-crossing detection time interval automatically enters the back-EMF zero-crossing detection timing interrupt TF, and is set in the back-EMF zero-crossing detection timing interrupt TF first to enter the back-EMF zero-crossing detection phase flag, and then performs multiple consecutive single orders Channel back-EMF AD sampling. For the specific sampling process, please refer to the above, which will not be described in detail here.
为使本领域技术人员更清楚的了解本申请,下面结合本申请的具体示例来对无刷直流电机的反电势过零检测方法做进一步说明。In order to make those skilled in the art understand this application more clearly, the method of detecting the back-EMF zero-crossing of the brushless DC motor will be further described below with reference to specific examples of this application.
具体地,如图7a所示,无刷直流电机的反电势过零检测方法可包括以下步骤:Specifically, as shown in FIG. 7a, the back-EMF zero-crossing detection method of the brushless DC motor may include the following steps:
S501,进入AD中断后,判断是否进入反电势过零检测时间间隙。如果是,即如图6a所示的情况一,则执行步骤S502;如果否,则退出AD中断。S501. After entering the AD interrupt, it is judged whether the back-EMF zero-crossing detection time gap is entered. If it is, that is, case one shown in FIG. 6a, step S502 is performed; if not, the AD interrupt is exited.
S502,触发单通道反电势AD采样。S502. Trigger single-channel back-EMF AD sampling.
S503,判断当前反电势AD采样是否结束。如果是,则执行步骤S504;如果否,则继续执行步骤S503。S503: Determine whether the current back-EMF AD sampling ends. If yes, go to step S504; if no, go to step S503.
S504,读取反电势AD采样结果。S504. Read the back-EMF AD sampling result.
S505,根据反电势AD采样结果判断反电势是否过零。如果是,则执行步骤S507;如果否,则执行步骤S506。S505. Determine whether the back-EMF crosses zero according to the back-EMF AD sampling result. If yes, go to step S507; if no, go to step S506.
S506,判断当前PWM控制周期是否结束。如果是,则退出AD中断;如果否,则返回步骤S502。S506: Determine whether the current PWM control period ends. If yes, exit the AD interrupt; if not, return to step S502.
S507,退出AD采样以及对反电势过零时间进行处理。S507. Exit the AD sampling and process the back-EMF zero-crossing time.
S508,将过零检测成功标志位置位,并清除进入反电势过零检测阶段标志位。S508. The zero-crossing detection success flag is set, and the flag bit entering the back-EMF zero-crossing detection phase is cleared.
S509,设置延时换相中断TP。S509. Set a delayed commutation interrupt TP.
进一步地,在检测到反电势过零后,进入延时换相中断TP,以控制无刷直流电机进行换相,如图7b所示,其具体的方法可包括以下步骤:Further, after detecting the back-EMF zero crossing, a delayed commutation interrupt TP is entered to control the brushless DC motor for commutation. As shown in FIG. 7b, the specific method may include the following steps:
S601,判断过零检测成功标志位是否被置位。如果是,则执行步骤S602;如果否,则退出延时换相中断TP。S601. Determine whether the zero-crossing detection success flag is set. If yes, execute step S602; if no, exit the delayed commutation interrupt TP.
S602,控制无刷直流电机进行换相操作。S602. Control the brushless DC motor for commutation operation.
S603,更新相位。S603. Update the phase.
S604,清除过零检测成功标志位。S604. Clear the zero-crossing detection success flag.
S605,设置反电势过零检测定时中断TF。S605. Set the timing of the back-EMF zero-crossing detection to interrupt TF.
如图7c所示,在进入AD中断之后尚未进入反电势过零检测时间间隙,即如图6b所示的情况二,一旦进入反电势过零检测时间间隙,则自动进入反电势过零检测定时中断TF,反电势过零检测方法可包括以下步骤:As shown in Figure 7c, after entering the AD interrupt, the back-EMF zero-crossing detection time gap has not yet been entered, as shown in Figure 2b. Once the back-EMF zero-crossing detection time gap is entered, the back-EMF zero-crossing detection timing is automatically entered. Interrupting the TF, the back-EMF zero-crossing detection method may include the following steps:
S701,设置进入反电势过零检测阶段标志位。S701. Set a flag bit for entering the back-EMF zero-crossing detection stage.
S702,停止反电势过零检测定时中断TF。S702. Stop the back-EMF zero-crossing detection timing interrupt TF.
S703,判断是否处于当前PWM控制周期。如果是,则执行步骤S704;如果否,则退出反电势过零检测定时中断TF。S703: Determine whether it is in the current PWM control cycle. If yes, execute step S704; if not, exit the back-EMF zero-crossing detection timing interrupt TF.
S704,触发单通道反电势AD采样。S704: Trigger single-channel back-EMF AD sampling.
S705,判断当前反电势AD采样是否结束。如果是,则执行步骤S706;如果否,则继续执行步骤S705。S705: Determine whether the current back-EMF AD sampling ends. If yes, go to step S706; if no, go to step S705.
S706,读取反电势AD采样结果。S706. Read the back-EMF AD sampling result.
S707,根据反电势AD采样结果判断反电势是否过零。如果是,则执行步骤S709。如果否,则执行步骤S708。S707. Determine whether the back-EMF crosses zero according to the sampling result of the back-EMF AD. If yes, step S709 is performed. If not, step S708 is performed.
S708,判断当前PWM控制周期是否结束。如果是,则退出反电势过零检测定时中断TF;如果否,则返回步骤S704。S708: Determine whether the current PWM control period ends. If yes, exit the back-EMF zero-crossing detection timing interrupt TF; if not, return to step S704.
S709,退出AD采样以及对反电势过零时间进行处理。S709: Exit AD sampling and process the back-EMF zero-crossing time.
S710,将过零检测成功标志位置位,并清除进入反电势过零检测阶段反电势过零检测标志位。S710: Set the zero-crossing detection success flag bit, and clear the back-EMF zero-crossing detection flag bit when entering the back-EMF zero-crossing detection stage.
S711,设置延时换相中断TP。S711. Set the delayed commutation interrupt TP.
由此,在每个PWM控制周期内,可根据反电势过零检测时间间隙起始时刻与产生AD中断的时间的前后关系判断产生AD中断后是否进入反电势过零检测时间间隙反电势过零检测,然后根据判断结果通过上述不同的方式对无刷直流电机进行反电势过零检测,以实现在反电势过零检测时间间隙内进行反电势过零判断的目的。Therefore, in each PWM control cycle, the back-EMF zero-crossing detection time gap and the back-EMF zero-crossing can be determined based on the inverse relationship between the start time of the back-EMF zero-crossing detection time gap and the time when the AD interrupt is generated. Detection, and then according to the judgment result, the back-EMF zero-crossing detection is performed on the brushless DC motor through the different methods described above, so as to achieve the purpose of back-EMF zero-crossing determination within the time interval of the back-EMF zero-crossing detection.
图8是根据本申请实施例的无刷直流电机的反电势过零检测的示意图,如图8所示,在无刷直流电机实际运行的过程中,可计算反电势过零检测的提前时间,以获取反电势过零检测时间间隙Tslot,在无刷直流电机换相后的反电势过零检测时间间隙Tslot内反电势过零检测对反电势进行连续多次的单通道AD采样,即在每个PWM周期期间,若未进入反电势过零检测时间间隙Tslot,不进行反电势采样,一旦进入反电势过零检测时间间隙Tslot,则进行连续反电势采样。从而不仅能够及时、准确地检测到反电势过零点,保证电机稳定运行在极高转速,而且能够减少CPU占用率,同时,无需额外增加比较器,能够降低成本。FIG. 8 is a schematic diagram of a back-EMF zero-crossing detection of a brushless DC motor according to an embodiment of the present application. As shown in FIG. 8, during an actual operation of the brushless DC motor, an advance time of the back-EMF zero-crossing detection may be calculated. In order to obtain the back-EMF zero-crossing detection time gap Tslot, the back-EMF zero-crossing detection in the back-EMF zero-crossing detection time gap Tslot after the commutation of the brushless DC motor performs a single-channel AD sampling of the back-EMF multiple times in a row, that is, every time During the PWM period, if the back-EMF zero-crossing detection time gap Tslot is not entered, no back-EMF sampling is performed. Once the back-EMF zero-crossing detection time gap Tslot is entered, continuous back-EMF sampling is performed. Therefore, not only the back-EMF zero-crossing point can be detected in a timely and accurate manner, the motor can be stably operated at a very high speed, but also the CPU usage can be reduced. At the same time, no additional comparator is needed, which can reduce costs.
综上所述,根据本申请实施例的无刷直流电机的反电势过零检测方法,获取所述无刷直流电机的反电势过零检测时间间隙,以及检测并确认进入所述反电势过零检测时间间隙,对所述无刷直流电机的反电势进行连续多次采样,并根据采样结果对所述反电势进行过零检测。从而不仅能够及时、准确地检测到反电势过零点,保证电机稳定运行在极高转速,而且无需额外增加比较器,能够降低成本。In summary, according to the back-EMF zero-crossing detection method of the brushless DC motor of the embodiment of the present application, the back-EMF zero-crossing detection time gap of the brushless DC motor is obtained, and the back-EMF zero-crossing is detected and confirmed. The time gap is detected, and the back-EMF of the brushless DC motor is continuously sampled multiple times, and the back-EMF is zero-crossed according to the sampling result. Therefore, not only the back-EMF zero-crossing point can be detected in a timely and accurate manner, and the motor can be stably operated at a very high speed, but also without an additional comparator, which can reduce costs.
另外,本申请的实施例还提出了一种非临时性计算机可读存储介质,其上存储有计算 机程序,该程序被处理器执行时实现上述的无刷直流电机的反电势过零检测方法。In addition, the embodiment of the present application also proposes a non-transitory computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, the above-mentioned method for detecting a back-EMF zero-crossing of a brushless DC motor is implemented.
根据本申请实施例的非临时性计算机可读存储介质,通过执行上述的无刷直流电机的反电势过零检测方法,不仅能够及时、准确地检测到反电势过零点,保证电机稳定运行在极高转速,而且无需额外增加比较器,能够降低成本。According to the non-transitory computer-readable storage medium of the embodiment of the present application, by performing the above-mentioned method of detecting the back-EMF zero-crossing of the brushless DC motor, the back-EMF zero-crossing point can be detected in a timely and accurate manner, and the stable operation of the motor at the pole can be ensured. High speed and no need for additional comparators can reduce costs.
图9是根据本申请实施例的无刷直流电机的反电势过零检测装置的方框示意图。如图9所示,本申请实施例的无刷直流电机的反电势过零检测装置可包括获取单元100、确认单元200和采样单元300。FIG. 9 is a schematic block diagram of a back-EMF zero-crossing detection device of a brushless DC motor according to an embodiment of the present application. As shown in FIG. 9, the back-EMF zero-crossing detection device of the brushless DC motor according to the embodiment of the present application may include an obtaining unit 100, a confirmation unit 200, and a sampling unit 300.
其中,获取单元100用于获取所述无刷直流电机的反电势过零检测时间间隙;确认单元200用于检测并确认进入所述反电势过零检测时间间隙;采样单元300用于根据所述确认单元200的确认结果对所述无刷直流电机的反电势进行连续多次采样,并根据采样结果对所述反电势进行过零检测。The obtaining unit 100 is configured to obtain a back-EMF zero-crossing detection time gap of the brushless DC motor; the confirming unit 200 is configured to detect and confirm entering the back-EMF zero-crossing detection time gap; the sampling unit 300 is configured to The confirmation result of the confirmation unit 200 samples the back-EMF of the brushless DC motor for multiple consecutive times, and performs zero-crossing detection on the back-EMF according to the sampling result.
根据本申请的一个实施例,获取单元100具体用于,获取无刷直流电机的当前转速下半个扇区对应的时间,并获取无刷直流电机的反电势过零检测提前时间,以及计算半个扇区对应的时间与反电势过零检测提前时间之间的差值,根据差值获得反电势过零检测时间间隙。According to an embodiment of the present application, the obtaining unit 100 is specifically configured to obtain the time corresponding to the lower half of the current rotation speed of the brushless DC motor, and obtain the back-EMF zero-crossing detection advance time of the brushless DC motor, and calculate the half time. The difference between the time corresponding to each sector and the back-EMF zero-crossing detection advance time, and the back-EMF zero-crossing detection time gap is obtained according to the difference.
根据本申请的一个实施例,获取单元具体100用于,根据无刷直流电机的最高运行转速获取反电势过零检测提前时间;或者,根据当前转速通过查表获取反电势过零检测提前时间;或者,根据当前转速通过查表和线性插值算法获取反电势过零检测提前时间。According to an embodiment of the present application, the obtaining unit 100 is specifically configured to obtain the back-EMF zero-crossing detection advance time according to the highest operating speed of the brushless DC motor; or obtain the back-EMF zero-crossing detection advance time according to the current speed through a look-up table; Or, based on the current rotation speed, a look-up table and a linear interpolation algorithm are used to obtain the back-EMF zero-crossing detection advance time.
根据本申请的一个实施例,获取单元100具体用于,获取无刷直流电机的当前转速下半个扇区对应的时间、反电势过零检测提前时间和续流时间区间,以及获取半个扇区对应的时间与反电势过零检测提前时间之间的差值,并使差值处于续流时间区间,以获得反电势过零检测时间间隙。According to an embodiment of the present application, the obtaining unit 100 is specifically configured to obtain the time corresponding to the lower half of the current rotation speed of the brushless DC motor, the back-EMF zero-crossing detection advance time and the freewheeling time interval, and obtain a half fan The difference between the time corresponding to the zone and the back-EMF zero-crossing detection advance time, and the difference is in the freewheeling time interval to obtain the back-EMF zero-crossing detection time gap.
根据本申请的一个实施例,获取单元100用于,根据无刷直流电机的最高运行转速获取续流时间区间;或者,根据当前转速通过查表获取续流时间区间;或者,根据当前转速通过查表和线性插值算法获取续流时间区间。According to an embodiment of the present application, the obtaining unit 100 is configured to obtain a freewheeling time interval according to the highest operating speed of the brushless DC motor; or to obtain a freewheeling time interval through a look-up table according to the current speed; or Table and linear interpolation algorithm to obtain freewheeling time interval.
根据本申请的一个实施例,获取单元100于,根据当前转速获取反电势过零间隔时间的采样次数,并获取前采样次数次反电势过零间隔时间;根据前采样次数次反电势过零间隔时间获取当前转速下半个扇区对应的时间。According to an embodiment of the present application, the obtaining unit 100 obtains the number of sampling times of the back-EMF zero-crossing interval according to the current rotation speed, and obtains the number of times of the back-EMF zero-crossing interval according to the previous sampling times; Time Gets the time corresponding to the half sector at the current speed.
根据本申请的一个实施例,通过以下公式获取当前转速下半个扇区对应的时间:According to an embodiment of the present application, the time corresponding to the lower half of the current rotational speed is obtained by the following formula:
Figure PCTCN2019087066-appb-000003
Figure PCTCN2019087066-appb-000003
其中,Ts0为当前转速下半个扇区对应的时间,Tzci为第i次反电势过零间隔时间,N 为采样次数,且N为大于等于1的整数。Among them, Ts0 is the time corresponding to the half sector of the current rotation speed, Tzci is the i-th back-EMF zero-crossing interval time, N is the number of samples, and N is an integer greater than or equal to 1.
需要说明的是,本申请实施例的无刷直流电机的反电势过零检测装置中未披露的细节,请参照本申请实施例的无刷直流电机的反电势过零检测方法中所披露的细节,具体这里不再详述。It should be noted that, for details not disclosed in the back-EMF zero-crossing detection device of the brushless DC motor of the embodiment of the present application, please refer to details disclosed in the back-EMF zero-crossing detection method of the brushless DC motor of the embodiment of the present application. , Specifically not detailed here.
根据本申请实施例的无刷直流电机的反电势过零检测装置,通过获取单元获取无刷直流电机的反电势过零检测时间间隙,以及通过确认单元检测并确认进入所述反电势过零检测时间间隙,并通过采样单元根据所述确认单元的确认结果对所述无刷直流电机的反电势进行连续多次采样,并根据采样结果对所述反电势进行过零检测。从而不仅能够及时、准确地检测到反电势过零点,保证电机稳定运行在极高转速,而且无需额外增加比较器,能够降低成本。According to the back-EMF zero-crossing detection device of the brushless DC motor according to the embodiment of the present application, the back-EMF zero-crossing detection time gap of the brushless DC motor is acquired by the acquisition unit, and the back-EMF zero-crossing detection is detected and confirmed by the confirmation unit. Time gap, and the sampling unit performs multiple consecutive samplings of the back EMF of the brushless DC motor according to the confirmation result of the confirmation unit, and performs zero crossing detection on the back EMF according to the sampling result. Therefore, not only the back-EMF zero-crossing point can be detected in a timely and accurate manner, and the motor can be stably operated at a very high speed, but also without an additional comparator, which can reduce costs.
另外,本申请的实施例还提出了一种无刷直流电机的控制系统,其包括上述的无刷直流电机的反电势过零检测装置。In addition, an embodiment of the present application also provides a control system for a brushless DC motor, which includes the above-mentioned back-EMF zero-crossing detection device of the brushless DC motor.
根据本申请实施例的无刷直流电机的控制系统,通过上述的无刷直流电机的反电势过零检测装置,不仅能够及时、准确地检测到反电势过零点,保证电机稳定运行在极高转速,而且无需额外增加比较器,能够降低成本。According to the control system of the brushless DC motor in the embodiment of the present application, the above-mentioned back-EMF zero-crossing detection device of the brushless DC motor can not only detect the back-EMF zero-crossing point in a timely and accurate manner, and ensure that the motor runs stably at a very high speed. And without the need for additional comparators, it can reduce costs.
此外,本申请的实施例还提出了一种吸尘器,其包括上述的无刷直流电机的控制系统。In addition, an embodiment of the present application further provides a vacuum cleaner including the above-mentioned control system of the brushless DC motor.
根据本申请实施例的吸尘器,通过上述的无刷直流电机的控制系统,不仅能够及时、准确地检测到反电势过零点,保证电机稳定运行在极高转速,而且无需额外增加比较器,能够降低成本。According to the vacuum cleaner of the embodiment of the present application, through the above-mentioned control system of the brushless DC motor, not only the back-EMF zero-crossing point can be detected in a timely and accurate manner, the stable operation of the motor at extremely high speed can be ensured, but no additional comparator is needed, which can reduce the cost.
应当理解,本申请的各部分可以用硬件、软件、固件或它们的组合来实现。在上述实施方式中,多个步骤或方法可以用存储在存储器中且由合适的指令执行系统执行的软件或固件来实现。例如,如果用硬件来实现,和在另一实施方式中一样,可用本领域公知的下列技术中的任一项或他们的组合来实现:具有用于对数据信号实现逻辑功能的逻辑门电路的离散逻辑电路,具有合适的组合逻辑门电路的专用集成电路,可编程门阵列(PGA),现场可编程门阵列(FPGA)等。It should be understood that each part of the application may be implemented by hardware, software, firmware, or a combination thereof. In the above embodiments, multiple steps or methods may be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, it may be implemented using any one or a combination of the following techniques known in the art: Discrete logic circuits, application specific integrated circuits with suitable combinational logic gate circuits, programmable gate arrays (PGA), field programmable gate arrays (FPGA), etc.
另外,在本申请的描述中,术语“中心”、“纵向”、“横向”、“长度”、“宽度”、“厚度”、“上”、“下”、“前”、“后”、“左”、“右”、“竖直”、“水平”、“顶”、“底”“内”、“外”、“顺时针”、“逆时针”、“轴向”、“径向”、“周向”等指示的方位或位置关系为基于附图所示的方位或位置关系,仅是为了便于描述本申请和简化描述,而不是指示或暗示所指的装置或元件必须具有特定的方位、以特定的方位构造和操作,因此不能理解为对本申请的限制。In addition, in the description of this application, the terms "center", "longitudinal", "transverse", "length", "width", "thickness", "upper", "lower", "front", "rear", "Left", "right", "vertical", "horizontal", "top", "bottom", "inside", "outside", "clockwise", "counterclockwise", "axial", "radial" The azimuth or position relationship indicated by "", "circumferential", etc. is based on the azimuth or position relationship shown in the drawings, and is only for the convenience of describing this application and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific The orientation and construction and operation in a particular orientation cannot be understood as a limitation on this application.
此外,术语“第一”、“第二”仅用于描述目的,而不能理解为指示或暗示相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示 或者隐含地包括至少一个该特征。在本申请的描述中,“多个”的含义是至少两个,例如两个,三个等,除非另有明确具体的限定。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. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In the description of the present application, the meaning of "plurality" is at least two, for example, two, three, etc., unless it is specifically and specifically defined otherwise.
在本申请中,除非另有明确的规定和限定,术语“安装”、“相连”、“连接”、“固定”等术语应做广义理解,例如,可以是固定连接,也可以是可拆卸连接,或成一体;可以是机械连接,也可以是电连接;可以是直接相连,也可以通过中间媒介间接相连,可以是两个元件内部的连通或两个元件的相互作用关系,除非另有明确的限定。对于本领域的普通技术人员而言,可以根据具体情况理解上述术语在本申请中的具体含义。In this application, the terms "installation," "connected," "connected," and "fixed" should be understood broadly unless otherwise specified and limited, for example, they may be fixed connections or removable connections Or integrated; it can be mechanical or electrical; it can be directly connected or indirectly connected through an intermediate medium; it can be the internal connection of two elements or the interaction between two elements, unless otherwise specified The limit. For those of ordinary skill in the art, the specific meanings of the above terms in this application can be understood according to specific situations.
在本申请中,除非另有明确的规定和限定,第一特征在第二特征“上”或“下”可以是第一和第二特征直接接触,或第一和第二特征通过中间媒介间接接触。而且,第一特征在第二特征“之上”、“上方”和“上面”可是第一特征在第二特征正上方或斜上方,或仅仅表示第一特征水平高度高于第二特征。第一特征在第二特征“之下”、“下方”和“下面”可以是第一特征在第二特征正下方或斜下方,或仅仅表示第一特征水平高度小于第二特征。In this application, unless explicitly stated and limited otherwise, the first feature "on" or "down" of the second feature may be the first and second features in direct contact, or the first and second features indirectly through an intermediate medium. contact. Moreover, the first feature is "above", "above", and "above" the second feature. The first feature is directly above or obliquely above the second feature, or it only indicates that the first feature is higher in level than the second feature. The first feature is “below”, “below”, and “below” of the second feature. The first feature may be directly below or obliquely below the second feature, or it may simply indicate that the first feature is less horizontal than the second feature.
在本说明书的描述中,参考术语“一个实施例”、“一些实施例”、“示例”、“具体示例”、或“一些示例”等的描述意指结合该实施例或示例描述的具体特征、结构、材料或者特点包含于本申请的至少一个实施例或示例中。在本说明书中,对上述术语的示意性表述不必须针对的是相同的实施例或示例。而且,描述的具体特征、结构、材料或者特点可以在任一个或多个实施例或示例中以合适的方式结合。此外,在不相互矛盾的情况下,本领域的技术人员可以将本说明书中描述的不同实施例或示例以及不同实施例或示例的特征进行结合和组合。In the description of this specification, the description with reference to the terms “one embodiment”, “some embodiments”, “examples”, “specific examples”, or “some examples” and the like means specific features described in conjunction with the embodiments or examples , Structure, materials, or features are included in at least one embodiment or example of the present application. In this specification, the schematic expressions of the above terms are not necessarily directed to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. In addition, without any contradiction, those skilled in the art may combine and combine different embodiments or examples and features of the different embodiments or examples described in this specification.
尽管上面已经示出和描述了本申请的实施例,可以理解的是,上述实施例是示例性的,不能理解为对本申请的限制,本领域的普通技术人员在本申请的范围内可以对上述实施例进行变化、修改、替换和变型。Although the embodiments of the present application have been shown and described above, it can be understood that the above embodiments are exemplary and should not be construed as limitations on the present application. Those skilled in the art can interpret the above within the scope of the present application. Embodiments are subject to change, modification, substitution, and modification.

Claims (18)

  1. 一种无刷直流电机的反电势过零检测方法,其特征在于,包括以下步骤:A method for detecting a back-EMF zero-crossing of a brushless DC motor, which comprises the following steps:
    获取所述无刷直流电机的反电势过零检测时间间隙;Obtaining a back-EMF zero-crossing detection time gap of the brushless DC motor;
    检测并确认进入所述反电势过零检测时间间隙,采样无刷直流电机的反电势,所述采样被配置为连续多次采样;Detecting and confirming entering the back-EMF zero-crossing detection time gap, sampling the back-EMF of the brushless DC motor, and the sampling is configured to be continuously sampled multiple times;
    执行反电势过零检测,所述反电势过零检测被配置为根据采样结果对所述反电势执行过零检测。Back-EMF zero-crossing detection is performed, and the back-EMF zero-crossing detection is configured to perform zero-crossing detection on the back-EMF according to a sampling result.
  2. 如权利要求1所述的无刷直流电机的反电势过零检测方法,其特征在于,所述获取无刷直流电机的反电势过零检测时间间隙,被配置为:The method for detecting a back-EMF zero-crossing of a brushless DC motor according to claim 1, wherein the obtaining the back-EMF zero-crossing detection time gap of the brushless DC motor is configured as:
    获取所述无刷直流电机的当前转速下半个扇区对应的时间;Acquiring the time corresponding to the half sector of the current speed of the brushless DC motor;
    获取所述无刷直流电机的反电势过零检测提前时间;Obtaining a back-EMF zero-crossing detection advance time of the brushless DC motor;
    计算所述半个扇区对应的时间与所述反电势过零检测提前时间之间的差值;Calculating a difference between the time corresponding to the half sector and the advance time of the back-EMF zero-crossing detection;
    获取所述反电势过零检测时间间隙,所述获取所述反电势过零检测时间间隙被配置为根据所述差值获得所述反电势过零检测时间间隙。Acquiring the back-EMF zero-crossing detection time gap, and acquiring the back-EMF zero-crossing detection time gap is configured to obtain the back-EMF zero-crossing detection time gap according to the difference.
  3. 如权利要求2所述的无刷直流电机的反电势过零检测方法,其特征在于,所述获取所述无刷直流电机的反电势过零检测提前时间,被配置为:The back-EMF zero-crossing detection method of the brushless DC motor according to claim 2, wherein the obtaining the back-EMF zero-crossing detection advance time of the brushless DC motor is configured as:
    根据所述无刷直流电机的最高运行转速获取所述反电势过零检测提前时间;或者,Obtaining the back-EMF zero-crossing detection advance time according to the highest operating speed of the brushless DC motor; or,
    根据所述当前转速通过查表获取所述反电势过零检测提前时间;或者,Obtaining the back-EMF zero-crossing detection advance time according to the current rotation speed through a look-up table; or,
    根据所述当前转速通过查表和线性插值算法获取所述反电势过零检测提前时间。Obtain the back-EMF zero-crossing detection advance time according to the current rotation speed through a look-up table and a linear interpolation algorithm.
  4. 如权利要求1所述的无刷直流电机的反电势过零检测方法,其特征在于,所述获取无刷直流电机的反电势过零检测时间间隙,被配置为:The method for detecting a back-EMF zero-crossing of a brushless DC motor according to claim 1, wherein the obtaining the back-EMF zero-crossing detection time gap of the brushless DC motor is configured as:
    获取所述无刷直流电机的当前转速下半个扇区对应的时间、反电势过零检测提前时间和续流时间区间;Acquiring the time corresponding to the lower half of the current rotation speed of the brushless DC motor, the advance time of the back-EMF zero-crossing detection, and the freewheeling time interval;
    获取所述半个扇区对应的时间与所述反电势过零检测提前时间之间的差值;Acquiring a difference between a time corresponding to the half sector and the advance time of the back-EMF zero-crossing detection;
    获取所述反电势过零检测时间间隙,所述获取所述反电势过零检测时间间隙被配置为控制所述差值处于所述续流时间区间,以获得所述反电势过零检测时间间隙。Acquiring the back-EMF zero-crossing detection time gap, and acquiring the back-EMF zero-crossing detection time gap is configured to control the difference to be in the freewheeling time interval to obtain the back-EMF zero-crossing detection time gap .
  5. 如权利要求4所述的无刷直流电机的反电势过零检测方法,其特征在于,所述获取所述无刷直流电机的续流时间区间,被配置为:The method for detecting a back-EMF zero-crossing of a brushless DC motor according to claim 4, wherein the obtaining a freewheeling time interval of the brushless DC motor is configured as:
    根据所述无刷直流电机的最高运行转速获取所述续流时间区间;或者,Acquiring the freewheeling time interval according to the highest operating speed of the brushless DC motor; or
    根据所述当前转速通过查表获取所述续流时间区间;或者,Obtaining the freewheeling time interval by looking up a table according to the current rotation speed; or
    根据所述当前转速通过查表和线性插值算法获取所述续流时间区间。The freewheeling time interval is obtained according to the current rotation speed through a look-up table and a linear interpolation algorithm.
  6. 如权利要求2或4所述的无刷直流电机的反电势过零检测方法,其特征在于,所述获取所述无刷直流电机的当前转速下半个扇区对应的时间,被配置为:The method for detecting a back-EMF zero-crossing of a brushless DC motor according to claim 2 or 4, wherein the obtaining a time corresponding to a half sector of a current speed of the brushless DC motor is configured as:
    根据所述当前转速获取反电势过零间隔时间的采样次数,并获取前所述采样次数次反电势过零间隔时间;Obtaining the number of sampling times of the back-EMF zero-crossing interval according to the current rotation speed, and obtaining the back-EMF zero-crossing interval time of the foregoing sampling times;
    获取所述当前转速下半个扇区对应的时间,所述获取所述当前转速下半个扇区对应的时间被配置为根据所述前采样次数次反电势过零间隔时间获取所述当前转速下半个扇区对应的时间。Acquiring the time corresponding to the lower half of the current rotational speed, and acquiring the time corresponding to the second half of the current rotational speed is configured to acquire the current rotational speed according to the number of back-sampling times of the back EMF zero crossing The time corresponding to the second half of the sector.
  7. 如权利要求1所述的无刷直流电机的反电势过零检测方法,其特征在于,所述采样无刷直流电机的反电势,执行反电势过零检测,被配置为:The method of detecting a back-EMF zero-crossing of a brushless DC motor according to claim 1, wherein the sampling of the back-EMF of the brushless DC motor to perform back-EMF zero-crossing detection is configured as:
    将ADC模块的单通道配置为当前悬空相端电压对应的ADC通道;Configure a single channel of the ADC module as the ADC channel corresponding to the current floating phase terminal voltage;
    采样所述无刷直流电机的反电势,所述采样被配置为触发所述ADC模块的单通道采样;Sampling the back-EMF of the brushless DC motor, and the sampling is configured to trigger a single-channel sampling of the ADC module;
    采样完成后,获取当前采样结果,同时触发所述ADC模块的单通道对所述无刷直流电机的反电势进行下一次采样;After the sampling is completed, the current sampling result is obtained, and a single channel of the ADC module is triggered to perform the next sampling of the back-EMF of the brushless DC motor;
    执行反电势过零检测,所述反电势过零检测被配置为在下一次采样的过程中根据所述当前采样结果和参考电压对所述反电势进行过零检测;Performing back-EMF zero-crossing detection, which is configured to perform zero-crossing detection on the back-EMF according to the current sampling result and a reference voltage during the next sampling process;
    检测并确认所述反电势过零,退出所述反电势过零检测阶段。Detecting and confirming the back-EMF zero-crossing, and exiting the back-EMF zero-crossing detection phase.
  8. 如权利要求2所述的无刷直流电机的反电势过零检测方法,其特征在于,还包括:The method of detecting a back-EMF zero-crossing of a brushless DC motor according to claim 2, further comprising:
    检测并确认从上一换相时刻到当前时间超过所述半个扇区对应的时间与所述反电势过零检测提前时间之间的差值,进入所述反电势过零检测时间间隙。Detect and confirm the difference between the time from the last commutation time to the current time exceeding the half sector corresponding to the back-EMF zero-crossing detection advance time, and enter the back-EMF zero-crossing detection time gap.
  9. 如权利要求1-8中任一项所述的无刷直流电机的反电势过零检测方法,其特征在于,所述无刷直流电机的最高电转速不低于80000r/min。The method for detecting a back-EMF zero-crossing of a brushless DC motor according to any one of claims 1 to 8, wherein the highest electric speed of the brushless DC motor is not less than 80,000 r / min.
  10. 一种非临时性计算机可读存储介质,其上存储有计算机程序,其特征在于,该程序被处理器执行时实现如权利要求1-9中任一项所述的无刷直流电机的反电势过零检测方法。A non-transitory computer-readable storage medium having stored thereon a computer program, characterized in that when the program is executed by a processor, the back electromotive force of the brushless DC motor according to any one of claims 1-9 is realized Zero crossing detection method.
  11. 一种无刷直流电机的反电势过零检测装置,其特征在于,包括:A back-EMF zero-crossing detection device for a brushless DC motor is characterized in that it includes:
    获取单元,用于获取所述无刷直流电机的反电势过零检测时间间隙;An obtaining unit, configured to obtain a back-EMF zero-crossing detection time gap of the brushless DC motor;
    确认单元,用于检测并确认进入所述反电势过零检测时间间隙;A confirming unit, configured to detect and confirm entering the back-EMF zero-crossing detection time gap;
    采样单元,用于采样所述无刷直流电机的反电势,所述采样被配置为连续多次采样,执行反电势过零检测,所述反电势过零检测被配置为根据采样结果对所述反电势执行过零检测。A sampling unit configured to sample the back-EMF of the brushless DC motor, wherein the sampling is configured to perform multiple consecutive samplings to perform back-EMF zero-crossing detection, and the back-EMF zero-crossing detection is configured to Back-EMF performs zero-crossing detection.
  12. 如权利要求11所述的无刷直流电机的反电势过零检测装置,其特征在于,所述获取单元具体用于,获取所述无刷直流电机的当前转速下半个扇区对应的时间,并获取所述 无刷直流电机的反电势过零检测提前时间,以及计算所述半个扇区对应的时间与所述反电势过零检测提前时间之间的差值,获取所述反电势过零检测时间间隙,所述获取所述反电势过零检测时间间隙被配置为根据所述差值获得所述反电势过零检测时间间隙。The back-EMF zero-crossing detection device of a brushless DC motor according to claim 11, wherein the obtaining unit is specifically configured to obtain a time corresponding to a half sector of a current speed of the brushless DC motor, And obtaining a back-EMF zero-crossing detection advance time of the brushless DC motor, and calculating a difference between a time corresponding to the half sector and the back-EMF zero-crossing detection advance time, to obtain the back-EMF time The zero detection time gap, the obtaining the back-EMF zero-crossing detection time gap is configured to obtain the back-EMF zero-crossing detection time gap according to the difference.
  13. 如权利要求12所述的无刷直流电机的反电势过零检测装置,其特征在于,所述获取单元具体用于,根据所述无刷直流电机的最高运行转速获取所述反电势过零检测提前时间;或者,根据所述当前转速通过查表获取所述反电势过零检测提前时间;或者,根据所述当前转速通过查表和线性插值算法获取所述反电势过零检测提前时间。The back-EMF zero-crossing detection device of a brushless DC motor according to claim 12, wherein the obtaining unit is specifically configured to obtain the back-EMF zero-crossing detection according to the highest operating speed of the brushless DC motor Advance time; or, obtaining the back-EMF zero-crossing detection advance time through a look-up table according to the current speed; or obtaining the back-EMF zero-crossing detection advance time according to the current speed through a table lookup and a linear interpolation algorithm.
  14. 如权利要求11所述的无刷直流电机的反电势过零检测装置,其特征在于,所述获取单元具体用于,获取所述无刷直流电机的当前转速下半个扇区对应的时间、反电势过零检测提前时间和续流时间区间,以及获取所述半个扇区对应的时间与所述反电势过零检测提前时间之间的差值,并获取所述反电势过零检测时间间隙,所述获取所述反电势过零检测时间间隙被配置为控制所述差值处于所述续流时间区间,以获得所述反电势过零检测时间间隙。The back-EMF zero-crossing detection device of a brushless DC motor according to claim 11, wherein the obtaining unit is specifically configured to obtain a time corresponding to a half sector of a current speed of the brushless DC motor, Back-EMF zero-crossing detection advance time and freewheeling time interval, and the difference between the time corresponding to the half sector and the back-EMF zero-crossing detection advance time, and the back-EMF zero-crossing detection time Gap, the obtaining the back-EMF zero-crossing detection time gap is configured to control the difference to be in the freewheeling time interval to obtain the back-EMF zero-crossing detection time gap.
  15. 如权利要求14所述的无刷直流电机的反电势过零检测装置,其特征在于,所述获取单元具体还用于,根据所述无刷直流电机的最高运行转速获取所述续流时间区间;或者,根据所述当前转速通过查表获取所述续流时间区间;或者,根据所述当前转速通过查表和线性插值算法获取所述续流时间区间。The back-EMF zero-crossing detection device of a brushless DC motor according to claim 14, wherein the obtaining unit is further configured to obtain the freewheeling time interval according to the highest operating speed of the brushless DC motor. ; Or, obtaining the freewheeling time interval by looking up a table according to the current speed; or obtaining the freewheeling time interval by looking up a table and a linear interpolation algorithm according to the current speed.
  16. 如权利要求12或14所述的无刷直流电机的反电势过零检测装置,其特征在于,所述获取单元具体用于,根据所述当前转速获取反电势过零间隔时间的采样次数,并获取前所述采样次数次反电势过零间隔时间;获取所述当前转速下半个扇区对应的时间,所述获取所述当前转速下半个扇区对应的时间被配置为根据所述前采样次数次反电势过零间隔时间获取所述当前转速下半个扇区对应的时间。The back-EMF zero-crossing detection device for a brushless DC motor according to claim 12 or 14, wherein the obtaining unit is specifically configured to obtain the number of sampling times of the back-EMF zero-crossing interval according to the current rotation speed, and Obtaining the back-EMF zero-crossing interval time of the previous sampling times; acquiring the time corresponding to the lower half of the current rotational speed, and acquiring the time corresponding to the lower half of the current rotational speed is configured to be based on the previous The number of sampling times of the back-EMF zero-crossing interval is used to obtain the time corresponding to the lower half of the current rotation speed.
  17. 一种无刷直流电机的控制系统,其特征在于,包括如权利要求11-16中任一项所述的无刷直流电机的反电势过零检测装置。A control system for a brushless DC motor, which comprises a back-EMF zero-crossing detection device for a brushless DC motor according to any one of claims 11-16.
  18. 一种吸尘器,其特征在于,包括如权利要求17所述的无刷直流电机的控制系统。A vacuum cleaner, comprising a control system of a brushless DC motor according to claim 17.
PCT/CN2019/087066 2018-06-19 2019-05-15 Vacuum cleaner, and back electromotive force zero crossing detection method and apparatus and control system for motor WO2019242434A1 (en)

Applications Claiming Priority (4)

Application Number Priority Date Filing Date Title
CN201810628718.3 2018-06-19
CN201810628717.9A CN108809164B (en) 2018-06-19 2018-06-19 Counter potential zero-crossing detection method, device and control system for dust collector and motor
CN201810628718.3A CN108736769B (en) 2018-06-19 2018-06-19 Counter potential zero-crossing detection method, device and control system for dust collector and motor
CN201810628717.9 2018-06-19

Publications (1)

Publication Number Publication Date
WO2019242434A1 true WO2019242434A1 (en) 2019-12-26

Family

ID=68983488

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/087066 WO2019242434A1 (en) 2018-06-19 2019-05-15 Vacuum cleaner, and back electromotive force zero crossing detection method and apparatus and control system for motor

Country Status (1)

Country Link
WO (1) WO2019242434A1 (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107222135A (en) * 2017-05-12 2017-09-29 哈尔滨工程大学 A kind of D-C brushless electric machine no-position sensor control system phase change control method
CN108736769A (en) * 2018-06-19 2018-11-02 江苏美的清洁电器股份有限公司 The back-emf zero passage detection method, apparatus and control system of dust catcher, motor
CN108809164A (en) * 2018-06-19 2018-11-13 江苏美的清洁电器股份有限公司 The back-emf zero passage detection method, apparatus and control system of dust catcher, motor

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107222135A (en) * 2017-05-12 2017-09-29 哈尔滨工程大学 A kind of D-C brushless electric machine no-position sensor control system phase change control method
CN108736769A (en) * 2018-06-19 2018-11-02 江苏美的清洁电器股份有限公司 The back-emf zero passage detection method, apparatus and control system of dust catcher, motor
CN108809164A (en) * 2018-06-19 2018-11-13 江苏美的清洁电器股份有限公司 The back-emf zero passage detection method, apparatus and control system of dust catcher, motor

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
WU, XUEMEI ET AL.: "Study of Control Technology for Brushless DC Electromotor Based on DSP", MACHINERY & ELECTRONICS, vol. 3, 25 March 2005 (2005-03-25), pages 50 - 52, ISSN: 1001-2257 *

Similar Documents

Publication Publication Date Title
US9515588B2 (en) Sensorless control of a brushless permanent-magnet motor
US9088238B2 (en) Method of determining the rotor position of a permanent-magnet motor
US9088235B2 (en) Method of determining the rotor position of a permanent-magnet motor
JP6105834B2 (en) Brushless motor control
JP5546496B2 (en) Control of brushless permanent magnet motor
JP5524123B2 (en) Brushless motor control
JP5484390B2 (en) Brushless motor control
WO2015131791A1 (en) Method and device for acquiring rotor position based on permanent magnet synchronous drive system
JP2011229382A (en) Control of brushless motor
JP2011229381A (en) Control of brushless motor
JP2011229384A (en) Control of brushless motor
JP2011229387A (en) Control of brushless motor
JP2011229383A (en) Control of brushless motor
JP2011229390A (en) Controller for brushless motor
JP2011229385A (en) Control of brushless motor
CN108448953B (en) Counter potential zero-crossing detection method, device and control system for dust collector and motor
CN108736769B (en) Counter potential zero-crossing detection method, device and control system for dust collector and motor
GB2500013A (en) Sensorless control of a brushless permanent-magnet motor
CN108448954A (en) The back-emf zero passage detection method, apparatus and control system of dust catcher, motor
CN113131805A (en) Control device and method of brushless direct current motor
CN108809164B (en) Counter potential zero-crossing detection method, device and control system for dust collector and motor
WO2019242434A1 (en) Vacuum cleaner, and back electromotive force zero crossing detection method and apparatus and control system for motor
CN108075701B (en) Method for improving and controlling efficiency of switched reluctance power generation system without position sensor
WO2019185018A1 (en) Vacuum cleaner, and counter electromotive force zero-cross detection method, apparatus and control system of motor

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 19822690

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 19822690

Country of ref document: EP

Kind code of ref document: A1