Skills / Electronics and Arduino / Electricity basics: voltage, current and resistance

Electronics and Arduino, lesson 1 of 8

Electricity basics: voltage, current and resistance

Every electronic circuit is described by three basic quantities. A common way to picture them is water flowing through pipes.

Voltage (V), measured in volts. The "push" that drives electricity around a circuit, like water pressure. A typical Arduino board works at 5 volts or 3.3 volts; a common AA battery provides about 1.5 volts.

Current (I), measured in amperes (amps, A). How much electricity flows, like the amount of water flowing. Small electronics use small currents, often measured in milliamps (mA): an LED typically uses around 10 to 20 mA.

Resistance (R), measured in ohms. How much something resists the flow of current, like a narrow pipe. Resistors are components made to provide a specific resistance.

Ohm's law links them:

Voltage = Current x Resistance (V = I x R)

Rearranged: I = V / R and R = V / I.

A practical example: protecting an LED. An LED connected directly to 5 volts would draw too much current and burn out. A resistor limits the current. Suppose the LED needs about 2 volts across it, leaving 3 volts for the resistor, and you want about 15 mA (0.015 A):

R = 3 / 0.015 = 200 ohms

So you would choose a standard resistor near that value, such as 220 ohms.

A circuit must be a complete loop. Current flows from the power source, through the components and back. Break the loop anywhere (with a switch, for example) and the current stops.

Power (in watts) is voltage times current: P = V x I. It tells you how much energy is used, and how hot components might get.

These three ideas explain why components are chosen the way they are, and why circuits fail when they do.

Try it: Use Ohm's law to calculate the current through a 1,000 ohm resistor connected to 5 volts, and the resistor needed to give 10 mA from 9 volts when an LED takes 2 volts.

Check yourself

1. What does voltage represent?

2. What is Ohm's law?

3. Why does an LED need a resistor in series?