Method and apparatus for improving speed measurement quality in multi-pole machines

Information

  • Patent Application
  • 20070194743
  • Publication Number
    20070194743
  • Date Filed
    January 29, 2007
    17 years ago
  • Date Published
    August 23, 2007
    17 years ago
Abstract
A method and apparatus for improving the speed measurement quality in systems having multi-pole machines is taught. The method compensates for pole misalignment by moving average techniques.
Description
BACKGROUND

1. Technical Field


This application is generally related to measurement and control of electric motors, for example, multi-pole permanent magnet machines.


2. Description of the Related Art


An electric motor is an apparatus or machine for producing motion and mechanical effects by the action of electricity. Those having ordinary skill in the art typically recognize three standard or classical motor designations: direct current (“DC”) motors with commutators (wound field), synchronous alternating current (“AC”) motors and asynchronous AC motors.


One example of synchronous AC motors is the permanent magnet AC synchronous motor. As shown below, the permanent magnet motor is a synchronous motor, and thus the stator frequency and the number of magnetic poles may be used to directly determine motor speed.


As with most motors, the permanent magnet synchronous motor has two primary parts. The mechanically non-moving or stationary part is called the stator, and the mechanically moving or rotating part, usually inside the stator, is called the rotor.


In order to enable a motor to rotate, two fluxes are needed: one from the stator and the other from the rotor. Typically, in an electric motor, at least one flux is generated in the stator which is of opposite polarity and proximate to at least one flux generated in the rotor. Although the stator is mechanically stationary, electromagnetic techniques may be utilized to create a flux which rotates internal to the stator. Although the rotor can move mechanically, the flux of the rotor is often stationary internal to the rotor. Hence, the moving flux internal to the stator cause the rotor to mechanically rotate by attracting the opposite polarity flux which is stationary internal to the rotor.


There are at least two ways to generate rotor flux. One way is to use windings integral with the rotor to generate an electromagnetic field. Another way is to use permanent magnets integral with the rotor which generate a magnetic field, and hence flux.


One common, commercially available, motor is the “three phase” motor, which uses three alternating current waveforms, slightly delayed in time relative to each other to generate the moving flux in the rotor.


As noted, AC electromagnetic techniques are typically utilized in order to generate the at least one moving flux in the stator, and permanent magnet techniques may be utilized to generate the stationary flux in the rotor. One way in which this is done is to construct the stator as an electromagnet made with a winding for each phase of the motor, while permanent magnets may be used for generating rotor flux. In each winding of the stator, current may either flow in a forward or positive direction, or in a reverse or negative direction. As current flows in the forward direction in the stator according to its windings, the rotor is forced to rotate as it tries to align itself with the electromagnetic flux. At a certain point in the rotation, the field is reversed and the rotor continues to turn in an attempt to realign itself with the new, or negative, field orientation. For a three-phase motor, this results in six unique steps or pole alignments. The amount of current flow may be controlled by either pulse width modulation or analog means. The resolution of control actually depends upon the resolution of the positioning feedback device, the current feedback, and the update rate.


As noted, motors typically operate by “dragging,” or pulling the stationary fluxes in the rotor with the moving fluxes induced in the stator. Those having ordinary skill in the art will appreciate that in order to do the foregoing effectively, the moving fluxes in the stator are generally controlled to keep those fluxes effectively proximate to the opposite-polarity fluxes in the rotor. Those having ordinary skill in the art will appreciate that in order to effectively do the foregoing effectively, it is helpful to have a good idea of either or both the speed of rotation and positioning of the fluxes inside the rotor.


One way in which either or both the speed of rotation and positioning of the fluxes inside the rotor are determined is via the uses of sensors that detect the poles of the magnets stationary within the rotor. For example, multi-pole brushless permanent magnet machines use magnetic pole position sensors, such as Hall effect sensors, to determine the positions of the magnetic poles within the rotor, relative to a fixed position on the stator, so as to control current in the stator winding in order to provide a controlled torque output (e.g., reversing direction of current every half cycle). As used herein, the output of a magnetic pole position sensor constitutes one logic level when it is near a north pole and another logic level when it is near a south pole. Thus, as the poles of the rotor pass near the magnetic pole position effect sensor, the logic level output alternates from low to high. For a machine with N pole pairs (or N×2 poles), there will be N sequences of a low and high logic levels on the output of the magnetic pole position sensor for each mechanical revolution of the stator of the machine.


In this type of system, speed is measured by determining the time difference between the edges of the output signal of the magnetic pole position sensor. This can be done in a variety of ways. The most common way is to measure the time from one rising edge to the next. This time is then multiplied by the number of poles of the machine and inverted giving the rotational speed of the motor. This concept is graphically illustrated with respect to FIG. 2.



FIG. 2 shows an electric motor 200 in cross-section. The electric motor 200 includes a rotor 202 having four poles provided by permanent magnet. Alignment lines 204 illustrate the alignment of the north poles and the alignment of the south poles such that the N-S-N-S poles are equispaced around the rotor 202. Broken directional lines 206 show the manipulation of the currents in the windings (not shown) of stator 210 such that rotating S-N-S-N poles are produced in the stator. Broken directional lines 208 illustrate that the rotating S-N-S-N poles in stator 210 drag their respectively paired N-S-N-S poles in rotor 202 to cause rotation of rotor 202.


A number of rotor-pole sensors 212 (e.g., hall effect sensors) are positioned or proximate the on stator 210. Those skilled in the art will appreciate that, insofar as the N-S-N-S poles in rotor 202 are equispaced, it is common in the art to measure the elapsed time of rotation between successive N-S poles, and then multiply the measured elapsed time of rotation by the number of poles in the rotor to determine the speed of rotation of the rotor. For example, using one of the rotor-pole sensors to detect the elapsed time between successive poles, and thereafter multiplying the measured elapsed time by four, since there are four poles which divide the rotation into 4 equal length arcs.


As has been explained above, in order to provide effective control of a motor, it is important to have an accurate measure of the speed of the motor. It is therefore apparent that a need exists in the art for the motor measurement speed to be accurate.


BRIEF SUMMARY OF INVENTION

In one embodiment, a method for use with multi-pole machines includes detecting a first time at which a first pole passes a first stator position; detecting a second time at which a second pole passes the first stator position; determining an elapsed time between the first and the second times; recalling at least one historical elapsed time between the first and second poles passing the first stator position; calculating an average time based on the elapsed time and the at least one historical elapsed time; and calculating a rotational quantity on the basis of the average time.


In one or more various embodiments, related systems include but are not limited to circuitry and/or programming for effecting the foregoing-referenced method embodiments; the circuitry and/or programming can be virtually any combination of hardware, software, and/or firmware configured to effect the foregoing-referenced method embodiments depending upon the design choices of the system designer.


In one embodiment, an apparatus for determining a speed of a multi-pole machine includes at least one magnetic pole position sensor positioned to detect a passing of each pole and configured to provide a pulse in a pulsed signal in response to each passing of each pole; and a controller for measuring a time between a rising edge of one pulse and a rising edge of a next pulse in the pulsed signal and storing a total time from pulse to pulse in one revolution of a motor.


The foregoing is a summary and thus contains, by necessity, simplifications, generalizations and omissions of detail; consequently, those skilled in the art will appreciate that the summary is illustrative only and is NOT intended to be in any way limiting. Other aspects, inventive features, and advantages of the devices and/or processes described herein, as defined solely by the claims, will become apparent in the non-limiting detailed description set forth herein.




BRIEF DESCRIPTION OF THE SEVERAL VIEWS OF THE DRAWING


FIG. 1 is an illustration of the variation in oscillation between pole pairs for a motor having three Hall effect sensors and four pole pairs.



FIG. 2 shows electric motor 200 in cross-section.



FIG. 3 depicts electric motor 300 in cross-section, which is similar to electric motor 200, but which shows manufacturing variations.



FIG. 4 shows motor 400 having three magnetic pole position sensors 212 and a four pole pair magnet (e.g., 8 pole) rotor 402.



FIG. 5 shows the four pole machine 300 of FIG. 3 where the rotor poles are not equispaced (e.g., due to tolerance and/or errors during manufacturing) in conjunction with measurement tables designated sensor one, sensor two, and sensor three tables.



FIG. 6 illustrated is a system 600 implementing various of the techniques described herein.



FIG. 7 shows the system of FIG. 6 operably coupled to drive a mechanical load 700.




The same or similar symbols used in drawings generally is intended to indicate similar or identical items.


DETAILED DESCRIPTION OF THE INVENTION

It has been noted by the inventors that manufacturing imperfections and tolerances often cause a variance between the location of the actual physical poles and the desired equispaced theoretical positions illustrated in FIG. 2. It has further been noted by the inventors that the foregoing described speed measurement will have errors if the magnetic poles are not perfectly oriented around the rotor of the motor (i.e., there are variations in the placement of the magnets).



FIG. 3 shows an electric motor 300 in cross-section, which is similar to electric motor 200, but which includes variations introduced by manufacturing. The rotor 202 has four poles provided by permanent magnets. Alignment lines 204 illustrate that while the south poles are aligned, the north poles are misaligned. As a consequence of this misalignment, the N-S-N-S poles are no longer equispaced around rotor 202 as illustrated in FIG. 3.


Insofar as the N-S-N-S poles in rotor 202 are no longer equispaced, the accuracy of rotational speed calculation will tend to be adversely affected. For example, the transition from S to N sensed by one of the rotor-pole sensors 212 will appear longer than it should. This gives rise to an error since the positioning of the misplaced N pole lags relative to the preceding (in rotation) S pole. Accordingly, multiplying the measured elapsed time by four, results in an aggregate error of 4× the initial error in calculating the speed of rotation. Conversely, the transition from N to S subsequently sensed by the same rotor-pole sensor will appear shorter than it should. This gives rise to an error since the positioning of the misplaced N pole relative to the following (in rotation) N pole leads where it should be in the rotational arc. Accordingly, multiplying the measured elapsed time by four, results in an aggregate error of 4× the initial error in calculating the speed of rotation.


The inventors have noted that errors such as those described foregoing can cause disturbances in the control of the motor and, in extreme cases, can destabilize an entire motor system.


As noted in the example of FIG. 3, there is a risk that the rotor poles will not be equispaced as actually built. Thus, in the case of the two phase or four pole machine 300, the edge of a successive pole may not be exactly 180 degrees physically away from the edge of a preceding pole. Consequently, if one is attempting a position measurement based upon the edges of the successive poles, an oscillation error will occur (e.g., in FIG. 3, a first measured time period between S and misplaced N appears too long, and a second subsequent measure time period between misplaced N and S appears too short). As has been shown, this oscillation error is simply a reflection of the difference in time measurement between successive poles passing a given sensor 212. The inventors have noted that, as the numbers of poles increase the oscillation errors will increase, as there will be more instances for up and down motion of the time measurement between passing poles.


One advantage of the subject matter disclosed herein is that it tends to overcome measurement errors that occur due to misalignment of poles. In one embodiment, this is accomplished by taking what is referred to herein as a moving average over a whole motor rotation in order to determine the speed.



FIG. 4 shows a motor 400 having three magnetic pole position sensors 212 and a four pole pair magnet (e.g., 8-pole) rotor 402. As the 8-pole magnet makes one complete rotation, each sensor 212 detects, at certain elapsed times, the passing of either North or South poles as illustrated via the measurement tables (designated sensor one, sensor two, and sensor three tables). There are thus twenty-four time measurements per revolution for the four pole pair magnet rotor 402. The three magnetic pole position sensors are each aligned with stator windings, detecting each north (rise) and south (fall) as they pass by the pole sensors. Accordingly, as shown in FIG. 4, in one revolution there are twenty-four North or South pole passings detected (e.g., three sensors times the four pole pairs or 8 poles, or twenty-four edges).


Each one of those measurements is a measurement of the last complete revolution indexed by one pole. Every time there is a new pole passing, a new measurement is taken and averaged with the other twenty-three previous measurements, providing a continuous moving average speed of the motor.


As noted above, a method of taking measurements is to measure the time difference from one pole passing event to the next pole passing event, regardless of whether it is on the same sensor or same magnetic pole. This often results in a ripple effect due to the misalignments or non-uniformity of the pole placement of the permanent magnet pole. As taught herein, any pole misalignment can be eliminated from the speed measurement by taking a moving average over a whole motor revolution (e.g., N rising to rising measurements in a pulsed signal). At an edge of each pulse resulting from the passing of a pole by the sensor 212, an average is taken over the last complete revolution from that edge. In one embodiment, the moving average is calculated based on saved data reflecting a previous rotation. In another embodiment, the moving average is calculated by detecting the time of every edge or pulse received and counting the received edges or pulses so that the present passing event can be compared against the last rotation.


As will be apparent in relation to the scheme shown and described in relation to FIG. 5 below, for an 8 pole motor such as that shown in FIG. 4, the described scheme may result in twenty-four measurement calculations per revolution for a four pole pair magnet with three magnetic pole position sensors. Accordingly, reliable data rate is provided and no time lag occurs in the case of a big change in the rate of speed. This can be considered optimal in that it offers the lowest time delay for completely rejecting the error due to misalignment of the poles if the moving average is recalculated each time a new rising edge is detected in the pulsed signal.


The general beneficial effects described above apply generally to each of the exemplary descriptions and characterizations of the devices and mechanisms disclosed herein. The specific structures through which these benefits are delivered will be described in detail herein below.


According to one implementation of the subject matter disclosed herein, the measurement from each revolution is retained yet updated every revolution. This provides a high rate measurement that is accurate since it is taken over one complete revolution. In the conventional method of measuring speed, variations in the speed measurement occur due to the imperfection in the location of the transition from the north to south pole. However, by averaging the previous revolution, this problem of varying speed measurement is overcome. This concept is further illustrated in relation to FIG. 5.



FIG. 5 shows the four pole machine 300 of FIG. 3, where the rotor poles are not equispaced (e.g., due to tolerance and/or manufacturing errors). Further shown in FIG. 5 are measurement tables designated sensor one, sensor two, and sensor three tables. Each sensor 212 detects, at certain elapsed times, the passing of either North or South poles as the four pole magnet makes one complete rotation. There are thus 12 elapsed time measurements per revolution.


Misplacement of N2 from the intended equispaced position produces an apparent-lag with respect to the preceding pole S1 in the direction of rotation, and an apparent lead with respect to the succeeding pole S2. This apparent lag and lead is represented in the measurement tables. The misplacement of magnetic poles is difficult to detect, except as “oscillations” in measurements. In addition, insofar as that, absent the subject matter of the present application, such oscillations tend to be indistinguishable from the motor slowing down and speeding up, the inventors have discovered that in the related art such oscillations create significant measurement and control difficulties.


Table 1 sets out examples of oscillation errors in both measurement and control that the misplacement of pole N2 can cause with respect to the sensor one measurement table of FIG. 5.

TABLE 1ERRORS IN MEASUREMENT AND CONTROLARISING FROM MISPLACED POLEMultiplication of ElapsedTime Between Two PolesElapsed Time BetweenBy Number of Poles InSeconds/CompletePoles as Measured atRotor = Calculated TimeMechanical RotationSensor Onefor One Rotationof RotorEffect on Motor Control SystemElapsed Time Between2 seconds × 4 equispaced8 seconds/completeMotor control system “sees” motorDetection of N1 andpoles (or arc segments) =mechanical rotationmechanical speed of 1 Revolution/8Subsequent Detection of S18 secondsof rotorseconds, and adjusts stator currentsat Sensor One = 4 − 2 = 2to make rotating stator flux(es) rotatesecondsat about that same speedElapsed Time Between3 seconds × 4 equispaced12 seconds/Motor control system “sees” motorDetection of S1 andpoles (or arc segments) =complete mechanicalmechanical speed rapidly slow to 1Subsequent Detection of12 secondsrotation of rotorRevolution/12 seconds, and adjustsMisplaced N2 at Sensor One =stator currents to slow rotating stator7 − 4 = 3 secondsflux(es) from previous rate of 1Revolution/8 Seconds to rotate atabout 1 Revolution/12 secondsElapsed Time Between1 second × 4 equispaced4 seconds/completeMotor control system “sees” motorDetection of Misplaced N2poles (or arc segments) =mechanical rotationmechanical speed rapidly accelerateand Subsequent Detection of4 secondsof rotorto 1 Revolution/4 seconds, andS2 at Sensor One = 8 − 7 = 1adjusts stator currents to increasesecondsrotating stator flux(es) from previousrate of 1 Revolution/12 seconds torotate at about 1 Revolution/4secondsElapsed Time Between2 seconds × 4 equispaced8 seconds/completeMotor control system “sees” motorDetection of S2 andpoles (or arc segments) =mechanical rotationmechanical speed rapidly slow to 1Subsequent Detection of N18 secondsof rotorRevolution/8 seconds, and adjustsat Sensor One = 10 − 8 = 2stator currents to slow rotating statorsecondsflux(es) from previous rate of 1Revolution/4 seconds to rotate atabout 1 Revolution/8 seconds


Thus, as can be seen from the illustration of Table 1, even though the rate of mechanical rotation is actually constant, the fact that pole N2 is misplaced from its desired rotation makes it appear to the motor control system “as if” the motor were rapidly slowing to 1 Revolution/12 seconds from 1 Revolution/8 seconds, then rapidly accelerating to 1 Revolution/4 seconds from 1 Revolution/12 seconds, then rapidly slowing again to 1 Revolution/8 seconds from 1 Revolution/4 seconds. Since the motor control system will try to keep the rotating stator flux(es) in magnetically proximate synchronization with the flux(es) in the rotor, the motor control system will thus oscillate back and forth as it tries to track what appear to be rapidly changing motor speeds.


As has been noted, the foregoing oscillation problem can be alleviated by use of one or more moving averages of sensor speed based on a complete physical rotation.


Once a specific magnetic pole of the rotor 202 of FIG. 5 has completed one rotation relative to one of the sensors, it is possible to construct an average of the elapsed time of physical rotation of the specific magnetic pole over one physical rotation. In one embodiment, this is achieved by using one near-real time measurement of an elapsed time of the specific pole, plus previously measured elapsed times between other poles to allow historical reconstruction of the previous complete mechanical revolution of the rotor. Thereafter, an average time of physical rotation of the specific magnetic pole over the historical reconstruction is calculated. Subsequently, the calculated average time of physical rotation is utilized to calculate a rotational quantity (e.g., speed), thereby eliminating any measurement errors due to misplaced poles. Table 2 shows an example of using this scheme to eliminate the oscillation effects shown in Table 1.

TABLE 2CORRECTION OF ERRORS IN MEASUREMENT AND CONTROLARISING FROM MISPLACED POLEMultiplication of AverageElapsed Time Between TwoSeconds/Poles By Number of Poles InCompleteRotor = Calculated Time forMechanicalEffect on MotorOne RotationRotation of RotorControl SystemMoving Average Calculated Upon Detection ofS1 by Sensor One at Time = 12Step 1: Calculate elapsed time for S1, and2 seconds × 4 equispaced poles8 seconds/Motor controlRecall Historical Elapsed Times Necessary to(or arc segments) = 8 secondscompletesystem “sees”Construct One Physical Rotation of S1mechanicalmotor mechanicalSuccessive Detected PolesElapsed Timerotation of rotorspeed of 1Real Time Calculation of S112 − 10 = 2Revolution/8detected after N1secondsseconds, andHistorical Stored Calculation10 − 8 = 2adjusts statorof N1 detected after S2secondscurrents to makeHistorical Stored Calculation8 − 7 = 1rotating statorof S2 detected after N2secondsflux(es) rotate atHistorical Stored Calculation7 − 4 = 3about that sameof N2 detected after S1secondsspeedStep 2: Average calculated elapsed time for S1Recalled Historical Times Necessary toConstruct One Physical Rotation of S1:Averaged Times = (2 + 2 + 1 + 3)/4 = 2.Step 3: Treat averaged time as detected time atsensor one.Moving Average Calculated Upon Detection ofMisplaced N2 by Sensor One at Time = 15Step 1: Calculate elapsed time for N2, and2 seconds × 4 equispaced poles8 seconds/Motor controlRecall Historical Elapsed Times Necessary to(or arc segments) = 8 secondscompletesystem “sees”Construct One Physical Rotation of N2mechanicalmotor mechanicalSuccessive Detected PolesElapsed Timerotation of rotorspeed stay at 1Real Time Calculation of N215 − 12 = 3Revolution/8Detected After S1secondsseconds,Historical Stored Calculation of12 − 10 = 2irrespective of factS1 detected after N1secondsthat detected poleHistorical Stored Calculation of10 − 8 = 2N2 was misplaced,N1 detected after S2secondsand hence andHistorical Stored Calculation of8 − 7 = 1keeps statorS2 detected after N2secondscurrents steady toStep 2: Average calculated elapsed time for N2maintain rotatingand Recalled Historical Times Necessary tostator flux(es) atConstruct One Physical Rotation of N2:previous rate of 1Averaged Times = (3 + 2 + 2 + 1)/4 = 2Revolution/8seconds.SecondsStep 3: Treat averaged time as detected timeat sensor one.Moving Average Calculated Upon Detection ofS2 relative to Misplaced N2 by Sensor One atTime = 16Step 1: Calculate elapsed time for S2, and2 seconds × 4 equispaced poles8 seconds/Motor controlRecall Historical Elapsed Times of Necessary(or arc segments) = 4 secondscompletesystem “sees”to Construct One Physical Rotation of S2mechanicalmotor mechanicalSuccessive Detected PolesElapsed Timerotation of rotorspeed stay at 1Real Time Calculation of S216 − 15 = 1Revolution/8detected after N2secondsseconds,Historical Stored Calculation of15 − 12 = 3irrespective of factN2 detected after S1secondsthat detected poleHistorical Stored Calculation of12 − 10 = 2N2 was misplaced,S1 detected after N1secondsand hence andHistorical Stored Calculation of10 − 8 = 2keeps statorN1 detected after S2secondscurrents steady toStep 2: Average calculated elapsed time for S2maintain rotatingand Recalled Historical Times Necessary tostator flux(es) atConstruct One Physical Rotation of S2:previous rate of 1Averaged Times = (1 + 3 + 2 + 2)/4 = 2Revolution/8Step 3: Treat averaged time as detected timeSecondsat sensor one.etc.etcetc.etc.


Table 2 shows that each time a pole is detected at sensor one of FIG. 5, an average taken over one rotation is recalculated. Hence, the average is actually a moving average. This scheme provides the benefit of measuring speed based on a complete rotation, while only requiring the elapsed time of detecting two successive poles, plus whatever small amount of time is required for the data processing.


There are many other ways to apply this moving average idea. For example, a permanent magnet motor typically has three magnetic pole position sensors for commutation. If there are N pole pairs and one can make multiple simultaneous measurements, it is possible to get 3*N*2 speed measurements per revolution (three sensors, N pole pairs, and each of the rising and falling edges of each north and south pole). Similarly, one can perform moving averages on each sensor, giving a new moving average speed 3*N*2 times per revolution. This is illustrated in FIG. 1 for a four pole permanent magnet having three Hall sensors.



FIG. 1 shows time measurement waveforms (i.e., pulsed signals) arising from three magnetic pole sensors (e.g., Hall Effect sensors), where each upwards going or downwards going edge represents a detected North or South pole. The time measurement waveforms can be used to determine pole pair detection by “bracketing” upwards and downwards transitions. Such bracketing may be used to determine one complete revolution of four pole pairs (or 8 poles) (e.g., as shown and discussed in relation to FIG. 4). Such bracketing may be used with the three different Hall effect sensors to obtain 24 measurements per revolution of a four pole pair (8 pole) rotor.


By utilizing measurement techniques such as those shown in FIG. 1, the speed of the motor can be more accurately regulated. Specifically, in one implementation of the subject matter disclosed herein ΔT is divided by one whole revolution, thereby smoothing out the oscillations. Accordingly, each ΔT measurement can be updated. Thereafter, the frequency F is instantaneously updated each time a ΔT is received, such that the frequency is the inverse of the number of magnetic pole position sensors times the ΣΔT.



FIG. 6 shows system 600 implementing various of the techniques and devices described herein. Motor controller 606 provides a measured motor speed value in some unit such as RPM, averaged over the last one complete revolution, to stator current drive unit 610 (e.g., a speed regulator).


In one embodiment, a speed timer overflow counter 602 is provided that is initially set to zero in order to calculate the motor speed value from one magnetic pole position sensor 212. A capture timer 604 counts the number of clock ticks, or time measurements, between rising and falling edges corresponding to the passing of the poles in the pulsed signal waveform. Because the capture timer 604 is generally limited in resolution, the timer size may be increased in order to provide an acceptable minimum detectable speed while maintaining reasonable resolution at high speed. The timer overflow counter 602 provides this extension of the size of the capture timer. For example, where the capture timer 604 is a sixteen-bit timer having a range of 0-32768, if the overflow counter 602 is of appropriate size the overflow counter 602 can provide an additional, or upper, sixteen bits to this counter, thereby extending the timer size to 65536. Every time the timer 604 overflows, the overflow counter 602 is incremented. The overflow counter 602 is zeroed or cleared when a new value is latched by a capture unit of the capture timer 604. All of this functionality may be accomplished within a motor controller 606 such as a digital signal processor.


As has been illustrated in relation to FIG. 5 and Table 2, in one implementation the number of time measurements added together to calculate the average speed over one revolution is equal to the number of north-south pole sets. For example, for a ten pole motor five time measurements, i.e., the time from one rising edge to the next, will be added together in order to calculate the average speed over one revolution. In measuring times using system 600, when the timer 604 overflows, the overflow counter 602 is incremented. The overflow counter 602 is cleared when a new value is latched by a capture unit, i.e., after the overflow has been read.


Once a rising edge is detected, the capture timer or unit 604 begins counting the number of clock ticks until the next rising edge. The overflow value is multiplied by a constant based upon the size of the extended timer. For a sixteen-bit timer, this constant would be 216, or 65536. This overflow value is then added with the number of ticks counted by the clock timer from one rising edge to the next, and the result is placed in a circular buffer. The index to the next position in the circular buffer is then updated, providing a raw speed value, or array of the last five measurements (for the example of a ten pole motor) of the number of clock ticks between the rising edges associated with the passing of poles, as determined by the magnetic pole position sensor 212. This raw speed value array is added together and inverted, with the result multiplied by the number of clock ticks of the timer between rising edges of the poles. The resultant value is the measured motor speed in some unit such as RPM, averaged over the last one revolution.


Accordingly, an apparatus may be provided for determining the averaged motor speed wherein the apparatus is comprised of a timer 604 for measuring the time between the rising edges of one pulse and the next, an overflow counter 602 for extending the size of the timer, a buffer 608 for storing the number of ticks and overflow value, at least one magnetic pole position sensor 212 for capturing the rising edge of each pulse, or measure each full magnetic field vector, and a brushless permanent magnet motor 300 having at least two pole pairs. Any one or more of the timer, counter and buffer elements may be found in a controller such as a digital signal processor 606.


As the motor 300 begins to rotate, the magnetic pole position sensor 212 provides a pulse in response to the passing of a magnetic pole, triggering the timer 604 to begin counting until the next rising edge of a pulse. When the timer overflows, the overflow counter 602 is incremented. The maximum value of the counter should be less than the maximum size of the extended timer divided by the number of poles. This is because the number of time measurements added together to calculate average speed over one revolution should preferably be less than the size of the extended timer. In this scheme, the total number of time measurements is equal to one half of the total number of poles.


When the next rising edge of a pulse is detected, an interrupt occurs whereby the number of clock ticks by the timer is captured. The value or number of overflows stored in the counter is multiplied by the maximum size of the extended counter, e.g., for a sixteen bit timer, this value would be 65536, and the result is added to the number of clock ticks captured giving the total clock ticks from one rising pulse edge to the next.


This total clock ticks value is placed in a circular buffer, wherein an index is updated. The index is in the form of an array having a continuously updated time measurement for each edge-to-edge measurement. Each of the time measurements are added together, giving a total number of clock ticks in one revolution of the motor. The value of the total number of clock ticks is then inverted and multiplied by the number of ticks by the timer over a prescribed period of time, typically a second, resulting in the averaged motor speed over one revolution of the motor, or frequency. This frequency can be expressed in units such as revolutions per minute, or RPM. As new pole-to-pole measurements are provided, the buffer, and therefore the speed, is continually updated. By such an apparatus and method, an acceptable substantially minimum detectable speed is provided by stator current driver unit 610 via conventional techniques while maintaining reasonable resolution at high speed. Further, by such an apparatus and method, an improvement in speed measurement quality for multi-pole machines is provided.



FIG. 7 shows the system of FIG. 6 operably coupled to drive a mechanical load 700. Mechanical load 700 may be substantially any type of load driven which can be driven by an electric motor, such as an automobile, a locomotive, an aircraft, or a watercraft. Electric motor 300 is coupled to mechanical load 612 by operable coupling 614. Operable coupling 614 may encompass substantially an coupling devices used by those having ordinary in the art, such as mechanical and/or electrical and/or hydraulic mechanisms, or combinations thereof.


All of the above U.S. patents, U.S. patent application publications, U.S. patent applications, foreign patents, foreign patent applications and non-patent publications referred to in this specification and/or listed in the Application Data Sheet, are incorporated herein by reference, in their entirety including, but not limited to, U.S. Ser. No. 60/319,066, filed Jan. 16, 2002.


Those having ordinary skill in the art will recognize that the state of the art has progressed to the point where there is little distinction left between hardware and software implementations of aspects of systems; the use of hardware or software is generally (but not always) a design choice representing cost vs. efficiency tradeoffs. Those having ordinary skill in the art will appreciate that there are various vehicles by which aspects of processes and/or systems described herein can be effected (e.g., hardware, software, and/or firmware), and that the preferred vehicle will vary with the context in which the processes and/or systems are deployed. For example, if an implementer determines that speed and accuracy are paramount, the implementer may opt for a hardware and/or firmware vehicle; alternatively, if flexibility is paramount, the implementer may opt for a solely software implementation; or, yet again alternatively, the implementer may opt for some combination of hardware, software, and/or firmware. Hence, there are several possible vehicles by which aspects of the processes described herein may be effected, none of which is inherently superior to the other in that any vehicle to be utilized is a choice dependent upon the context in which the vehicle will be deployed and the specific concerns (e.g., speed, flexibility, or predictability) of the implementer, any of which may vary.


The foregoing detailed description has set forth various embodiments of the devices and/or processes via the use of block diagrams, flowcharts, and examples. Insofar as such block diagrams, flowcharts, and examples contain one or more functions and/or operations, it will be understood as notorious by those within the art that each function and/or operation within such block diagrams, flowcharts, or examples can be implemented, individually and/or collectively, by a wide range of hardware, software, firmware, or virtually any combination thereof. In one embodiment, the present invention may be implemented via Application Specific Integrated Circuits (ASICs). However, those skilled in the art will recognize that the embodiments disclosed herein, in whole or in part, can be equivalently implemented in standard Integrated Circuits, as one or more computer programs running on one or more computers (e.g., as one or more programs running on one or more computer systems), as one or more programs running on one or more controllers (e.g., microcontrollers) as one or more programs running on one or more processors (e.g., microprocessors), as firmware, or as virtually any combination thereof, and that designing the circuitry and/or writing the code for the software and or firmware would be well within the skill of one of ordinary skill in the art in light of this disclosure. In addition, those skilled in the art will appreciate that the mechanisms of the present invention are capable of being distributed as a program product in a variety of forms, and that an illustrative embodiment of the present invention applies equally regardless of the particular type of signal bearing media used to actually carry out the distribution. Examples of signal bearing media include, but are not limited to, the following: recordable type media such as floppy disks, hard disk drives, CD ROMs, digital tape, and computer memory; and transmission type media such as digital and analogue communication links using TDM or IP based communication links (e.g., packet links).


In a general sense, those skilled in the art will recognize that the various embodiments described herein which can be implemented, individually and/or collectively, by a wide range of hardware, software, firmware, or any combination thereof can be viewed as being composed of various types of “electrical circuitry.” Consequently, as used herein “electrical circuitry” includes, but is not limited to, electrical circuitry having at least one discrete electrical circuit, electrical circuitry having at least one integrated circuit, electrical circuitry having at least one application specific integrated circuit, electrical circuitry forming a general purpose computing device configured by a computer program (e.g., a general purpose computer configured by a computer program which at least partially carries out processes and/or devices described herein, or a microprocessor configured by a computer program which at least partially carries out processes and/or devices described herein), electrical circuitry forming a memory device (e.g., forms of random access memory), and electrical circuitry forming a communications device (e.g., a modem, communications switch, or optical-electrical equipment).


Those skilled in the art will recognize that it is common within the art to describe devices and/or processes in the fashion set forth herein, and thereafter use standard engineering practices to integrate such described devices and/or processes into systems.


The foregoing described embodiments depict different components contained within, or connected with, different other components. It is to be understood that such depicted architectures are merely exemplary, and that in fact many other architectures can be implemented which achieve the same functionality. In a conceptual sense, any arrangement of components to achieve the same functionality is effectively “associated” such that the desired functionality is achieved. Hence, any two components herein combined to achieve a particular functionality can be seen as “associated with” each other such that the desired functionality is achieved, irrespective of architectures or intermedial components. Likewise, any two components so associated can also be viewed as being “operably connected”, or “operably coupled”, to each other to achieve the desired functionality.


While particular embodiments of the present invention have been shown and described, it will be obvious to those skilled in the art that, based upon the teachings herein, changes and modifications may be made without departing from this invention and its broader aspects and, therefore, the appended claims are to encompass within their scope all such changes and modifications as are within the true spirit and scope of this invention. Furthermore, it is to be understood that the invention is solely defined by the appended claims. it will be understood by those within the art that, in general, terms used herein, and especially in the appended claims (e.g., bodies of the appended claims) are generally intended as “open” terms (e.g., the term “including” should be interpreted as “including but not limited to,” the term “having” should be interpreted as “having at least,” the term “includes” should be interpreted as “includes but is not limited to,” etc.). It will be further understood by those within the art that if a specific number of an introduced claim recitation is intended, such an intent will be explicitly recited in the claim, and in the absence of such recitation no such intent is present. For example, as an aid to understanding, the following appended claims may contain usage of the introductory phrases “at least one” and “one or more” to introduce claim recitations. However, the use of such phrases should not be construed to imply that the introduction of a claim recitation by the indefinite articles “a” or “an” limits any particular claim containing such introduced claim recitation to inventions containing only one such recitation, even when the same claim includes the introductory phrases “one or more” or “at least one” and indefinite articles such as “a” or “an” (e.g., “a” and/or “an” should typically be interpreted to mean “at least one” or “one or more”); the same holds true for the use of definite articles used to introduce claim recitations. In addition, even if a specific number of an introduced claim recitation is explicitly recited, those skilled in the art will recognize that such recitation should typically be interpreted to mean at least the recited number (e.g., the bare recitation of “two recitations,” without other modifiers, typically means at least two recitations, or two or more recitations).

Claims
  • 1. A method for use with multi-pole machines, said method comprising: detecting a first time at which a first pole passes a first stator position; detecting a second time at which a second pole passes the first stator position; determining an elapsed time between the first and the second times; recalling at least one historical elapsed time between the first and the second poles passing the first stator position; calculating an average time based on the elapsed time and the at least one historical elapsed time; and calculating a rotational quantity on the basis of the average time.
  • 2. The method of claim 1, wherein calculating a rotational quantity on the basis of the average comprises: multiplying the average time by a number of poles.
  • 3. The method of claim 1, wherein the rotational quantity comprises at least one of an angular velocity and an angular acceleration.
  • 4. The method of claim 3 wherein the angular velocity comprises at least one of radians per unit time, degrees per unit time, and revolutions per unit time.
  • 5. The method of claim 3 wherein the angular acceleration comprises: radians per unit time2, degrees per unit time2, and revolutions per unit time2.
  • 6. The method of claim 1 wherein said detecting a first time at which a first pole passes a first stator position comprises: starting a count upon detection of a first polarity pole by a first sensor held stationary relative to the stator.
  • 7. The method of claim 6 wherein said detecting a second time at which a second pole passes the first stator position comprises: stopping a count upon detection of a second polarity pole by the first sensor held stationary relative to the stator.
  • 8. The method of claim 1 wherein said recalling at least one historical elapsed time between the first and the second poles passing the first stator position comprises: recalling a number of historical elapsed times between the first and the second poles passing the first stator position sufficient to constitute at least a part of one mechanical rotation of a rotor.
  • 9. The method of claim 1 further comprising: controlling an electric motor responsive to the rotational quantity.
  • 10. A multi-pole machine system, said system comprising: means for detecting a first time at which a first pole passes a first stator position and a second time at which a second pole passes the first stator position; means for determining an elapsed time between the first and the second times; means for recalling at least one historical elapsed time between the first and the second poles passing the first stator position; means for calculating an average time based on the elapsed time and the at least one historical elapsed time; and means for calculating a rotational quantity on the basis of the average time.
  • 11. The system of claim 10, wherein said means for calculating a rotational quantity on the basis of the average comprises: means for multiplying the average time by a number of poles.
  • 12. The system of claim 10, wherein the rotational quantity comprises revolutions per unit time.
  • 13. The system of claim 10 wherein said means for detecting a first time at which a first pole passes a first stator position and a second time at which a second pole passes the first stator position comprises: means for starting a count upon detection of a first polarity pole by a first sensor held stationary relative to the stator.
  • 14. The system of claim 10 wherein said means for detecting a first time at which a first pole passes a first stator position and a second time at which a second pole passes the first stator position comprises: means for stopping a count upon detection, by a first sensor held stationary relative to the stator, of a second polarity pole.
  • 15. The system of claim 10 wherein said means for recalling at least one historical elapsed time between the first and the second poles passing the first stator position comprises: means for recalling a number of historical elapsed times between the first and the second poles passing the first stator position sufficient to constitute at least a part of one mechanical rotation of a rotor.
  • 16. The system of claim 10 further comprising: means for controlling an electric motor responsive to the rotational quantity.
  • 17. The system of claim 16 further comprising: an electric motor operably coupled to said means for controlling the electric motor; and at least one of an automobile, a locomotive, an aircraft, and a watercraft operably coupled to said electric motor.
  • 18. An apparatus having a capability of determining a speed of a multi-pole, the apparatus comprising: at least one magnetic pole position sensor positioned to detect a passing of each pole and configured to provide a pulse in a pulsed signal in response to each passing of each pole; and a controller for measuring a time between a rising edge of one pulse and a rising edge of a next pulse in the pulsed signal and storing a total time in one revolution of a motor, the controller comprising a buffer for storing substantially all time values measured from pulse to pulse.
  • 19. The apparatus of claim 18 wherein the controller is further comprised of a timer for measuring the time between the rising edges of one pulse and the next pulse.
  • 20. The apparatus of claim 19 wherein the controller further comprises an overflow counter for extending the size of the timer.
  • 21. The apparatus of claim 18 further comprising a buffer for storing all time values measured from pulse to pulse in the pulsed signal, wherein each time value measured is equivalent to the value of the counter multiplied by the extended value of the timer plus the value of the timer capture by an interrupt.
  • 22. The apparatus of claim 18 wherein a sum total of all time values measured and stored in a buffer is substantially equivalent to a time to complete one revolution of the machine
  • 23. The apparatus of claim 22 further comprising means for calculating a moving average speed measurement of the motor by inverting the sum total of all time values measured and multiplying a result of the inverting by a number of ticks of a timer over a prescribed period of time, thereby providing a motor frequency.
  • 24. The apparatus of claim 18 further comprising: an electric motor operably coupled to said controller and said at least one magnetic pole sensor; and at least one of an automobile, a locomotive, an aircraft, and a watercraft operably coupled to said electric motor.
CROSS REFERENCE TO RELATED APPLICATIONS

This application claims the benefit under 35 U.S.C. § 119(e) of the U.S. Provisional Patent Application No. 60/319,066 filed 16 Jan. 2002, entitled Method And Apparatus For Improving Speed Measurement Quality In Multi-Pole Machines, such application hereby incorporated by reference in its entirety.

Provisional Applications (1)
Number Date Country
60319066 Jan 2002 US
Continuations (1)
Number Date Country
Parent 10334198 Dec 2002 US
Child 11699748 Jan 2007 US