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.

A Multiple Power Supply For The Workbench


When working with a new prototype on my bench-top, I tend to use one single power supply to power it up. However, sometimes, I need to power up more circuits at once, possibly using different voltages. And it is in those cases that I am forced to use more than one power supply. There are also some cases where I need a dual power supply and, besides the case where I need a +/- 12V, I don’t have a power supply unit capable of giving me other dual voltage values. I even built a simple device, capable of converting a single dual power into a dual one, for those cases where I need it. But that converter is able to provide only a very small amount of power and that is not good when the powers involved are high.


At the end, I need a power supply unit capable of providing me with different voltages at the same time, possibly also current generators and, certainly, the possibility of having both single and dual power supply.
Units on the market capable of providing such features are very expensive, and they don’t even provide all the possible capabilities that I need while, instead, they provide other capabilities that I normally do not care about
To solve this problem, I decided to make my own power supply unit, capable of doing all the things that I find useful in my lab, and at a fraction of the cost of a professional power supply unit.
Let’s take a look at the schematic I designed.


First, in order to be able to connect together a positive and a negative polarity, without having a short circuit, I needed to have totally separated circuits, with independent transformers, so that I could establish any point of reference on each transformer and connect together such points to obtain dual power supplies.
Because of that, I have a total of four transformers in this schematic.
The first on the top, though a single transformer, it provides two independent outputs on two independent secondaries. I used that transformer as the base for building two independent variable power supplies that could be connected together through a switch to obtain a single variable dual power supply, with the two branches independently regulated, useful in certain situations.
The next two transformers, which have exactly the same characteristics, are used to power up the two sides of a fixed dual power supply. One transformer is used for the positive output with respect to the reference point, and the other transformer is used for the negative output with respect to the reference point.
The fourth and last transformer, on the bottom left, is a very small one used solely to provide the power to move a cooling fan for the power supply case.
The two variable power supplies are each made around a buck/boost converter manually controllable, which works both as voltage and current generator and also provides a display to visualize various parameters.


Here is the user manual of this little device.

It has several types of protection, it can be powered with a voltage anywhere in between 6 and 36V, and it can provide a voltage output between 0.6 and 36V, with a maximum current of 5A which can also be regulated, therefore offering the capability of working as a current generator.

It is also very easy to setup and use. It has a 4 wires connector. Two wires provide the input DC voltage and two wires provide the regulated output, either as voltage or current generator.

The manual goes on explaining how to use the rotary encoder and the two auxiliary buttons on the front panel, as well as the dimensions necessary to accommodate the devices on a larger panel of a bigger device.

Going back to our schematic, you can see that I used two of those regulators, represented here with the two blocks. So, each secondary of the large transformer is independently rectified and filtered by this section, to obtain a DC voltage of 34V with up to 2.5A. This two DC voltages go to the input of the power regulators and the outputs are available at the corresponding binding posts on the power supply front panel. Note also the switch that connects together the negative pole of the upper regulator with the positive pole of the lower regulator, to eventually provide a dual power supply where each branch can have and independent value of voltage or current.

The second section, with the two smaller transformers, is the one that provides the fixed voltage power supplies, very useful when working with devices like op-amps, for example, or any other device that needs to be fed with a dual power supply.

The secondary of both transformers T2 and T3 go each through a bridge rectifier and a filtering electrolytic capacitor.

From there, the positive voltage section is made of 3 separate regulators:

– an LM317, which brings down the DC voltage to a more comfortable value for the next regulators

– an LM7812, that provides a +12V to a corresponding output binding post.

– an LM7805, that provides a +5V to yet another output binding post.

Each of the 3 regulators has its own filtering capacitor, to minimize the residual ripple present to the voltage because of the rectification of the AC power provided by the transformer.

You can also see a number of diodes 1N4007, used as a protection for the solid state regulators during the power down of the whole power supply device.

The negative voltage section works exactly the same way, but uses the negative voltage regulators LM337, LM7912, and LM7905.

Another useful feature of this power supply system is the availability of two USB connectors on the front panel, used essentially to provide a 5V power supply, to power USB based devices, or to simply charge the battery of a device that has a USB power connector.

These two USB outlets are visible at the bottom left of the schematic, and it is perfectly visible that only pins 1 and 4 are used, which are those providing the 5V. The data pins 2 and 3 are not even connected.

Finally, the schematic shows also the last transformer, with its own half-wave rectifier and filtering capacitor that powers the cooling fan for the entire case. Why not, since I had laying around that little transformer for which I don’t have any other use.

And now, if you are interested in making your own power supply system, I suggest you to take a look at the video presented below, where you can found details on how to make also your own case for the device, as well as a number of useful information for its assembly.