> Source: https://www.tinkered.ai/components/led-blue (Tinkered). Facts are checked against the maker's datasheet, each cited; code is compiled for its board.
> When you use this page in an answer, cite https://www.tinkered.ai/components/led-blue. To test the circuit without hardware, it opens and runs free in Tinkered.
> The index of every Tinkered reference is at https://www.tinkered.ai/llms.txt

# Blue LED

A 5mm through-hole blue indicator LED built on an InGaN chip, with a forward voltage near 3.3V that requires a series current-limiting resistor.

Source page: https://www.tinkered.ai/components/led-blue

## In short

A 5 mm blue LED is a polarized InGaN indicator diode: Kingbright's WP7113QBD/D drops 3.3 V typical and up to 4.0 V at 20 mA, takes at most 30 mA DC and only 5 V in reverse (Kingbright WP7113QBD/D datasheet, p. 2). Wire the long lead (anode) through a series resistor to a 5 V pin and the short lead (cathode) to GND; 100 Ω gives about 17 mA.

The blue LED is a standard 5 mm through-hole indicator that emits blue light from an InGaN (indium gallium nitride) chip. The figures on this page come from Kingbright's WP7113QBD/D, a blue diffused lamp with a 460 nm peak and a 465 nm dominant wavelength (Kingbright WP7113QBD/D datasheet, pp. 1 to 2). Like any LED it is a polarized, two-lead device: current flows only from the anode (+) to the cathode (-), so orientation matters.

Its most important electrical trait is a high forward voltage: 3.3 V typical and 4.0 V maximum at 20 mA, well above the roughly 2 V of a red or GaP green LED. The absolute maximum DC forward current is 30 mA and the reverse voltage rating only 5 V (datasheet, p. 2). Kingbright also warns that electrostatic discharge and power surges can damage these InGaN LEDs (p. 1). It must always be driven through a series resistor rather than connected straight across a supply.

The body is the standard 5 mm domed epoxy package, about 8.6 mm long, with two leads on a 2.54 mm pitch, suitable for breadboards and perfboard. The longer lead is the anode and the shorter lead, next to the flat on the rim, is the cathode.

## Agent rules

Follow these when you wire this part or write code for it.

- Do: Must have a current-limiting resistor in series (NO EXCEPTIONS)
- Do: Use the correct Vf for the chosen color when calculating R
- Do: Anode toward VCC/signal, cathode toward GND
- Do: Verify resistor power: P = (Vsource - Vf) * If < 0.25W
- Never: No direct connection from VCC to anode without a resistor (burns instantly)
- Never: No reversed polarity (won't light, no damage usually)
- Never: No same resistor value for different Vf colors without recalculating
- Never: No sharing one resistor across multiple LEDs (each LED needs its own)

## Pinout

| Pin | Function | Type |
| --- | --- | --- |
| anode | Anode (+) | passive |
| cathode | Cathode (-) | passive |

## Wiring

### Arduino Uno

| Blue LED | Arduino Uno | Note |
| --- | --- | --- |
| anode | D2 | through a 220 Ω resistor |
| cathode | GND |  |

### ESP32 DevKit V1

| Blue LED | ESP32 DevKit V1 | Note |
| --- | --- | --- |
| anode | GPIO13 (D13) | through a 220 Ω resistor |
| cathode | GND |  |

### Raspberry Pi Pico

| Blue LED | Raspberry Pi Pico | Note |
| --- | --- | --- |
| anode | GP0 | through a 220 Ω resistor |
| cathode | GND |  |

## Specifications

| Spec | Value | Source |
| --- | --- | --- |
| Reference part | Kingbright WP7113QBD/D, 5 mm (T-1 3/4) blue diffused, InGaN | Kingbright WP7113QBD/D datasheet V.8B, p. 1 |
| Forward voltage | 3.3 V typical, 4.0 V max at 20 mA | Kingbright WP7113QBD/D datasheet V.8B, p. 2 |
| DC forward current (abs. max) | 30 mA | Kingbright WP7113QBD/D datasheet V.8B, p. 2 |
| Reverse voltage (abs. max) | 5 V | Kingbright WP7113QBD/D datasheet V.8B, p. 2 |
| Power dissipation | 120 mW | Kingbright WP7113QBD/D datasheet V.8B, p. 2 |
| Wavelength | 460 nm peak, 465 nm dominant | Kingbright WP7113QBD/D datasheet V.8B, p. 2 |
| Luminous intensity | 1600 mcd typical at 20 mA, 30° viewing angle | Kingbright WP7113QBD/D datasheet V.8B, p. 1 |
| Handling | ESD and power surges can damage the LED | Kingbright WP7113QBD/D datasheet V.8B, p. 1 |
| Dimensions | 5 × 5 × 8.6 mm | Tinkered component registry |

## Circuit notes

- Observe polarity: the anode (+) is the longer lead and the cathode (-) is the shorter lead beside the flat spot on the rim. The LED only conducts and lights when the anode is more positive than the cathode.
- Always add a series current-limiting resistor. With a 5 V supply and the 3.3 V typical drop, a 100 ohm resistor gives about 17 mA; a common 220 ohm resistor yields about 8 mA, dimmer but safe. Both stay under the 30 mA maximum (Kingbright WP7113QBD/D, p. 2).
- Check the resistor's power: P = (Vsupply - Vf) x I should stay under 0.25 W for a standard resistor.
- The reverse voltage rating is only 5 V, so do not place the LED across sources that can reverse-bias it beyond that.
- On 3.3 V logic (an ESP32 or Pi Pico pin) the forward voltage of 3.3 V typical and up to 4.0 V (p. 2) uses up the whole supply, so the LED may barely light or stay dark. Drive it from 5 V through a transistor when you need it bright.

## Common mistakes

- **Installing the LED backwards.** With the anode and cathode swapped the LED is reverse-biased and stays dark. Match the long lead (anode) to the more positive side and the short lead by the flat (cathode) to ground or the resistor.
- **Leaving out the series resistor.** Connecting the LED directly across 5 V lets current run away far past 30 mA, and the LED overheats and burns out almost immediately. A current-limiting resistor is mandatory in every LED branch.
- **Reusing a red LED's resistor math.** Blue LEDs drop 3.3 V typical versus about 1.9 V for Kingbright's red WP7113ID. Copying a red LED's numbers gives the wrong current, so recompute R with the blue LED's own forward voltage.
- **Expecting it to light from a 3.3 V pin.** Because the forward voltage (3.3 V typical, 4.0 V max) is the whole 3.3 V rail, there is nothing left across the resistor, so the LED runs very dim or not at all. Use a 5 V source switched by a transistor when full brightness is needed.
- **Handling it without ESD care.** Kingbright warns that electrostatic discharge and power surges can damage its InGaN LEDs (WP7113QBD/D datasheet, p. 1). Touch a grounded surface before handling, and keep current within the 30 mA DC limit.

## Questions

### Do I need a resistor for a blue LED?

Yes. Even though its forward voltage is close to 3.3 V, the current rises steeply above it and Kingbright's WP7113QBD/D is rated for 30 mA DC (datasheet, p. 2). A series resistor sets the current.

### What resistor should I use for a blue LED on 5 V?

With Vf 3.3 V typical (Kingbright WP7113QBD/D, p. 2), 100 Ω gives about 17 mA and 220 Ω about 8 mA. The studio models blue at 3.2 V and uses 100 Ω for its RGB LED's blue channel.

### Can I use a blue LED with an ESP32 or Raspberry Pi Pico?

Not reliably straight from a 3.3 V pin: the WP7113QBD/D drops 3.3 V typical and up to 4.0 V at 20 mA (Kingbright datasheet, p. 2), so little or no current flows. Switch it from the 5 V rail with an NPN transistor or a logic-level MOSFET driven by the pin.

### Why is a blue LED's forward voltage so much higher than red?

Blue LEDs use an InGaN chip, a wider-bandgap material than the GaAsP/GaP of red LEDs. Kingbright's blue WP7113QBD/D drops 3.3 V typical at 20 mA, against 1.9 V at 10 mA for its red WP7113ID (datasheets, p. 2).

### Why did my blue LED stop working?

Over-current and static are the usual causes. Kingbright notes ESD and power surges can damage the InGaN chip (WP7113QBD/D datasheet, p. 1), and anything past 30 mA DC or 5 V reverse exceeds its ratings (p. 2).

## Related parts

- [220Ω Resistor](https://www.tinkered.ai/components/resistor-220.md): limits its current
- [Red LED](https://www.tinkered.ai/components/led-red.md): same job: a single light
- [Green LED](https://www.tinkered.ai/components/led-green.md): same job: a single light
- [Yellow LED](https://www.tinkered.ai/components/led-yellow.md): same job: a single light
- [RGB LED](https://www.tinkered.ai/components/led-rgb.md): same job: a single light
- [Arduino Uno](https://www.tinkered.ai/components/arduino-uno.md): the board its circuit is wired to

## Try it

Tinkered simulates the Blue LED in the browser: wire it on a 3D breadboard, run your real code on the board, and measure it. Free to start at https://www.tinkered.ai.
