In motor control applications, magnetic field sensing elements, such as Hall sensors, are commonly used to sense the magnetic field of the motor and provide motor position feedback. Due to limitations of motor production processing, Hall sensors may not be installed in a precise position. In addition, a magnetic field may not be perfectly symmetric from pole to pole and the motor windings may not perfectly symmetric between the phases. These and other cumulative errors may cause inaccurate control, e.g., phase commutation, to the motor, which may distort the motor current, reduce motor efficiency, and add to operational acoustic noise. Such errors may also lower product consistency during production because the cumulative error may vary from motor to motor.
The present invention provides method and apparatus for motor control systems for three-phase motors having magnetic field sensing element error compensation in accordance with illustrative embodiments of the invention. In embodiments, the system may include a Hall sensor to detect motor position. By providing error compensation for the magnetic field sensing element, such as the Hall element, the motor can be controlled so as to operate more efficiently, quietly, and smoothly than in conventional motor control systems. Embodiments of the invention may be well suited for BLDC (brushless DC) motor operation for stabilizing the motor current and reducing distortions away from a sinusoidal waveform.
In one aspect of the invention, a method comprises: operating a three-phase motor having a magnet with a number of pole-pairs and detecting zero crossings from a magnetic field sensing element proximate the magnet, wherein the zero crossings correspond to pole transitions for of the pore-pairs; determining drive angles corresponding to each of the zero crossings; determining a reference angle from the drive angles; sequentially positioning the motor to correspond to each one of the pole transitions and setting a drive angle to the reference angle; examining a signal generated from the magnetic field sensing element for each of the pole transitions; adjusting a compensation level for the magnetic field sensing element for each of the pole transitions based on the signal generated from the magnetic field sensing element for the respective pole transitions; and operating the motor and applying the compensation level for each of the pole transitions as the corresponding pole transition is proximate the magnetic field sensing element.
The method can further include one or more of the following features: providing the magnetic field sensing element as a Hall element, examining the signal from the magnetic field sensing element using a three state comparator, the magnetic field sensing element comprises a Hall element, the compensation level for each of the pole transitions corresponds to an error in positioning of the magnetic field sensing element, rotating the motor in clockwise and counterclockwise directions to reduce hysteresis error, the zero crossings correspond to S to N pole transitions, taking an average of the driving angles to determine the reference angle, using coarse and fine searching to determine the reference angle, and/or storing for each pole-pair transition a zero crossing angle, a reference angle, an error value, and a compensation value.
In a further aspect of the invention, a system comprises a motor controller for a three phase motor comprising: a means for error compensation to operate a three-phase motor having a magnet with a number of pole-pairs and detecting zero crossings from a magnetic field sensing element proximate the magnet, wherein the zero crossings correspond to pole transitions for of the pole-pairs, to determine drive angles corresponding to each of the zero crossings, to determine a reference angle from the drive angles, to sequentially position the motor to correspond to each one of the pole transitions and setting a drive angle to the reference angle, to examining a signal generated from the magnetic field sensing element for each of the pole transitions; to adjust a compensation level for the magnetic field sensing element for each of the pole transitions based on the signal generated from the magnetic field sensing element for the respective pole transitions; and to operate the motor and applying the compensation level for each of the pole transitions as the corresponding pole transition is proximate the magnetic field sensing element.
The system can be further configured to include one or more of the following features: the magnetic field sensing element comprises a Hall element, examine the signal from the magnetic field sensing element using a three state comparator, the magnetic field sensing element comprises a Hall element, the compensation level for each of the pole transitions corresponds to an error in positioning of the magnetic field sensing element, rotate the motor in clockwise and counterclockwise directions to reduce hysteresis error, the zero crossings correspond to S to N pole transitions, take an average of the driving angles to determine the reference angle, use coarse and fine searching to determine the reference angle, and/or store for each pole-pair transition a zero crossing angle, a reference angle, an error value, and a compensation value.
In a further aspect of the invention, an article comprises: a non-transitory storage medium having stored instructions that enable a machine to: operate a three-phase motor having a magnet with a number of pole-pairs and detecting zero crossings from a magnetic field sensing element proximate the magnet, wherein the zero crossings correspond to pole transitions for of the pole-pairs; determine drive angles corresponding to each of the zero crossings; determine a reference angle from the drive angles; sequentially position the motor to correspond to each one of the pole transitions and setting a drive angle to the reference angle; examine a signal generated from the magnetic field sensing element for each of the pole transitions; adjust a compensation level for the magnetic field sensing element for each of the pole transitions based on the signal generated from the magnetic field sensing element for the respective pole transitions; and operate the motor and applying the compensation level for each of the pole transitions as the corresponding pole transition is proximate the magnetic field sensing element.
The article can further include instructions for one or more of the following features: the magnetic field sensing element comprises a Hall element, examine the signal from the magnetic field sensing element using a three state comparator, the magnetic field sensing element comprises a Hall element, the compensation level for each of the pole transitions corresponds to an error in positioning of the magnetic field sensing element, rotate the motor in clockwise and counterclockwise directions to reduce hysteresis error, the zero crossings correspond to S to N pole transitions, take an average of the driving angles to determine the reference angle, use coarse and fine searching to determine the reference angle, and/or store for each pole-pair transition a zero crossing angle, a reference angle, an error value, and a compensation value.
The foregoing features of this invention, as well as the invention itself, may be more fully understood from the following description of the drawings in which:
The motor 104 is shown to include three windings 104a, 104b, 104c, which can be depicted as a respective equivalent circuit having an inductor in series with a resistor and in series with a back EMF (BEMF) voltage source. For example, the winding A 104a is shown to include an inductor 130 in series with a resistor 131 and in series with a back EMF voltage source VA 136.
The motor control circuit 102 includes a speed demand generator 107 coupled to receive an external speed demand signal 106 from outside of the motor control circuit 102. The external speed demand signal 106 can be in one of a variety of formats. In general the external speed demand signal 106 is indicative of a speed of the motor 104 that is requested from outside of the motor control circuit 102.
The speed demand generator 107 is configured to generate a speed demand signal 107a. A pulse width modulation (PWM) generator 108 is coupled to receive the speed demand signal 107a and configured to generate PWM signals having a duty cycle that is controlled by the speed demand signal 107a. The PWM generator 108 is also coupled to receive modulation waveforms from a modulation signal generation module 146. The PWM signals are generated with a modulation characteristic (i.e., a relative time-varying duty cycle) in accordance with the modulation waveforms.
The motor control circuit 102 also includes a gate driver circuit 110 coupled to receive the PWM signals and configured to generate PWM gate drive signals 110a, 110b, 110c, 110d, 110e, 110f to drive six transistors 112, 114, 116, 118, 120, 122 arranged as three half-bridge circuits 112/114, 116/118, 120/122. The six transistors 112, 114, 116, 118, 120, 122 operate in saturation to provide three motor drive signals VoutA, VoutB, VoutC, 124, 126, 128, respectively, at nodes 102d, 102c, 102b, respectively. It is understood that any suitable configuration of switching elements can be used to provide the motor drive signals.
The motor control circuit 102 can also include a signal processing module 143 and error compensation module 147 receiving feedback from the magnetic field sensing element (e.g., Hall sensor) 105. As described more fully below, errors can be identified and compensated for, such as by adjusting an offset of the Hall element.
The signal processing module 143 is configured to generate a position reference signal indicative of a rotational reference position of the motor 104. The modulation signal generation module 146 is coupled to receive the position reference signal and configured to change a phase of the modulation waveforms provided to the PWM generator 108.
The motor control circuit 102 can be coupled to receive a motor voltage VMOT, or simply VM, at a node 102a, which is supplied to the motor through the transistors 112, 116, 120 during times when the upper transistors 112, 116, 120 are turned on. It will be understood that there can be a small voltage drop (for example, 0.1 volts) through the transistors 112, 116, 120 when they are turned on and supplying current to the motor 104.
It is understood that for a five-pole-pair motor, one mechanical cycle represents five electrical cycles, and one mechanical degree represents five electrical degrees. In the following description, unless specified, electrical cycle and electrical degree are used.
In a first mode, the motor is driven in a clockwise direction, as shown by the arrow, for positioning the motor. The motor is slowly rotated in one direction for one mechanical cycle (five electrical cycles), which corresponds to five electrical cycles in the illustrated embodiment. During the rotation, the zero crossing from S pole to N pole for the Hall sensor 202 occurs five times, once for each pole pair. In the illustrated embodiment, the Hall sensor 202 is located at a first one of the S-N pole transitions. The five driving angles for each of the S-N pole transitions are recorded at the time the Hall sensor information crosses zero. The five driving angles can be used to derive a reference angle. In embodiments, the average of the five angles is averaged to generate a reference angle for the Hall sensor. As will be described further below, the reference angle can be used for error compensation of Hall sensor for each pole-pair.
It is understood that the driving angles can be combined in any practical way to meet the needs of particular application. It is understood that one or more values may be removed including with the use of suitable criteria. In embodiments, magnet rotation can be rotated in any practical combination of clockwise and counterclockwise. In embodiments, any combination of S-N and N-S pole transitions can be used to meet the needs of a particular application. In embodiments, a Hall sensor can move in relation to the magnet.
As can be seen in the illustrated embodiment for a given time, as the motor slowly rotates clockwise, the Hall sensor 202 experiences a rising edge (S pole to N pole), and the driving angle (electrical angle) is 0 degrees.
In an embodiment, the five driving angles for the S pole to N pole edges should be relatively close to each other and around zero degrees. Example angles can be found as:
The average of the angles can be computed by:
(0+3−2+5−1)/5=1
The 1 degree can be taken as the reference angle for the Hall sensor.
It is understood that the magnet can comprise any practical number of pole-pairs to meet the needs of a particular application. It is further understood that the average reference degree amount can be any position from 0 to 360 degrees, depending on Hall sensor installation.
It should be noted that in the illustrative embodiment of
At step 300, a pointer sets the motor position to an angle of zero degrees. After a time to let the motor settle in position, such as two seconds, in step 302, it is determined whether the output of the Hall comparator (see
In step 308, the motor position is moved 5 degrees clockwise and in step 310, it is determined whether the Hall comparator output is ONE. If not, going back to step 308, the motor moves another 5 degrees, until a Hall comparator output of ONE is found. If Hall output ONE is found, in step 312, the motor is moved counterclockwise by one degree, for example, and in step 314 it is determined whether the Hall comparator output is ZERO. If not, the motor is moved again in step 312 and the Hall comparator output is again checked for a ZERO in step 314. If the output is ZERO, a first pointer P0 value is recorded. In step 318, the motor is moved clockwise by incrementing the pointer by one degree, for example. In step 320, the Hall output comparator value is checked for a value of ONE. If not, the motor is moved again by incrementing the pointer by one in step 318 and the Hall comparator output checked again for a ONE in step 320. If the Hall comparator output is ONE, a second pointer value P1 is recorded. In step 324, the pointer values P0, P1 are averaged. With this arrangement, the zero crossing is evaluated from clockwise and counterclockwise motor rotation to reduce hysteresis error.
In other embodiments, a Hall comparator output can be evaluated for a −1 value (see
After a reference angle for the Hall sensor is determined, as described above, compensation for the pole-pairs can be determined by adjusting the offset of a Hall comparator HC, as described below.
In embodiments, the Hall comparator HC includes an adjustable offset which shifts the input zero crossing level. That is, the magnitude of the difference between inputs I1 and I2 that result in a Hall comparator output of 0 can be adjusted.
To continue the error compensation example, the motor is positioned at the first pole pair and the driving angle is set to 1 degree, which was calculated as described above. The outputs of the Hall sensor 502 are provided to the comparator 504. While the S-N transition is aligned with the Hall sensor 502, as shown, the output of the comparator 504 is expected to be zero. In the example, due to Hall sensor error, assume the comparator 504 output is not zero. The EC controller 506 controls the DAC 508 to adjust the offset to the Hall comparator 504 until the comparator output becomes zero. This is repeated for each pole pair. The motor can then be run with Hall sensor error compensation by controlling the comparator offset adjustment to provide enhanced operational characteristics, such as stabilized motor current, improved efficiency, and reduced acoustic noise.
It is understood that the Hall comparator, and other components and modules, can be implemented in any practical hardware, software, processors, or combination thereof, that will be apparent to one of ordinary skill in the above.
While illustrative embodiments of the invention are shown and described in conjunction with a magnetic field sensing element comprising a Hall element, it is understood that any suitable type of magnetic field sensing element can be used.
As used herein, the term “magnetic field sensing element” is used to describe a variety of electronic elements that can sense a magnetic field. The magnetic field sensing element can be, but is not limited to, a Hall effect element, a magnetoresistance element, or a magnetotransistor. As is known, there are different types of Hall effect elements, for example, a planar Hall element, a vertical Hall element, and a Circular Vertical Hall (CVH) element. As is also known, there are different types of magnetoresistance elements, for example, a semiconductor magnetoresistance element such as Indium Antimonide (InSb), a giant magnetoresistance (GMR) element, for example, a spin valve, an anisotropic magnetoresistance element (AMR), a tunneling magnetoresistance (TMR) element, and a magnetic tunnel junction (MTJ). The magnetic field sensing element may be a single element or, alternatively, may include two or more magnetic field sensing elements arranged in various configurations, e.g., a half bridge or full (Wheatstone) bridge. Depending on the device type and other application requirements, the magnetic field sensing element may be a device made of a type IV semiconductor material such as Silicon (Si) or Germanium (Ge), or a type III-V semiconductor material like Gallium-Arsenide (GaAs) or an Indium compound, e.g., Indium-Antimonide (InSb).
As is known, some of the above-described magnetic field sensing elements tend to have an axis of maximum sensitivity parallel to a substrate that supports the magnetic field sensing element, and others of the above-described magnetic field sensing elements tend to have an axis of maximum sensitivity perpendicular to a substrate that supports the magnetic field sensing element. In particular, planar Hall elements tend to have axes of sensitivity perpendicular to a substrate, while metal based or metallic magnetoresistance elements (e.g., GMR, TMR, AMR) and vertical Hall elements tend to have axes of sensitivity parallel to a substrate.
As used herein, the term “magnetic field sensor” is used to describe a circuit that uses a magnetic field sensing element, generally in combination with other circuits. Magnetic field sensors are used in a variety of applications, including, but not limited to, an angle sensor that senses an angle of a direction of a magnetic field, a current sensor that senses a magnetic field generated by a current carried by a current-carrying conductor, a magnetic switch that senses the proximity of a ferromagnetic object, a rotation detector that senses passing ferromagnetic articles, for example, magnetic domains of a ring magnet or a ferromagnetic target (e.g., gear teeth) where the magnetic field sensor is used in combination with a back-biased or other magnet, and a magnetic field sensor that senses a magnetic field density of a magnetic field.
Processing may be implemented in hardware, software, or a combination of the two. Processing may be implemented in computer programs executed on programmable computers/machines that each includes a processor, a storage medium or other article of manufacture that is readable by the processor (including volatile and non-volatile memory and/or storage elements), at least one input device, and one or more output devices. Program code may be applied to data entered using an input device to perform processing and to generate output information.
The system can perform processing, at least in part, via a computer program product, (e.g., in a machine-readable storage device), for execution by, or to control the operation of, data processing apparatus (e.g., a programmable processor, a computer, or multiple computers). Each such program may be implemented in a high level procedural or object-oriented programming language to communicate with a computer system. However, the programs may be implemented in assembly or machine language. The language may be a compiled or an interpreted language and it may be deployed in any form, including as a stand-alone program or as a module, component, subroutine, or other unit suitable for use in a computing environment. A computer program may be deployed to be executed on one computer or on multiple computers at one site or distributed across multiple sites and interconnected by a communication network. A computer program may be stored on a storage medium or device (e.g., CD-ROM, hard disk, or magnetic diskette) that is readable by a general or special purpose programmable computer for configuring and operating the computer when the storage medium or device is read by the computer. Processing may also be implemented as a machine-readable storage medium, configured with a computer program, where upon execution, instructions in the computer program cause the computer to operate.
Processing may be performed by one or more programmable processors executing one or more computer programs to perform the functions of the system. All or part of the system may be implemented as, special purpose logic circuitry (e.g., an FPGA (field programmable gate array) and/or an ASIC (application-specific integrated circuit)).
Having described exemplary embodiments of the invention, it will now become apparent to one of ordinary skill in the art that other embodiments incorporating their concepts may also be used. The embodiments contained herein should not be limited to disclosed embodiments but rather should be limited only by the spirit and scope of the appended claims. All publications and references cited herein are expressly incorporated herein by reference in their entirety.
Elements of different embodiments described herein may be combined to form other embodiments not specifically set forth above. Various elements, which are described in the context of a single embodiment, may also be provided separately or in any suitable subcombination. Other embodiments not specifically described herein are also within the scope of the following claims.
This application is a continuation application of U.S. patent application Ser. No. 15/467,075 filed on Mar. 23, 2017, and entitled “METHODS AND APPARATUS FOR THREE-PHASE MOTOR CONTROL WITH ERROR COMPENSATION,” which application is hereby incorporated herein by reference in its entirety.
Number | Name | Date | Kind |
---|---|---|---|
6826499 | Colosky et al. | Nov 2004 | B2 |
7746023 | Ajima et al. | Jun 2010 | B2 |
8278853 | Kitagawa | Oct 2012 | B2 |
8836326 | Maeda et al. | Sep 2014 | B2 |
10063178 | Lee | Aug 2018 | B2 |
20120158341 | Ueda et al. | Jun 2012 | A1 |
20120242264 | Satake et al. | Sep 2012 | A1 |
20130099708 | Shimizu et al. | Apr 2013 | A1 |
20160109531 | Kim et al. | Apr 2016 | A1 |
20180278185 | Lu et al. | Sep 2018 | A1 |
Number | Date | Country |
---|---|---|
2515087 | Dec 2014 | GB |
201539969 | Oct 2015 | TW |
Entry |
---|
U.S. Appl. No. 15/184,159, filed Jun. 16, 2016, Lu et al. |
U.S. Appl. No. 15/149,448, filed May 8, 2016, Lu. |
U.S. Appl. No. 15/216,891, filed Jul. 22, 2016, Lu. |
U.S. Appl. No. 15/184,163, filed Jun. 16, 2016, Lu et al. |
U.S. Appl. No. 15/374,154, filed Dec. 9,2 016, Lu et al. |
Alaeinovin et al., “Evaluating Misalignment of Hall Sensors in Brushless DC Motors;” IEEE Electrical Power & Energy Conference; Oct. 6, 2008; 6 Pages. |
PCT International Search Report and Written Opinion dated May 9, 2018 for International Application No. PCT/US2018/019875; 15 Pages. |
Taiwan Office Action (with English Translation) dated Nov. 2, 2018 for Taiwan Application No. 107107860; 17 Pages. |
Response (with English Translation and Amended Claims) to Taiwan Office Action dated Nov. 2, 2018 for Taiwan Application No. 107107860; Response filed Dec. 19, 2018; 27 Pages. |
Taiwan Second Office Action (with English Translation) dated Feb. 13, 2019 for Taiwan Application No. 107107860; 19 Pages. |
U.S. Non-Final Office Action dated Jul. 25, 2018 for U.S. Appl. No. 15/467,075; 21 Pages. |
Response to U.S. Non-Final Office Action dated Jul. 25, 2018 for U.S. Appl. No. 15/467,075; Response filed Oct. 24, 2018; 14 Pages. |
U.S. Notice of Allowance dated Feb. 27, 2019 for U.S. Appl. No. 15/467,075; 14 Pages. |
Response (with English Translation) to Taiwan Office Action dated Feb. 13, 2019 for Taiwan Application No. 107107860; Response filed May 9, 2019; 12 Pages. |
Taiwan Allowance Decision (with English Translation) dated Oct. 2, 2019 for Taiwan Application No. 107107860; 3 Pages. |
PCT International Preliminary Report dated Oct. 3, 2019 for International Application No. PCT/US2018/019875; 8 Pages. |
Number | Date | Country | |
---|---|---|---|
20190260315 A1 | Aug 2019 | US |
Number | Date | Country | |
---|---|---|---|
Parent | 15467075 | Mar 2017 | US |
Child | 16400292 | US |