For left incremental encoder next to the left rear wheel: Green wire (Output A): Pin 2 on the Arduino Mega 2560 Gray wire (Output B): Pin 3 on the Arduino Mega 2560 Yellow wire (Output Z): Pin 18 on ...
Handling lots of encoders at the same time can be a challenge. For example, in our use case, we had 15 encoders attached to one Arduino Mega. After all the connections to other peripherals, we ran out ...