What are the two main functions of the hardware used in controlling a stepper motor? Using a schematic diagram, explain a microcontroller-based feedback control system for a stepper motor.
A stepper motor controller uses a 12 bit counter chip (a hardware counter). If one-step of the motor corresponds to a load movement of 0.2 mm, what is the maximum load movement (stroke) that could be controlled?