# US 2024/0266977 A1 · Method and circuit arrangement for controlling a stepper motor

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2024/0266977 A1
- Document ID: US20240266977A1
- Status: Published application
- Kind: A1
- Application number: 18/106,624
- Filed: 2023-02-07
- Published: 2024-08-08
- Earliest claimed: 2023-02-07
- Assignees: Analog Devices International Unlimited Company
- Applicants: Analog Devices International Unlimited Company
- Inventors: BERNHARD KARL-HEINZ DWERSTEG
- Web page: https://patentgrep.com/patent/US20240266977A1

## CPC

- H02P 8/12: Control or stabilisation of current
- H02P 23/02: specially adapted for optimising the efficiency at low load
- H02P 6/182: using back-emf in windings
- H02P 8/16: Reducing energy dissipated or supplied
- H02P 8/22: Control of step size; Intermediate stepping, e.g. microstepping
- H02P 8/32: Reducing overshoot or oscillation, e.g. damping
- H02P 8/36: Protection against faults, e.g. against overheating or step-out; Indicating faults
- H02P 23/04: specially adapted for damping motor oscillations, e.g. for reducing hunting
- H02P 23/06: Controlling the motor in four quadrants
- H02P 23/14: Estimation or adaptation of motor parameters, e.g. rotor time constant, flux, speed, current or voltage
- H02P 27/08: with pulse width modulation
- H02P: CONTROL OR REGULATION OF ELECTRIC MOTORS, ELECTRIC GENERATORS OR DYNAMO-ELECTRIC CONVERTERS; CONTROLLING TRANSFORMERS, REACTORS OR CHOKE COILS

## Abstract

A new method and circuit arrangement for operating a stepper motor in a voltage-based operating mode with a control loop over the whole operating range of speeds of a stepper motor. The method/circuit arrangement includes calculating a load angle of the stepper motor. The load angle is then used to calculate a voltage-based control signal suitable for operating a known motor driver circuit, such as a chopper, to drive the stepper motor coils. This enables improved control over the stepper motor which can improve control stability.

## Claims

### Claim 1

A method of operating a stepper motor in a voltage-based operating mode with a control loop, the stepper motor comprising at least a first motor coil and a second motor coil, the method comprising:
measuring a first motor coil current from the first stepper motor coil;
measuring a second motor coil current from the second stepper motor coil;
determining a coil current vector based on: the first motor coil current; and the second motor coil current, wherein there is a predetermined phase angle relationship between the first motor coil current and the second motor coil current;
determining a coil current phase angle between the coil current vector and a pre-defined reference angle;
receiving a first voltage-based control signal for operating the stepper motor;
calculating a load angle of the stepper motor based on:
the coil current phase angle;
an absolute value of the coil current vector; and
the first voltage-based control signal;
calculating a second voltage-based control signal based on the load angle; and
operating the stepper motor using the second voltage-based control signal.

### Claim 2 (depends on 1)

The method of claim 1, further comprising:
generating a target current based on the load angle of the stepper motor.

### Claim 3 (depends on 2)

The method of claim 2, wherein the second voltage-based control signal is further calculated based on the absolute value of the coil current vector.

### Claim 4 (depends on 2)

The method of claim 2, further comprising:
determining a target load angle proportional to the absolute value of the coil current vector, wherein generating the target current is further based on the target load angle.

### Claim 5 (depends on 4)

The method of claim 4, wherein the target load angle is between a lower load angle threshold and an upper load angle threshold, wherein the upper load angle threshold is less than 90 degrees.

### Claim 6 (depends on 4)

The method of claim 4, further comprising:
operating the stepper motor in a reverse motoring mode such that the stepper motor is configured to feedback energy into a driver supply,
determining the target load angle proportional to the absolute value of the coil current vector, wherein the target load angle is between a reverse-motoring upper load angle threshold and a reverse-motoring lower load angle threshold.

### Claim 7 (depends on 6)

The method of claim 6, wherein the reverse-motoring upper load angle threshold is set to reduce energy fed back into the driver supply or to maximise energy fed back into the driver supply.

### Claim 8 (depends on 4)

The method of claim 4, wherein the target current is calculated by a target current PI-regulator receiving at its input the difference between the load angle of the stepper motor and the target load angle.

### Claim 9 (depends on 1)

The method of claim 1, further comprising
determining an emf vector based on an estimated first motor coil back-emf voltage and an estimated second motor coil back-emf voltage;
determining a back-emf voltage phase angle between the emf vector and the pre-defined reference angle; and
calculating a load reserve from the difference between the back-emf voltage phase angle and the coil current phase angle, wherein the load reserve is the load angle minus 90°.

### Claim 10 (depends on 9)

The method of claim 9, wherein the back-emf voltage angle is further determined based on at least one of the following: the supply voltage; inductance of the stepper motor coils; resistance of the stepper motor coils; the first voltage-based control signal; and the first and second motor coil currents.

### Claim 11 (depends on 1)

The method of claim 1, wherein at a first time the stepper motor is operated using the first voltage-based control signal, the first time proceeding a second time at which the stepper motor is operated with the second voltage-based control signal.

### Claim 12 (depends on 1)

The method of claim 1, wherein the first voltage-based control signal is further calculated based on a first micro-step value associated with a first phase angle position of a micro-step sequencer waveform for operating the stepper motor in a micro-step mode of operation.

### Claim 13 (depends on 12)

The method of claim 12, wherein the second voltage-based control signal is further calculated based on a second micro-step value associated with a second phase angle position of the micro-step sequencer waveform for operating the stepper motor in a micro-step mode of operation.

### Claim 14 (depends on 13)

The method of claim 13, further comprising:
adjusting the second phase angle position of the micro-step sequencer waveform relative to the first phase angle position of the micro-step sequencer waveform based on the coil current phase angle.

### Claim 15 (depends on 14)

The method of claim 14, wherein the adjustment of the second phase angle position of the micro-step sequencer waveform relative to the first phase angle position of the micro-step sequencer waveform is determined with a damping PI-regulator, wherein the PI-regulator receives the coil current phase angle.

### Claim 16 (depends on 13)

The method of claim 13, wherein the second voltage-based control signal is further calculated based on a voltage control signal, wherein the method further comprises:
calculating the voltage control signal by regulating the absolute value of the coil current vector based on the target current.

### Claim 17

A circuit arrangement for operating a stepper motor in a voltage-based operating mode with a control loop, the stepper motor comprising at least a first motor coil and a second motor coil, the circuit comprising:
a control unit for a voltage-based operating mode, configured to generate:
a first voltage-based control signal for operating the stepper motor at a first time;
a second voltage-based control signal for operating the stepper motor at a second time, wherein the first time proceeds the second time at which the stepper motor is operated;
an analog-to-digital converter configured to:
measure a first motor coil current from the first stepper motor coil;
measure a second motor coil current from the second stepper motor coil, wherein a coil current vector is based on: the first motor coil current; and the second motor coil current, wherein there is a predetermined phase angle relationship between the first motor coil current and the second motor coil current, wherein a coil current phase angle is an angle between the coil current vector and a pre-defined reference angle;
a load angle calculation unit configured to calculate the load angle of the stepper motor based on:
the coil current phase angle;
an absolute value of the coil current vector; and
the first voltage-based control signal;
wherein the second voltage-based control signal is based on the load angle of the stepper motor.

### Claim 18 (depends on 17)

The circuit arrangement of claim 17, further comprising: a target current regulator unit coupled to the load angle calculation unit configured to generate a target current based on the load angle of the stepper motor.

### Claim 19 (depends on 18)

The circuit arrangement of any of claim 18, further comprising:
a load angle controller coupled to the target current regulator unit and configured to:
receive the absolute value of the coil current vector; and,
determine a target load angle proportional to the absolute value of the coil current vector, wherein generating a target current is further based on the target load angle.

### Claim 20

A method for damping stepper motor resonances of a stepper motor, the stepper motor comprising at least a first motor coil and a second motor coil, the method comprising:
measuring a first motor coil current from the first stepper motor coil;
measuring a second motor coil current from the second stepper motor coil;
determining a coil current vector based on: the first motor coil current; and the second motor coil current, wherein there is a predetermined phase angle relationship between the first motor coil current and the second motor coil current;
determining a coil current phase angle between the coil current vector and a pre-defined reference angle;
generating a micro-step sequencer waveform for operating the stepper motor in a micro-step mode of operation, wherein the micro-step sequencer waveform is discrete and comprises at least: a first micro-step value associated with a first phase angle position of a micro-step sequencer waveform; and a second micro-step value associated with a second phase angle position of the micro-step sequencer waveform;
adjusting the second phase angle position relative to the first phase angle position based on the coil current phase; and,
generating the second voltage-based control signal based on the second phase angle position.
