FET: The Friendly Efficient Transistor

If you ever work with a circuit that controls a decent amount of current, you will often encounter a FET – a Field-Effect Transistor. Whether you want to control a couple of powerful LEDs, switch a USB device on and off, or drive a motor, somewhere in the picture, there’s usually a FET doing the heavy lifting. You might not be familiar with how a FET works, how to use one and what are the caveats – let’s go through the basics.

Here’s a simple FET circuit that lets you switch power to, say, a USB port, kind of like a valve that interrupts the current flow. This circuit uses a P-FET – to turn the power on, open the FET by bringing the GATE signal down to ground level, and to switch it off, close the FET by bringing the GATE back up, where the resistor holds it by default. If you want to control it from a 3.3 V MCU that can’t handle the high-side voltage on its pins, you can add a NPN transistor section as shown – this inverts the logic, making it into a more intuitive “high=on, low=off”, and, you no longer risk a GPIO!

This circuit is called a high-side switch – it enables you to toggle power to a device at will through a FET. It’s the most popular usecase for a FET, and if you’re wondering more about high-side switches, I highly recommend this brilliant article by our own [Bil Herd], where he shows you high-side switch basics in a simple and clear way. For this article, you can use this schematic as a reference of how FETs are typically used in a circuit.

Continue reading “FET: The Friendly Efficient Transistor”

MOSFET Heater Is Its Own Thermostat

While we might all be quick to grab a microcontroller and an appropriate sensor to solve some problem, gather data about a system, or control another piece of technology, there are some downsides with this method. Software has a lot of failure modes, and relying on it without any backups or redundancy can lead to problems. Often, a much more reliable way to solve a simple problem is with hardware. This heating circuit, for example, uses a MOSFET as a heating element and as its own temperature control.

The function of the circuit relies on a parasitic diode formed within the transistor itself, inherent in its construction. This diode is found in most power MOSFETs and conducts from the source to the drain. The key is that it conducts at a rate proportional to its temperature, so if the circuit is fed with AC, during the negative half of the voltage cycle this diode can be probed and used as a thermostat. In this build, it is controlled by a set of resistors attached to a voltage regulator, which turn the heater on if it hasn’t reached its threshold temperature yet.

In theory, these resistors could be replaced with potentiometers to allow for adjustable heat for certain applications, with plastic cutting and welding, temperature control for small biological systems, or heating other circuits as target applications for this type of analog circuitry. For more analog circuit design inspiration, though, you’ll want to take a look at some classic pieces of electronics literature.

Frequency Tells Absolute Temperature

It is no secret that semiconductor junctions change their behavior with temperature, and you can use this fact to make a temperature sensor. The problem is that you have to calibrate each device for any particular transistor you want to use as a sensor, even if they have the same part number. Back in 2011  1991, the famous [Jim Williams] noted that while the voltage wasn’t known, the difference between two readings at different current levels would track with temperature in a known way. He exploited this in an application note and, recently, [Stephen Woodward] used the same principle in an oscillator that can read the temperature.

The circuit uses an integrator and a comparator. A FET switches between two values of collector current. A comparator drives the FET and also serves as the output.  Rather than try to puzzle out the circuit just from the schematic, you can easily simulate it with LT Spice or Falstad. The Falstad simulator doesn’t have a way to change the temperature, but you can see it operating. The model isn’t good enough to really read a temperature, but you can see how the oscillation works

You can think of this as a temperature-to-frequency converter. It would be easy to read with, say, a microcontroller and convert the period to temperature.  Every 10 microseconds is equal to a degree Kelvin. Not bad for something you don’t have to calibrate.

Thermistors are another way to measure temperature. Sometimes, you don’t need a sensor at all.

It’s Not Easy Counting Transistors In The 8086 Processor

For any given processor it’s generally easy to find a statistic on the number of transistors used to construct it, with the famous Intel 8086 CPU generally said to contain 29,000 transistors. This is where [Ken Shirriff] ran into an issue when he sat down one day and started counting individual transistors in die shots of this processor. To his dismay, he came to a total of 19,618, meaning that 9,382 transistors are somehow unaccounted for. What is going on here?

The first point here is that the given number includes so-called ‘potential transistors’. Within a section of read-only memory (ROM), a ‘0’ would be a missing transistor, but depending on the programming of the mask ROM (e.g. for microcode as with a CISC x86 CPU), there can  be a transistor there. When adding up the potential but vacant transistor locations in ROM and PLA (programmable logic array) sections, the final count came to 29,277 potential transistors. This is much closer to the no doubt nicely rounded number of 29,000 that is generally used.

[Ken] also notes that further complications here are features such as driver transistors that are commonly found near bond wire pads. In order to increase the current that can be provided or sunk by a pad, multiple transistors can be grouped together to form a singular driver as in the above image. Meanwhile yet other transistors are used as (input protection) diodes or even resistors. All of which makes the transistor count along with the process node used useful primarily as indication for the physical size and complexity of a processor.

A Transistor? Memory? Wait, It’s Both!

What do you get if you cross graphene, hexagonal boron nitride, and tungsten diselenide? Well, according to researchers at Hunan University, you get a field effect transistor that can act as both a switching element or a memory cell. The partial floating-gate field-effect transistor or PFGFET uses 2D van der Waals heterostructures to deal with isolated atomic layers. The paper in Nature is unfortunately behind a pay wall, but you can read a summary over on [TechExplore].

The graphene acts as the gate, and the transistor can be switched between n-type behavior and p-type behavior. It can also be configured as a switching element or as a memory element similar to an EEPROM cell.

One advantage of having configurable transistor types is that a single transistor structure can produce CMOS or complementary circuits. Traditionally, a CMOS IC has two different transistor structures and often producing one of them requires extra effort.

The configuration takes place by applying a control voltage pulse. A negative control voltage produces a p-type FET and a positive voltage configures the same transistor as an n-type. If you don’t have access to the paper, the figures available online offer a good bit of insight into the device’s design.

If you want to learn more about ordinary MOSFETs, we talk about them often. You can also get the skinny on CMOS from [Bil Herd].

When Only A TO92 Will Do

As through-hole components are supplanted by their surface-mount equivalents, we’re beginning to see the departure of once-common component form factors. Many such as the metal can transistors became rare years ago, while others still hang on albeit in fewer and fewer places. One of these is the once-ubiquitous TO92 moulded plastic transistor, which we don’t see very much of at all in 2022. [Sam Ettinger] is a fan of the D-shaped plastic blobs, and has gone as far as to recreate them for a new generation to enjoy.

Though a TO92 was a relatively miniature package in its day, it’s still large enough to easily fit a SOT23 or similar SMD packaged device on a small PCB. So the tiny board with just enough space for the part and the three wires was fabricated, ready for encapsulating. Epoxy moulding a TO92 gave very poor results, so instead an SLA print of a T092 shell was made. It fits neatly over the PCB, producing a perfect TO92 package. We’re sure a translucent pink package would have raised a few eyebrows back in the 1960s though.

There will come a time when restorers of old electronics will use and refine this technique to replace dead components. We’ve seen the technique before, after all.

Practical Transistors: JFETs

Transistors come in different flavors. Tubes used an electric field to regulate current flow, and researchers wanted to find something that worked the same way without the drawbacks like vacuum and filament voltages. However, what they first found — the bipolar transistor — doesn’t work the same way. It uses a small current to modulate a larger current, acting as a switch. What they were looking for was actually the FET — the field effect transistor. These come in two flavors. One uses a gate separated from the channel by a thin layer of oxide (MOSFETs), and the other — a junction or JFET — uses the property of semiconductors to deplete or enhance carriers in the channel. [JohnAudioTech] takes a decidedly practical approach to JFETs in a recent video that you can watch below.

The idea for the FET is rather old, with patents appearing in 1925 and 1934, but there were no practical devices at either time. William Shockley tried and failed to make a working FET in 1947, the same year the first point-contact transistor appeared, which was invented while trying to create practical FETs. In 1948, the bipolar junction transistor hit the scene and changed everything. While there were a couple of working FETs created between 1945 and 1950, the first practical devices didn’t appear until 1953. They had problems, so interest waned in the technology while the industry focused on bipolar transistors. However, FETs eventually got better, boasting both very high input impedance and simplified biasing compared to bipolar technology.

Continue reading “Practical Transistors: JFETs”