A METHOD OF CONTROLLING AN ELECTRIC MOTOR, A SYSTEM FOR CONTROLLING AN ELECTRIC MOTOR AND AN ELECTRIC MOTOR

Abstract: A system of controlling an electric motor, a digital method of controlling an electric motor and an electric motor are described. The system of controlling an electric motor of N phases comprises a microcontroller (10), an A/C converter (30) associated to the microcontroller (30), a set of voltage meters (DN) associated to the A/D converter (30), a set of switches (SW2N) connected to an electric voltage (VBARR) and associated to the microcontroller (30), the microcontroller (30) selectively feeding, by means of at least two switches (SW2N) two phases (FN) of the motor (20) with the voltage (VBARR) during a period of time (TPOS), the movement of the motor inducing the electric voltages (EN), the set of meters (DN) measuring the signals of electric voltages (fN) and comparing these voltages with each other to determine the period of time (TPOS). One describes also the calculation of a parameter, called H (r), used to adjust the instants of commutation according to the constructive type of the motor. The parameter depends upon the rotation of the motor. One also foresees the use of a digital filtering technique, to eliminate the effects of the modulation on the control method. The filtering is characterized by the arithmetic mean of the last k samples of each average electric voltage (fN), these samples being synchronized with the period of modulation.

Description: Title:"A METHOD OF CONTROLLING AN ELECTRIC MOTOR, A SYSTEM FOR CONTROLLING AN ELECTRIC MOTOR AND AN ELECTRIC MOTOR" The present invention relates to a system for controlling an electric motor of a digital control method for an electric motor, particularly for a Brushless-DC-type, permanent-magnet motor, as well as to an electric motor provided with a digital control system. Description of the Prior Art A Brushless DC type permanent-magnet motor may be actuated without any information referring to its position, thus operating like an induction motor. However, in order to achieve maximum torque and efficiency, the phase currents have to be synchronized with the induced voltages. This can be done either by means of sensors physically coupled to the motor, as for example Hall type, optic sensors, etc., or by observing the induced voltages and/or currents. Coupled sensors have the drawback of adding extra elements to the design of the motor, considerably increasing the final cost. In addition, space limitations and the environment itself to which the motor is subjected may render the use of these types of sensor unfeasible. So, the use of voltage and/or current observers is the best choice in most cases. Examples of control techniques using voltage and/or current observers may be found in Brazilian patent Pi 9904253 - SCHWARZ et al, in patents US 4,162,435 - WRIGHT, US 4,169.990 - LERDMAN, US 4,743,815 - GEE et al, US 4,912,378 - VUKOSAVIC, US 4,928,043 - PLUNKETT, US 5,028,852 - DUNFIELD, and US 5,420,492 - SOOD, and also in publications of SATOSHI - 1991 , SHOUSE - 1998, ERTUGRUL - 1998 and BOLOGNANI - 1999. In WRIGHT one uses an integration technique for determining the moment of commutation. The non-energized winding is integrated, whereby one obtains the magnetic flux, which is compared with a reference value. When the value of the integral exceeds the reference value, commutation is effected, and the value of the integral returns to its initial value. A disadvantage of this technique is the large amount of hardware required for implementing it. The solution is not microprocessed. In LERDMAN, one uses a technique similar to that presented in WRIGHT. The non-energized winding is integrated and compared with a reference. A disadvantage of this technique is also the large amount of hardware required. The solution is not microprocessed. In SWARZ one employs a technique using a voltage-value observer constituted by a network, formed by voltage comparators, capacitors and resistors. With this observer one takes the phase voltages, thus forming a virtual neutral (zero of induced voltage), if the system is balanced. The zero is then compared with each phase, generating a signal that is 30° in advance of the current instant of position change. This advance is then compensated for by a network of capacitors, in order to reach the correct instants of position change (commutation). The solution is microprocessed, but it requires many external components. In GEE one employs a technique of detecting the zero of the induced voltage (zero crossing), wherein one considers a zero the half of the value of the voltage of the DC bar. The voltage in the non-energized winding is compared with the zero. The zero is always reached at 30° from the moment of commutation. In this way, a delay is left after detection to determine the moment of commutation. A cycle formed by resistors, capacitors and comparators is used in the detection process. There is no modulation on the motor speed control. Instead, one used a SCR that controls the voltage of the bus. The solution is microprocessed. A disadvantage of this technique is the need for using voltage comparators. Another disadvantage is that in motors having a reduced number of grooves at the stator (for example 6 grooves + 4-pole rotor, 9 grooves + 6-pole rotor), the zero crossing has a plane region that makes it difficult to determine the exact moment at which it should occur. In SATOSHI one also employs a zero-detecting method. In this case, two diodes are used for detection. One diode is connected to each phase. When one phase is not energized, the current of the diode is monitored. The moment at which the current of the diode extinguishes or the moment at which the current begins to circulate through the diode represents the zero of the voltage. In VUKOSAVIC, the third voltage harmonic of the motor is achieved by means of the sum of the voltages of the phases. The moment of commutation is then determined as a function of the phase angle of the third harmonic. A vantage here is that the signal of the third harmonic does not undergo any distortion in the event of modulation of the voltage on the motor. A disadvantage is the need for accessing the neuter point of the star connection of the motor. The solution is microprocessed, but another disadvantage is the large amount of hardware outside the microprocessor required. In PLUNIETT, just as in WRIGHT and LERDMAN, one makes the integration of the non-energized phase voltage. The value of this integration, which represents the magnetic flux, is compared with a reference value called Null Point. This point delimits the voltage signal (zero of the voltage). If, for instance, the non-energized phase is on the rise (towards the bus voltage), then the voltage values at the left of the Null Point are considered negative and those at the right they will be positive. In this case, when the process of integrating the voltage is started, the voltage begins to rise negatively until it reaches it maximum negative value at the null point. After the null point, the value of the module of the integral begins to be reduced and the commutation moment occurs when the value of the integral reaches zero. The solution is not microprocessed. One disadvantage here is the large amount of hardware required. In DUNFIELD, high-frequency signals are injected into the non-energized phase and the resulting peaks are measured. On the basis of the measured values, one determines the moment of commutation. In SOOD, one uses a method that is quite different from those cited before. Here it is not necessary to ready the voltages in each phase. One merely uses the current that circulates through the DC bus as information. The motor is initially actuated by voltage imposition. The moment of commutation is then adjusted in accordance with the shape of the read current. A microprocessor is used to make the analysis of the current format. On the market there are also some microprocessors designed for controlling motors, which present peripherals intended for determining the instant of commutation. As examples, one can cite the microcontroller ST72141 from STMicroelectronics and the microcontrollers TMP88PH47, TMP88PH48, TMP88PH49 from Toshiba. All of these microcontrollers utilize the method of detecting the zero for determining the moment of commutation. In the microcontrollers from Toshiba, the zero is considered half of the value of the voltage of the DC bus, but it needs external comparators, resitors and capacitors for aiding in the detection. In the microcontroller from STMicroelectronics the zero is the reference itself of the digital circuit. It always needs the presence of modulation on the phases, because the reading of the voltage of the non-energized phase should be made when all the switches of the inverter are open. Only 3 resistors and 3 capacitors are required for aiding in the detection. Brief Description and Objectives of the Invention In the technique proposed here the voltages in the three phases of the motor are sampled, mathematically treated, summed to a parameter proportional to the velocity of the motor and basically dependent upon the form that constitutes this motor and compared with each other. The result of this comparison determines the moment of commutation of the phases. The moment of commutation may be advanced or delayed by merely changing said parameter via software. The whole part of position controlling and sensing is carried out solely by a Digital Signal Processor or an equivalent circuit, here defined as the assembly of Microcontroller associated to an analog-digital (A/D) converter. The control system and method of the present invention have the objective of eliminating the analog circuits for determining the position of the rotor and seeking the actuation of the motor with the correct angle between the current and the voltage imposed to the windings of this motor, permitting control of this angle by means of a parameter inserted into the software. Another objective of this invention is to enable one to detect the position of the rotor for quite high powers, even in situations in which the demagnetization ends after 30 electric degrees from the moment of the last commutation, that is to say, after the moment of zero crossing of the voltage in the non-actuated phase. The method and system also have the objective of embracing a wide range of rotation, permitting full torque from 2% of the maximum rotation (Below this value the voltages at the entrance of the meters are very low.). The system and method further have the objective of using only one digital signal processor and three resistive dividers with first-rate RC filters for reading the voltages in the phases of the motor, without necessarily requiring the presence of modulation, for example, PWM (pulse width modulation), of the voltage on the phases. Another objective of the proposed method and system is to accept trapezoidal forms of induced voltages with a level lower than 120°, which are found when different constructive forms of the motor are employed. Another objective of the proposed method and system is to accept PWM modulation in the phases of the motor with cyclic ratio of 100%. A further objective of the proposed method and system is to operate with the control technique by both voltage imposition and current imposition on the windings of the motor. One of the objectives of the present invention is achieved by means of a method of controlling permanent-magnet electric motor of N phases comprising a microcontroller, a set of voltage meters associated to the microconntroller, a set of switches connected to an electric voltage and associated to the microcontroller, the microcontroller selectively actuating at least one pair of switches, applying a voltage to at least two phases of the motor, the method comprising steps of the microcontroller reading, by means of the set of meters, the signals of the electric voltages corresponding to the feed voltages in the phases of the motor, and the microcontroller comparing the voltages of the phases with each other and with pre- established parameters and actuating at least one new pair of switches, as soon as the pre-established relationships are satisfied by the voltages. Another objective of the present invention is achieved by means of a system of controlling a permanent-magnet electric motor of N phases comprising a microcontroller, a set of switches connected to an electric voltage and associated to the microcontroller, the microcontroller selectively actuating at least one pair of switches, applying a voltage to at least two phases of the motor, the system comprising a set of voltage meters associated to the microcontroller, the set of meters being connected to the feed input of the phases of the motor. Thee microcontroller comprises, stored in its memory, pre-established relationships between the voltages and is capable of comparing the value measured by the meters with the pre-established relationships and actuating at least one more pair of switches in function of the voltages measured by the set. A further objective of the present invention is achieved by means of a permanent-magnet electric motor of N phases comprising a system capable of synchronizing the phase currents with the induced voltages, which includes a microcontroller, a set of switches connected to an electric voltage and associated to the microcontroller, the microcontroller selectively actuating at least one pair of switches, applying a voltage to at least one set of voltage meters associated to the microcontroller, the set of meters being connected to the feed inputs of the phases of the motor. The microcontroller comprises, stored in its memory, pre-established relationships between the voltages and is capable of comparing the value measured by the meters with the pre-established relationships and actuating at least one more pair of switches in function of the voltages measured by the set. A further objective of the present invention is achieved by means of a method of controlling the position of the rotor of a permanent-magnet electric motor of N phases, the motor being fed by a set of switches selectively commuted by a microcontroller, the method comprising the utilization of a parameter called H ( r) proportional to the constructive factors of the motor, proportional to the rotation of the motor and proportional to the scale factor of the voltage meters to be used as an adjustment factor in the process of comparing the phases to determine the moment of commutation to the maximum combination of switches of the motor. A further objective of the present invention is achieved by means of a method of controlling a permanent-magnet electric motor of N phases, the motor being fed by a set of switches selectively commuted by a microcontroller, the method comprising the utilization of a digital filtering technique for eliminating distortions caused by the voltage modulation, for example of the PWM type, in the phases of the motor. The filtering technique consists in the arithmetic mean of the last k samples of the voltages measured and being synchronized with the modulation frequency. The rate of sampling is equal to an integer multiple k of the modulation frequency. Brief Description of the Drawings The present invention will now be describes in greater detail with reference to an embodiment represented in the drawing. - Figure 1 represents (a) a block diagram of a system for actuating a permanent-magnet Brusshless DC type, 4-pole, three-phase motor with trapezoidal voltages of level 120 electric degrees and (b) the respective temporal diagram; - Figure 2 represents an overlapping of the induced voltages (EN) per phase, with trapezoidal shape and level of 120 electric degrees, and of the voltage at the common point (VCOMMON) of an ideal Brushless DC type permanent-magnet motor; - Figure 3 represents an overlapping of the voltages VN and of the voltage at the common point (Vcommon) of the motor indicated in Figure 1 , and in Figure 7 for the event that the induced voltages (EN) are trapezoidal with level of 120 electric degrees; - Figure 4 represents an overlapping of the induced voltages (EN) per phase, with trapezoidal shape and a level lower than 120 electric degrees, and of the voltage at the common point (VCOMMON) of a Brushless DC type motor; this Figure also identifies the obtention of the parameter H (r ); - Figure 5 represents an overlapping of the VN voltage and of the voltage at the common point (VCOMMON) indicated in Figure 1 and in Figure 7 for the event that the induced voltages (VN) are trapezoidal with a level lower than 120 electric degrees; - Figure 6 represents the command signal of the switches SW2N to each position, the voltages at the inputs of the phases of the motor (FN) and indicates the instants of commutation of position 2 to position 3 and from position 3 to position 4; - Figure 7 represents the system used in the present invention, formed by a rectifying unit (40), a rectifying filter (50), a set of switches SW2N connected between a potential VBARR and the ground GND, a permanent- magnet Brushless DC type electric motor (20), a set of voltages meters DN, a digital signal processor (10 + (30); - Figure 8 represents the command signal of the switches SW2N, the voltage on one of the phases of the motor FN, the voltage to be sampled fN, the voltage VN in the corresponding winding of the motor, and fNMEDIO (AVERAGEfN) result of the mathematical treatment of the samples, when a PWM actuation is used, further indicating the moments of sampling of the voltage fN, in accordance with the system of the present invention; - Figure 9 represents in a detail the moments of sampling of the voltage fN in one of the phases of the motor, as well as the fNMEDIO result of the mathematical treatment of the samples of voltage fN, for a system in which the PWM modulation is applied to the voltage on the phases of the motor; - Figure 10 represents (a) the experimental wave shapes for a motor with a concentrated windings 6-grooves stator - triphasic and with 4 poles, as well as (b) an enlargement showing the instant of sampling of the phase A and the mean obtained by the mathematical treatment of the samples. Detailed Description of the Figures Figure 1 (a) shows the basic configuration of an inverter and (b) the ideal wave shapes existing in the when actuating a Brushless DC type permanent-magnet three-phase 4-pole motor, trapezoidal wave. In normal functioning the control analyzes the input of the voltage and/or current observer and actuates the switches SW1 ,... SW6 in the sequence indicated in Figure 1 according to the position detected. In the event of an overcurrent, indicated by the current observer, the switches are all open for protection of the system. With reference to Figure 7, the control system of the present invention is totally carried out by a microcontroller (10), an A D converter provided with at least 3 inputs for reading the voltages (fN) in the meters (Dn) that correspond to the voltages in the phases (FN). Evidently, the microcontroller (10) may be replaced by an equivalent device that has the same characteristics as a microcontroller associated to peripherals or else a digital signal processor. Figure 2 shows the ideal overlapped wave shapes induced for a Brushless DC type three-phase 4-pole permanent-magnet motor, with trapezoidal voltage and level of 120 electric degrees. The level is defined here as being the angle in electric degrees at which the induced voltages remain at a higher value (positive level) or lower (negative level) and approximately constant. The following relationships between phase voltages for each step (position) of 60 electric degrees can be seen in this figure. Position 1 EA > Ec > EB Position 2 EA > EB > Ec Position 3 EB > EA > Ec Position 4 EB > Ec > EA Position 5 Ec > EB > EA Position 6 Ec > EA > EB Table 1 - Relationships between induced voltages in the motor In this way, one can see that each position presents a well defined relationship between the induced voltages in the phases of the motor. For example, in the case of the actual position being the position 1 , the position 2 should be started when the induced voltage in the phase C (Ec) equals the induced voltage in the phase B (EB) (see Figure 2) and this is lower than the induced voltage in phase A (EA). In the same way, the position 3 should be started when the induced voltage in phase B (EB) equals the induced voltage in phase A (EA) and this is higher than the induced voltage in phase C (Ec). With reference to figure 3 and Figure 7, one can observe, with respect to the ground of the circuit (GND), the voltages VA, VB and Vc with at the common point of the motor VCOMMON: (1) VA = EA + VCOMMON (2) VB = EB + VCOMMON (3) Vc = Ec + VCOMMON The voltage at the common point of the motor (VCOMMON) for the case of the trapezoidal voltage with level of 120 degrees is half the value of the bus voltage; (4) VCOMMON = VBARR/2. Thus, the voltages VA, VB and Vc are symmetrically disposed between the bus voltage (VBARR) and the ground (GND). If the variation of speed of the motor is effected by directly varying the bus voltage (VBARR), that is to say, without PWM modulation, and if the motor runs idle, these voltages will have the positive level value equal to the bus voltage (VBARR) and the negative level value equal to the ground value (GND) as illustrated in Figure 3. One can see in this figure that the relationships between the voltages VA, VB and Vc are equal to the relationships between the induced voltages EA, EB, Ec indicated in table 1. One can then write the following table. Position 1 VA > Vo VB Position 2 VA > VB > Vc Position 3 VB > VA > Vc Position 4 VB > Vc > VA Position 5 Vc > VB > VA Position 6 Vc > VA > VB Table 2 - Relationships between the voltages VN in the phases of the motor For a real system the obtention of induced voltages with a level of 120 degrees greatly restricts the project and construction of the motor. So, with reference to Figure 4, one considers a generic voltage wave shape (level lesser than 120 degrees). In this case, the relationships between the induced voltages, for each position, indicated in Table 2, continue to be true. Note, however, that for the case of level of 120 degrees, at the instant of commutation, characterized by equality of two phases, this equality occurs with both phases at either maximum (positive level) or minimum value (negative level). On the other hand, in the case of the a level lower than 120 degrees, the equality between any two phases (instant of commutation) always occurs at a voltage difference 2H of the positive or negative level. In figure 5, one can observe the voltages VA, VB and Vc for the case of a level lower than 120 degree. The relationships of Table 2 continue to be true in this situation. Note that the voltage at the common point of the motor (VCOMMON) does not remain fixed at the half of the bus voltage (VBARR/2) any longer. The reduced level causes an amplitude ripple H around this value (VBARR/2). This distortion in the voltage at the common point of the motor (VCOMOMON) causes the shape of the waves (VN) to be different from the shape of the induced voltages (EN) In this case, the equality between two of the voltages VN (instant of commutation) always occurs at a difference H of the positive or negative level and not 2H, as in the case of the induced voltages EN. For actuation of the motor, one cannot have simultaneous direct access to the N induced voltages EN. Therefore, a direct utilization of the relationships of Table 1 is not possible. In addition, in order to read these voltages, it would be necessary to have access to the common point of the motor, which makes the sensing circuit and also the project of the motor expensive. Even the voltages VN that are referenced to the ground (GND) cannot be simultaneously accessed, due to the inductances (LN) and resistances (RN) (see Figure 7) of the winding of the motor. Thus, the relationships of Table 2 cannot be directly applied either. The sensing point used in the present invention are the feed inputs of the phases of the motor (FN) (see Figure 7). In order to understand the sensing method using these inputs, Figure 6 should be observed. This figure illustrates the wave shapes at the inputs FN, obtained for the event that the level of the induced voltage of the motor is lower than 120 degree. On considers here the motor running idle and without modulation of the bus voltage (VBARR). Analyzing, as an example, the commutation from the position 2 to the position 3: when the motor is being actuated in the position 2, the switch SW1 connecting the input FA to the bus voltage VBARR, the switch SW6 connects the input Fc to the ground GND. The input FB is open. Therefore, there is no circulation of current in the resistance (RB) and in the inductance (LB) of this winding, and one has the voltage VB as the value of voltage at this input. Summing up, in the position 2, one has: FA = VBARR FB = VB Fc = 0 (GND) The instant of commutation to the position 3 should occur when the voltage VB equals the voltage VA. However, observing Figure 6, one can see that at the instant of commutation, VA is equal to VBARR - H (considering the motor virtually idle). In this way, one can write the following relationship to be satisfied at the moment of commutation from the position 2 to the position 3: Commutation 2 -^ 3: FB > FA - H > Fc It follows that in the position 3: FA = VA FB = VBARR Fc = O(GND). The instant of commutation to the position 4 should occur when the voltage VA equals voltage Vc. Observing Figure 6, one see that, at the instant of commutation Vc, GND+H is valid (considering the motor virtually idle). Thus, one can write the following relationship to be satisfied at the moment of commutation from the position 3 to the position 4: Commutation 3 -> 4 FB > Fc + H > FA Extending the same reasoning for the other commutations, one reaches the following table: Commutation 6 ^ 1 FA > Fc - H > FB Commutation 1 - 2 FA > FB + H Fc Commutation 2 -> 3 <=> FB > FA - H > Fc Commutation 3 - 4 FB > Fc + H > FA Commutation 4 - 5 <£> Fc > FB - H > FA Commutation 5 - ■ > 6 Fc > FA + H > FB Table 3 - Relationships between the voltages FN at the instants of commutation Comparing tables 2 and 3, one can see, as differences, the replacement of the voltages VN by the voltages FN and the inclusion of the parameter H. As the rotation of the motor varies, the amplitude of its induced voltages varies proportionally and, as a result, variation of the parameter H occurs. Therefore, once the parameter H is obtained for a rotation ro (H(ro), its value for a rotation r whatsoever can be obtained by the expression: (5) H( ro).H( ro) The obtention of the parameter H for a motor whatever may be made in a very simple way: a) imposing a rotation ro to the motor, while keeping all the switches SW2N off; b) reading the induced voltages EN; this is possible in this situation, since there will be no current through the resistances (RN) and inductances (LN) of the windings; c) reading the parameter H(ro) as being half the difference between the peak value of the induced voltages (EP) and the voltage E * that corresponds to the voltage at which the reduced voltage module in two phases equal each other (see Figure 4); (6) H(ro) = (EP - E*)/2 d) using the expression (5) to obtain H(r) for a rotation whatever r. Until now one has always considered the motor running idle. In the case of normal functioning of the motor, the presence of current in the wrindings causes the induced voltages EN and consequently the voltages VN to undergo a reduction of amplitude in the same rotation r. In this way, the maximum amplitudes of the voltages VN are lower than the bus voltage (VBARR) and their minimum amplitudes are higher than the ground (GND). Thus, the value of H(r) should be increased for compensating this variation of current. This increase should be proportional to the value of the current. If one does not wish to utilize the value of current in the control algorithm, one can add the multiplication by a constant factor ki > 1 , during the obtention of the parameter (H(r)) in the above-described step d for compensating the variations of current. The one obtains: (6) H(r) = (r/ro).H(r).Ki In this way, with the motor running idle, one has always the instant of commutation a little advanced with respect to the correct instant. As the current of the motor increases the instant of commutation delays. The value of Ki may be adjusted experimentally so as to guarantee the good functioning of the motor in the condition of maximum current. As an initial suggestion, one may use the value Ki = 1.3. If Ki is adjusted at a value lower than 1 , we have a reduction of the value H(r) and consequently there will be a delay in the instant of commutation. Therefore, besides being used for compensating for the increase of current, this constant may be used for enabling one to advance and delay the instant of commutation. In order to the sensing algorithm, it is necessary to take into account the scale factor of the acquisition system indicated in Figure 7. The meters DN present a scale factor KD given by (7) KD = R1/(R1 + R2) In this way, at the input of the A/D converter (30) one connects the voltages fN given by: (8) fN = KD.FN The parameter H( r) too should be echeloned by the factor KD. By adding the scale factor KD to the Table 3 and replacing H with H(r), one reaches the following table to be used in the control algorithm: Commutation 6 -> 1 fa > fc - KD.H( R) > fb Commutation 1 - 2 fa > fb + KD.H( r) > fc Commutation 2 -> 3 fb > fa - KD.H( r) > fc Commutation 3 -> 4 fb > fc + K(r ) > fa Commutation 4 -» 5 <s fc > fb - KD.H(r ) > fa Commutation 5 - 6 < £> fc > f a + KD.H > fb Table 4 - Relationships to be tested in the microcontroller for sensing position In the final application the variation of the rotation of the motor may be obtained by directly varying the voltage VBARR (see Figure 4), or by modulating the voltage applied to the motor by means of switches SW1 , SW2, ... SW6. For instance, in the case of the modulation being made by means of the switches SW1 , SW3 and SW5, the voltage in the phase A (and also in the remaining ones) will have the shape indicated in Figure 8. The filter R1C present in DN (see Figure 4) softens the voltage variations in this phase. In this way, one obtains a wave shape similar to fa indicted in Figure 6. Here, in order to make the comparisons between the voltages observed in each phase, according to Table 4, it is necessary to filter totally the modulation present in fa, fb and fc. For this purpose, one calculates the mean of the voltages in each modulation period (T). The sampling frequency used for measuring the voltage fN should be synchronized with the modulation frequency (F). In each modulation period, one always samples k values, equally spaced- apart, of each phase, that is to say, the sampling frequency is given by: (9) FS = k. F The sum of this k values divided by the number of samplings k represents the approximate average value of the voltage along the modulation period T. This operation is made at every sampling of the voltage fN, enabling one to obtain the average value of fNMEDIO (AVERAGEfN ), each cycle of sampling of the voltage fN, that is, at a frequency k times as high as the modulation period PWM of the voltage on the phases of the motor. In order to avoid the need for awaiting a complete period T to have the average value available, one has adopted the following procedure: at every sampling period TS = 1 FS, one adds the sampled value to the previous samples k-1 and divides the result by k. Speaking in a more simple way, the technique proposed for determining the value of fNMEDIO consists of the arithmetical mean of the last k samples. This technique brings about an optimum resolution in determining the correct moment of commutation for the motor, even for relatively low switching frequencies PWM. As an example, Figure 9 represents the enlargement of the detail indicated in Figure 8. In this example, one considers 5 samples per modulation period (k = 5). After the fifth sample of the modulation period n, one will have as average value: (11) faMEDIO 5 (n) = /a5(n) + fa4(n) + fe3 (n) + a2(n) + fa1(n) 5 Entering in the modulation period n+1, the maximum value of faMEDIO will be: (12) faMEDIO 1 (n+1) = fa1 (n+1) + a5(n) + fa4(n) + fa3 (n) + fa2 (n) 5 and then: (12) faMEDIO 2 (n+1) = fa2(n+1) + fa1(n+1) + fa5(n) + /a4(n) + fa3(n) 5 In this way, at every sampling period TS, one has the value of available. It is important to note that the cut frequency of the filter R1C should be lower than half the sampling frequency (Fc < Fs/2), thus respecting the Nyquist's criterion. As a good estimate one can use % of the sampling frequency of less. For the sampling frequency one can utilize, for example, 4*F or more, in order to have a good average. Hence, as a suggestion: (14) Fs <= 4.F (15) Fc <= 2.Fs In Figure 8, the dashed line indicates the average value faMEDIO obtained with the proposed technique. Note that the shape of faMEDIO in Figure 6 is the same of FA in Figure 6, where there is no modulation PWM of the voltage on the phase of the motor. It is then found that, with the proposed technique, the effect of the PWM modulation on the voltages of the phases is filtered virtually in its entirety, without presenting a significant disadvantage between the actual value of the mean and the calculated values, thus enabling one to use the relationships indicated in Table 4, where then the average values (see Table 5) for determining the increase of commutation of the motor. Commutation 6 -> 1 <=> faMEDIO > FcMEDIO - KD.H( R) > fbMEDIO Commutation 1 -> 2 faMEDIO > fbMEDIO + KD.H( r) > fcMEDIO Commutation 2 -^ 3 0 fbMEDIO > faMEDIO - KD.H( r) > fcMEDIO Commutation 3 - 4 fbMEDIO > fcMEDIO + K(r ) > faMEDIO Commutation 4 - 5 fcMEDIO > fbMEDIO - KD.H(r ) > faMEDIO Commutation 5 -^ 6 fcMEDIO > faMEDIO + KD.H > fbMEDIO Table 5 - Final table of comparisons to be used in the algorithm A strong point in the use of the filtering technique proposed for observing the induced voltages in the phases of the motor is that this process enables one to monitor the position of the rotor k times at every modulation period PWM of the voltage applied on the phases of the motor. Thus, even in the event of using a low modulation frequency (Ex. 1 KHz or less) one still achieved a good resolution during the sensing of the position of the rotor and of the adequate moment of commutation. As an example, consider Figure 10A. This figure shows the experimental results achieved in controlling a Brushless DC type 6-groove permanent-magnet motor - 4 poles, F being = 1.2KHz, Fc = 3.3KHz, Fs = 16*F = 19.2KHz. The rotation is 1500rpm. In Figure 10b one has the enlargement of 2 cycles of PWM, and the instants of sampling of fa are also indicated. As commented previously, although the modulation frequency is low, the mathematical filtering technique proposed here enables one to monitor the change of position 16 times at every period T. In this way, one has an excellent resolution in sensing the position. It is important to note that the amplitudes of the signals shown in Figure 10a are at different scales, serving only as a qualitative reference. With reference to Figure 10, the voltage peak observed in the phase A after the commutation 5 - and the absence of voltage after the commutation 2 -> 3 characterize the period of demagnetization of this phase. The demagnetization is the period required for the occurrence of extinction of the current circulating in a determined phase, after completion of the period of application of the current in this phase, that is to say, after the commutation from a position x to the next position x+1. The demagnetization causes a distortion in the wave shape of the voltage observed at the terminals of the motor. In order to prevent this distortion from affecting the sensing of the position, there is a certain delay period TD after each commutation, wherein the commutation between the voltages FN is not carried out. One advantage of the method of the present invention in comparison with the traditional method of detecting the zero of the induced voltages is that, in the method of detecting the zero, the demagnetization period cannot exceed 30 electric degrees, since in this case one cannot detect the zero the occurs exactly after 30 degrees. In the method of the present invention, the demagnetization may exceed 30 degrees without causing any problem at all in the sensing, and for this purpose it is enough to adjust the delay period TD conveniently. It is important to note that, both the filter R1C and the process of mathematical calculation of the mean cause a delay of the result. This delay, however, even if it is short and has little influence, can be compensated for by merely adjusting the parameter H(r). If the modulation PWM is 100%, the voltage VBARR will be continuous, and it is not necessary to carry out the sampling; in this particular case, it is possible to carry out the position sensing by simply observing the voltages in the phases and then comparing these values according to Table 4. The sampling rate in situations in which the sampling is less than 100%, should be adequate for guaranteeing a good resolution in the maximum rotation of the motor. At this rotation the electric frequency of the motor will be given by: (16) FEL = nj = 4500 . 2 = 150Hz 60 60 wherein: n = rotation of the motor in rpm; and p = number of pairs of poles. As each electric period presents 6 different positions, one will a minimum period per position for this motor of: (17) MINIMUMTPOS = 1 1.11ms 6 . 150Hz. Thus, a good value to be used for maintaining a good resolution at the maximum rotation is of 10 samplers per position. Then one achieves the following value for the sampling frequency: (18) Fs = 10 9.09kHz MINIMUMTPOS Evidently, the object of the present is applicable to motors of construction similar to that of permanent-magnet motors and that have any number whatever of poles and phases, it being necessary only to conform it to the particular application. A preferred embodiment having been described, it should be understood that the scope of the present invention embraces other possible variations, being limited only by the contents of the accompanying claims, which include the possible equivalents.

Claims: CLAIMS 1. A method of controlling an electric motor of n phases (FN) comprising: - a microcontroller (10); - a set of voltage meters (DN) associated to the microcontroller (10); - a set of switches (SW2N) connected to an electric voltage (VBARR), and associated to the microcontroller (10); - the microcontroller (10) selectively actuating at least one pair of switches (SW2N), applying a voltage (VBARR) to at least two phases (FN) of the motor (20), the method being characterized in that in comprises the following steps: - the microcontroller (10) reads, by means of the set of meters (DN), the signals of the electric voltages (fN) corresponding to the feed voltages in the phases (FN) of the motor (20), and - the microcontroller (10) compares the voltages (fN) corresponding to the voltages in the phases (FN) with pre-established parameters and actuates the switches (SW2N) as soon as the pre-established parameters are achieved by the voltages (fN). 2. A method according to claim 1 , characterized in that, prior to the step of reading the voltages (fN), the values are converted by an A/D converter (30). 3. A method according to claim 2, characterized in that, prior to the step of comparing the voltages (fN), one obtains an average value (fNMEDIO) by the mean of the values of (fN), obtained by period sampling (Ts), equally distributed within the time period (T). 4. A method according to claim 3, characterized in that the comparison step includes: - comparing the mean (fNMEDIO ) of the voltage values (fN) sampled in each meter (DN) with the mean of the voltage values (fNMEDIO) sampled in each of the other meters (DN), the average value (fNMEDIO) of one of the phases being summed subtracted from a parameter (H (r )) proportional to the rotation of the motor (20). 5. A method according to any one of claims 1 - 4, characterized in that: - the switches (SW2N) comprise switches (SW1) to (SW6) and the meter (DN) comprises meters (DA) to (DC), and the step of comparing the voltages (fN) corresponding to the voltages in the phases (FN); - a first combination of switches (SW1) and (SW4) is actuated when the average value of the voltage (faMEDIO) in the meter (DA) is higher or equal to the average value of the voltage (fcMEDIO) in the meter (DC) subtracted from the parameter (h ( r)), and the average value of the voltage (fcMEDIO) in the meter (DC) subtracted from the parameter (h (r )) is higher than the average value of voltage (fbMEDIO) in the meter (DB); - a second combination of switches (SW1) and (SW6) is actuated when the average value of the voltage (faMEDIO) in the meter (DA) is higher than the average value of the voltage (fbMEDIO) in the meter (DB) added to the parameter (h (r )), and the average value of the voltage (fbMEDIO) in the meter (DB) added to the parameter (h (r)) is higher or equal to the average value of the voltage (fcMEDIO) in the meter (Dc); - a third combination of switches (SW3) and (SW6) is actuated when the average value of the voltage (fbMEDIO) in the meter (DB) is higher or equal to the average value of the voltage (faMEDIO) in the meter (DA) subtracted from the parameter (h (r )), and the average value of the voltage (faMEDIO) in the meter (DA) subtracted from the parameter (h (r )) is higher than the average value of the voltage (fcMEDIO) in the meter (Dc); - a fourth combination of switches (SW2) and (SW3) is actuated when the average value of the voltage (fbMEDIO) in the meter (DB) is higher than the average value of the voltage (fcMEDIO) in the meter (Dc) added to the parameter (h( r)), and the average value of the voltage (fcMEDIO) in the meter (Dc) added to the parameter (h(r)) is higher or equal to the average value of the voltage (faMEDIO) in the meter (DA); - a fifth combination of switches (SW2) and (SW5) is actuated when the average value of the voltage (fcMEDIO) in the meter (Dc) is higher or equal to the average value of the voltage (fbMEDIO) in the meter (DB) subtracted from the parameter (h(r )), and the average value of the voltage (fbMEDIO) in the meter (DB) subtracted from the parameter (h(r)) is higher than the average value of the voltage (faMEDIO) in the meter (DA); - a sixth combination of switches (SW4) and (SW5) is actuated when the average value of the voltage (fcMEDIO) in the meter (Dc) is higher than the average value of the voltage (faMEDIO) in the meter (DA) added to the parameter (h(r)), and the average value of the voltage (faMEDIO) in the meter (DA) added to the parameter (h(r)) is higher or equal to the average value of the voltage (fbMEDIO) in the meter (DB). 6. A method according to claim 5, characterized in that, when the combinations of switches (SW1) to (SW6) are actuated, the parameter (h(r )) is the result of the multiplication of the parameter (H(r )) by a scale factor (KD). 7. A method according to claim 6, characterized in that the step of comparing the mean (fNMEDIO) of the values of voltages (fN) sampled in each meter (DN) with the mean of the values of voltages (fNMEDIO) sampled in each of the other meters (DN) is carried out at each cycle of sampling (Ts) of the voltages (fN) in the meters (DN). 8. A method according to claim 7, characterized in that the sampling of the voltages (fN) in the meters (DN) corresponds to the voltage in the phases of the motor (FN) is carried out k times within the period of time T. 9. A method according to claim 8, characterized in that the period of time T is equal to the period of modulation PWM in the phases of the motor when this modulation PWM is applied. 10. A method according to claim 9, characterized in that the average value (fNMEDIO) of the voltage sampled in each of the meters (DN) of voltage (fN) of the phases of the motor is obtained by calculating the arithmetic mean of the last k samples. 11. A method according to claim 10, characterized in that the value (H(ro)) is the result of haft the difference between the maximum value of an induced voltage (Ep) observed in a phase, at a given rotation (ro) of the motor (20), and a voltage (E * ) observed in two phases, when these values of induced voltage (EN) in the two phases are equal to each other. 12. A method according to claim 11 , characterized in that the parameter (H(r )) to be added or subtracted from the average value (fNMEDIO) of the voltage sampled in the meter (DN) of voltage of one of the phases is equal to the ratio between a rotation whatever (r ) and the rotation (ro) multiplied by the value (H (ro) ) measured in the rotation (ro) and multiplied by the adjustment constant (ki). 13. A method according to claim 12, characterized in that the use of the parameter (H( r) is proportional to the rotation (r ) to dephase the instant of actuation of a new combination of switches (SW2N). 14. A system for controlling an electric motor of N phases comprising: - a microcontroller (10), a set of switches (SW2N) connected to an electric voltage (VBARR), and associated to the microcontroller (10); - the microcontroller (10) selectively actuating at least one pair of switches (SW2N), applying a voltage (VBARR) to at least two phases (FN) of the motor (20), the system being characterized in that: - it comprises a set of voltage meters (DN) associated to the microcontroller (10), the set of miters (DN) being connected to the feed inlets of the phases (FN) of the motor (20); - the microcontroller (10) comprises, stored in its memory, pre-established relations between the voltages (fN), and being capable of comparing the value measured by the meters (DN) with the pre-established relations of the voltages (fN) measured by the set (DN). 15. A system according to claim 14, characterized in that an A/D converter (30) is associated to the microcontroller (10) to convert the signals read by the set of meters (DN). 16. A system according to claim 14 or 15, characterized in that the set of meters (DN) comprises a resistive divider associated to a capacitor, so as to form a RC filter presenting a scale factor (KD) of relationship between the voltage (fN) and the voltage in the phase (FN). 17. A system according to claim 16, characterized in that a microcontroller (10) reads the value of the voltage (fN) by means of a sampling frequency (Ts) k times as high as the modulation frequency PWM. 18. An electric motor (20) of N phases characterized by comprising a system capable of synchronizing the phase currents with the induced voltages, which includes a microcontroller (10), a set of switches (SW2N) connected to a voltage (VBARR) and associated to the microcontroler (10), - the microcontroler (10) selectively actuating at least one pair of switches (SW2N), applying a voltage (VBARR) to at least two phases (FN) of the motor (20), comprising a set of voltage meters (DN) associated to the microcontroller (10), the set of meters (DN) being connected to the feed inlets of the phases (FN) of the motor (20). the microcontroler (10) comprising, stored in its memory, pre-established relationships between the voltages (fN) and being capable of comparing the value measured by the meters (DN) with the pre-established relations and actuating at least one more pair of switches (SW2N) in function of the relation of the voltages (fN) measured by the set (DN).

Inventors: ANDRICH ROBERTO, SCHWARZ MARCOS GUILHERME, ANDRICH, ROBERTO, SCHWARZ, MARCOS, GUILHERME
Applicants: ANDRICH ROBERTO, BRASIL COMPRESSORES SA, SCHWARZ MARCOS GUILHERME, ANDRICH, ROBERTO, EMPRESA BRASILEIRA DE COMPRESSORES S.A. EMBRACO, SCHWARZ, MARCOS, GUILHERME
Application year: 2001
Main classification: H02P6
IPC codes: H02P6