Electricity

Electricity is everywhere: lights, game systems, doorbells, chargers, and computers all use it. This page starts small and builds up step by step, from atoms to the main ideas you will use in circuits: voltage, current, resistance, and power.

Quincylus, Public domain, via Wikimedia Commons

Matter is made of atoms

Everything around us is made of atoms. An atom has two main parts:

Inside the nucleus are:

Outside the nucleus are:

Electrons are much lighter than protons and neutrons, and in many materials they are the particles that can move around most easily. That movement is what matters most for basic electricity.

AG Caesar, CC BY-SA 4.0 <https://creativecommons.org/licenses/by-sa/4.0>, via Wikimedia Commons

Positive and negative charge

Electric charge comes in two kinds:

Opposite charges attract each other, and like charges repel each other. A negatively charged electron is attracted toward positive charge and pushed away by negative charge.

That push-and-pull is one of the reasons electrons can be driven through a circuit.

What electricity is

In basic circuits, electricity is the movement of electrons through a material.

Not every material lets electrons move easily. In some materials, electrons move fairly well. In others, they are held tightly in place.

Examples:

When electrons move through a complete path, we call that electric current.

A circuit needs a complete path

A circuit is a loop that gives electrons a path to follow.

For current to flow, there must be:

If the path is broken, current stops.

That is what a switch does. When the switch is open, the path is broken. When the switch is closed, the path is complete.

Series and parallel

There are two very common ways to arrange parts in a circuit:

In a series circuit, parts are connected one after another in a single path.

Example:

battery -> switch -> resistor -> LED -> battery

In a series circuit:

In a parallel circuit, there is more than one path for current to follow.

Example idea:

In a parallel circuit:

Real-world examples:

Azarboon, CC BY-SA 4.0 <https://creativecommons.org/licenses/by-sa/4.0>, via Wikimedia Commons

Where batteries fit in

A battery does not "store electricity" in the sense of keeping electrons packed up like water in a bottle. A more accurate way to think about it is:

Inside a battery, chemical reactions separate charge in a way that creates two terminals:

When you connect those terminals through a circuit, electrons are pushed through the external path.

Real-world example:

Voltage

Voltage is the electrical push that drives charge through a circuit.

You can think of voltage as the amount of "push per charge" available between two points.

The unit of voltage is the volt, written as V.

Examples:

Higher voltage means there is a stronger push available to move charge, but that does not automatically tell you how much current will flow. Current also depends on the rest of the circuit.

Current

Current is the rate at which electric charge flows through a circuit.

In metal wires, the moving particles are electrons. In some diagrams, you will also see arrows showing current from positive to negative. That is a standard way people draw circuits, even though the electrons themselves move the other way.

The unit of current is the ampere, shortened to amp, written as A.

Examples:

One milliamp is:

1 mA = 0.001 A

Resistance

Resistance is how much a material or component opposes the flow of current.

The unit of resistance is the ohm, written as Ω.

A resistor is a component designed to add a known amount of resistance to a circuit. Resistors are useful because they help control current.

Real-world examples:

Conductors and insulators

It helps to connect resistance to real materials.

In practical circuits, we want current to go where we choose, which is why wires are metal on the inside and insulated on the outside.

Simple logic with circuits

Circuits can also help us think about logic, which means rules for when something should happen.

For example:

That is where basic logic gates come in.

OR gate

An OR idea means the output turns on if this is true:

If you build two button paths in parallel so either one can complete the circuit, you are making something that acts like an OR gate.

Real-world example:

AND gate

An AND idea means the output turns on only if both conditions are true at the same time.

In a button circuit, that means:

If the buttons are placed in series, both of them have to close for the current to flow. That acts like an AND gate.

Real-world example:

NOT gate

A NOT idea flips the result.

That means:

This is easier to do with a controller and code than with a very simple hand-built circuit, but the idea still matters.

Real-world example:

Input and output

Logic gates are easier to understand if you think in terms of:

So a simple logic question might be:

That way of thinking becomes very useful once you start combining circuits with code.

Chemsaint, CC BY-SA 4.0 <https://creativecommons.org/licenses/by-sa/4.0>, via Wikimedia Commons

Power

Power is the rate at which electrical energy is transferred or used.

The unit of power is the watt, written as W.

Power tells you how quickly energy is being delivered.

Examples:

Power matters because two circuits can have the same voltage but use very different amounts of current and energy.

Energy vs. power

These two ideas are related, but they are not the same.

For example:

This is one reason batteries are rated by how much charge or energy they can deliver over time. A small battery may provide the right voltage, but it may not be able to supply a large current for very long.

Why components heat up

When current moves through resistance, some electrical energy is converted into heat.

That can be useful:

Or it can be a side effect:

This is one reason current limits matter in circuits.

Putting the ideas together

A simple way to connect the main terms is:

If you increase the voltage across the same resistor, current increases.

If you increase the resistance while keeping voltage the same, current decreases.

If a circuit has both substantial voltage and substantial current, the power can become large very quickly.

Ohm's Law

Ohm's Law connects voltage, current, and resistance.

Formula:

V = I x R

Where:

You can rearrange it as:

Example:

If you connect a 9 V battery across a 300 Ω resistor:

I = 9 V / 300 Ω = 0.03 A

So the current is:

0.03 A = 30 mA

This is why resistors are used with LEDs. Without enough resistance, the current can become too large.

Sivam29, CC BY-SA 3.0 <https://creativecommons.org/licenses/by-sa/3.0>, via Wikimedia Commons

Watt's Law

Watt's Law connects power, voltage, and current.

Formula:

P = V x I

Where:

Useful rearrangements:

Example:

If a circuit runs at 5 V and draws 0.2 A:

P = 5 V x 0.2 A = 1 W

So that circuit is using 1 watt of power.

There are also forms of Watt's Law that combine with Ohm's Law:

These are useful when you know resistance and either current or voltage.

Final takeaway

At the most basic level:

From there, two formulas show up again and again:

Once those ideas make sense, building and understanding circuits becomes much easier.