i would like to know whats wrong with my circuit
because the motor spin very slow
if i connect the dc source (9 V , 0.5 A ) directly to motor it spin 10 time faster
and is the value of resistor right ???
i calculate it according to this Ic = hFE
The preferred current flow through a transistor is in the direction of the arrow. I say preferred because transistors will work when backwards, but only very poorly. As you drew it the current flowing through the motor has to go backwards through one of the transistors.
If all you need is to turn on the motor, then all you need is 1 transistor. Remove Q1, connect the motor to the + side of the battery. Turn Q2 around so that the emitter (arrow side) is connected to the - side of the battery.
You should also protect the transistor from current spikes when it turns off. The magnetic field in the motor is energy that has to go somewhere when the transistor turns off. The easiest is to take a diode from the Q2 collector to the + side of the battery.
That link is good, but you have to take the commentary with a grain of salt.... for example when comparing Design 1 versus Design 2, he says .... "It does not have any advantages over the circuit above and simply uses extra components" .... It does actually, in circuit 1, both of the PNP transistors are ON when the input signals are LOW. When one of the input signals becomes HIGH, the NPN transistor will briefly need to source enough current to overdrive the PNP that is already ON so that it will turn OFF. With Design #2 you don't have that issue.
NPN on the high side of a load would require a voltage+4v, so if you have 12v going in for the motor you would have to give the gate 16v.
Where are you gone get the 16v from?
Modern Hbridge IC uses 4 n-channel mosfets a chargepump for the upper mosfets.
Comments
If all you need is to turn on the motor, then all you need is 1 transistor. Remove Q1, connect the motor to the + side of the battery. Turn Q2 around so that the emitter (arrow side) is connected to the - side of the battery.
You should also protect the transistor from current spikes when it turns off. The magnetic field in the motor is energy that has to go somewhere when the transistor turns off. The easiest is to take a diode from the Q2 collector to the + side of the battery.
For examples of the circuit, this page is good
http://www.talkingelectronics.com/projects/H-Bridge/H-Bridge-1.html
With it's low input threshold of 1.3v, can control it directly from MCU
http://www.mouser.com/ProductDetail/ON-Semiconductor/LB1641-E/?qs=sGAEpiMZZMtKB4wrjsn3lSzQNSn3XsIpA3TUIJmnxwk%3d
this one is good too, but 3.5V threshold so maybe better for 5v mcu's or manual button presses.
http://www.mouser.com/ProductDetail/Toshiba/TA7291SGOJ/?qs=sGAEpiMZZMtKB4wrjsn3lbY2wcnw7iEm1M%252bpQk0xjM8%3d
The 2N2222 is still the right NPN transistor, but you need a 2N2907 for a PNP to go with it if you want an H-bridge.
http://www.futurlec.com/Transistors/2N2907.shtml
why not using 4 npn what is the usage of the pnp transistor
Where are you gone get the 16v from?
Modern Hbridge IC uses 4 n-channel mosfets a chargepump for the upper mosfets.
appreciate your help