The invention concerns a method for detecting stalling of an electric stepper motor, an electric stepper motor and a heating, ventilation and/or air conditioning system.
In heating, ventilation and/or air conditioning systems (HVAC systems) for a vehicle flaps are used to control and guide an air stream through the HVAC system or into the passenger cabin. In modern HVAC systems, the flaps are actuated by electric stepper motors to increase the passengers' comfort. For the correct operation of the HVAC system, the controller of the HVAC system needs information about the movement ranges of the flaps, i.e. the controller has to determine the end positions of the flaps in either direction. To detect the end position of the movement of the flaps, a control unit of the stepper motor detects whether the stepper motor itself is stalling, regards the first occurrence of stalling as the end position and transmits this information to the controller of the HCAV system.
In common stepper motors, the detection whether or not a stepper motor is stalling, is based on a measurement of the current fed to the coils of the stepper motor. By using the measured current, the control unit can detect, if the load of the stepper motor rises and regards a rise of the current or the load as evidence of a stalled stepper motor.
Further, known methods for determining a stall position are imprecise as normal changes in the load of the stepper motor are regarded as stalling of a stepper even though the stepper motor has not reached its end position. The load of the stepper motor rises, for example, due to dirt particles in the movement path of the flap. A rise of load also occurs when a stepper motor is beginning to actuate a second flap while still moving a first flap. In both situations, known methods are prone to false detections of stalling that can lead to a loss in functionality of the HVAC system.
It is therefore the object of the invention to provide a method for detecting the stalling of an electric stepper motor, an electric stepper motor and an HVAC system that allow simple, reliable and cost-efficient stalling detection.
For this purpose, a method for detecting stalling of an electric stepper motor is provided with the following steps:
The deviation value is, for example, the difference or the ratio of the measured voltages of the two samples, and the method steps can be performed by a control unit of the stepper motor. By using the voltage at a coil of the stepper motor, a simple to measure but reliable value corresponding to the load of the stepper motor can be obtained. Further, the use of the deviation value between two samples allows for robust and reliable evaluation and detection whether or not the stepper motor is stalling.
In one embodiment of the invention, a start sample is taken at the beginning of a control phase corresponding to one step of the stepper motor, and an end sample is taken at the end of the control phase, wherein a deviation value is determined using the start sample and the end sample.
For example, the start sample is the second sample taken in a control phase and the end sample is the last sample in the same control phase. If 16 or 32 samples are taken per control phase, the end sample is the 16th or the 32nd sample of the control phase, respectively. By comparing the voltages at the beginning and at the end of a control phase, the method for detecting stalling is not influenced or disturbed by small rises in the load of the stepper motor. Thus, minor rises in the load of the stepper motor that occur, for example, if the flap cannot move freely because of defects or dirt or if the stepper motor has to move a second flap additionally to its first flap, do not cause a false detection of a stalled motor.
Preferably, the deviation value is the ratio between the voltage of the start sample and the voltage of the end sample. This way, the method is equally suited for high and low voltage ranges. For example, the deviation value can be the voltage of the start sample divided by the voltage of the end sample.
For instance, the deviation value is compared to at least one threshold. If the deviation value exceeds the threshold or one of the thresholds, stalling of the stepper motor is detected, providing a simple and adjustable method.
For example, stalling is detected if the deviation value is smaller than a lower threshold or larger than an upper threshold. The lower threshold can be 1.5 and the upper threshold can be 2.7. This way, small variations of the deviation value do not disturb the measurement as long as they remain within the allowed range. However, significant deviations to either side of the normal value are taken into account.
In another embodiment of the invention, a first sample is taken, and a confirmation window of a predefined length is defined, the deviation values for a predefined number of samples within the confirmation window, preferably for all samples within the confirmation window are determined, the determined deviations values are compared with a threshold, and stalling is detected if the number of determined deviation values exceeding the threshold is greater than a predefined amount, wherein the first sample defines the beginning of the confirmation window.
In other words, with the measurement of the first sample a confirmation window is set. The length of the confirmation window is defined as a number of samples, as a number of deviation values or as a duration. In the simplest case, all of the samples taken in the confirmation window are used, and the deviation values of consecutive samples are determined.
However, it is possible that the samples to be used are selected in a certain manner, e.g. every other sample. In that case, the deviation values of selected samples adjacent in time are calculated.
If the number of deviation values that exceeds the threshold is greater than a predefined amount, stalling is detected. This way, stalling can be detected reliably even if unexpected but irrelevant rises in the load of the stepper motor and therefore the voltage have occurred.
To further improve the method, it is not necessary to calculate the deviation values for all samples, if all of the deviation values in the beginning of the confirmation window already exceed the threshold so that the predefined amount of deviation values exceeding the threshold is reached before all deviation values are evaluated. This can also happen the other way around, i.e. enough deviation values at the beginning of the confirmation window do not exceed the threshold.
Preferably, the length of the confirmation window is given as the number of samples or as the number of deviation values within the confirmation window. This way, the quality of the method is independent of the selected sampling rate. The length of the confirmation window is, for example, five deviation values, thus six samples. The amount of the number of determined deviation values exceeding a threshold can be three. Thus, three out of five successive deviation values have to exceed the threshold in order to detect stalling of the electric motor.
For example, a moved confirmation window is defined, if the deviation value of the first sample and the following second sample does not exceed the threshold, wherein the second sample defines the beginning of the moved confirmation window, so that the detection speed of the method is increased.
In a preferred embodiment, the samples are consecutive, leading to a very precise and robust detection.
For instance, the deviation value is the difference of the voltages of the two samples. For example, the deviation value is equal to the voltage of the second sample minus the voltage of the first sample, and the threshold is an upper bound of the allowed range, so that rapidly rising voltages/loads of the stepper motor can be detected.
Preferably, the value of the threshold depends on the voltage of the earlier one of the two samples used for the deviation value, preferably the value of the threshold rises with the rising voltage of the earlier sample. I.e. for a deviation value in question, the threshold is a function of the voltage of the sample taken earlier of the two samples that were used to calculate said deviation value. Thus, a very reliable, precise and robust method can be provided.
In another embodiment of the invention, the first sample is taken a predefined time after the start of the control phase so that the rise and other transient conditions at the beginning of a control phase are neglected.
For example, the sampling rate is 500 μs, allowing for a quick response time.
The invention further provides an electric stepper motor with a control unit, wherein the control unit is configured such that it can perform the above mentioned method.
The objective is also accomplished by a heating, ventilation and/or air conditioning system, especially for a vehicle, with at least one flap to control an air stream and a stepper motor that is connected to the flap such that the stepper motor is able to move the flap, wherein the stepper motor comprises a control unit, wherein the control unit is configured such that it can perform the above mentioned method. With a stepper motor able to perform the above mentioned method, a very reliable HVAC system is realized because the end positions of the movement range of the flap can be determined reliably by the HVAC system.
Further features and advantages of the invention will be apparent from the following description of the embodiments and the attached drawings to which reference is made and in which:
The distribution air ducts 14 lead into a passenger cabin of the vehicle at different locations.
A rotatable flap 16 is located within each of the distribution air ducts 14 to open or close the corresponding duct 14.
Each of the flaps 16 is connected with an electric stepper motor 18 that is able to create the necessary torque to rotate the flap 16.
In the shown embodiment, the flaps 16 are connected to their corresponding electric stepper motor 18 via drive shafts 20. However, other means for connecting the flap 16 with the electric stepper motor are possible as well, like guide rails.
The stepper motors 18 each comprise a rotor/stator assembly 22 with a plurality of coils (not shown) that provide the torque necessary to rotate the respective drive shaft 20 and flap 16.
Further, the electric stepper motors 18 comprise a control unit 24 that controls the rotor/stator assembly 22, especially by controlling the currents and voltages applied to the coils.
Both electric stepper motors 18, more precisely their control units 24, are electrically connected to a HVAC controller 26 that controls the HVAC system 10.
The HVAC controller 26 can control the air stream through the distribution air ducts 14 of the HVAC system 10 by opening or closing specific distribution air ducts 14. For this purpose, signals to the stepper motors 18 to rotate the corresponding flap 16 are issued from the HVAC controller 26 to the stepper motors 18.
For a precise control of the air stream, the control unit 24 or the HVAC controller 26 performs a calibration of the stepper motors 18 regularly. During calibration, the movement range of the flaps 16 is detected, meaning that the flaps 16 are moved from one of their end positions to the other end position. The end positions are identified by determining the position at which the electric stepper motor 18 starts to stall.
In order to detect stalling of the electric stepper motor 18 the control unit 24 measures the voltage at a coil of its stepper motor 18 continuously or in regular intervals.
A plot of the measured voltages over time during three control phases 30 is shown in
During a normal step and if the flaps 16 can move freely, the voltage decreases continuously over one control phase 30 as can be seen in the first and second control phase 30 shown in
The control phase 30 plotted on the right hand side of
This difference in shape is detected by the control unit 24 and can be used to detect stalling of the stepper motor 18 and to precisely determine the end positions of the stepper motor 18.
In the situation shown in
The samples taken are numbered with respect to the control phase 30, in the situation of
The control unit 24 determines a deviation value DS/E calculated as the ratio between the voltage of a sample taken at the beginning of the control phase 30, the start sample 32, and the voltage of a sample taken at the end of control phase 30, the end sample 34.
In the shown embodiment of
Then, the deviation value DS/E is compared by the control unit 24 to an upper threshold TU and a lower threshold TL. If the deviation value DS/E lies between the upper threshold TU and the lower threshold TL, i.e. the allowed range, the control unit 24 regards the deviation value DS/E as normal and concludes that the stepper motor 18 is not stalling.
If, however, the deviation value DS/E exceeds one of the thresholds TU or TL, i.e. is above the upper threshold TU or below the lower threshold TL, the control unit 24 regards the stepper motor 18 as stalled.
In the diagram shown in
In the shown case, the upper threshold TU is set to 2.4 and the lower threshold TL is set to 1.7.
In
Thus, after the 70th control phase 30 the control unit 24 detects that the stepper motor 18 has stalled and it is thus able to precisely determine the end position of the stepper motor 18.
The control unit 24 can stop the calibration process after the 70th control phase 30. The following deviation values DS/E are only shown for illustrative purposes.
However, the control unit 24 does not rely solely on the deviation value DS/E of the start sample 32 and the end sample 34, i.e. a first criterion, but uses also a second criterion that will be explained below with respect to
For the second criteria, a deviation value DDiff is determined for consecutive samples. For example, the deviation value DDiff is calculated as the difference of the voltages of two consecutive samples, preferably as the voltage of the latter sample minus the voltage of the earlier sample.
Further, a confirmation window 36 of a predefined length beginning with a first sample 38 is set. In the case shown in
The confirmation window 36 is a moving window meaning that each sample can be the first sample 38 of the confirmation window 36, if certain conditions are met.
Stalling is detected if a predefined amount of deviation values Doff (three in the case shown) out of the deviation values Doff within the confirmation window 36 exceed a threshold TDiff.
In the shown case, the threshold TDiff is an upper bound and the threshold TDiff is illustrated in
If the deviation value DDiff is smaller than the threshold TDiff, i.e. if the voltage of the latter sample is below the voltage of the earlier sample or within the range illustrated by the diamond shaped error bars, the latter sample is within the allowed range and it is regarded as normal.
If, however, the deviation value DDiff lies above the threshold TDiff, i.e. if the voltage of the latter sample lies higher and above the diamond shaped error bar of the earlier sample, the latter sample is regarded as irregular.
In this case, the confirmation window 36 is moved and the irregular sample becomes the first sample 38 of the moved confirmation window 36.
In
The next sample S2 is regarded as a normal sample because the voltage of sample S2 lies below the voltage of sample S1.
Regarding the next sample S3, even though the voltage of sample S3 is higher than the voltage of sample S2, the deviation value DDiff of sample S2 and sample S3 lies below the threshold TDiff, thus sample S3 is regarded as normal.
This can be seen graphically in
However, the deviation value of the sample S3 and the next sample S4 lies above the threshold TDiff, thus it exceeds the threshold TDiff. This can be seen in
In the next step, the following four deviation values DDiff of the first sample 38, sample S3 in this case, and the following five samples S4-S8 are determined and it is evaluated if any of these deviation values DDiff exceeds the threshold TDiff.
In
Both deviation values DDiff of the samples S4 and S5 and of the samples S5 and S6 exceed the threshold TDiff. This can be seen graphically, because the samples S5 and S6 lie outside of the diamond shaped error bars of the samples S4 and S5, respectively.
Thus, the first three deviation values DDiff of the five deviation values DDiff of the confirmation window 36 exceed the threshold TDiff. Therefore, the control unit 24 senses that the stepper motor 18 has stalled.
As seen in the example of
The same concept applies if sufficient deviation values DDiff, three in the shown case, lie within the allowed range. In this case, the necessary amount of deviation values DDiff to exceed the predefined amount cannot be reached. Thus, the control unit 24 can regard the stepper motor as not stalled even though it has not evaluated all deviation values DDiff of the confirmation window 36.
In this case, the confirmation window 36 is moved and the last evaluated sample of the confirmation window 36 becomes the first sample 38 of the moved confirmation window 36.
In the case shown in
However, it is also possible that more samples are taken than the number of samples actually used. For example, it is possible that only the deviation values between every other sample is evaluated and used to detect stalling. In any case, the deviation values DDiff are calculated on the basis of two samples that are adjacent in time.
In other words, out of the samples picked for the evaluation, regardless if every sample, every other sample, etc. is picked, deviation values DDiff are only calculated for samples that are consecutive in time.
It is also possible that the value of the threshold TDiff depends on the voltage of the sample taken earlier of the two samples. For example, the threshold for the deviation value DDiff of the samples S3 and S4 may be smaller than the threshold value TDiff for the deviation value DDiff between the samples S4 and S5, because the voltage of sample S3 is lower than the voltage of sample S4.
This case has been illustrated in
In the shown electric stepper motors 18 with control units 24 and in the HVAC system 10, both criteria are used simultaneously, meaning that if either one of the criteria is met, i.e. if a stalling stepper motor 18 is detected either way, the control unit 24 regards the stepper motor 18 as stalled.
However, it is also possible that only one of the criteria is applied or that both criteria have to be fulfilled, before the stepper motor 18 is regarded as stalled.
Number | Date | Country | Kind |
---|---|---|---|
16186368 | Aug 2016 | EP | regional |
Number | Name | Date | Kind |
---|---|---|---|
20050116678 | Yamada | Jun 2005 | A1 |
20110181229 | Galic | Jul 2011 | A1 |
20120304914 | Russ | Dec 2012 | A1 |
20160013743 | Braat | Jan 2016 | A1 |
Number | Date | Country |
---|---|---|
2290178 | Dec 1995 | GB |
Entry |
---|
The European Search Report and Search Opinion in corresponding Euopean Application No. 16186368.3, dated Feb. 8, 2017 (6 pages). |
Number | Date | Country | |
---|---|---|---|
20180062550 A1 | Mar 2018 | US |