This Arduino sketch is used to control 2 DC motors and 2 optical encoders from printer head frame by step/ direction signals.
The microcontroller of choice for this project was the Arduino UNO R3. Maybe be modified in the future to work with the TM4C123G launchpad. References two GitHub ...