Back To Basics Episode 4: Let’s Talk About Resistors

Hi there! Welcome to the fourth episode of Back To Basics, where we explore everything electronics from the beginning.

It is time to start learning about components, and what’s better than beginning with the ubiquitous resistor, a component present in each and every electronic circuit.

We will cover some theory, the math, and the major kind of resistors available on the market. All with a very simple approach that will help you understand what resistors are for, and which one to choose for your own projects and experiments.

Controlling The Flow


Before we get to the components, let’s look at the three ways materials behave electrically.

There are three fundamental kind of materials:

  • conductors,
  • insulators, and
  • resistors

Conductors allow current to flow very easily, like for example in copper wires. They have a high conductivity, which translates in a very low resistance.

Insulators are the opposite of conductors. They block the current flow, like for example with rubber or plastic. They have a very low conductivity, which translates in a very high resistance.

In between these two categories we have the resistors, which are capable of controlling the current flow. They lay in between the conductors and the insulators in terms of conductivity, having very specific values of resistance.

You can view resistance like a water pipe. Conductors are very large water pipes, which offer minimal resistance to the flow of water, here representing the electric current.

Insulators are totally clogged pipes, where the flow of water is totally stopped.

And finally the resistors, which are like water pipe of a specific section, so that they limit the flow of water to specified amounts.

The Fundamental Rule: Ohm’s Law


The math that governs the current flow through a resistor is called Ohm’s Law, and it is the most important concept in electronics.


Here is the formula:

V = I R

where:

V is the voltage, or the entity that forces the current to flow, which is measured in Volt; I is the current, or the flow rate of the charges, which is measured in Ampere; R is the value of the resistance, or the entity that opposes to the flow of current, which is measured in Ohm.

Resistor Calculations: Series And Parallel

Most of the time we need to create circuits with multiple resistances, connected in various ways. Two most common ways of connecting components are the series connection and the parallel connection.In both case, resistors can be replaced with an equivalent resistance.


Here is an example of two resistors, R1 and R2, connected in series. When resistors are connected this way, there is only one path for the current and the equivalent resistance R3 is just the sum of the resistances in series.


And here is an example of two resistors connected in parallel. In such cases, the current splits into multiple paths when it enters the parallel, and it regroups when it leaves the parallel. The equivalent resistance is the reciprocal of the sum of the individual reciprocal resistances.

Note the simplified formula on the right, only valid in the case of only two resistances in parallel.


You can see that when resistors are in series, the total resistance increases, while when the resistors are in parallel, the total resistance is smaller that the smaller resistor in the parallel connection.

Practical Example

Let’s put this information into practice.

Let’s say we have a 9V battery, a resistor, and a LED. Knowing that the current that must flow through the LED is 20mA, and that the voltage at the LED is 2V, what’s value of resistor we have to put in series to the LED to limit the current to the 20mA value?

Since the three components are all in series, the current will be the same through all of them. Since we want a 20mA current through the LED, then also the resistor will be traversed by a current of 20mA. Additionally, the volt at the resistor is given by the difference between the voltage value on the left and the one on the right. The voltage on the left is the battery voltage. The voltage on the right is the voltage required by LED, which is 2V.

Using Ohm’s law, we can therefore write:


So, in practice, if we want to power an LED using a voltage source of 9V, we need to put a resistor in series with a value of 350 Ohm.

Physical Components: Types Of Resistors


Let’s now take a look at the kind of resistors we can find on the market and how they are made.

We have two main categories based on the physical aspect of the resistors:

  • through hole resistors, or THT resistors, usually in the shape of a cylinder with two wires coming out of them, and
  • surface mounted resistors, or SMT (or SMD) resistors, usually in a cubic and small shape.


We can also categorize resistors as fixed or variable. All fixed resistors can be either THT of SMD resistors. The variable resistors can be mechanically variable, thermally variable, or electromagnetically variable.


A typical example of mechanically variable resistors are the potentiometers, which usually have three terminals, the usual two at their two ends, and a third one, connected to a sliding connector touching the resistive material between the two ends. Measuring between one of the two end terminals and the slider, we can obtain all the resistance values between zero and the nominal value of the potentiometer.


Thermally variable resistors are usually called thermistors. They have two leads, and their resistance value changes with the temperature.


An example of electromagnetically variable resistor is the photo-resistor, a resistor that changes its resistance with the intensity of the light.


The resistance value of resistors can be imprinted on the resistor itself in two different ways, depending on the kind of resistor. It can be just printed using only numbers, the last of which always represents the number of zeros following the other numbers. Or it can be printed using numbers and the letter R, which represents the decimal point. Or it can be imprinted in the form of colored bands.


Here are a few of examples of number representations:


And here is an example with numbers with a decimal point:

When using colors, instead, we can have from a minimum of 3 bands, to a maximum of 6.

Here is the decoding chart to interpret the resistance value, the tolerance and, eventually, other information. You can find similar charts with a simple google search.


One last classification of resistors is based on the material used to make them. We can have:

  • carbon film resistors, made depositing a thin layer of carbon, usually graphite, on a ceramic or paper substrate
  • metal film resistors, made of a thin layer of metal deposited on a cylindrical support


The final, but not the least important, specification about resistors is their power dissipation capability or power rating. The power rating depends on the type of material they are made and the type of material of their support, as well as their size and the presence of a aluminum heat sink. the numbers can vary from 1/8W, going to 1/4W, 1/2W, 1W, and so forth, up to the hundreds of Watt.


When calculating the value of a resistor, never forget to calculate also the power it will need to dissipate, and always choose a resistor that can dissipate at least that amount of power.

For example, let’s get back to our example of resistor limiting the current in a LED. To calculate the power dissipation, we can use either one of these formulas:


n our example, we know the value of the resistor and the current that flows through it, so we can write:


Therefore we can use a resistor capable of dissipating 1/8W, equal to 0.25W, since its rating is greater than the actual dissipated power.


Don’t forget: always use a resistor with a rating higher than the calculated power, or the component may burn or even explode.

Conclusion


Well, now you know the theory behind resistance, how to use Ohm’s Law, how to calculate series and parallel equivalents, and how to physically identify the component you need.


In the next episode, we will dive deeper into the Kirchhoff’s Laws, which build on top of everything we covered today.

Happy experiments!!!

Back To Basics Episode 2 – The ABC Of Electricity: Voltage, Current & Resistance

Welcome to the second episode of the series “Back to Basics”.

Did you ever wonder what’s actually happening inside a wire when you flip a light switch? What is electricity really?

People knew about electricity since a very long time, but although they observed the related natural phenomena, they didn’t know how to explain them.

They could see a thunderstorm and a lot of lightning, but they didn’t know what lightning was and so they attributed it to angry divinities that used the thunder bolts to punish bad people.

They could stroke a bar made of amber and they would see it attract light pieces of other materials. But they didn’t know why that was happening so they attributed that phenomena to magic.

It was only in the 19th century that humanity finally got a better understanding of electricity. They understood the physical principles behind it and learned how to use it, first for their own pleasure, then for actually do some work to help themselves.

And finally we learned how to use electricity to do the most incredible things: light up our houses, create radios, TVs, computers, robots, and everything you can think of today.

If you would like to understand more about electricity and, maybe one day, be able to bend it to your will, just follow me in this series and its companion videos on YouTube. Through that, you will learn concepts like voltage, current, resistance, capacitance and inductance; and you will learn how the devices around us are made of, and about the electronic components.

And, moving forward, you will learn how to build new things out of those components and, who knows? Maybe one day you will be the great inventor that will revolutionize again our society.

Let’s start today with some basic concepts: voltage and current, and how they are related to each other.

What Are Voltage And Current?

What is voltage? Think of it as of some form of energy that moves things around. The typical example is a river that flows down a hill.

The height of the hill from which the water flows represents the voltage, which is measured from the bottom to the top of the hill. The higher the hill, the higher is the potential energy of the water, and the higher is the voltage. If you’d like to go a little deeper on the concept of voltage, you may want to watch this video:

The current, instead, is made of all the droplets of water that flow down through the river. Such droplets, in terms of electricity, are called electric charges.

The height of the hill is the same as the voltage of a battery, the wire connected to the battery is the bed of the river, and the water that flows in the river is the electric current in the wire.

The higher the hill, the more water will flow down the river. The higher the voltage of the battery, the more electric current will flow in the wire.

For more details on the concept of current, you may want to watch this video:

We measure the voltage in Volt and the current in Ampere. We usually represent these measurement units with the letters V and A. And we can measure these entities with instruments that are called volt-meters and ampere-meters, or am-meters for short, just like we measure the height in meters and the amount of water that flows down the river in liters/second.

Well, yes, in US people is more accustomed with yards and gallons than meters and liters, but you got the point.

In more precise terms, volt is the ratio between the potential energy provided by a battery and the amount of charge needed to generate it.

Current, on the other end, is the amount of charges flowing through a section of the wire in one second.

Back at the beginning of the 19th century, an Italian scientist named Alessandro Volta was conducting experiments on frogs.

He discovered, inadvertently, that touching a dissected leg with two metal sticks made of two different materials, the leg contracted, as if it was still alive. Curious about what happened, he started experimenting with different metals and different watery solutions mimicking the fluids in the frog’s leg. Soon, he discovered a way to generate electricity. He just invented the battery, which he called pile, since it was made of a pile of metal and paper disks, moistened with an acidic solution.

Today, we call that device a voltaic pile, made of several voltaic cells, to honor the inventor of the device that revolutionized our civilization.

After that, other people started experimenting with this newly found source of electricity, and names like Georg Simon Ohm and Andre’-Marie Ampere became famous in that same century. Yes, just about 200 years ago.

What Is Resistance?

In particular, Andre’-Marie Ampere found a way to measure the current flowing in a piece of metal when a voltage was applied to it.

Georg Ohm, instead, used the voltaic pile to run experiments on different kind of materials, to figure out how they behaved when in the presence of a voltage.

He prepared a set of metal bars of different materials and same section, connected each bar to the pile, and measured the amount of current that was flowing through. Then he changed the voltage applied to the bar, by increasing or decreasing the number of cells in the pile.

And with that he discovered that for the same bar, the ratio between voltage and current, whatever the voltage was, never changed. He called this ratio the resistance of the material. And he further discovered that different materials have different resistances.

Ohm’s Law

Today, we have named Ohm the measurement unit of the property he discovered, and we represent it with the Greek letter Omega, which sounds like the initial of the name Ohm.

We write that the Voltage V and the current I are directly proportional as per this formula

where R, the resistance, is the constant of proportionality.

In terms of their measurement units, we also write

This is what we call “Ohm’s Law, which is the foundation for the calculations of voltage and current in any electric and electronic circuit.

As you can see, the three concepts of voltage, current and resistance are not independent; they are all linked together by the fundamental principle called Ohm’s law. On the same resistance, more voltage causes more current to flow. With the same voltage, a higher resistance allows a smaller current to flow. And with the same current, a higher resistance causes a higher voltage.

Conclusion


I hope this helps demystifying the very basic concepts of electricity. In the next episodes we will go deeper into these concepts, we will learn how to measure these entities, we will learn about electronic components, how to use them in circuits, learn how to read schematics, and so forth. Please let me know in the comments what concepts you are more interested in, so I can better aim this series of tutorials to your likes.

Finally, if you like, you can also watch the video version of this post:

Understanding Resistivity Through Practical Experiments

Last month, a reader of this blog asked me a question about the possibility of measuring the resistivity of a powder mixture he created. We initiated a private conversation on the topic, and we ended up agreeing to work together to make such a measurement. He would provide me with the powder he created, and I would make the measurement for him, since he doesn’t have the lab resources for such a task.

I received the material for running the test in just a week, although coming from overseas (Belfast, Ireland). It was packaged in a double layer plastic envelop, given that it is a very light powder and can go airborne very easily. To avoid spreading it across my whole lab, I handled it wearing a mask, so that my breath would not make it fly all over the places. The mask helped also in preventing me from breathing it.

Given the consistency of this powder, I had to think at a way to easily shape it in a form that would be kept intact while I was taking the measurements on it. So I had to create a container that would also provide some sort of electrodes to electrically connect the powder to my DMM (Digital Multi Meter).

But let’s proceed in order. And let’s begin with some general information about resistivity and methods to evaluate it.

Let’s start by providing a formal definition of the electrical resistivity. That is the property of any conductive material that defines its resistance to an electric current in terms of its shape and dimensions.

https://en.wikipedia.org/wiki/Electrical_resistivity_and_conductivity

If we take a material in the shape of a cylinder, for example, the resistivity is the ratio between the electric field applied at the two bases of the cylinder and the resulting current density.

If you think about it, the electric field applied to the cylinder can be translated in a voltage per unit of length, while the current density is nothing else than a current per unit of area.

If we consider the ratio between the applied voltage and the resulting current, we obtain a resistance. Such resistance is a function of the length of the conductor and the area of its sectional surface. The constant that correlates the resistance with the length and the area is what is called resistivity, usually indicated with the Greek letter rho.

Experimentally, we also notice that the resistivity depends also on the temperature of the material, on the impurities in the material, and on the mechanical stress to which the material is subject.

Therefore, when making a resistivity measurement, we also have to specify such conditions, in particular the temperature and the stress.

So, how do we make such a measurement?

Of all the methods that have been used to do such a thing, the two most relevant are the 4-point method, or Kelvin method, and the Wheatstone Bridge method.

https://en.wikipedia.org/wiki/Four-terminal_sensing

https://en.wikipedia.org/wiki/Wheatstone_bridge

The first is normally used to measure the resistivity of thin films or bulk materials.

The second is normally used to measure the resistivity of a material in the form of an electrical wire of known length and cross-sectional area.


Now, because the resistivity measurement can be done with a great precision with the 4-point method, given that I do have a lab instrument capable of automatically perform such measurement and calculate the result with a 4 and a half digit precision, I decided to use this method over the Wheatstone Bridge.

Note that I will actually measure the resistance obtained by dividing the voltage by the current involved in the measurement circuit.

Once the resistance of the sample is measured, I will be able to calculate the resistivity by inverting the formula normally used to calculate the resistance.

Since I have a powder to measure, I have to use a container to hold it, which would also allow me to easily add electrodes to connect the instrumentation.

The first choice for a container was one that resembles an actual commercial resistor: a cylinder.

I actually designed two of them, thinking of using both to average the measurements.

The design consisted of a simple pipe with caps that would fit the two ends to trap the powder inside. Holes on the caps would be used to pass through the conductors attached to metal plates on the inside of the caps, to establish the contact with the powder.

I inserted a screw on each hole from the inside, after fitting on each a couple of metallic washers with the function of conductive metal plate. On the outside, I added extra wiring connectors to make it easy to connect my digital multimeter.

After installing a cap on one end of the first cylinder, I started filling it with the mix of graphite and ash. That, actually, wasn’t an easy task, since the powder tended to remain attached all over the places, rather than going into the pipe.

But I did it, and finally closed the pipe with the second cap. While doing that, the pressure of the air between the cap and the pipe expelled some powder, so I decided to seal the cap with some tape, to stay on the safe side.

Unfortunately, that did not help, as enough dust came out of the pipe to make the powder inside loose enough to compromise the readings. But I discovered that only later.


I realized that the measurement did not work when I started tapping on the external surface of the pipe and the resistance reading started changing substantially. Only at that point I figured that while capping the pipe I lost enough powder to leave it very loose inside the pipe. The method I employed was not working!

The good thing about this first attempt is that I learned a couple of important things:

– first, I had to create a vessel that would not loose powder once I closed it

– second, I had to make a vessel in such a way that I could change the pressure of the powder inside to see how that would affect the value of resistivity.

So, I ended up using a totally different shape, the one you can see in this new design.

Besides the different shape of the cross-section, which was now squared, the major difference in this design is the position of the opening. Instead of having two openings at the two ends, I created a vessel with a single opening going through the whole length of the device. That way, a single cap could be used to close the hole and also act as a piston to compress the dust.

When mounting the probe terminals, this time I didn’t use washers like in the previous case. Instead, I used this coating that, once dried, leaves a layer of pure silver on the treated surface.

This has two advantages with respect of the previous solution:

– first, a thick layer can be lay down very easily and uniformly

– second, silver is the best conductor known on the face of the planet, so its interference with the precision of the measurement is really negligible.

I stopped filling the vessel once I reached a height of 5mm, then I cleaned up the top of it the best I could, and carefully covered everything with the lid.

Note that the lid is made of a very light piece of PLA, so its weight is negligible compared with the atmospheric pressure acting on it. And to prevent the lid from moving or to change the pressure inadvertently, I fixed it in place with some masking tape. The whole thing is done in such a way that there is no extra pressure applied to the dust. However, if i use my fingers to push on the lid itself, I can still manually apply some extra pressure to see how it affects the resistivity of the material.

It was time to make a new set of measurements, so I fired up my DMM, I set it up to do the 4-point resistance measurement, and connected the 4 probes to the external connectors of the vessel.

Then I took my first reading, which was of 20.9 ohms. I also shook a little bit the vessel to make sure the powder was packed but not under additional pressure, and the reading did not change. That was exactly what I wanted to see.

And with that reading I calculated the value of resistivity at the atmospheric pressure, which was 10.45 ohm mm, or 0.01045 ohm m. And of course I also noted the temperature of the room during the experiment, which was about 72F or 22 degrees Celsius. Temperature changes the value of the resistivity, so it is important to know the temperature reading during the experiment.

I then repeated the process applying pressure on the vessel lid and made a few readings at different pressure values, recording all the numbers I took.

I found that increasing the pressure would lower the resistivity, until I reached a pressure of 22.563 kPA on top of the atmospheric pressure. At that point, any increase in pressure did not produce a decrease in the resistivity.

Two words about the pressure measurements, which were an important part of the procedure.

I basically used this precision scale to measure the weight exercised by my fingers on the lid. Then, knowing the area of the lid exposed to the powder, I was able to calculate the actual pressure.

At that value of pressure, and higher, I measured a resistance of 9.20 ohm, and therefore a value of resistivity of 4.6 ohm mm, or 0.0046 ohm m.

With that value, and the previous measurements at different pressures, I was able to determine that the resistivity decreased almost linearly with the increase of the pressure, and came out with this graphic representation.

For further details, here is the video I posted on YouTube on the same topic.