How are you controlling four motors with one L298N? Are you driving two motors in parallel? yes Treat those encoder motors as two devices, one DC motor plus one encoder. Plenty of software is available to read encoders. I figured as much but could not see how 4 would be connected to the gpio, was h...