H bridge 12 DC motor

Hi everyone,

Firstly I would like to say hello, this is my first post (I am french Canadian so pardon my english)

As my first project, I am building a little robot on wheels that can detect walls and stuff. I am using a h-bridge L293E to control a 12V DC motor with my Arduino Uno R3 (the motor is powered by a (v battery and my Arduino to my laptop). Here is the datasheet of my L293E :

http://www.st.com/content/ccc/resource/technical/document/datasheet/3f/2a/59/15/61/43/45/af/CD00000058.pdf/files/CD00000058.pdf/jcr:content/translations/en.CD00000058.pdf

I followed that tutorial since I am still a beginner: https://itp.nyu.edu/physcomp/labs/motors-and-transistors/dc-motor-control-using-an-h-bridge/

Here is the sketch:

With small 6V DC motor, it works perfectly fine !! I press the switch, the direction changes. Everything is perfect. For my project tho, I need 12V Dc motor, so I unplug the other motor and plug the 12V motor.

As I suspected, the 9V battery is not enough to power the DC motor (even tho the 9V battery + 12DC motor alone works)... So I put two 9V batteries in series (should be okay for the chip who can be powered up to 36V) and still it does not work..!!

Can someone please help me ?? Thank you

Small 9V batteries cannot produce enough current to run motors, your 6V motor would have been
overloading the battery considerably.

Find out the stall current of your motor and choose a power source than is up to the job.