Like insects, many of us are drawn to light: it moves us, dazzles us and lures us toward its captivating glow. When we want to build our own LED lighting, a quick calculation using Ohm’s law is not always enough. Knowing how to copy a circuit is not the same as understanding how to use LEDs in original designs. In this installment of Basic Electronics, we’ll unpack a few straightforward ideas so that working with LEDs can be as simple as making a tasty salad of vegetables and legumes—one that shines in its own right.
In an earlier article here at NeoTeo, we looked at diodes and introduced Ohm’s law as a way to calculate the current-limiting resistor that every simple LED should have. This time, we’ll take things more slowly and practically, starting with the energy sources that power LED circuits: batteries.
A battery is a source of energy with two important characteristics at its terminals: voltage (measured in volts) and its ability to deliver current (measured in amperes) to whatever circuit is connected. Voltage is the energy potential available to a circuit. Think of it as a raised water tank: its height represents the potential, while the water represents the available energy. A narrow outlet lets the tank drain slowly; a wide pipe lets water flow faster and empties it sooner. In this analogy, the tank’s height is voltage and the flow rate is current. Draw more current and a battery’s potential falls more quickly. A pair of AA batteries might power a remote control for a year, but powering two devices instead of one will shorten their life considerably.
That is why eight AA cells in series, giving 12 volts (8 × 1.5 V), cannot start a car. They may have the same voltage as a car battery, but they cannot deliver the required current. A car can draw well over 200 A while starting; alkaline AA batteries will not exceed 3 A even under an exaggerated estimate. The set of cells cannot supply the required energy—more than 3,500 W, or 3.5 kW. In broad terms, the energy available from a source depends on its voltage and how much current it can deliver. Battery labels show these values in forms such as “12 V – 7 A,” “1.2 V – 2900 mAh” or “9 V – 400 mAh.”
Those figures tell us what to expect from a battery or a power supply. Mains-powered supplies also specify their operating values, usually voltage and current. A battery’s voltage falls as it is used, whereas a wall supply generally keeps its output steady, making it a good choice when portability is unnecessary.
Choosing a suitable power source
Suppose a circuit needs 12 V and draws 0.1 A, or 100 mA. Here are three possible sources:
- Eight alkaline cells in series (1.5 × 8 = 12 V) provide the required voltage and can deliver up to 3 A. Since 3 A is thirty times 100 mA, continuous operation could last more than 20 hours; at one hour a day, the cells could last more than a month.
- A 12 V, 7 A lead-acid battery could run it for nearly three days continuously, or for many months with intermittent use.
- A 12 V, 300 mA wall supply would power it without trouble, using only 30% of its maximum capacity, for as long as the mains stays on.
The essential requirement is energy ready to be supplied—and enough of it. You could use a car battery capable of delivering up to 100 A; the circuit will draw only what it needs. As long as the source provides the required voltage, the current drawn is determined by the circuit, not by the source’s maximum current rating. A supply can provide the current demanded while maintaining its voltage, until, for example, a battery begins to run down. Your computer is connected to an electrical network capable of powering a huge refrigerator, but it takes only the current it needs. Returning to the water analogy, the device controls the tap; the supply has the potential to provide energy, and each appliance draws what it needs.
LEDs and their operating limits
We’re here to work with LEDs, but first it helps to understand voltage and current. Like an incandescent or energy-saving bulb, an LED needs a particular voltage to operate. LEDs do not all turn on at the same voltage, so knowing their operating voltage gives us the freedom to design circuits with them.
A white LED is commonly estimated to need 3 V. Could one be connected directly to a single alkaline AAA battery? No: at least two cells in series are needed. Three cells would give 4.5 V, too much for the LED and potentially destructive—like connecting a device rated for 220 V to 380 V. The voltage applied should match the device’s rated operating conditions. So how can we power LEDs from a higher-voltage source, such as 12 V? This is where Ohm’s law comes in.
A basic circuit consists of a battery, a current-limiting resistor and an LED. The battery is a voltage source—do not confuse voltage with current—and could provide 12 V, 24 V or another value above 3 V. Common 3 mm, 5 mm and 10 mm LEDs have maximum current ratings of about 20–25 mA (0.02–0.025 A). A safer value that still gives almost full brightness is 10 mA. That is the current used in my own designs, and the LEDs last essentially forever. Once we know the supply voltage, the LED’s operating voltage and the current we want through it, calculating the resistor is straightforward.
For one LED powered from 12 V, an 820-ohm resistor is a good choice. For two LEDs, we could use 470 ohms. With three LEDs, the calculation is (12 V − 9 V) / 0.01 A = 300 ohms, so a standard 270-ohm resistor can be used without trouble.
What about four white LEDs in series? If each needs 3 V, together they use the full 12 V supply, leaving no voltage for a current-limiting resistor. That may seem convenient, but beware: if the battery falls to 11.5 V as it wears down, the LEDs go out because each gets less than 3 V. If a fully charged battery exceeds 13 V, more than 1 V is left without any resistor to limit it, and dangerous current may flow through the LEDs. The advice here is never to put LEDs in series so that they exactly match the supply voltage without a resistor. Always leave at least half the supply voltage across the LEDs, rather than using all of it.
LEDs in parallel and resistor power
Two LEDs in parallel draw 20 mA from the battery if each uses 10 mA. In the first arrangement, that total current passes through a single current-limiting resistor and splits between the LEDs. In the second, each LED has its own resistor. Both arrangements work, but the second is better—especially if we imagine using 30 LEDs rather than two.
As long as the battery can supply the required current, 12 V provides enough voltage. With one resistor shared by 30 LEDs, it must carry 30 × 0.01 A = 0.3 A, or 300 mA. The required resistance is 30 ohms, so we would choose the standard 33-ohm value.
The resistor must also dissipate heat. Power is calculated as current squared times resistance: 0.3 A × 0.3 A × 33 ohms = 2.97 W. A resistor rated for at least 5 W would be needed to handle that comfortably, adding mechanical and financial cost. With one resistor per LED, each resistor dissipates 0.082 W (82 mW), so even the smallest 1/8 W resistors are suitable and cheaper than one large, space-consuming part. The battery supplies the same total current in either arrangement, but the second produces less heat in each resistor and costs less.
We could have brought Kirchhoff back from the grave to cover all this, but I’d rather help you get LEDs working correctly before introducing laws that are of little use if you do not know where you’re going—or have never held an LED. That is what university is for. NeoTeo is a place to enjoy the art of creating and building electronics. What matters here is understanding voltage, current, LED voltage and LED current. Apply the formulas and examples to whatever series and parallel combinations you like, while always keeping an eye on LED current and the power rating of the current-limiting resistor. And don’t take theoretical calculations as the final word: make your own measurements. Use a multimeter to check the voltage across each LED or resistor in any arrangement; then, applying Ohm’s law, you can fine-tune the LED current to a safe value.
Remember: LEDs are not perfect, and their operating voltages vary between production batches and colors. A red LED, for example, operates at 1.8–2.2 V, while a yellow one operates at 2.1–2.4 V. Your own measurements determine the exact value. Reference figures can get you close, but the final word is yours. Practical projects? Join us next time, when we’ll develop applications like the one shown in the video. If anything so far is unclear, you’ll also have a chance to clear up your questions.
Online LED resistor calculator: Tool