Does anyone have a code that will allow me to test TWO motors simultaneously? I have tried to alter the single motor test code with no luck. As of yet, I have no way of determining if the code is bad or if I made a mistake during assembly. Thanks in advance.
Motor A Direction Arduino Digital pin 13> Motor A Speed (PWM) Arduino Digital pin 10> Motor B Direction Arduino Digital pin 12> Motor B Speed (PWM) Arduino Digital pin 9>
Take the example code.
Every place it writes to 13 have it also write the same data to 12. Every place it writes to 10 have it also write the same data to 9.