loading
Now here is the a H-Bridge motor driver that is made of transistors and can be controlled by an arduino,it is capable of changing the direction of the motor but not the speed.....

Step 1: Gathering the Materials

So here is the list of materials-
1.2N2907 PNP transistors x 2
2.2N2222 NPN transistors x 2
3.1 k ohm resistors x 4
4.1N914 diodes x 4
5.Copper clad board

Step 2: What Is an H-Bridge Motor Driver???

An H-Bridge motor driver circuit can be easily understood by looking at the images above,it mainly comprises of the two switches that is replaced by transistors in our circuit.....

Step 3: The Circuit...

The circuit can be easily understood by looking at the image above,the NPN and PNP transistors are used to switch the direction of the motor when the base pin is provided with current by our ARDUINO...

Step 4: Etching the Circuit...

I provided the pics,so that it may be easy for you to make the PCB design,I designed it use Eagle Cadsoft,you may use any software or you can also do it manually....

Step 5: The Completed Circuit.

After etching the circuit you may solder the components as shown,and may plug the Arduino pins in the motor control pins in the board(marked as "In 1 & 2" in the circuit diagram)and connect the motor pins in the motor terminals....

Step 6: The Arduino Code...

Copy paste the following program in your Arduino IDE and upload it,this program switches the motor's direction after every two seconds...

void setup() {
pinMode(13,OUTPUT);
pinMode(12,OUTPUT);
}

void loop(){
digitalWrite(13,HIGH);
digitalWrite(12,LOW);
delay(2000);
digitalWrite(13,LOW);
digitalWrite(12,HIGH);
delay(2000);
}

Step 7: Finish....

I tested my circuit with my homemade Arduino,hope you liked it,If so then please vote for me,your single vote counts....

More projects soon.....
<p>Good project! Impressive work from 14 y/o, keep it up! Btw if you use the analog pins and analog write you can change the speed of the motor as well! </p>
Why haven't I thought it before???,great idea,thank for your appreciation....
<p>I like these hand crafted circuits, sure they can be bought cheap, but controlling the whole construction process is very rewarding itself, nicely done. ☺</p>
Thanks for your positive comment..
Excuse me but by tying together both left transistors to a single input and both right transistors to another. You are shorting out the circuit when IN1 or IN2 is on.
That didn't caused any problem to me, my friend,we have put the diodes for that cause only....

About This Instructable

3,734views

49favorites

License:

Bio: I am a 15 year old guy who is passionate about Arduino and programming,I like science but I love programming,I am also interested ...
More by Daniyal Shamsi 154:Arduino Transistor Motor Driver TV Remote Jammer Bluetooth AC voltage controller 
Add instructable to: