Saturday, November 28, 2026

How to Choose an LED Resistor – 4 Easy Steps

How to Choose an LED Resistor – MY CREATIVE ENGINEERING
How to Choose an LED Resistor – MY CREATIVE ENGINEERING

An LED looks simple, but connect it straight to a supply and it can burn out in a flash. The fix is one small part: a series resistor that limits the current. Here is how to choose the right one in 4 easy steps.

Step 1: Find the LED's Vf and If

Check the datasheet or label for the LED's forward voltage (Vf) and its rated forward current (If). Typical forward voltages: red about 2.0 V, green or yellow about 2.0 – 2.2 V, blue or white about 3.0 – 3.3 V. A common working current for a standard indicator LED is up to 20 mA.

Step 2: Work Out the Voltage Drop

The resistor must absorb whatever voltage the LED does not use. Subtract Vf from your supply voltage (Vs). With a 5 V supply and a red LED at 2.0 V, the resistor has to drop 3.0 V.

Step 3: Calculate the Resistor

Use Ohm's law: R = (Vs − Vf) ÷ I. For our example: R = 3.0 V ÷ 0.020 A = 150 Ω. If the exact value is not a standard value, round UP to the next standard resistor so the current stays at or below the rating.

Step 4: Connect It in Series

Place the resistor in series with the LED. Connect the anode (+) toward the supply and the cathode (−) toward ground.

Worked Example: 5 V Red LED at 20 mA

Supply voltage5 V
LED forward voltage (red)2.0 V
(5 − 2.0) ÷ 0.02150 Ω
Resistor to use150 Ω

Resistor heat: P = V × I = 3 V × 20 mA = 0.06 W, so a 1/4 W resistor is more than enough.

Quick Reference (20 mA)

5 V · Red LED150 Ω
5 V · Blue / White LED100 Ω
12 V · Red LED510 Ω
3.3 V · Red LED68 Ω

If there is no exact match, use the next higher standard resistor value.

Safety Tips

  • Switch off power before wiring.
  • Check polarity: anode (+) toward the supply, cathode (−) toward ground.
  • Never connect an LED directly to a supply.
  • Use a resistor with enough wattage rating.
  • Hot parts: allow them to cool before touching.
  • At higher voltages, work with care.

Remember: always use a series resistor. R = (Vs − Vf) ÷ I, then round up to a standard value.

Follow MY CREATIVE ENGINEERING for more practical electronics tips!

Friday, November 27, 2026

How to Choose a DC Power Supply – 4 Steps

How to Choose a DC Power Supply – MY CREATIVE ENGINEERING
How to Choose a DC Power Supply – MY CREATIVE ENGINEERING

The right power supply keeps your project running safely. A supply that is too small can overheat, drop its voltage or shut down at random. Match it to your load in 4 easy steps.

Read the Label First

  • AC input: for example 100 – 240 V AC.
  • DC output: for example 12 V DC, 5 A.
  • Power: 60 W (12 V × 5 A).

Step 1: Match the Voltage

The supply output must match the load. A 12 V device needs a 12 V supply.

Step 2: Calculate the Current

Add up the current of every load. Amps = Watts ÷ Volts. For example, an LED strip at 3.0 A plus a controller at 0.5 A gives a total of 3.5 A.

Step 3: Add Headroom

Choose a supply rated 20–30% above the load for a cooler, longer life. Example: 3.5 A × 1.3 ≈ 4.6 A, so choose a 5 A supply.

Step 4: Check Input and Wiring

Confirm the AC input range and wire L, N, earth and +V / −V correctly. Check polarity before power on.

Correct vs. Wrong

Correct: a 12 V 5 A supply for a 3.5 A load. The voltage matches and the current is above the load plus headroom.
Wrong: a 12 V 3 A supply for a 3.5 A load. The supply is smaller than the load and may overheat or shut down.

Example: 12 V LED Strip Project

LED strip 3.0 A + controller 0.5 A = 3.5 A total. Adding 30% gives about 4.6 A. Choose a 12 V, 5 A supply. Note: Power (W) = Volts × Amps, so 12 V × 5 A = 60 W.

Quick Reference: Power Chart

SupplyPower
5 V · 2 A10 W
12 V · 5 A60 W
12 V · 10 A120 W
24 V · 5 A120 W

Always pick a supply at or above your calculated load.

Safety Tips

  • Switch off and unplug before wiring.
  • Never touch AC terminals when powered.
  • Check +/− polarity before powering on.
  • Allow airflow and do not cover the supply.
  • Earth the metal case where provided.
  • For mains wiring, use a qualified electrician.

Remember: match the voltage, size the current with 20–30% headroom, and check polarity before power on.

Follow MY CREATIVE ENGINEERING for more practical electronics tips!