Hey,
I've got an H Bridge. Now, standalone, it works perfectly fine. It works by putting a direction into a NOT gate, then piping that logic into two and gates, and that into the mosfets.
The not gate changes the direction. If it's high, it goes one way, and if it's low, it goes the other. That works, if the only power input is from a single power supply, and ground/high is from that same power supply.
If I connect the ground of the computer (through the arduino usb cable) to the power supply ground, nothing bad happens (yet).
If I plug the not gate input into the arduino 5v, everything works perfectly, even PWM. However, once I plug it into the ground (earthed through the computer), an extremely large circuit draw occurs (think short circuit)
The power supply to the motor is in a seperate power supply running 12 volts.
I've checked - the ground on my circuit and the ground coming out of the USB has a 3.6V difference.
Any ideas? I need to communicate to the arduino to control the PWM duty cycle, so..