This Arduino sketch is used to control 2 DC motors and 2 optical encoders from printer head frame by step/ direction signals.