Back To Basics Episode 7: Everything You Need To Know About Inductors


In the last episode, we talked about the capacitor—the component that stores energy in an electric field and hates it when voltage changes. Today, we meet its magnetic twin.


If I try to spin a wheel instantly, I cannot do it. Since the wheel has a mass, it has inertia and so it resists being moved. However, once it is finally spinning, if I try to stop it suddenly…. again, it fights me and prevents me from doing it.


In the world of electronics, we have a component that does exactly the same thing, but with the current. Like the capacitor tries to keep a constant voltage at its leads, the inductor tries to keep constant the current that flows through it with the help of a magnetic field.


It is the most stubborn component in a circuit. It is basically the mass of a circuit. If current is not moving through the wire, it doesn’t want it to start. If current is already moving through the wire, it doesn’t want it to change, or even stop.


Today, we are going to look at the physics of the inductors, why they can be dangerous, and how they are used in real world applications.


Anatomy of an inductor


Physically, an inductor is the simplest component you’ll ever see. It is usually just a coil of wire. But don’t let the simplicity fool you.


When current flows through a straight wire, it creates a small magnetic field around it. But when we wind that wire into a coil, a shape that we call solenoid, those individual fields stack up and reinforce each other.


This creates a concentrated magnetic field through the center of the coil. And this is where the energy lives. While capacitors store energy in an electric field between plates, inductors store it in a magnetic field within the coil.
Additionally, what’s inside the coil matters just as much as the wire itself. We call the inside of the coil “core”.

If the core is made out of air, the strength of the field is low, and such inductors are normally used for high frequency circuits.


If the core is made of iron or similar ferromagnetic material, it will channel the magnetic flux and will intensify it, making the inductor capable of storing a much greater amount of energy.


If the core is made of ferrite, which is a ceramic like material containing usually silicon and iron, then the inductor acquires a much faster capability of switching from on to off and viceversa without the energy loss that we would get with solid iron.


The ability of the coil to store energy in a magnetic field is called inductance, and it is measured in Henry, named after Joseph Henry, who discovered this property around the same time as Michael Faraday. The measure Henry is indicated with the capitol letter H.


How the inductor works


So, why the inductor resists to current changes? It comes down to a fundamental rule of physics called Lenz’s law.


When we try to increase the current through an inductor, the magnetic field has to expand. But the expansion actually pushes back against the incoming current. We call this Back EMF, or Back Electromotive force. It’s basically like trying to push a heavy car: it takes a lot of effort just to get it rolling.


Let’s look at the math, but don’t let that scare you. It is just a way to describe the stubbornness of the inductor.

The voltage V across an inductor is defined by

where L is the inductance and di/dt is simply the speed at which the current is changing.
Here is the magic: when we try to push current through, the magnetic field expands. According to Lenz’s law nature hates a change in magnetic flux. And so, the expanding field creates its own internal voltage, the back emf, that pushes back against the battery. It is literally an internal “ghost battery” fighting the actual battery.


Inductor behavior in DC vs. AC


Now, because inductors react to change, they behave totally differently depending on the type of electricity we feed them.


In a DC circuit, when we first flip the switch, the inductor fights the current. It acts like a wall, an open circuit. But, once the current is flowing steadily, the inductor gives up, it becomes just a regular piece of wire.


In an AC circuit, the current constantly changes direction. This means that the inductor is constantly fighting. We call this “fighting” Inductive Reactance. The higher the frequency of the AC, the harder the inductor fights it.


This makes them perfect for filtering out high frequency noise. They let the slow, steady power through, but block the high frequency noise. This is why you see those lumps on the laptop charging cables. They are actually inductors blocking the high frequency interference.


Real world applications

So, where do we actually use these things? Here are a few examples.


Filters: in the audio speakers inductors are used in crossovers to block high frequency sounds from reaching the woofer, ensuring it emits only those deep, clean, bass notes.


Chokes: used in power supplies to smooth out ripples in the current.


Transformers: if we put two inductors next to each other, the magnetic field of one can induce an EMF in the other. And that’s how they step power up or down for the electric distribution grid.


Buck converters: they are made with small transformers working at high frequencies.


Electromagnets: simple coils, usually winded around a ferromagnetic core, that becomes real strong magnets when we make a current flow through their wires. They are used all over the places. And they are especially common inside electric motors, like the ones that power many kitchen appliances.


Sensors: have you ever seen those loop of wires buried under the asphalt at traffic lights? Those are inductors. When a car sits over them, it changes the inductance, telling the traffic lights circuitry that a car is there waiting for its turn to pass.


The inductive kickback


A word of warning now. Because an inductor wants to keep a constant amount of current, it can be dangerous at times.


If you have current flowing through a coil and you suddenly pull the plug, the magnetic field inside the coil collapses. But the energy in that magnetic field needs to go somewhere. What happens is that the inductor will convert that energy in a voltage spike with the polarity oriented in such a way that it will try to keep the current flow without a change.


Have you ever seen a spark when you suddenly disconnect a wire from a circuit where current was flowing through it? That spark is caused by this inductive kickback produced by the inductance in the circuit. When you open the circuit, the inductor will generate a voltage high enough to make the current go through the air around the disconnected wires, thus the spark.


In electronic circuits, the inductive kickback may damage the semiconductors in the circuit. In such a case, we use a diode, in parallel with the inductor, oriented in such a way that it will behave like a short circuit toward the back EMF of the kickback, and it will behave like an open circuit during normal operations.

Here is an example: a transistor controlling the coil of a relay. The diode in parallel to the coil will short the kickback which, otherwise, would destroy the transistor.

A diode connected like that is called flyback diode, because it will make the kickback fly away.


Inductor identification


Now that we know how inductors work, we need to know how to identify them on a circuit board. Unfortunately, this is trickier than it sounds, because inductors are masters of disguise.


Let’s start with the physical shape, and there are several of them.


The first kind of shape is the axial inductor: these look exactly like resistors. They are small, usually green of cyan, and have color bands.

A pro-tip for you. If the body looks like a sea-foam green, then it is most always an inductor. If it is tan or blue, it is likely a resistor.


The second inductor shape is the drum or radial inductor. These look like little black mushrooms or weights. You’ll see the copper wire wrapped around a ferrite core, often covered in clear or black shrink wrap.


The next shape is the toroid. These are like small donuts. They look like a ring wrapped with wire. In this category we find usually high performance inductors used in power supplies.


Last category I would like to talk about is the one of the SMD inductors. On modern boards, these look like tiny gray or black ceramic rectangles. Unlike resistors, they are usually taller, since they need space for winding the coil.


Now, how do we figure out their inductance value? Well, just like resistors, inductors use a code system. Their base unit for these codes is almost always the microhenry.

Let’s start with the color code, used for axial inductors. It’s the same colors used for resistors: black for 0, brown for 1, red for 2, and so forth.

Inductors can have 3, 4, or 5 bands, like resistors, and they are read exactly the same way as the resistors.


For example, the axial inductor from above has yellow, blue, black, and silver, which means 46 microhenry, and a tolerance of 10%.

Let’s now talk about the numerical code, present on the SMD and drum inductors. You might see a 3 digit number, like in the above drum indicor which shows on its case 101. The first two digits are the value, the third is the number of zeros after the first two digits.

This means that 101 translates to 10 + one zero, which means 100 microhenry.


Like with resistors and capacitors, if in doubt, don’t guess, measure the value. The problem is that multimeters usually do not have a mean to measure inductors. You can still test the resistance which, for good inductors, should be almost zero, since it is just a coil of wire.
If you want to really measure the value, you’ll have to acquire an instrument called LCR meter, which is a high specialized instrument that take only measurements of inductors, the letter L, capacitors, the letter C, and resistors, the letter R.


The essential starter kit


Now, if you want to start using inductors in your experiments, you don’t need to buy every inductor on the market. Inductors are expensive and bulky compared to resistors, so you want to be strategic. Here is my “starter kit” recommendation for any hobbyist lab.


Begin with a must-have assortment. Don’t start buying individual values. Go to Amazon or eBay and look for an Axial Inductor Assortment Kit.

You’ll get usually 200 or 300 pieces in a small plastic box, with a bunch of different values.

They look like resistors, and fit perfectly into breadboards. The values usually range from 1 micro henry to 10 milli henry, and this covers about 90% of basic hobbyist filtering needs.


If you plan on building your own power regulators or buck converters, you will need toroidal inductors. Go with values like 10uH, 47uH, and 100uH to start with. Look for high current ratings, at least 2 or 3 amps. Power inductors are rated by how much heat they can handle before start having problems.


For noise management, you may also want to acquire a few ferrite bids. There aren’t technically coils, but they are essential. They are basically small cylinders of ferromagnetic material. You slide them over wires to choke out high frequency interference. If your project has a buzzing sound in the speakers or a flickering screen, a ferrite bead is often the cure.


Finally, if you are serious about inductors, a standard multimeter won’t cut it. Most cheap multimeters can’t measure inductance.
In such case, I recommend to pick up a cheap TC-1 Multi function tester, which you can find for about $20, and you can just plug an unknown inductor in, and it will tell you the value and the internal resistance instantly.


Better yet, buy a LCR meter, which will allow you to make precise inductance measurements, as well as capacitances and resistances. Some devices can even provide you with a full model for the component you are testing, giving you both its resistance, the series inductance, and the parallel capacitance, which is useful should you decide to work with high frequencies.


Conclusion

To summarize what we said so far:

inductors are everywhere. They are in your phone’s wireless charger, the crossover in your high end speakers, the massive transformers on your street corner, and so forth.

  • They store energy in a magnetic field.
  • They resist changes in current.
  • They are the high frequency blockers of the electronics world.

In our future videos of this series, we are going to continue our journey in the world of electronics, showing new types of components, and how to use them, as well as moving the first steps in designing you own circuits.
If you find this deep dive helpful, like it and subscribe.

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

Happy experiments!

Companion YouTube video:

How to design a toroidal transformer

Before getting into the formulas and calculations for designing a toroidal transformer, it is better to glide over the physics concepts that allow us to design and build such electric machines.

The physics principle according to which a transformer works is called Faraday’s Law.

This principle has to do with a correlation between the current flowing thought the wire of a solenoid and the magnetic field generated inside of it.

And it works in both directions!

If we apply a variable voltage to the leads of a solenoid, a variable current will be generated, and such variable current will generate a variable magnetic field inside the solenoid.

Also, if we take another solenoid and we submerge it inside the variable magnetic field of the first solenoid, a variable voltage will be generated at the leads of such solenoid, and if we apply a load to them, a variable current will flow.

The most important part correlates the intensity of the magnetic field with the sectional area of the solenoid.

The magnetic field through a sectional area is called magnetic flux, and the flux density and intensity correlates directly with the amount of current that the created voltage can sustain.

To understand the concept of flux, think of a pipe with a specified sectional area where water flows inside. The larger the area, the larger the flux of water going through.

If we insert a ferromagnetic material inside the solenoid, the intensity of the magnetic field will be hundred of times stronger.

We call the ferromagnetic material inside the solenoid “core”. We call the solenoid used to generate the magnetic field “primary coil”. And we call the second solenoid “secondary coil”.

This is the working principle of the transformers.

And we can do even more. We can force the flow of the magnetic flux to turn around on itself, so we don’t waste any of it, thus reinforcing even more the transfer of energy from one solenoid to the other.

Here is how it works:

1) We apply a voltage to the solenoid on the left, which ends up generating a current in the wire.

2) The current generates a magnetic field through the whole magnetic core, imprisoned by it, so we don’t loose any part of it. And that creates a magnetic flux that moves along the path identified by the core.

3) The variable flux induces a voltage into the solenoid on the right. If we connect a load, such a resistor, to the leads of this solenoid, we obtain a current, even though the two solenoids are not electrically connected to each other.

Talking about transformers, the solenoid on the left is called “primary” , which is the coil where we inject the electric current. The solenoid on the right is called “secondary”, which is the coil where we extract the induced current.

The number of turns in the first solenoid and the number of turns in the second solenoid are also correlated.

The ratio between the number of turns in the primary and the number of turns in the secondary is directly proportional to the ratio of the voltage applied to the primary and the voltage induced at the secondary:


Therefore, we can calculate the voltage at the secondary if we know the voltage at the primary and the number of turns at both the primary and secondary coils:

And this formula is at the base of any transformer calculation.

This other formula, instead, correlates the voltage with the magnetic flux and the number of turns:

where:

Kf is the waveform coefficient, which we’ll talk about later

f is the frequency of the applied variable voltage

N is the number of turns of the solenoid, or coil

Ac is the sectional area of the magnetic core

B is the magnetic flux density


And such formula is, in fact, the result of Faraday’s Law applied to our case.


Materials


Now that we know that a transformer is made of two windings and one magnetic core in the shape of a closed loop, let’s see what kind of ferromagnetic material we can actually use to make the core.

Well, the thing is that the materials we can use for the cores physically depend on some electromagnetic parameters that we need to take into account when designing a transformer.

The parameters are:

1) the range of frequencies of the involved voltages and currents

2) The intensity of the currents and, therefore, the magnetic flux density

3) The max power at which the transformer is supposed to operate.

For that, we distinguish two main categories of materials that we can use to make a core:

1) ferrite cores

2) iron-silicon cores

Ferrite cores are used for high frequency applications, from audio frequencies up to radio frequencies.

Iron-silicon cores are used for power applications, with frequencies around 50-60 Hz.

And that depends on the capability of these materials to be able to handle the appropriate amount of magnetic flux without saturating, and the capability to conduct the right amount of flux without dissipating too much energy, property that is affected by their magnetic permeability mu.

Regardless of the application, the involved power, and the frequencies, all transformer calculations are basically regulated by the same formulas.

We will now go through all the basic calculations for the use case of a power transformer. But keep in mind that the same formulas and the same procedure can also be used for audio transformers and for RF transformers.


Specifications

Before we start the procedure, we need to define the specifications for the transformer we want to design. You’ll find most of them obvious, give what we have said already.

#1 is the input voltage, which we will represent with Vi

#2 is the output voltage, which we will represent with Vout

#3 is the output current, which we will represent with Iout

#4 is the frequency, which we will represent with the letter f

#5 is the application for this transformer, either power, or audio, or RF

#6 is the number of phases, which we’ll keep to 1 for this tutorial. Multiple phase transformers need a discussion on their own, and the most of us, interested only in electronics, won’t even care about them.


Procedure


Step 1:

calculate the power that will be handled by the transformer. This is very important for two reasons:

1) we need to size the wires section so that they will be able to handle the needed current.

2) we need to figure out the sectional area of the transformer core, which depends on the power that needs to be moved.

The first reason is obvious, because although the specifications give us the amount of current at the secondary, we still need to calculate the amount of current at the primary, and that needs to be done through the power.

The second reason is tied to the magnetic flux intensity in the core. The flux intensity depends on the sectional area, and the amount of power that can be transferred from the primary coil to the secondary coil is proportional to the amount of flux. The more the power, the more the flux. The more the flux, the larger the sectional area, according to Faraday’s law.

To calculate the involved power, we just need to multiply the voltage output by the current output:


which is expressed in VA, since we are dealing with alternate current.


Step 2:

adjustment of the power because of the transformer efficiency. The problem is that not all the power at the primary is going to be transferred to the secondary, and that’s because the core itself will dissipate some of the power, mostly because of the eddy currents that the variable magnetic field will try to induce in the core. The core material is designed in such a way to present a reasonably amount of magnetic permeability while, at the same time, a high resistance. And the high resistance reduces the eddy currents. Still, there will be some loss of power, and the core will warm up because of that.

Here is the formula that adjusts the power for the efficiency:

where VA is the actual power we need, Pout is the power calculated above, and eta is the efficiency, which is a pure number between 0 and 1.

In general, we can say that for a well designed transformer with toroidal core, it is safe to assume an efficiency around 90%, or eta = 0.9.


Step 3:

calculation of the core-area product. But what is this entity?

Well, this has something to do with the geometry of the core. Basically, it is the product between the sectional area of the core, Ac, and the area of the empty space surrounded by the core, which we call Aw, or window area. Here is the formula:

This entity correlates directly with the power VA that we calculated in the previous step. The correlation is through the Faraday’s law, adjusted to consider the mechanical measurements, the power of the transformer, and the maximum amount of flux that the core can handle without having its magnetic capabilities altered forever.

You can compare the max flux that a core can handle with the max amount of current that can flow through a wire. The max current depends on the sectional area of the wire and the material, whether it is copper or aluminum, or a different compound.

For the magnetic core, the max flux depends on the sectional area of the core and the material of which it is made. The window area comes into play when you consider the length of the path the flux has to go through, like in the case of the length of the wire a current has to go through. It also comes into place when considering the space the wire will occupy when winded around the core.

These entities are correlated through the following equation:

where:

VA is the adjusted power we calculated in step 2

Kf is the waveform coefficient, that depends on the shape of the voltage applied at the primary

Bmax is the mas flux density expressed in Tesla

J is the current density through the secondary

Ku is the winding utilization factor


The waveform coefficient comes out from the resolution of the integral in the Faraday’s law equation.


It is substantially the ratio between the rms value of the voltage divided by the average of the half wave of the voltage, multiplied by 4:

For example, for a sine wave, such value is about 4.44, while for a symmetrical square wave, since the rms and average values are the same, Kf is 4.

The current density J is the ratio between the current in the wire and the sectional area of the wire. It is expressed in A/mm2.

Ku, the winding utilization, is directly correlated with the space occupied by the wire when winded around the core, and therefore depends on its geometry. An acceptable value for a toroidal core is around 0.4.

Given all of that, we can now calculate the core area product rearranging the previous formula in this way:


The factor 10 to the power of 4 converts the result in centimeters to the power of 4, which is how this entity is expressed in the data sheets of the magnetic cores.


Step 4:

select the toroidal core we would like to use.

In this step we will need to consult the manufacturers data sheets for toroidal cores. They list various core sizes with their corresponding Ap value. If the data sheet does not report that value, use the window area Aw and the cross-sectional area Ac and calculate the Ap value as:


The data sheets also provide a value for Bmax. At this point reapply the equation for the determination of the Ap value with the new value of Bmax and, if that is smaller then the one we are using, go back to that step and recalculate the needed Ap using the given Bmax value. Then search for a better core. This step may take a while, as you’ll have to try multiple times until you find the core you need.


Step 5:

calculate number of turns per volt, or TPV.

The number of turns per volt is calculated using the following formula:

where:

Ac is measured in square centimeters

Bmax is measured in Tesla

f is measured in Hz

Kf = 4.44 for a sine wave

If the datasheet you are using provides Bmax expressed in Gauss, you’ll have to convert it into Tesla knowing that

1T = 10,000G.


Step 6:

calculate number of primary turns Np.

Now that we have the number of turns for one volt, we can calculate the total number of turns in the primary by multiplying TPV by Vin:


Step 7:

calculate number of secondary turns Ns.

This calculation can be achieved in two different way. Choose the one that you like the most.

First option:

apply the same equation used to calculate the primary turns, but add 5% to adjust for losses during the transformation process:

Second option:

Use the known ratio of voltages to calculate the ratio of turns and add the same 5% correction:


Step 8:

calculate primary current Ip

The current at the primary needs to provide the power needed at the secondary:


Step 9:

select wire gauges of primary and secondary coils.

Based on the max amount of current flowing in the primary, select the most appropriate wire gauge to prevent coil overheating. Then do the same for the secondary coil.

We will call the sectional area of the primary wire

And we will call the sectional area of the secondary wire


Step 10:

estimate winding space.

This is a necessary step to make sure that we can fit both coils on the core we have chosen. In particular, we need to make sure that there is enough space in the toroidal window to fit all the turns and to leave some space in the center.

The total wire area for the primary will be equal to


The total wire area for the secondary will be equal to

The sum of these quantities + insulation area should not exceed about 40% of the window area Aw.

If that cannot be done, we will need to go back to step 4 and select a larger toroidal core. Then redo all the calculations starting from there.

And there you have it. The complete procedure to calculate a toroidal transformer, which you can also watch on this YouTube video:

You can use this procedure to design your own transformers, either for power supplies, or for small circuits that require a similar component to perform some kind of task. For example, an audio transformer to adapt the impedance between two elements in the audio chain, or a small transformer to create your own boost converter, and so on.

Just make sure, once you have done all your calculations, to go through them more than once and make sure everything is right. Especially with power transformers, a wrong calculation can cause a lot of damage or even cause harm to yourself and/or others.

It is your responsibility to make the proper calculations to avoid damage to objects and people.