Back To Basics Episode 9: The 5¢ Component That Runs The World

Welcome back to Back To Basics, our journey to master electronics one little bit at a time.

Today we are talking about this tiny piece of plastic and metal that costs about five cents. And yet, without it, the modern world would completely grind to a halt. No smartphones, no internet, no computers.

This is the transistor, and we are going back to basics to uncover how it works, how it changed history, and how you can use it on your workbench.

If you ever felt intimidated by terms like semiconductors, NPN, or MOSFETs, don’t worry. We are going to break down the physical principles simply, look at the two main branches of the transistor family tree, and then see them manipulate electricity in real time.

The Magic Valve


At its absolute core, a transistor is nothing more than an electronic valve. In a plumbing pipe water flows from one end to the other. If you want to stop it or change the flow, you just turn a handle.

Now imagine replacing the mechanical handle with a tiny control wire. By feeding a very small amount of current into that wire, you can control a massive flow of current through the main pipe.

That is the transistor. It can act as a lightning fast switch, or a smooth proportional amplifier.

History


Before 1947, if you wanted to amplify a radio signal or build a computer, you had to use vacuum tubes. They were bulky, fragile, consumed massive amounts of power, and burned out constantly.


Then, John Bardeen, Walter Brattain, and William Shockley at Bell Labs created this: the first point-contact transistor.

It used a small sliver of germanium. By pushing two gold foil contacts incredibly close together on the surface, they discovered they could leverage the physics of semiconductors.


If you remember our episode on diodes, you know that doping silicon with impurities creates P-type regions—containing holes—and N-type regions, which have extra electrons.


By sandwiching these together into three layers instead of two, they create a device where a tiny charge in the middle layer completely changes whether the outer layers conduct electricity or block it entirely. It is rugged, microscopic, and requires zero warm-up time.

Transistor Family Tree


As the technology evolved, two main styles of transistors rose to dominance. On the left, we have the BJT, or Bipolar Junction Transistor. On the right, the FET, or Field-Effect Transistor.


The fundamental difference comes down to how you control them.
BJTs are current-controlled. A small current flowing into the control pin unlocks a larger current through the device.
FETs are voltage-controlled. You just apply an electrical pressure, an electrostatic field, to the control pin to open the gate, requiring almost no continuous current at all.

The following video will show you how they actually work through a couple of practical experiments.

The Essential Starter Kit


Now that you’ve seen how these components function on the test bench, you might be wondering: What should I actually buy to start playing with this myself?


If you go looking at a components distributor, you will find tens of thousands of different part numbers, which is incredibly overwhelming. But the truth is, you only need about four or five transistors types in your stock to build 95% of beginner and intermediate DIY projects. Let’s look at the absolute essentials for your lab drawer.


First up are your low-power BJT signal switches. Your absolute standard defaults are the 2N3904 (NPN) and its complementary partner, the 2N3906 (PNP).

As an alternative, you can get the BC547 and the BC557 fulfilling the exact same role.


These are dirt cheap—literally pennies a piece—and they are fantastic for handling small signals, running classic analog circuits like LED blinkers, driving small 5V relays, or handling basic audio pre-amplification. Pick up a bag of 50 or 100; you will use them all.


Next, you need a small-signal FET. One option is the 2N7000. This is an N-channel MOSFET inside that same tiny plastic housing. Because it is voltage-controlled, it has an incredibly high input impedance. This makes it the absolute perfect choice for interfacing directly with the sensitive I/O pins of an Arduino or a Raspberry Pi to step up signals without drawing power from your microcontroller.


Another option is to get a J201, which is a general purpose amplifier FET, very good for small amplifiers that need an high input impedance.


You can get them both, if you like. My suggestion is to get some for your first project, 10 for example, and if you need something different later on, you can buy a few of the other one, so you slowly increase your stock pile without spending a lot of money at once.


Finally, when you need to step away from small currents and drive something with real power—like heavy LED strips, solenoid valves, or hefty DC motors—you need a power MOSFET in a TO-220 package. Look for the 30N06, capable of driving up to 8A of current, or the STP60NF06, which can go up to 30A.


That metal tab on the back isn’t just for show; it allows you to bolt on a heat-sink to dissipate heat when you are pushing several amps of current through the device.


Having just a handful of these three types of transistors, BJT for small signals, FET or MOSFET for low signals and power MOSFET for the heavy lifting, gives you the freedom to build almost anything.

Conclusion


Whether you are designing a precise analog audio amplifier using the linear region of a BJT, or switching high-current motors at thousands of times a second with a power MOSFET, understanding these three-terminal devices changes how you look at hardware.


If you enjoyed this dive into the basics, hit that like button, subscribe so you don’t miss the next workbench experiment, and let me know in the comments: what’s your favorite go-to transistor for quick prototypes?


Happy experiments!!!

More on the Theremin: The Heterodyne Mixer

The heterodyne mixer is the stage of the Theremin where the high frequency signals coming from the pitch reference oscillator and the pitch variable oscillator are combined together to obtain the audio signal.

mixer

Here we are again with another post about the Theremin, which can be considered the first electronic musical instrument ever invented, almost 100 years ago, in 1919, by the Russian physicist Leon Theremin.

At that time the Theremin was made out of thermionic valves and used a lot of space and electric power.

theremin_in_concert

Today, thanks to the evolution of electronics in the last century, we can make one that can occupy much less space while also consuming much less power. In fact, this is one of several articles that I have already published on the design and construction of such musical instruments, using solid state components.

Please consult this site archives for the previous articles on the subject and THIS link for schematics and diagrams, which I keep updating as I go in designing and building the pieces of the instrument

A corresponding series on the Theremin is also available on YouTube at THIS link. There, I describe every detail of my project, explaining how the various parts of the device work and how I built everything so far in a very inexpensive way.

In this article I will explore the Mixer stage of the Theremin, describing how it works and how it is used within the Theremin itself.

The mixer is the Theremin stage that combines together the signals from the pitch variable oscillator and the pitch reference oscillator, to create an audio signal that is essentially the sound that the Theremin produces.

The combination of the two input signals is done with a process called heterodyne. It basically consists in multiplying the two input signals by exploiting the non-linear characteristic of transistor Q1, which is carefully polarized outside its linear zone. The result of the multiplication is a new complex signal containing frequencies that are the sum and the difference of the frequencies of the original input signals. Since the frequencies of those input signals are close to each other, their difference falls in the audible range, which is what produces the peculiar sound of the instrument.

Looking at the schematic, you can see that the two input signals are mixed together at the base of transistor Q1, which they reach passing through capacitors C4 and C8, used to decouple the mixer from the direct current superimposed to the input signals.

Transistor Q1 is polarized in the non-linear zone of its characteristics. Because of the non-linearity of the transistor, the two signals end up being multiplied with each other, producing a new, more complex, signal that contains both the sum and the difference of the frequencies of the input signals. This heterodyne process, therefore, applies the following equation to the two input signals:

sin(2πf1t) * sin(2πf2t) = 1/2 cos(2πf1t – 2πf2t) – 1/2 cos(2πf1t + 2πf2t)

where the factors on the left side represent the two sinusoidal input signals, and the resulting complex signal is on the right side of the equation. The above formula is actually a simplification, because it does not take into account the phase shift between the two input signals, which should appear as a phase factor in the parameters of each of the sine waves on the left side of the equation. However, if we did the full calculations, we would see that we would still obtain the same output waves, but each would have an extra amplitude factor that depends on the initial amplitude of the input signals and on their phase shifts.

Anyway, the complex signal obtained at the collector of transistor Q1 is supplied to a Low Pass filter, made up of the components R4, R7, R8, R9, C2, C3, C5, C6 and C7. The filter produces an attenuation of the high frequency element of the complex signal, effectively leaving only the one at low frequency  cos(2πf1t – 2πf2t), which is the audio signal.

That output signal is then passed to the next stage of the Theremin, the VCA, where it acquires the dynamics of the music sound. We will talk about the VCA in a future post.

If you are interested in more information on the Theremin Mixer and how I built it, please watch this companion VIDEO on YouTube.

And, as always,

Happy experiments !!!