# Circuit Basics - Ohm's and Joule's Laws

Now that we have introduced some electrical properties like voltage, current, and resistance we need to understand how they relate to each other. Amazingly, most electrical properties relate to each other in ways that are beautifully simple.

## Ohm’s Law

All of the electronics begins with one simple equation called *Ohm’s Law*. Georg Simon Ohm was the physicist and mathematician who first proved that the amount of electrical current (amps) that flows through a circuit is proportionally related to the voltage difference in the circuit. He called the property that governs this relationship *resistance*. Meaning, that the ratio of the voltage applied to a circuit and the current that flowed through the circuit was equal to the resistance of the circuit. This relationship between voltage, current, and resistance came to be known as Ohm’s law and the unit of resistance was named Ohm in his honor.

This law is the foundation of all other relationships in electronics. With this law, you can calculate voltage, current, or resistance, if you know the other two properties.

In circuit design, we use components known as resistors to add very controlled amounts of resistance to circuits.

Calculating Voltage from the Current Flowing Through a Resistor

This time, we have a 470Ω resistor and we know that there is 200mA (0.200A) of current flowing through this resistor. Knowing this, we can calculate the voltage across the resistor using Ohm’s law.

Using Ohm’s law, we found that the voltage across the resistor is 94V.

Calculating A Resistor Value to Achieve a Desired Current

Let’s say that you have a 12V battery and you want to make a circuit with the battery and a resistor that has 100mA (0.100A) or current flowing through it. In this case, we can use Ohm’s law to solve for the needed resistor value.

Using Ohm’s law (solved for R) we calculate that a 120 Ohm resistor wired in series with the 12V battery will result in a circuit with 10mA of current flowing.

## Joule’s Law

Our second foundational equation was discovered by a physicist by the name of James Prescott Joule. Joule discovered the relationship between energy (Q) and the flow of electricity. He said that amount of electrical energy expended in a circuit is equal to the square of the current, times the resistance of the circuit, times the amount of time it was on.

However, when we work with electricity, we’re rarely interested in the total amount of power used in a period of time (unless you work for the power company). We are much more interested in the amount of power we are using *per* time. Energy per time is the definition of *power*. We can rearrange Joule’s law so that the power consumed is equal to the square of current times resistance.

Finally, we can combine Joule’s law with Ohm’s law and get a couple of other useful equations for power.

Now, we have derived three different equations for electrical power:

Determining the Required Power Rating for Resistor

Let’s suppose that we have a circuit with a 220Ω resistor and there are 12V across that resistor. We need to know what power rating of capacitor we need to specify. We can easily calculate the power that will be dissapated as heat in the resistor using Joule’s law.

In this circuit the resistor will be generating

0.65W of heat.This means that 0.65W is ourminimumpower rating for this resistor. The power ratings of common resistors are 1/16W, 1/10W, 1/8W, 1/4W, 1/2W, 1W, 2W, and so on. This means that we would need to choose a resistor rated for 1W of power dissipation to be sure that it could handle the 0.65W of heat that will be generated in it.

## Try It Yourself!

Let’s go ahead and try both of these examples in the simulator!