Driver SN754410 and Arduino Mega 2560

I would like to control a DC motor (9V) with Arduino Meha 2560 through the driver SN754410. I have connected Arduino with the driver SN754410, according to the scheme from this link: Arduino Playground - ArduinoL293D.
The datasheet of the driver you can find here: https://www.sparkfun.com/datasheets/IC/SN754410.pdf

I have attached my work to this message.

Could you please help me to resolve the problem

Regards

WorkingDocumentArduinoEng.doc (281 KB)

Could you please help me to resolve the problem

What exactly is your problem?

Do you want to connect a motor to an SN754410?

If so here is a diagram of how to do that. The numbers in brackets are for the other motor. Use 9V on the motor supply.

Hi

I am sending my diagram for connection of the driver SN754410 to arduino for control of a DC motor. It is the same like yours. The pins 1, 2, 7 are connected to Arduino. The logic supply of 5V is taken from Arduino too. The motor supply is taken from an adapter (9V/0.66mA). The ground is taken from Arduino too. But when I connect 9V to the pin 9, the connection between arduino and my PC stops, the screen of the monitor starts blinking. Something is wrong.

Could you please help to resolve the problem.

Regards

Scheme_ArduinoDriver.jpg

Sorry a totally inadequate diagram, it shows nothing.
Post a proper schematic showing the power supplies the motors and the Arduino.

Yes you have wired something wrong so first we must see what you are trying to wire, then only when that is correct we can concentrate on seeing if you have wired it like that.

Hi

Thank you for the answer. I have corrected my error. It was related with my software.

Regards