PNP switching transistor
charlieknox
Posts: 27
I'm using 4 outputs from a Basic Stamp to control 14 outputs (turning on/off 24 volt pneumatic valve ports)through a 74LS154 demultiplexer chip.· The chip has a low output signal for the active output.· I am trying to use a 2N3906 PNP transistor to switch the 24 volt pneumatic valve solenoid on and off.· I have a common ground for the Stamp, demultiplexer, and pneumatic valve.· I have a 1Kohm resistor (tried a 10K, too) from the demultiplexer output pin to the base of the 2N3906.· I have the emitter of the transistor hooked to +24v.· I have the pneumatic valve + hooked to the transistor collector, and the pneumatic valve - hooked to the common ground.· The poneumatic valve comes on under all output conditions, high or low.· I used an LED & resistor in place of the pneumatic valve, with the same results.· Any ideas?· I suppose I could use inverters between the demultiplexer and 2N3904 (or 2N222A) NPN transistors, but I had hoped this arrangement could work.
Thanks much in advance for any advice you can offer.
Regards,
Charlie
Thanks much in advance for any advice you can offer.
Regards,
Charlie
Comments
So, PNP is·not going to turn off till its base gets somewhere near emitter potential.
http://forums.parallax.com/showthread.php?p=641605
http://Pinellas-sign-manufacturer.com
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Fernando Gomez
Never compare yourself with anyone else, there will always be someone bigger·or·smaller·than you.
The emitter is at +24v, always.
The base is at +0 or +5 volts, approximately, through a resistor from the chip output, always. Neither of these will turn the transistor off.
I'd use a couple of ULN2803A arrays to drive the relays, if the relay current is within its capability (quite likely). You'll also need inverters between the multiplexer and the ULN2803As unless you can find a multiplexer that drives the selected output high (instead of driving it low).
Alternatively, you could use two 8-bit serial-in, parallel-out shift registers, 74164 for example. Shift two bytes in and your new pattern can have one high and the others low, or vice versa, or any other pattern you want. You'll still need the ULN2803A, but you won't need inverters, and you can have more than one valve actuated at a time if you like. Also you can do it with fewer than four outputs from the microprocessor. You probably won't need to latch the data, because you can shift 16 bits into a pair of cascaded 74164s in less than a microsecond. If your valves move too fast for that, you'll have to use latching buffers between the 74164s and the ULN2803As -- but a valve that would move in a microsecond would be a mighty fast valve.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
· -- Carl, nn5i@arrl.net
-Phil
Post Edited (Phil Pilgrim (PhiPi)) : 12/16/2008 4:21:59 AM GMT
Regards,
Charlie
-Phil
Can you describe a bit, what would be needed, beyond the Stamp output (serial, apparently, so only 1 pin ??), and how it would work, if I DID use the 595 or TI chip.· I'm switching 14 outputs, so apparently would need two of either of those chips.· I'm not up to speed on the shift register chips, and how they work, but it sounds like I should check them out !!
Thanks again.
Charlie
In either case, you would need a shift clock, a data line, and a latch clock (3-pins). The two '595s or TI chips can be daisy-chained to form a 16-bit shift register.
-Phil
·
-Phil
Oops, only 16V though.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Think Inside the box first and if that doesn't work..
Re-arrange what's inside the box then...
Think outside the BOX!
Post Edited (metron9) : 12/16/2008 9:15:57 PM GMT
The reason your original design didn't work was that both collector and emitter of the switching device (the PNP) were at voltages (about·-24v)·far outside the range in which the control signal varied (0-5v).· The same would be true of FETs.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
· -- Carl, nn5i@arrl.net
-Phil
Post Edited (Phil Pilgrim (PhiPi)) : 12/16/2008 11:43:43 PM GMT
Take a look at this one, it should do just what you want about as simple and reliably as it can·be done:
http://www.st.com/stonline/products/literature/ds/1093.pdf
Darlene·
·
What I haven’t seen mentioned·is the potential substrate diode damage that can occur when using only a PNP transistor with a voltage higher than the microprocessors voltage.
·
PJ’s method will work just fine, but I prefer that the NPN is configured as an Emitter follower.· This eliminates a double stage inversion, but is only a preference, either way will work fine.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Beau Schwabe
IC Layout Engineer
Parallax, Inc.
http://www.datasheetcatalog.org/datasheet/SGSThomsonMicroelectronics/mXywwyx.pdf
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Think Inside the box first and if that doesn't work..
Re-arrange what's inside the box then...
Think outside the BOX!