I'm using a L298N Motor Drive board in a parallel configuration to drive a 12V motor; the Arduino I'm using is a Mega 1280.
The motor only needs to run in one direction so the direction Pins are always set to these values:
The terminals on the motor are wired to INA and INC or INB and IND
The speed of the motor is controlled using a PWM on the ENA and ENB Pins.
I have two of these boards, one works the other does not. I have double and triple checked all the connections and the outputs being set in the code which increments the PWM from 0 to 255 in steps of 2. I have also swapped the connections from the Arduino to the working board to the non-working board but still no response. After this I also put the connections from the Arduino to the non-working board onto the working board and it worked! Thus there must be something wrong with the board itself. I'm on a tight schedule as this is for a uni project so ordering another board from China which takes 2-3 weeks to arrive is not really an option.
Any suggestions of what could be wrong/ what I can do to rectify the problem would be much appreciated. Thanks.