Include the required header files Declare variables for publishing encoder ticks Instantiate a ROS Publisher to publish the motor encoder ticks Instantiate a ROS subscriber that subscribes to the ...
GitHub

optical-encoder

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