Arduino Transistor Motor Driver




About: I am a 16 year old guy who is passionate about Arduino and programming,I like science but I love programming,I am also interested in robotics......

Intro: Arduino Transistor Motor Driver

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() {

void loop(){

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.....



    • Furniture Contest 2018

      Furniture Contest 2018
    • Tiny Home Contest

      Tiny Home Contest
    • Fix It! Contest

      Fix It! Contest

    6 Discussions


    1 year ago

    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!

    1 reply

    1 year ago

    I like these hand crafted circuits, sure they can be bought cheap, but controlling the whole construction process is very rewarding itself, nicely done. ☺

    1 reply

    1 year ago

    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.

    1 reply
    Daniyal Shamsi 154tammasus

    Reply 1 year ago

    That didn't caused any problem to me, my friend,we have put the diodes for that cause only....