One Arduino controlling two brushless DC motors
After some changes I have been able to get it working reliably with two motors. But one of the changes I have made is to use a new type of motor that I reckon is better suited to the task. Instead of using brushed motors that are cheaper, I have found other brushless motors that have several advantages: Being brushless, there is no other wear than the bearings They have built-in driving electronics, so they can be controlled with the Arduino digital outputs, which simplifies things and reduces interface costs. Motors have built-in encoder disks, too, but the one they carry is just 100 lines per revolution (a bit poor, in my opinion) that can turn into 400 "steps" per revolution with the 4x decoding of the program. The lower number of lines per revolution puts less stress on the Arduino interrupt code, which may be one of the reasons it works ok now. I have moved all the encoder signals to pins that are monitored with the interrupt on pin change, and I have reserved