Method for controlling / regulating a stepper motor, control unit and stepper motor
Patent Information
- Authority / Receiving Office
- DE · DE
- Patent Type
- Patents
- Current Assignee / Owner
- SCHAEFFLER TECHNOLOGIES AG & CO KG
- Filing Date
- 2024-03-26
- Publication Date
- 2026-07-30
AI Technical Summary
Existing stepper motor control methods struggle to manage current fluctuations effectively between fast and slow decay modes, particularly at high gradients and low output amplitudes, leading to noise and inefficiencies.
A method for controlling stepper motor stator windings via a full bridge circuit with switching elements, using a software interrupt to set fast or slow decay modes based on charge cycle time thresholds, ensuring appropriate decay mode selection for each PWM period.
This approach maintains a sinusoidal current profile by accurately selecting decay modes, reducing current fluctuations and minimizing noise and losses.
Smart Images

Figure 00000000_0000_ABST
Abstract
Description
[0001] The present invention relates to a method for controlling / regulating a stepper motor whose stator windings are controlled via a full-bridge circuit with switching elements, wherein the switching elements can be controlled such that a fast decay mode or a slow decay mode can be selected. Furthermore, the invention relates to a control unit configured and programmed to carry out the method, as well as to a stepper motor with the full-bridge circuit and the control unit.
[0002] A stepper motor can, for example, be used to control an expansion valve of a heat pump. To control the stepper motor, sinusoidal currents are applied to the stator windings of the stepper motor.
[0003] A common problem is choosing between different decay modes of a full-bridge circuit used to control the stator windings of the stepper motor when the target current is decreasing. While a slow decay mode generates the smallest possible current fluctuation, the current is not reduced quickly enough, especially at high gradients and small output amplitudes. While the fast decay mode allows the current to decay significantly faster, it usually does so too rapidly. This leads to significantly higher current fluctuations and possibly the need to recharge the current in the stator windings. However, the current fluctuations around the target current should be kept as small as possible to avoid noise and unnecessary losses.
[0004] Control circuits and control methods for stepper motors are known, for example, from DE 10 2016 000 847 A1, DE 11 2015 005 791 T5, US 2015 / 0 015 177 A1, and US 2010 / 0 157 635 A1. In the known state of the art, a predetermined component is controlled in the fast or slow decay mode in the second half of the falling sine quadrant.
[0005] In addition, the modes should be able to be set with as little prior knowledge as possible, e.g., regarding current amplitude, speed, motor parameters, load, temperature, etc., since, due to system constraints, often only limited information or intervention options are available. Intervention options include setting a current limit for the hardware-based current controller, which aborts the charging mode, specifying the decay mode for the PWM off cycle, and the option of setting the decay mode directly or at the end of the PWM period. The time within the PWM period at which the current limit was reached, thus switching to the set decay mode, is available as information.
[0006] The electronics use a current limiting circuit to regulate the current. This circuit is programmed with a current limit, i.e., a maximum current. The current itself cannot be measured. However, the point in time within a PWM period at which the current limiting circuit switches off can be determined.
[0007] Based on this, it is the object of the invention to provide a further developed technology for controlling / regulating a stepper motor whose stator windings are controlled via a full-bridge circuit with switching elements, wherein the switching elements are controllable in such a way that a fast decay mode or a slow decay mode can be set.
[0008] This object is achieved by the subject matter having the features according to the independent claims. Advantageous embodiments are the subject matter of the dependent claims.
[0009] A method for controlling / regulating a stepper motor is disclosed. Stator windings of the stepper motor are controlled via a full-bridge circuit having switching elements. The switching elements are controllable such that a fast decay mode or a slow decay mode can be set. In the method, a charging cycle time is stored in a pulse-width modulation (PWM) period. The charging cycle time corresponds to a duration during which the full-bridge circuit ("PWM-on") is switched on, so that current flows through the stator windings. The fast decay mode or the slow decay mode for the next PWM period is then set according to the charging cycle time, i.e., the duration of PWM-on. Accordingly, it is possible to detect in a simple and robust manner when the fast decay mode is required or the slow decay mode is sufficient for the next PWM period.
[0010] The fast decay mode or the slow decay mode can be set in a software interrupt. The software interrupt can be triggered when a current limit is reached during the PWM period or a target current is not reached during the PWM period. Accordingly, the appropriate decay mode is set for the next PWM cycle.
[0011] In particular, the software interrupt can be configured to fast decay mode if the charging cycle time is less than a first threshold. Falling below the first threshold means that the current in the stator windings is already in the current limit range (or even above it). By setting the fast decay mode, a faster current decay is achieved, especially in the second quadrant of the sine wave. Consequently, the sinusoidal shape of the current can be more accurately imprinted.
[0012] Advantageously, the fast decay mode can only be activated if the charging cycle time is a predefined number of times less than the first threshold. For example, the predefined number of times can be set to a value of 3 or greater. If the number of times is exceeded, the decay mode of the last PWM period can be retained. This ensures that the fast decay mode is not activated immediately upon the first undershoot of the first threshold.
[0013] Furthermore, the software interrupt can be configured to slow decay mode if the charging cycle time exceeds a second threshold. Exceeding the second threshold means that rapid decay is no longer necessary because current had to be rebuilt. Setting the slow decay mode then ensures that rapid discharge does not occur during a period of a low PWM level ("PWM off") in the PWM period.
[0014] The second threshold can be higher than the first threshold. This maintains control hysteresis and prevents constant switching between decay modes.
[0015] Preferably, a counter or debounce counter can be reset to record the specified number of times when the charging cycle time is greater than the second threshold. The counter is then reinitialized so that a correct transition to fast decay mode occurs when the current limit is reached again.
[0016] Furthermore, the decay mode of the last PWM period can be maintained in the software interrupt if the charging cycle time is greater than or equal to the first threshold and less than or equal to the second threshold. As already mentioned, this avoids unnecessary switching between the decay modes.
[0017] Also disclosed is a control unit configured and programmed to execute the method according to the above aspects. This control unit can receive or determine the charging cycle time and control the switching elements of the full-bridge circuit according to the set decay mode.
[0018] Furthermore, a stepper motor with a full-bridge circuit that controls the stator windings of the stepper motor and has switching elements is disclosed. The switching elements are controllable such that a fast decay mode or a slow decay mode can be selected. The stepper motor has the control unit according to the above aspect.
[0019] The method, the control unit, and the stepper motor can be used to control an expansion valve of a heat pump. The heat pump can preferably be used in a vehicle.
[0020] The present invention is described in detail below with reference to the figures. They show: Fig. 1 shows a flow chart for generating a PWM control signal for controlling / regulating a stepper motor; and Fig. 2 a flowchart of a software interrupt in which a decay mode is set for a next PWM period.
[0021] The present invention will be described below using preferred embodiments with reference to the figures. However, the description of the embodiments should not be considered exhaustive.
[0022] The method is used to control or regulate a stepper motor. For this purpose, the stator windings of the stepper motor are controlled via a full-bridge circuit comprising switching elements. The switching elements can be controlled in such a way that a fast decay mode or a slow decay mode can be selected. Such devices are already known from the prior art.
[0023] Fig. Figure 1 shows a flowchart for generating a PWM control signal to control / regulate the stepper motor. After a start, initialization with the slow decay mode occurs in step S1. In a subsequent step S2, a PWM period is started and the charging cycle time is set to zero. In step S3, a check is made to determine whether a current limit, i.e., a maximum current, has been reached.
[0024] If the current limit is not reached in step S3, step S4 is executed, in which the charging cycle time is increased. Consequently, the full bridge is in "PWM-On" mode as long as the current limit is not exceeded. In this way, the current in the stepper motor's stator windings builds up toward a saturation value.
[0025] In the subsequent step S5, it is checked whether the PWM period has been completed. If the PWM period has not been completed, the system returns to step S3, where it is checked whether the current limit has been reached.
[0026] If the PWM period is complete, the process proceeds to step S100, where the charging cycle time is saved and a software interrupt is triggered. The software interrupt in step S100 is described in detail below. After step S100, the process returns to step S2 and a new PWM period is started.
[0027] If the current limit is reached in step S3, step S100 is executed, where the charging cycle time is saved and the software interrupt is triggered. As already mentioned, the software interrupt in S100 is described in detail below. If the current limit is exceeded, the full-bridge circuit is switched to "PWM off" and the current in the stator windings is reduced according to the set decay mode.
[0028] Next, step S6 is executed, in which the decay mode is queried and set in the full-bridge circuit. Step S7 checks whether the PWM period has been completed.
[0029] If the PWM period is not completed in step S7, the program returns to step S6. If the PWM period is completed in S7, the program returns to step S2 and starts a new PWM period.
[0030] The software interrupt in S100 is described below with reference to the Fig. The flowchart shown in Figure 2 is described. As already mentioned, the charging cycle time of the current PWM period is saved before the software interrupt is triggered. In the triggered software interrupt, the decay mode is then selected depending on the charging cycle time and a counter (hereinafter referred to as the debounce counter). This is because a short charging cycle time means that the current could not be dissipated sufficiently, while a long charging cycle time means that the current is dissipating quickly enough.
[0031] In step S101, the charging cycle time is first compared with a first threshold. If the charging cycle time is below the first threshold, the debounce counter is incremented by one in step S102. In step S103, the debounce counter is compared with a predefined number of times. If the debounce counter exceeds the predefined number of times, the software interrupt proceeds to step S104, and the decay mode is set to the fast decay mode. The software interrupt then terminates, and the flowchart from Fig. 1 decreased.
[0032] If the debounce counter is less than the predetermined number of times in step S103, the current decay mode is maintained according to step S106. Subsequently, the software interrupt is terminated and the flowchart of Fig. 1 decreased.
[0033] If it is determined in step S101 that the charging cycle time is greater than or equal to the first threshold, a check is made in step S105 to determine whether the charging cycle time is greater than a second threshold. If the charging cycle time is less than or equal to the second threshold, the software interrupt proceeds to step S106, and the current decay mode is maintained. The software interrupt is then terminated, and the flowchart of Fig. 1 decreased.
[0034] If the charging cycle time is greater than the second threshold in S105, the software interrupt proceeds to step S107, where the slow decay mode is set. Furthermore, the debounce counter is reset in step S107. After completion of step S107, the software interrupt is terminated, and the process returns to Fig. 1 returned.
[0035] Using the procedure described above, a decay mode can be appropriately set so that the sinusoidal shape can be maintained, especially in a second (and fourth) sinusoidal quadrant. QUOTES CONTAINED IN THE DESCRIPTION
[0000] This list of documents submitted by the applicant was generated automatically and is included solely for the convenience of the reader. This list is not part of the German patent or utility model application. The DPMA assumes no liability for any errors or omissions. Cited patent literature
[0000] DE 10 2016 000 847 A1
[0004] DE 11 2015 005 791 T5
[0004] US 2015 / 0 015 177 A1
[0004] US 2010 / 0 157 635 A1
[0004]
Claims
[1] Method for controlling / regulating a stepper motor, the stator windings of which are controlled via a full-bridge circuit with switching elements, wherein the switching elements are controllable in such a way that a fast decay mode or a slow decay mode can be set, characterized by , that a charging cycle time is stored in a pulse width modulation (PWM) period, and the fast decay mode or the slow decay mode is set for the next PWM period according to the charging cycle time. [2] Method according to claim 1, characterized by that the fast decay mode or the slow decay mode is set in a software interrupt that is triggered when a current limit is reached during the PWM period or a target current is not reached during the PWM period. [3] Method according to claim 2, characterized bythat the fast decay mode is set in the software interrupt if the charging cycle time is less than a first threshold. [4] Method according to claim 3, characterized by that the fast decay mode is only set if the charging cycle time is a predetermined number of times less than the first threshold, and otherwise the decay mode of the last PWM period is maintained. [5] Method according to one of claims 2 to 4, characterized by that the slow decay mode is set in the software interrupt if the charging cycle time is greater than a second threshold. [6] Method according to claim 3 or 4 and claim 5, characterized by that the second threshold is greater than the first threshold. [7] Method according to claim 6, characterized by that a counter for detecting the specified number of times is reset when the charging cycle time is greater than the second threshold. [8] Method according to claim 6 or 7, characterized by that in the software interrupt, the decay mode of the last PWM period is maintained if the charging cycle time is greater than or equal to the first threshold and less than or equal to the second threshold. [9] Control unit designed and programmed to carry out the method according to one of claims 1 to 8. [10] Stepper motor with a full-bridge circuit which controls stator windings of the stepper motor and has switching elements, wherein the switching elements are controllable in such a way that a fast decay mode or a slow decay mode can be set, characterized by the control unit according to claim 9.