I have this set up,
It is my first time wiring an H-bridge this way. I usually run it off 5V not 12V+.
This issue I am having is this...
I am powering the H-bridge with 12V (VMS pin) and using it's 5V output to power Arduino and all the other components.
I upload a simple code to Arduino to have the motors spin in a loop 2sec forward and 2 sec backward, but the H bridge is not making the change between those. It only goes forward. If I disconnect the power to the H-bridge and connect it again, it pay go forward/back a few times but then it starts only going forward. I am actually using a velleman vma409 which shows which of the LN1,2,3,4 are in the "high" position. Instead of looping between LN1,3 ON, then LN2,4 ON, it goes LN1,3ON, then they all go on (1,2,3,4). Somehow having the 12V go into H bridge is giving me this issue. If I bring 5V to the H-bridge from the Arduino Mega, then the problem is fixed.
Also, I noticed that is i give the car some resistance to move forward, it will loop correctly in the back position, but if I don't touch it, the L1,2,3,4 lights go on which means all the IN1,2,3,4 pins are on high. Very weird stuff.
Any idea what's causing this?