Arduino - H Bridge - 12v DC Motor - External Power Supply

Hey Everyone,

Firstly id like to say hello, this is my first post, and a heads up i'm an electronics n00b, so here goes.

I have been trying to come up with a solution for having my arduino signal a H bridge to get my 12v DC motor going clockwise and anticlockwise with a switch.

I have got the programming sorted and here is how i was hoping to go about it.

I have built the following H Bridge:
BEAM Circuits -- Steve Bolt's H-bridges (have checked and double checked it appears to be wired up correctly) - (but have used bc639/bc640 instead of the BC327/25)

So my intention was to have the signal wire from port lets say 11,12 run into where it says A & B in that image. Then providing LOW/HIGH or HIGH/LOW , i expect to get the reversal of the motor. Am i on the right track?

Additionally i wanted to power the arduino and the motor from the same power source. Essentially i wanted to run four wires from my power source (through a 12v regulator) 2 to the inputs on the H bridge and 2 to the +,- of the arduino power source.

Can anyone give me any advice before i move forward?

If you've read this far, thanks for your time.

Note that the schematic shows a motor power supply of "2-5V". I don't think it will work if the power voltage is higher than the logic level.

You also need diodes across the motor to catch the back EMF. For a single direction this is a simple diode but in a H bridge it is four diodes.
http://www.thebox.myzen.co.uk/Workshop/Motors_1.html
and
http://www.thebox.myzen.co.uk/Workshop/Motors_2.html

Thanks for the info :slight_smile:

John: I thought the "2-5V" was determined by the the transistors, so i changed them to ones i thought could handle more? Is that the right way to go about it??

Is that the right way to go about it??

No.
Show me a transistor that can't handle 5V.
It is a matter of the voltage drive to the transistors.
Do a google image search for H-drive for schematics, you will see you need more than just the four transistors if you want a voltage higher than the switching signal.

Okki doki, i think i get what you are talking about now...

Will this work:

http://www.eleccircuit.com/wp-content/uploads/2009/03/dc-motor-driver-h-bridge.gif

-Does the input to pin 2 need to be PWM or can i supply a Logic High/Low instead to achieve max min motor power?

-and... Can i power the arduino from a 5v regulator coming from my 12v motor power source?

Thanks for the advice :slight_smile:

Those drivers should work. If you don't use PWM the motor will be either off, or on full speed forward or reverse.

Legends, thanks for your help!!