This Arduino sketch is used to control 2 DC motors and 2 optical encoders from printer head frame by step/ direction signals.
Generates 3D-printable optical encoder disks using Gray code for absolute position sensing. Outputs OpenSCAD files for FDM fabrication. Discussion regarding this project can be found on ...