Parts · Lights and sound

LED

5 mm LED, red, yellow, green, blue

A light that shines one way only: the long leg goes to +. Always with a resistor.

2Use it

Pin or legWhat it is for
Long leg (+, anode)to the pin, through the resistor
Short leg (-, cathode)to GND; the rim is flat on this side

The idea behind it, step by step: LED

Used in

3Facts

Currentabout 10-20 mA
Voltage across itabout 2 V (red) to 3 V (blue)

Kinds you may find

3 mmsmaller, used the same way
RGB LEDred, green and blue in one, with 4 legs
Addressable LED (WS2812B)an LED with its own chip: see the LED strip

Where to buy