{{<figuresrc="/ox-hugo/stepper_two_phase_hybrid_stepper.png"caption="<span class=\"figure-number\">Figure 1: </span>Interior of a two phase hybrid stepper motor. This motor has eight windings and 50 roto teeth">}}
<aid="figure--fig:stepper-hybrid-schematic"></a>
{{<figuresrc="/ox-hugo/stepper_hybrid_schematic.png"caption="<span class=\"figure-number\">Figure 2: </span>Schematic of a two phase hybrid stepper motor. This motor has four windings and 15 pole pairs">}}
## Micro Stepping {#micro-stepping}
From (<ahref="#citeproc_bib_item_2">Ronquist and Winroth 2016</a>):
> By varying the magnitude and direction of the winding currents, the rotor is continuously attracted in the desired direction.
> A "step" occurs whenever a rotor tooth moves slightly to align itself to an electromagnet tooth.
>
> It is possible to decrease the step size of the hybrid stepper motor by using a control logic called **microstepping**.
> As opposed to fully exciting each phase in turn, as described previously, microstepping involves transitioning between each phase shift.
> That is, the current references are defined by sinusoidal signals displaced 90 electrical degrees from each other.
> For most time instances, then, both phases are excited to a certain degree.
> The result is that the electric position vector can be placed between two teeth.
> The resolution of the motor has therefore been increased.
From (<ahref="#citeproc_bib_item_1">Condit 2004</a>):
> There are several factors that affect the linearity of microstepping in real motors.
> The first limitation is static friction in the system.
>
> [...]
>
> Another limitation is the fact that the torque versus position curve is not perfectly sinusoidal.
> The toothed shape of the motor and other physical characteristics of the motor contribute to this.
> Figure [3](#figure--fig:stepper-real-pos-vs-actual-pos) shows a plot of actual position vs expected position for a typical motor.
{{<figuresrc="/ox-hugo/stepper_error_one_turn_period.png"caption="<span class=\"figure-number\">Figure 4: </span>Angle error of the stepper motor during a 100rpm (i.e. 0.6s per turn)">}}
### Error with period equal to one **step** {#error-with-period-equal-to-one-step}
For a two phase stepper motor, there are (typically) **200 steps per revolution** (i.e. 1.8 degrees per step).
Between each step, even when using some micro-stepping, there are some position errors that are due to non-perfect magnetic and electromagnetic fields.
The period of this error is corresponding to 200 period/revolution.
If the electromagnetic torque would be the only torque acting on the system, the electrical angle generated by the control system would correspond directly to the reference angle.
The position error is to a large degree due to the so called load angle when the motor is positioned by an open-loop controller.
The load angle results from applying an external torque to the stepper motor, **causing the magnetic rotor to be out of phase with the electrical field**.
The most common way to limit these errors is to always operate the motor with its rated winding currents.
This results in significant energy losses and heating of the motor which deprive the motor of its efficiency.
Another option is to use a position sensor such as an encoder with a feedback controller.
<divclass="csl-entry"><aid="citeproc_bib_item_2"></a>Ronquist, Anton, and Birger Winroth. 2016. “Estimation and Compensation of Load-Dependent Position Error in a Hybrid Stepper Motor.” Linköping University, Automatic Control; Linköping University, Automatic Control.</div>
<divclass="csl-entry"><aid="citeproc_bib_item_3"></a>Vyas, Darshit C, Jinesh G Patel, and Mrs Heli A Shah. 2015. “Microstepping of Stepper Motor and Sources of Errors in Microstepping System.” <i>Int. Journal of Engineering Research and General Science</i> 3 (2).</div>