For left incremental encoder next to the left rear wheel: Green wire (Output A): Pin 2 on the Arduino Mega 2560 White wire (Output B): Pin 3 on the Arduino Mega 2560 Yellow wire (Output Z): Pin 18 on ...