motor(inA1, inA2, 1); //motor 1 rotate 1 motor(inB1, inB2, 1); //motor 2 rotate 1
I use this code to control 2 motors to make a car go ahead.
BUT 2 motors don't run at the same time: motor 1 runs first and a short time later motor 2 runs. That makes my car can not go straight ahead
I need a help! Anyone have solution for this problem?