The technical field of the invention is pulse width modulation for generating an electrical control signal, e.g. for the attention of a power circuit, in particular a motor.
Pulse width modulation, often referred to by the abbreviation PWM, consists in generating square pulses in a duty cycle for forming a control signal, making it possible, for example, to control a power circuit. The power circuit may be a synchronous or an asynchronous motor. It generally comprises an inductive low-pass filter, so that the modulation of the duty cycle, after filtering, allows the formation of a continuous signal, the amplitude of which depends on the duty cycle. Thus, a variable frequency and amplitude signal is obtained.
Pulse width modulation is commonly used for controlling voltage inverters intended for controlling three-phase motors. Most PWM pulse generators generate pulses at a set frequency, the duty cycle of the pulses being determined according to the value of a reference signal, so as to obtain the desired control signal. When the reference signal is a periodic signal, the pulse frequency is markedly higher than the frequency of the reference signal, so as to obtain a control signal, representative of the reference signal, formed by averaging the value of the pulses over a few periods.
EP0336019 describes a multilevel pulse width modulation method, according to which the pulse formed may take three discrete voltage levels according to the reference signal. This results in the formation of a pulse control signal switching between the different levels, according to a frequency, known as a chopping frequency, set and determined arbitrarily, the duty cycle between the different levels being modulated. The chopping frequency corresponds, for example, to the frequency between two rising edges or two falling edges of the formed control signal. This poses a difficulty, since the chopping frequency is generally dimensioned according to conservative assumptions, which leads to a high number of switchings.
Another drawback is that the switching instants are not controlled and are only determined by a comparison between the reference signal and a wave, referred to as a triangular carrier wave. These switching instants are not optimized.
Another difficulty is that the duration of a pulse, i.e. the duration in which the control signal takes the same value, is random. In particular, the duration of a pulse may be very short, which is not optimal. Indeed, the transition between two voltage levels is not immediate. When the duration of a pulse is too short, the duration of transition becomes significant with respect to the duration of the pulse, which leads to significant losses of transmitted energy. Indeed, each switching leads to a loss of energy. The more numerous and close to each other the switchings are, the greater the dissipated power, while having little effect on the quality of the filtered control signal.
The inventors have provided a modulation method overcoming these difficulties. They provide a method for improving the quality of modulation, so as to form a control signal which, after applying a low-pass filter, is more representative of the reference signal, while optimizing the number of switchings, thus reducing energy losses. Moreover, another advantage of the method is an implementation that is inexpensive in memory, in particular for periodic signals.
A first object of the invention is a method for generating a control signal by pulse modulation according to a reference signal, the method comprising forming successive modulation sequences, each sequence comprising a transition between a low state and a high state or vice versa, the method comprising the following iterations, each iteration being associated with a current instant:
d) may comprise taking into account a minimum duration, and:
In d), the additional duration may be calculated according to an integral of the reference signal during the sequence duration and the high level taken into account in c). The additional duration may be calculated so that the integral of the reference signal, reduced by the low level, during the sequence duration, is equal, within a predetermined tolerance, to the product of the high level, reduced by the low level, by the high state duration.
The method may comprise:
The preceding sequence may be adjusted so that:
The stopping instant may correspond:
According to an embodiment, in b), the defined sequence comprises only one high state and only one low state.
According to an embodiment, in c), determining the high level and the low level is performed according to predetermined values, and according to the reference signal during the duration of the pulse.
Another object of the invention is a device for generating a control signal, according to a reference signal, the device comprising a processor capable of implementing a) to e) of a method according to the first object of the invention, according to the reference signal.
Other advantages and features will become more apparent from the following description of particular embodiments of the invention, given by way of non-restrictive examples and represented in the figures listed below.
Switching between a low state and a high state forms a transition. Such a transition is considered fast enough to be neglected. Thus, in the course of each modulation sequence, the control signal essentially oscillates between two discrete values, respectively corresponding to the high and low levels. The term essentially refers to the transitions approximately between the high state and a low state or vice versa.
According to one variant, there are only two levels, independent of the current instant, and common to each sequence: a low level, e.g. corresponding to a zero voltage, and a high level corresponding to the height of each high state. Sometimes, the modulation is of a multilevel type, the number and the value of the levels corresponding to predetermined data. An example of three-level modulation is given in EP0336019.
The main steps of the embodiment shown diagrammatically in
Step 100: taking account of a reference signal Sref. The reference signal Sref corresponds to the signal with respect to which the modulation is performed. This involves an input datum of the method.
Step 110: calculating a time derivative of the reference signal at the current instant ti, or at an instant sufficiently close to the current instant so that the time derivative may be associated with the modulation sequence M(ti) corresponding to the current instant. Since the reference signal is generally sampled over time, the derivative S′ref(ti) corresponds to a rate of change, i.e. a difference of the reference signal between two instants, e.g. the instant ti
Step 120: determining the sign of the derivative of the reference signal S′ref(ti) at the current instant ti. An important aspect of the method is that each modulation sequence M(ti), associated with a current instant ti, depends on the sign of the derivative of the reference signal S′ref(ti) at the current instant ti.
When the derivative S′ref(ti) is positive, the modulation sequence M(ti) associated with a current instant ti is a first modulation sequence, comprising:
The low state extends between the start of the sequence and the high state, the latter extending up to the end of the sequence; the duration T(ti) of the sequence is such that:
T(ti)=Tlow(ti)+Thigh(ti) (1).
When the derivative S′ref(ti) is negative, the modulation sequence M(ti) associated with a current instant ti is a second modulation sequence, comprising:
The high state extends between the start of the sequence M(ti) and the low state, the latter extending up to the end of the sequence; the duration of the sequence T(ti) is such that:
T(ti)=Thigh(ti)+Tlow(ti) (1′).
Whatever the sequence M(ti) taken into account, the high level high(ti) and the low level low(ti) are constant during the sequence, and determined according to previously defined values. They are defined, in each sequence, by considering the evolution of the reference signal Sref during the duration of the sequence T(ti). The device may comprise a calculation module, taking the discrete voltage levels into account. The levels high(ti) and low(ti) may, for example, be determined by calculating an average value
Steps 131, 141, 151, 161, 171 and 181 are now described, aimed at parameterizing the first sequence, corresponding to a positive derivative of the reference signal.
Step 131: Taking into account a minimum duration. According to this step, a minimum duration Tmin(ti) is taken into account, associated with the current instant ti; the duration of the high state is set to this minimum duration: Thigh(ti)=Tmin(ti). In this example, the minimum duration Tmin(ti) is common to each current instant ti, so that for each of these instants, Tmin(ti)=Tmin. According to other examples, the minimum duration Tmin(ti) may be modulated according to the value of the reference signal Sref(ti) or other parameters, e.g. a comparison between the high and low levels of the preceding sequence M(ti-1) and the current sequence M(ti). Generally, the minimum duration Tmin(ti) is greater than or equal to 5 μs or 10 μs. Taking into account a minimum duration prevents constituting a high state with too short a duration.
Step 141: Determining an additional duration Tcomp(ti) which, added to the minimum duration Tmin, forms the duration T(ti) of the sequence. In this case, the additional duration Tcomp(ti) corresponds to the duration of the low state Tlow(ti). The level high(ti) of the high state being set, the duration of the low state is determined so that the amplitude of the high state, reduced by the low level low(ti), integrated according to the duration Tmin, corresponds to the integral of the reference signal Sref, also reduced by the low level low(ti), during the duration T(ti) of the modulation sequence M(ti).
This may be expressed by the following equations:
∫t
Given that T(ti)=Tmin+Tcomp(ti)=Tmin+Tlow(ti) (3)
since Thigh(ti)=Tmin
These equations form a two-equation system, the input data for which are high(ti), low(ti) and Tmin and the unknowns of which are the durations T(ti) and Tlow(ti).
Equation (2) expresses another feature of the embodiment: in each modulation sequence M(ti), the integral of the control signal during the high state, above the low level low(ti), corresponds to the integral of the reference signal Sref, above the low level low(ti). The integral of the control signal, during the modulation sequence, then corresponds to the integral of the reference signal.
Step 151: Validating the modulation sequence M(ti). The sequence is validated if Tcomp(ti)≥Tmin, i.e. if Tlow(ti)≥Tmin. The method then proceeds to step 171. Otherwise, the modulation sequence is invalidated and parameterized according to step 161.
Step 161: re-parameterizing the modulation sequence. In the course of this step, the sequence is parameterized so that the duration of the low state Tlow(ti) is set to the minimum duration Tmin. It is then necessary to determine an additional duration Tcomp(ti), as defined in step 131, here corresponding to the duration Thigh(ti) of the high state. The latter is calculated so that the integral of the high state, above the low level low(ti), corresponds to the integral of the reference signal Sref, above the low level, during the sequence. See
∫t
and T(ti)=Tmin+Tcomp(ti)=Tmin+Thigh(ti) (5).
These equations form a two-equation system, the input data for which are high(ti), low(ti) and Tmin and the unknowns of which are the durations T(ti) and Thigh(ti).
Step 171: Detecting a stopping instant. The modulation sequence being parameterized, either following step 141, or following step 161, step 171 comprises detecting, in the course of the duration T(ti) of the sequence, a particular instant ta, called stopping instant, corresponding to at least one of the following conditions:
When the sequence M(ti) does not comprise a stopping instant (ta∉M(ti)), it is validated and proceeds to the reiteration step 190. When such a stopping instant ta is detected, the current sequence M(ti) is invalidated and step 181 is activated.
Step 181: correcting a preceding modulation sequence. In this step, following the invalidation of the current sequence M(ti), the modulation sequence M(ti-1), parameterized at the modulation instant ti-1, preceding the current instant ti, is modified, so that it extends up to the stopping instant ta, and it is such that the integral of the high state high(ti-1) reduced by the low level tow(ti-1), corresponds to the integral of the reference signal Sref, reduced by the low level low(ti-1), between the instant ti-1 and the stopping instant ta.
Since there has not been any sign change of the derivative of the reference signal until the stopping instant, the preceding sequence M(ti-1) is a first sequence, in the sense that it comprises a low state followed by a high state. As can be seen in
∫t
and T(ti-1)=ta-(ti-1)=Tlow(ti-1)+Thigh(ti-1) (7)
Such a correction is only applied for the iterations following the first iteration (i=1), for which there is no preceding iteration. It is further noted that such a correction makes it possible to meet the condition Thigh(ti-1)≥Tmin and Tlow(ti-1)≥Tmin.
Steps 132, 142, 152, 162, 172 and 182 are now described aimed at parameterizing the second sequence. Reference is made to
Step 132: Taking into account a minimum duration. According to this step, a minimum duration Tmin(ti) is taken into account, associated with the current instant ti; the duration of the low state is set to this minimum duration: Tlow(ti)=Tmin(ti). In this example, as seen in connection with step 131, the minimum duration Tmin(ti) is common to each current instant ti, so that for each of these instants, Tmin(ti)=Tmin.
Step 142: Determining an additional duration Tcomp(ti), as defined in step 141, and here corresponding to the duration Thigh(ti) of the high state. The high level high(ti) of the high state being set, the duration Thigh(ti) of the high state is determined so that the amplitude of the high state, reduced by the low level low(ti), integrated according to the duration Thigh corresponds to the integral of the reference signal Sref, also reduced by the low level low(ti), during the duration T(ti) of the modulation sequence M(ti).
This may be expressed by the following equations:
∫t
Given that T(ti)=Tmin+Tcomp(ti)=Tmin+Thigh(ti) (9)
since Tlow(ti)=Tmin
These equations form a two-equation system, the input data for which are high(ti),low(ti) and Tmin and the unknowns of which are the durations T(ti) and Thigh(ti).
Equation (8) expresses the fact that in each sequence, the integral of the high state, above the low level low(ti), corresponds to the integral of the reference signal Sref, above the low level low(ti). The integral of the control signal, during the modulation sequence, then corresponds to the integral of the reference signal.
Step 152: Validating the sequence. The sequence is validated if the additional duration Tcomp(ti) is greater than or equal to the minimum duration Tmin:Thigh(ti)≥Tmin. The method then proceeds to step 172. Otherwise, the sequence is invalidated and parameterized according to step 162.
Step 162: re-parameterizing the modulation sequence. In the course of this step, shown diagrammatically in
∫t
and T(ti)=TminTcomp(ti)=TminTlow(ti) (11).
These equations form a two-equation system, the input data for which are high(ti), low(ti) and Tmin and the unknowns of which are the durations T (ti) and Tlow(ti).
Step 172: Detecting a stopping instant. The modulation sequence being parameterized, either following step 142, or following step 162, step 172 comprises detecting, in the course of the duration T (ti) of the sequence, a particular instant ta, as defined in step 171.
When such a stopping instant ta is detected, the current sequence M(ti) is invalidated and step 182 is activated. In the absence of detecting a stopping instant, the method proceeds to step 190.
Step 182: Correcting the preceding modulation sequence. This step is represented in
Since there has not been any sign change of the derivative of the reference signal until the stopping instant, the preceding sequence M(ti-1) is a second sequence, in the sense that it comprises a high state followed by a low state. The low state is then extended until the stopping instant, and the duration of the high state is such that:
∫t
and T(ti-1)=ta(ti-1)=Thigh(ti-1)+Tlow(ti-1) (13)
Such a correction is only applied for the iterations following the first iteration (i=1), for which there is no preceding iteration. It is further noted that such a correction makes it possible to meet the condition Tlow(ti-1)≥Tmin and Thigh(ti-1)≥Tmin.
Step 190: reiterating the current instant ti. The current instant is incremented so as to correspond to the end of the resulting sequence, as in the cases of step 141, or step 161, or step 181, or step 142, or step 162, or step 182. Thus, in the absence any stopping instant detected in the course of the iteration corresponding to the current instant ti, ti+1=ti+T(ti).
When a stopping instant ta has been detected in the course of the iteration corresponding to the current instant ti, the following iteration starts at the stopping instant: ti+1=ta
Steps 110 to 190 are reiterated until a stopping criterion is reached, e.g. a number of predetermined iterations or reaching a maximum instant. The control signal Sc is gradually formed by the set of sequences M(ti) respectively formed at each iteration.
The method described above offers the following advantages:
Coupling with Hall effect sensors, arranged in the motor, makes it possible to use the information resulting from the Hall effect sensors for synchronization purposes. Indeed, a Hall effect sensor can generate a signal relating to an orientation, the generated signal having two transitions in each period. Each transition makes it possible to form a piece of angular information as to the position of the rotor with respect to the stator, allowing the synchronization of the control signal.
The inventors have carried out simulations to highlight some advantages of the invention. These simulations are presented below, in connection with
By comparing
A low-pass filter has been applied to the control signals Sc1 and Sc2 respectively represented in
n being an integer designating each sample taken into account for calculating the mean.
The invention may be applied to the electrical power supply of power systems, e.g. motors, or the exchange of energy with the electricity network. It may notably be applied on electric vehicles, such as cars or bicycles or stationary storage systems.
Number | Date | Country | Kind |
---|---|---|---|
17 63276 | Dec 2017 | FR | national |
Number | Name | Date | Kind |
---|---|---|---|
4348734 | Dougherty | Sep 1982 | A |
4683409 | Boillat | Jul 1987 | A |
5734152 | Goren | Mar 1998 | A |
20110133682 | Egger | Jun 2011 | A1 |
20170074168 | Chai et al. | Mar 2017 | A1 |
Number | Date | Country |
---|---|---|
0 745 951 | Dec 1996 | EP |
2 080 060 | Jan 1982 | GB |
Entry |
---|
Wikipedia, Pulse-Width Modulation, Apr. 2009, Wikimedia Foundation, Inc, pp. 1-10 (Year: 2009). |
French Preliminary Search Report dated Nov. 9, 2018 in French Application 17 63276 filed on Dec. 27, 2017 (with English Translation of Categories of Cited Documents and Written Opinion). |
Number | Date | Country | |
---|---|---|---|
20190199266 A1 | Jun 2019 | US |