Back To Basics Episode 8: Diodes Explained: The PN Junction & How to Use Them

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

Today we are diving into a component that might seem simple, but it’s absolutely fundamental to modern electronics. It’s the gatekeeper, the bouncer, the one-way street of electricity.

Think about it: most of the time, we want electricity to flow freely. We complete a circuit, current flows, lights turn on. But what if we only wanted it to flow in one direction? What if we wanted to block it completely if it tried to go the wrong way?

In the above picture, try to move the slider from one side to the other. Notice that? In one case the light is on and in the other the light is off. It all depends on the polarization of the power supply. Look at the color of the wires!
Now, this isn’t magic, and it’s not the LED itself doing all the work here. There’s a special component inside almost every electronic device that makes this kind of directional control possible. Today, we’re talking about the diode.

The Chemistry


To understand a diode, we first need to understand its building blocks: something called semiconductors. Our most common semiconductor is Silicon – the stuff computer chips are made of. Silicon likes to have 4 electrons in its outer shell.


In its pure form, silicon is a pretty bad conductor. Its electrons are all happily bonded up.

But we can ‘trick’ it into becoming conductive by adding tiny impurities in a process called doping.

First, let’s talk about N-type material. ‘N’ for negative. We take our pure silicon and add a tiny amount of an element like Phosphorus. Phosphorus has 5 electrons in its outer shell. When it joins the silicon crystal, four of its electrons bond nicely, but that fifth electron is ‘extra’. It’s loosely held and becomes a free electron.

So, N-type silicon is full of these extra, negatively charged electrons, ready to move around. Think of it like a room full of people, and there are way more people than chairs.”


Now, let’s look at P-type material. ‘P’ for positive. Here, we add an element like Boron, which only has 3 electrons in its outer shell. When it bonds with silicon, it creates a ‘missing electron’ spot. We call this missing spot a hole.


These ‘holes’ act like positive charge carriers. An electron from a nearby atom can jump into a hole, leaving a new hole behind. It looks like the hole itself is moving! So, P-type silicon is effectively full of these positive ‘holes’. This is like a room with lots of empty chairs, and the chairs appear to move as people shift around.

The PN Junction


So, we have our N-type material brimming with free electrons, and our P-type material teeming with ‘holes.’ What happens when we put them together? This is where the magic, and the diode, begins.
Right at the point where the N and P materials meet, the free electrons from the N-side are attracted to the holes on the P-side. They quickly migrate across the junction and ‘fill in’ those holes.
This creates a small, thin region right at the junction that is now depleted of any free charge carriers – no free electrons, and no holes. We call this the Depletion Region.
This depletion region acts like an invisible electrical wall or a barrier. It has its own electric field that opposes any further movement of electrons from the N-side to the P-side. It’s essentially a ‘no-man’s land’ that charges can’t easily cross without some external help.

Click here for PN Junction DEMO

How It Works: Biasing


Now we have our PN junction, and it’s built this internal wall. How do we get current to flow, or stop it completely? We do this by applying an external voltage – a process called biasing.


First, Forward Bias. We connect the positive terminal of our battery to the P-side of the diode (which we call the anode) and the negative terminal to the N-side (the cathode). What happens?
The positive voltage on the P-side repels the holes, pushing them towards the junction. Simultaneously, the negative voltage on the N-side repels the electrons, pushing them towards the junction. This effectively squeezes and shrinks our depletion region – that ‘invisible wall’ we talked about.
Once that wall is thin enough, electrons can easily jump across the junction, fill holes, and continue through the circuit. Current flows! The diode is now acting like a closed switch.


Now, let’s try Reverse Bias. We flip the battery: positive to the N-side, negative to the P-side.
The positive voltage on the N-side pulls the free electrons away from the junction. And the negative voltage on the P-side pulls the holes away from the junction. What happens to our depletion region?
It gets wider and wider! The ‘invisible wall’ gets thicker and stronger, effectively blocking any current flow. The diode is now acting like an open switch. This is why our LED stayed off when we reversed the battery at the beginning!

Click here for PN Junction DEMO

Voltage Drop


Now, even when current flows in forward bias, there’s a small price to pay. That ‘invisible wall’ doesn’t just disappear instantly; it takes a little bit of energy to overcome it.
For a common silicon diode, it takes about 0.7 Volts to push past this barrier and get current flowing. This is called the forward voltage drop (Vf). This means if you only apply 0.5 Volts in forward bias, nothing will happen! You need at least 0.7V to ‘turn it on’.


For an LED, which is actually a special type of diode, this voltage drop is higher – usually between 1.5V to 3V, depending on the color. That’s why LEDs light up: the energy lost by the electron crossing the junction is converted into light!

Application: The Rectifier


So, why is this one-way street so useful? Well, one of its most common and crucial applications is something called rectification. Think about the power coming from your wall outlet at home – that’s Alternating Current, or AC. It’s constantly changing direction, flowing one way, then the other.


But most of our modern electronics, like your phone charger or laptop, need Direct Current, or DC – current that always flows in one direction. How do we get from AC to DC?
A diode does exactly that! When the AC voltage is positive, the diode is forward-biased, and current flows. But when the AC voltage goes negative, the diode is reverse-biased, and it blocks the current.

The result? We chop off half of the AC waveform, leaving us with pulsating DC current!


This is just a simple half-wave rectifier. With a few more diodes in a clever arrangement, we can even convert both halves of the AC wave into usable DC, making our power much more efficient. This process is absolutely essential for powering virtually all our electronic gadgets from the wall.

Common Mistakes


Now that you understand how diodes work, let’s quickly cover the 3 most common mistakes hobbyists make, so you can avoid them!

Mistake #1: forgetting the forward voltage drop.

Remember that forward voltage drop of 0.7V in a silicon diode, and much more in a LED? If your power source is less than the diode’s forward voltage drop, it simply won’t conduct! Your LED won’t light up, or your circuit won’t work, even if everything else is correct. Always factor in that voltage drop when calculating voltages for the rest of your circuit.

MISTAKE #2: Incorrect Polarity.

This is a classic! Diodes are directional. Connect it backward, and it acts like an open switch, blocking all current flow. Most diodes have a stripe or band indicating the cathode (the N-side, where current exits in forward bias). Always double-check your polarity!”

MISTAKE #3: Exceeding Reverse Breakdown Voltage.

While diodes block current in reverse bias, there’s a limit! If you apply too much reverse voltage, the diode will ‘break down’ and suddenly conduct in the reverse direction. This often permanently damages the diode. Always check your diode’s data-sheet for its Maximum Reverse Voltage rating, especially in circuits dealing with higher voltages.

The Essential Starter Kit


Now, if you’re heading to the electronics store or ordering online, you don’t need every diode in the catalog. For 99% of hobbyist projects, you only need to stock up on these three types.

1. The Workhorse: 1N400x Series (Rectifier Diodes)

First is the 1N4001 (or any in the 1N4001–1N4007 family). These are your power-lifters. They are ‘Rectifier Diodes.’ Use these for power supplies, protecting your circuit from reverse-polarity batteries, or blocking ‘kickback’ voltage from motors and relays. They can usually handle up to 1 Amp of current.

2. The Speedster: 1N4148 (Signal Diodes)

Next, you need a bag of 1N4148s. These are ‘Signal Diodes.’ They are much smaller and made of glass. They can’t handle much power, but they are fast. Use these for processing logic signals, timing circuits, or anywhere you’re handling data rather than raw power.

3. The Low-Toll Option: Schottky Diodes (like the 1N5817)

Finally, grab some Schottky Diodes, like the 1N5817. Remember that 0.7V ‘toll’ we talked about? Schottkys have a much lower voltage drop—usually around 0.2V to 0.3V. These are lifesavers in battery-powered projects where you can’t afford to waste any energy.

Bonus: The Zener (The “Voltage Regulator”)

If you’re feeling fancy, grab a variety pack of Zener Diodes. Unlike regular diodes, these are designed to conduct backward at a specific voltage. They are perfect for creating simple voltage references or protecting sensitive pins from high-voltage spikes.

The Diode Check


Here is a pro-tip for you: If you find a loose diode on your desk and the markings have rubbed off, use your multimeter’s Diode Test mode.

When you touch the Red probe to the Anode and Black to the Cathode (the side with the stripe), the meter will show you the actual voltage drop. If it shows around 0.6 or 0.7, it’s a standard Silicon diode. If it shows 0.2, you’ve found a Schottky! And if it shows ‘OL’ in both directions? That diode is dead—toss it in the bin.

Conclusion


So there you have it! The humble diode, from its microscopic PN junction to its critical role in converting AC to DC. It’s a simple component with powerful implications, acting as the one-way valve that gives us control over electricity’s flow.
Next time you’re working on a project, think about how the diode is controlling current, protecting your circuit, or converting power. Understanding this basic building block opens up a whole new world of electronic possibilities!


If you enjoyed this deep dive, let me know in the comments what other components you’d like to see covered next!

And, of course, you can watch the companion video at the following YouTube link.


Happy experiments!!!

Back To Basics Episode 6: The Absolute Beginners Guide To Capacitors


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


Think of your favorite gadget. Your phone, your laptop, even your car. Now, imagine if they just… stopped working. Not because the battery died, but because they couldn’t handle the noise of their own electricity.


Most people know about batteries but, today, we are talking about the unsung hero of the circuit board: the capacitor. It’s the component that can dump its entire energy load in a millisecond, smooth out a jagged power supply, and even keep your clock running when you pull the plug.


Today, in back to basics, we dive into the world of electrostatic storage. Let’s find out how these little cans and disks actually work.

What Is A Capacitor


Basically, a capacitor is a passive component that stores energy in an electric field. Unlike a battery, which uses a slow chemical reaction, a capacitor is all about speed.


To visualize this, imagine a plumbing system. If a battery is a huge water reservoir, a capacitor is a small pressure tank. It can’t supply water for hours, but if the main pump flickers for a second, the pressure tank kicks in instantly to keep the flow steady. It’s the ultimate shock absorber for electricity.


It is made of three main parts: two conductive plates, and an insulator in between, called a dielectric. When we apply voltage, positive charges pile up on one plate, and negative charges pile up on the other. The charges would like to reach each other, but the dielectric stops them. That tension is actually stored energy inside the capacitor in the form of an electric field generated by those charges.


We measure the ability to store charge in Farads. But, because a single Farad is actually a huge amount of energy, we most often use a small fraction of it: the millifarad, the microfarad, the nanofarad, and the picofarad.

Top Three Applications

Why do we actually use capacitors?

There are three big roles for them:

  • filtering and smoothing, where they turn bumpy DC voltages into a smooth and steady line.
  • energy storage, where they can provide a quick burst, for example for a camera flash or a subwoofer’s bass hit
  • signal coupling, where they allow AC signals, like music, to pass through a circuit, while blocking unwanted DC offset.


Now, not all capacitors are built the same. Here are three types that you’ll see the most often.


Ceramic capacitors: small, cheap, and non polarized, which means you can plug them either way. They look like little lentils and are perfect to deal with high speed filtering.


Electrolytic capacitors: these look like miniaturized soda cans. They hold a lot of energy but they are polarized, meaning they have a positive and a negative side. Hook them up backward, and things will get really messy. They are perfect for low speed filtering, for example in DC power supplies.


Film capacitors: Usually rectangular and green or red. These are very stable and great for audio circuits or high voltage power.

And, just to give you the full picture, here is a table I made where all the type of capacitors are listed.

In here, note that NP0 capacitors are a special kind of ceramic capacitors. Polystyrene and polypropylene are the typical dielectrics of film capacitors. Tantalum capacitors are a type of electrolytic capacitors, where the positive plate uses tantalum metal, and the dielectric is made oxidizing one side of the tantalum plate. As the other kind of electrolytic capacitors, these are also polarized.

Identify The Codes

OK, let’s say now we got a bunch of capacitors, all there sitting on the workbench. But how do we know which one is which? Unlike resistors, which use color bands, capacitors use numbers and letters printed on their body. The big problem is, different types of capacitors don’t speak the same language. And… yes, sometimes even same type capacitors don’t.

Let me tell you the most common ways to interpret the information on the capacitors cases.

And let’s start with electrolytic capacitors. They are the most straightforward, because they are physically larger, and the manufacturers have enough room to print the actual values directly on the side.

The capacitance is a number followed by the Greek letter mu and a capitol F, which stand for microfarads. For example, this one says 100uF. No math required.

Follows the maximum voltage rating, in this case 50V. Remember that you have to always use the capacitor at a voltage smaller than the rated voltage, or you’ll damage the capacitor.

Last, we have the polarity, this big stripe with the minus sign. That stripe indicates the negative lead of the capacitor. Note also that in an electrolytic capacitor, the negative lead is also shorter than the positive one.

Let’s now take a look at the ceramic capacitors. These capacitors are too small for full labels. Instead, they use a three digit code and their unit is always expressed in picofarads, or pF. The first two numbers are the value, and the third number indicates how many zeros you have to add to the previous two digits to provide their value in picofarad.

Additionally, when the number of picofarads is very small, in the order of only one or two digits, then the value can be directly expressed with those digits. In that case, we have only one or two digit numbers.

For example, on this one we read the digits 1-0-4. That means we have a 10 followed by 4 zeros. That gives us the number 100,000, so the value is 100,000 pF, or 100nF, or 0.1uF. And yes, we need a little math to interpret the values of these capacitors.

Here is another ceramic capacitor. This one has only two digits printed on it: 3-3. This means that the number 33 is the nominal value of the capacitor in pF.

Lastly, let’s take a look at a film capacitor.

These capacitors often use a mix. You might see a 3-digit code, like the ceramics, but you will also see a letter at the end. That letter represents the tolerance, or how accurate the nominal value actually is.

But wait, there is more: the rated voltage. This one can be expressed in three different ways. It can be written explicitly, or it could be missing, of there could be a code which is prefixed to the capacitor value.

If it is expressed in clear, then that is the actual rating.

If the voltage rating is not present at all, then it is 50V by default.

If it is encoded along with the capacitance value, then it can be one of those listed in the EIA standard. Here is the corresponding table for the most common.

As an example, the film capacitor above reads: 2A393J.

2A translates into a voltage rating of 100V; 393 translates into a value of 39,000pF, or 39nF, and the letter J at the end translates into a tolerance of 5%.

Here is the hole list of tolerances.


A pro tip for you now, valid for any kind of capacitor. If the text is rubbed off, or too small to read, or has any other problem that prevents you from reading it, don’t guess. Use a multimeter capable of reading capacitance. It will give you the live reading of exactly what that component is holding, and it’s the only way to be 100% sure before you solder the component in a circuit.

Pitfalls


Okay, now that we have covered some theory and some practical aspects, it’s time to take a look at what I call the ‘Wall of Shame’. If you stay in this hobby long enough, you will eventually blow up a capacitor. It’s almost a rite of passage! But to save you the jump-scare and the smell of burnt electrolyte, I want to show you the most common ways people accidentally kill or misuse their capacitors—and how you can avoid doing the same.
Here is my list #1 mistakes every beginner makes and how to fix or prevent them.

  • The polarity POP or: connecting an electrolytic capacitor backward. The consequence is that the internal dielectric breaks down, the electrolyte boils into gas, and pressure builds up until the safety vent bursts, or the whole capacitor pops. To prevent that, always look for the stripe on the side of the capacitor, which marks the negative lead, or look for the longer leg, which marks the positive lead.
  • Ignoring the voltage rating, or using a capacitor that is rated exactly for the voltage of the circuit or. worst, a capacitor with a smaller rating. In such a case, an excessive voltage can push the capacitor over its limits, causing it to leak or fail prematurely. Avoid that by always leave a safety margin. Use a capacitor rater 20 to 50% higher than the circuit voltage. If the circuit works at 12V, use a 16V or even a 25V capacitor.
  • The ghost charge. This has more to do with safety. Don’t assume a capacitor is off just because the device is unplugged. Capacitors, especially if large, can hold a dangerous charge for days or even weeks. Touching the leads can give you a nasty shock, or damage the multimeter if connecting the charged capacitor to it. Before handling the capacitor, discharge it. This can be safely done using a high value resistor ,like 1k, to bleed the energy off slowly.
  • Wrong type for the job, for example when using an electrolytic capacitor when a ceramic one should have been used instead. The result is usually an erratic behavior of the circuit. For example, using a large electrolytic capacitor near a micro-controller can cause the random reset of the micro-controller itself, because of the random electrical noise on the power line that the capacitor cannot get rid of. In such a case a small ceramic capacitor should be used for decoupling. Remember: electrolytic capacitors are good for bulk energy storage, ceramic capacitors are good for high speed noise filtering.
  • Soldering stress, or thermal shock. Holding the soldering iron on the capacitor leads for too long causes excessive heat that can dry out the electrolyte inside an electrolytic capacitor, of crack the ceramic layer of a ceramic capacitor, or melt the dielectric of a film capacitor. Always use a clean and tinned iron tip to be able to do make good soldered joints is a short time. You may want to see my video on soldering techniques for further information.

The Essential Capacitor Starter Kit

Before closing, here are some suggestions to create your own capacitors starter kit, an assortment of capacitors that covers 95% of the necessities for beginners projects, like Arduino, LED circuits, simple audio circuits, and so on. Start with a mix of ceramic and electrolytic capacitors. You can add more later.


Ceramic capacitors will be useful as non polarized noise killers. They are used for decoupling and filtering high frequency noise.
Useful values are:

  • 22pF, essential if you are building your own micro controllers, ad they are used in crystal oscillators.
  • 0.1 uF, the most common capacitor in existence. Every integrated circuit usually needs one of these right next to its power pin.
  • 1uF, good for general purpose filtering


Electrolytic capacitors will be useful as polarized power smoothers. These are bulk energy storage for power supplies. The most common values for beginner projects are:

  • 10uF, 25V or 50V. used for small scale power smoothing.
  • 100 uF, 25V. Great for stabilizing power rails in breadboard projects.
  • 1000uF, 25V. The big tanks. Used when dealing with motors or long LED strips of LEDs that pull a lot of current.

As an alternative, rather than buying individual values, search for capacitor assortment kits, on sites like Amazon, Adafruit, or Ali Express. They usually come in a plastic organizer box and are very cheap.

When buying a kit, look for capacitors rated at 25V or 50V. While 16V capacitors are smaller, a 50V capacitor can do everything a 16V one can, making it much more versatile for a beginner who might accidentally plug it into a 24V source.

Conclusion


So, there you have it: the humble capacitor. It is not just a tiny battery; it is the heartbeat and the filter of almost every circuit you’ll ever build.

I’ll see you in the next episode, and in the mean time…

Happy experiments!!!