Expand description
Stepper motor (motor.kind = “stepper”): a two-phase hybrid stepper behind an open-loop step and direction drive.
The motor in its usual sinusoidal form, with N rotor teeth and the rotor’s electrical angle e = N (angle - origin):
torque = kt (i_b cos e - i_a sin e) - T_d sin 4e,
L di_a/dt = u_a - R i_a + kE w sin e, L di_b/dt = u_b - R i_b - kE w cos e,
kE = kt (the back-EMF powers the torque: e_a i_a + e_b i_b = torque w without the detent), the detent torque T_d
(effects.detent_torque) with 4N periods a turn. R, L and kt are a phase’s (motor.resistance_ohm, inductance_h,
torque_constant_nm_a).
The drive counts the position setpoint in microsteps, 2 pi / (4 N microsteps) each, and sets the current vector at
that electrical angle with the amplitude drive.stepper_current_a: i_a = I cos e_c, i_b = I sin e_c. Then
torque = kt I sin(e_c - e): the rotor sits on the “magnetic spring” of the holding torque kt I, its load angle
e_c - e. Beyond the pull-out angle pi / 2 the spring weakens; past pi the rotor falls into the next equilibrium, four
full steps on, and the drive, open loop, never learns of it.
The chopper sets each base step the voltage that brings the phase currents to their setpoints by the step’s end,
against the back-EMF at its start, as a current-regulated chopper does over its PWM periods; the voltage vector is
kept within the supply, the DC link voltage (drive.bus_voltage_v, the simulated link with effects.dc_link): a
two-phase bridge gives a phase +-U. So the current falls short of its setpoint at speed, and the torque with it: the
pull-out curve (Stepper::pull_out).