• Home
  • Chemistry
  • Astronomy
  • Energy
  • Nature
  • Biology
  • Physics
  • Electronics
  • Wiring LEDs to a 12‑V Power Supply: A Practical Guide

    By Andrew Hazleton – Updated March 24, 2022

    Hemera Technologies/Photos.com/Getty Images

    Light‑Emitting Diodes (LEDs) are the compact, energy‑efficient lighting components that power everything from displays to indicator lights. Each LED emits light at a single wavelength, and its brightness scales with the current flowing through it. Because the forward voltage drop (Vf) and maximum forward current (If) vary between colors and packages, a proper series resistor is essential to keep the LED within safe operating limits.

    Step 1: Review the LED Datasheet

    Before wiring, locate the LED’s datasheet. Note the typical forward voltage (Vf) and the maximum forward current (If). These values form the foundation of your resistor calculation.

    Step 2: Determine the Resistor Voltage Drop

    Subtract the LED’s forward voltage from your supply voltage:

    VR = 12 V – Vf

    If you’re wiring multiple LEDs in series, sum all Vf values and subtract the total from 12 V.

    Step 3: Choose a Safe Operating Current

    For reliable performance and longevity, set the circuit current to roughly 60 % of the LED’s If rating. This margin protects against voltage spikes and tolerates variations in LED characteristics.

    Step 4: Calculate the Resistor Value

    Use Ohm’s Law to find the series resistor:

    Rseries = VR / (0.60 × If)

    Example – A red LED with If = 20 mA and Vf = 2 V:

    VR = 12 V – 2 V = 10 V
    Rseries = 10 V / (0.60 × 20 mA) ≈ 833 Ω

    Step 5: Select a Standard Resistor

    Resistors are sold in standard series (E24). Choose the next higher standard value to stay safely below the calculated resistance. For the example above, the next value is 910 Ω.

    Step 6: Wire the Circuit

    1. Connect the positive terminal of the 12 V DC supply to one side of the resistor.
    2. Attach the other side of the resistor to the LED’s anode (the longer lead or the lead opposite the flat side).
    3. Connect the LED’s cathode (shorter lead) to the negative terminal of the supply.

    Things Needed

    • LED and its datasheet
    • 12 V DC power supply
    • Appropriate series resistor
    • Connecting wire
    • Calculator or spreadsheet

    TL;DR

    • Check LED orientation; reverse polarity prevents illumination.
    • If the LED is dim, consider a smaller resistor.
    • A resistor that’s too low will allow excessive current and permanently damage the LED.

    Warning

    LED forward voltage and current limits vary widely by color, size, and package. Always consult the specific datasheet before wiring.

    References

    • Fred Blechman, Simple, Low Cost Electronics Projects (1998)
    Science Discoveries © www.scienceaq.com