Hi I am using the SN754410 h-bridge driver to try to control a motor using two switches. As I understand the SN754410 should be identical to the L293D. I have hooked up a circuit and I think I have followed this tutorial correctly, however when I try to use it the motor will not work when I try to attach pins 2 or 7 to a 5 volt positive source the motor will not start. Even stranger when I try to attach one of those pins to the ground the motor starts in one direction, and when the other pin is attached to the ground the motor spins in the other direction. Can anyone explain this weird behavior to me. I understand that the problem is caused by floating inputs acting as a high and when one of the inputs is brought low the motor moves, but i do not understand how I would fix this problem, as suggested i have connected a diode between the input and ground, however the circuit still doesn't work.