# Diodes: The Switch You Never Knew You Had

When looking across the discrete components in your electronic armory, it is easy to overlook the humble diode. After all, one can be forgiven for the conclusion that the everyday version of this component doesn’t do much. They have none of the special skills you’d find in tunnel, Gunn, varicap, Zener, and avalanche diodes, or even LEDs, instead they are simply a one-way valve for electrical current. Connect them one way round and current flows, the other and it doesn’t. They rectify AC to DC, power supplies are full of them. Perhaps you’ve also used them to generate a stable voltage drop because they have a pretty constant voltage across them when current is flowing, but that’s it. Diodes: the shortest Hackaday article ever.

Not so fast with dismissing the diode though. There is another trick they have hiding up their sleeves, they can also act as a switch. It shouldn’t come as too much of a shock, after all a quick look at many datasheets for general purpose diodes should reveal their description as switching diodes.

So how does a diode switch work? The key lies in that one-way valve we mentioned earlier. When the diode is forward biased and conducting electricity it will pass through any variations in the voltage being put into them, but when it is reverse biased and not conducting any electricity it will not. Thus a signal can be switched on by passing it through a diode in forward bias, and then turned off by putting the diode into reverse bias.

# Diodes With Hats: Zener and Schottky

For beginners, diode types can sometimes be a bit of mental gymnastics. If all it does is act like a magic pixie check valve, why are there so many kinds? Schottky diodes are typically  hard to mentally set apart from the standard when described by a data sheet. Zener diodes can be downright baffling for beginners, especially when mistakenly thrown in a circuit in place of a regular 1N4001. [Afrotechmods] put together a great video explaining their difference and use cases.

In both videos he does an excellent job of describing the pros and cons while setting up experiments to exhibit each. For the Schottky it’s the faster switching and lower voltage drop. For Zener it’s less about the cons and more about exploiting its strange configuration for voltage clamps, regulators, and making expensive guitars sound bad with audio distortion circuits.

He finishes both videos with good design tips for selecting and using the parts as a burgeoning circuit designer. Diode data sheets should be less of a mystery afterwards.

# Hackaday Prize Entry: Characterizing LED and Laser Diodes

Needless to say, we’re fascinated by LEDs, laser diodes, and other blinkies. Although we can get just about any light emitting thing, the data sheets aren’t always accurate or available. For his Hackaday Prize entry, [Ted] is building a device to characterize the efficiency, I/V curve, and optical properties of all the blinkies. It’s a project to make glowy stuff better, and a great entry for the Hackaday Prize.

The inspiration for this project came from two of [Ted]’s projects, one requiring response curves for LEDs, and laser diodes for another. This would give him a graph of optical output vs. current, angular light output distribution, and the lasing threshold for laser diodes. This data isn’t always available in the datasheet, so a homebrew tool is the only option.

The high-level design of this tool is basically a voltmeter and ammeter measuring a glowy diode, producing IV curves and measuring optical output. That takes care of all the measurements except for the purely optical properties of a LED. This is measured by a goniometer, or basically putting the device under test on a carriage attached to a stepper motor and moving it past a fixed optical detector.

If you’re wondering why this device is needed and a simple datasheet is insufficient, check this out. [Ted] measured the efficiency of a Luxeon Z LED, and found the maximum efficiency is right around 10mA. The datasheet for this LED shows a nominal forward current of 500mA, and a maximum of 1000mA. If you just looked at the datasheet, you could easily assume a device powered for years by a coin cell would be impossible. It’s not, and [Ted]’s device gave us this information.

# Books You Should Read: Basic Electronics

I learned some basic electronics in high school physics class: resistors, capacitors, Kirchoff’s law and such, and added only what was required for projects as I did them. Then around 15 years ago I decided to read some books to flesh out what I knew and add to my body of knowledge. It turned out to be hard to find good ones.

The electronics section of my bookcase has a number of what I’d consider duds, but also some gems. Here are the gems. They may not be the electronics-Rosetta-Stone for every hacker, but they are the rock on which I built my church and well worth a spot in your own reading list.

## Grob’s Basic Electronics

Grob’s Basic Electronics by Mitchel E Schultz and Bernard Grob is a textbook, one that is easy to read yet very thorough. I bought mine from a used books store. The 1st Edition was published in 1959 and it’s currently on the 12th edition, published in 2015. Clearly this one has staying power.

I refer back to it frequently, most often to the chapters on resonance, induction and capacitance when working on LC circuits, like the ones in my crystal radios. There are also things in here that I couldn’t find anywhere else, including thoroughly exhaustive online searches. One such example is the correct definitions and formulas for the various magnetic units: ampere turns, field intensity, flux density…

I’d recommend it to a high school student or any adult who’s serious about knowing electronics well. I’d also recommend it to anyone who wants to reduce frustration when designing or debugging circuits.

You can find the table of contents here but briefly it has all the necessary introductory material on Ohm’s and Kirchoff’s laws, parallel and series circuits, and so on but to give you an idea of how deep it goes it also has chapters on network theorems and complex numbers for AC circuits. Interestingly my 1977 4th edition has a chapter on vacuum tubes that’s gone in the current version and in its place is a plethora of new ones devoted to diodes, BJTs, FETs, thyristors and op-amps.

You can also do the practice problems and self-examination, just to make sure you understood it correctly. (I sometimes do them!) But also, being a textbook, the newest edition is expensive. However, a search for older but still recent editions on Amazon turns up some affordable used copies. Most of basic electronics hasn’t changed and my ancient edition is one of my more frequent go-to books. But it’s not the only gem I’ve found. Below are a few more.

# History Of The Diode

The history of the diode is a fun one as it’s rife with accidental discoveries, sometimes having to wait decades for a use for what was found. Two examples of that are our first two topics: thermionic emission and semiconductor diodes. So let’s dive in.

## Vacuum Tubes/Thermionic Diodes

Our first accidental discovery was of thermionic emission, which many years later lead to the vacuum tube. Thermionic emission is basically heating a metal, or a coated metal, causing the emission of electrons from its surface.

In 1873 Frederick Guthrie had charged his electroscope positively and then brought a piece of white-hot metal near the electroscope’s terminal. The white-hot metal emitted electrons to the terminal, which of course neutralized the electroscope’s positive charge, causing the leafs to come together. A negatively charged electroscope can’t be discharged this way though, since the hot metal emits electrons only, i.e. negative charge. Thus the direction of electron flow was one-way and the earliest diode was born.

Thomas Edison independently discovered this effect in 1880 when trying to work out why the carbon-filaments in his light bulbs were often burning out at their positive-connected ends. In exploring the problem, he created a special evacuated bulb wherein he had a piece of metal connected to the positive end of the circuit and held near the filament. He found that an invisible current flowed from the filament to the metal. For this reason, thermionic emission is sometimes referred to as the Edison effect.

But it took until 1904 for the first practical use of the effect to appear. John Ambrose Fleming had actually consulted for the Edison Electric Light Company from 1881-1891 but was now working for the Marconi Wireless Telegraph Company. In 1901 the company demonstrated the first radio transmission across the Atlantic, the letter “S” in the form or three dots in Morse code. But there was so much difficulty in telling the received signal apart from the background noise, that the result was disputed (and still is). This made Fleming realize that a more sensitive detector than the coherer they’d been using was needed. And so in 1904 he tried an Edison effect bulb. It worked well, rectifying the high frequency oscillations and passing the signals on to a galvanometer. He filed for a patent and the Fleming valve, the two element vacuum tube or thermionic diode, came into being, heralding decades of technological developments in many subsequent types of vacuum tubes.

Vacuum tubes began to be replaced in power supplies in the 1940s by selenium diodes and in the 1960s by semiconductor diodes but are still used today in high power applications. There’s also been a resurgence in their use by audiophiles and recording studios. But that’s only the start of our history.

# Books You Should Read: Instruments Of Amplification

Psst… Wanna make a canning jar diode? A tennis ball triode? How about a semiconductor transistor? Or do you just enjoy sitting back and following along an interesting narrative of something being made, while picking up a wealth of background, tips and sparking all sorts of ideas? In my case I wanted to make a cuprous oxide semiconductor diode and that lead me to H.P. Friedrichs’ wonderful book Instruments of Amplification. It includes such a huge collection of amplifier knowledge and is a delight to read thanks to a narrative style and frequent hands-on experiments.

Friedrichs first authored another very popular book, The Voice of the Crystal, about making crystal radios, and wanted to write a second one. For those not familiar with crystal radios, they’re fun to make radios that are powered solely by the incoming radio waves; there are no batteries. But that also means the volume is low.

Readers of that book suggested a good follow-up would be one about amplifier circuits, to amplify the crystal radio’s volume. However, there were already an abundance of such books. Friedrichs realized the best follow-up would be one on how to make the amplifying components from scratch, the “instruments of amplification”.  It would be unique and in the made-from-scratch spirit of crystal radios. The book, Instruments of Amplification was born.

### The Experiments

The book includes just the right amount of a history, giving background on what an amplifier is and how they first came in the electrical world. Telegraph operators wanted to send signals over greater and greater distances and the solution was to use the mix of electronics and mechanics found in the telegraph relay. This is the springboard for his first project and narrative: the microphonic relay.

The microphonic relay example shown on the right places a speaker facing a microphone; the speaker is the input with the microphone amplifying the output. He uses a carbon microphone salvaged from an old telephone headset, housing everything in an enclosure of copper pipe caps, steel bar stock, nuts and bolts mounted on an elegant looking wood base. All the projects are made with simple parts, with care, and they end up looking great.

# Zero Parts-Count Temperature Sensor

Quick: What’s the forward voltage drop on a conducting diode? If you answered something like 0.6 to 0.7 V, you get a passing grade, but you’re going to have to read on. If you answered $V_F = \frac{T-T_0}{k}$ where T0 and k are device-specific constants to be determined experimentally, you get a gold Jolly Wrencher.

[Jakub] earned his Wrencher, and then some. Because not only did he use the above equation to make a temperature sensor, he did so with a diode that you might have even forgotten that you have on hand — the one inside the silicon of a MOSFET — the intrinsic body diode.

[Jakub]’s main project is an Arduino-controlled electronic load that he calls the MightWatt, and a beefy power MOSFET is used as the variable resistance element. When it’s pulling 20 or 30 A, it gets hot. How hot exactly is hard to measure without a temperature sensor, and the best possible temperature sensor would be one that was built into the MOSFET’s die itself.

There’s a bunch of detail in his write-up about how he switches the load in and out to measure the forward drop, and how he calibrates the whole thing. It’s technical, but give it a read, it’s good stuff. This is a great trick to have up your sleeve.

And if you’re in the mood for more stupid diode tricks, we recommend using them as solar cells or just stringing a bunch of them together to make a thermal camera.