Society of Robots - Robot Forum
Electronics => Electronics => Topic started by: blackbeard on October 15, 2009, 03:17:46 PM
-
so i'm making an Hbridge for one of my robots and i discovered this
http://www.solarbotics.net/library/circuits/driver_4varHbridge.html (http://www.solarbotics.net/library/circuits/driver_4varHbridge.html)
since i have all most of the parts (lots of 2n2219 transistors, 7414 ic, resistors) i figured it might be worth while. then i noticed that it uses 2 different kinds of transistors. is this important or can i use the 2n2219 transistors in place of the 2n2905 transistors as well?
-
They are either NPN or PNP transistors. The one with the arrow pointing away from the device is NPN, and the one where the arrow points towards the device is PNP. Just follow what is layed out on that diagram, or check out an H-Bridge IC, such as the L293D or the SN754410 (they are actually quad half H-bridges... aka dual H-bridges) that are good for controlling 2 motors.
You can use two complementary transistors aswell.
-
doh >.<
ya that makes sense. thanks for the info
-
Hi,
since i have all most of the parts (lots of 2n2219 transistors, 7414 ic, resistors) i figured it might be worth while. then i noticed that it uses 2 different kinds of transistors. is this important or can i use the 2n2219 transistors in place of the 2n2905 transistors as well?
If it weren't important, why would they make it with different transistors?
Designers tend to use as little variety in their component choice within a given project as possible.
If you build it with only 2N2219, Q1(Q2) and/or Q4(Q3) will die screaming the instant input A(B) is going low, as they will both be open and try to shunt the battery.
The only thing excusing the (very poor) original design is the low operating voltage, since both transistors will be open when the output of the inverter gate transitions through the interval from ~0.7V to ~Vcc-0.7V, but it's meant for a BEAM, where voltages are low and, all too often, minimalism takes priority over quality in design.
With an extra inverter, mounted between the base+resistor (i.e. on the far side of the resistors seen from the bases) of Q1 and Q4 (similar for the other side), they should work, although not at max. efficiency, since there will be a short overlap in the switching where both transistors conduct.
-
ya i'm not even going to bother with this. the 2n2219 transistors burn out with the power from my USB port! junk they are!
-
it uses 2 different kinds of transistors. is this important
half way down:
http://www.dprg.org/tutorials/1998-04a/ (http://www.dprg.org/tutorials/1998-04a/)
NPN --- Not Pointing In
PNP --- Pointing in
-
ya guys i got the whole npn pnp thing :P i just didn't look hard enough
-
They are either NPN or PNP transistors. The one with the arrow pointing away from the device is NPN, and the one where the arrow points towards the device is PNP. Just follow what is layed out on that diagram, or check out an H-Bridge IC, such as the L293D or the SN754410 (they are actually quad half H-bridges... aka dual H-bridges) that are good for controlling 2 motors.
You can use two complementary transistors aswell.
Sorry about posting in a horrendously dead thread, but how would the circuit change if I used an IC, such as the L293D? The transistors in the tutorial are obsolete, and the IC seems like a simpler solution. I'm a mech person though, and still new to this electron magic electronics.
-
Hi,
Sorry about posting in a horrendously dead thread, but how would the circuit change if I used an IC, such as the L293D?
It would change completely, as the L293D would replace all the transistors and resistors.
The transistors in the tutorial are obsolete,
No they're still very current - used where you need a bit more current than eg. BC54x/BC55x can handle.
and the IC seems like a simpler solution. I'm a mech person though, and still new to this electron magic electronics.
Just download the datasheet for the L293D, where you'll find an application circuit, but the discrete build will teach you more and be easier to understand, so ask yourself whether getting a finished result or learning how stuff works is your main priority.
-
No they're still very current - used where you need a bit more current than eg. BC54x/BC55x can handle.
Ah, the internet lied to me then, it's not the first time. Since both are relatively cheap I'll probably do both methods, just for the experience. Thanks for your help!
-
2n2219 is a bad idea for a Hbridge. You're better off using power mosfets. They can handle higher voltages, and have a inductive spike diode already included.
http://www.sparkfun.com/products/10213 (http://www.sparkfun.com/products/10213) (N Channel)
http://www.sparkfun.com/products/10349 (http://www.sparkfun.com/products/10349) (P Channel)