My electrical engineering education at the University of Washington back in the late 1970s was long on theory and short on hands on experience. Hence it wasn’t until recently, when I started to fool around with electronics, that I needed to know which way on a transistor was up.
Yeah, pathetic, I know. Especially since while I spent much of my college years almost in tears, grinding out partial differential equations to perform circuit analysis that is now performed instantly by inexpensive PC software, a bunch of geeks who never went to college jump-started the personal computer revolution thanks to their hands-on experience as electronics technicians. There’s a lesson there somewhere. Too bad I don’t have a life to live over again.
So, uh, which way on a transistor is up? I made the mistake of seeking the answer on the internet, and so I was doomed. Lo, the truth is on the back of any package of transistors:
So you’re wondering, “Why didn’t you just look at the back of the package instead of online?” Well, my first transistor was cannibalized from a Certain Microcontroller Kit (not an Arduino) and the transistor came in a clear plastic package with no information whatsoever. So I looked up the pin configuration on the internet. And from then on, I assumed that the incorrect information was correct, so I didn’t bother to look at the back of the information-rich packages when I did buy more transistors.
Just so we’re clear, I’ve hi-lited the collector pin in the following sketchup drawing. The hi-lite color is cyan, because ‘c’ is for ‘collector’ and ‘cyan.’
Now, since I no longer trust my aging brain to rotate drawings in three dimensions, I’ll let Sketchup do it for me, and then I’ll provide a transistor symbol for illustration.
This is how it should appear when you’re looking at it on a breadboard. The memory trick I’m going to use from now on to remember this is that when the transistor case is oriented so that it resembles a ‘C,’ the collector pin is on top.
All right, that’s settled. But after realizing the error of my ways, I started to wonder, “If the transistors were installed backwards, how come the circuits I’ve designed have still worked?”
Well, according to a technical forum on the internet (technical forums being about the only place on the internet where reliable information is to be found), transistors work even if they’re installed backwards!
“Nah,” I said. But it’s true. So I made a little test circuit which allows current to pass through an LED and transistor (see photos below). The LED lights to show that the transistor is ON.
We’ll call this the ‘D’ (for Dumb) configuration:
And you’ll notice, that’s how it looks in my crane video (which I’m going to update, BTW). And you’ll also notice, the LED is a-shining!
Well, just for grins, here’s the ‘C’ (for Correct) configuration:
So yes, Virginia, transistors do in fact work when they are correctly installed.
In fact, they even kinda work when they are only half installed, as shown here when the collector is disconnected:
And just so we’re sure on this, they even sorta kinda work when the collector is disconnected and they’re installed backwards:
You know, for all the bad-mouthing hardware gets, it’s more forgiving than software. You forget a parenthesis while writing a Processing sketch, and the IDE lets you know about it. But maybe such nitpicking is a good thing.
You see, there is a price to be paid for installing one’s transistors backwards. It turns out that the current gain (ie, the ratio of collector current to base current) is much less. I will now have to wonder if maybe the Arduino-to-crane interface would have worked with 1K resistors if I’d had the transistors installed correctly.
Something to think about while I update the video.