Go Down

Topic: Multiple transistors from one pin? (Read 1 time) previous topic - next topic

skootles

Jan 05, 2013, 02:25 am Last Edit: Jan 05, 2013, 02:32 am by skootles Reason: 1
I was just wondering if it's possible to drive multiple transistors using one Arduino pin. Here's an example of my current setup:



You can see, I'm using the transistors to make/break the connections between the Arduino and the ZIF socket. Ideally I'd love to just use one pin to switch anywhere from 2-7 transistors. Is that possible?

I figured that this would be possible with a shift register like a 74HC595, but if I can make my circuit simpler, that'd be best.

dhenry

Yes, in that all the transistors will act in lock step with each other.

retrolefty

You do realize that the transistors will propbably invert the signal it passes on to the zif? They will not be a simple/make break between the arduino pins and the zif pins. But without seeing what is going to be plugged into the zif it's difficult to suggest a way to do what you may be trying to do?

But yes you can drive multiple base resistors from a single output pin.

Lefty

Docedison

@ *dhenry* Gee pretty good and on topic too, but that was I think what the OP was asking for..

Bob
--> WA7EMS <--
"The solution of every problem is another problem." -Johann Wolfgang von Goethe
I do answer technical questions PM'd to me with whatever is in my clipboard

skootles


You do realize that the transistors will propbably invert the signal it passes on to the zif? They will not be a simple/make break between the arduino pins and the zif pins. But without seeing what is going to be plugged into the zif it's difficult to suggest a way to do what you may be trying to do?

But yes you can drive multiple base resistors from a single output pin.

Lefty

I do not realize that.

What I'm trying to do is see if it's possible to replace the DIP switches on my ATtiny/ATmega programmer shield. The way it works now is you load the ArduinoISP sketch to the Arduino, plug the shield in, and then there are different 3 banks of 6 DIP switches (and some jumpers) that you flip based on the microcontroller you want to program. The reason for the switches is because the GND, VCC, and SPI pins on each type of microcontroller are different.

Ideally I'd like just one switch, so I figured the best way to do this would be with transistors. I tested a bit using the transistors between some of the SPI pins and they seemed to pass the signal through just fine, but I haven't tried with all of them at once.

SirNickity

Remember that the base or gate pin isn't a simple switch input either -- it's relative to one of the other pins, and which one depends on the type of transistor.  So, with an N-channel FET for instance, the Gate pin needs to be (Vsrc + Vgs) or higher before the transistor will even START to conduct.  You can't treat it exactly like a relay, where the load and control sides are completely independent of each other.  I know that's often a misconception as people suggest "use a transistor" when there's a post about using a relay.

Definitely check out some simulation software so you can see what's happening, and where you won't toast any parts while you learn.  :-)

Kane

Sounds more like the job for some of the more exotic types of opto-couplers than transistors.

fungus

No problem. Just pick your transistor base resistors so that no more than 40mA comes out of the Arduino pin.
No, I don't answer questions sent in private messages (but I do accept thank-you notes...)

Go Up