# Circuit Playground: L is for LED

## Video

https://youtu.be/E2WcaJySVuw

Billie's got the blues and Adabot has lots of questions. Learn about how an LED works with Adabot and the Circuit Playground components!

# Circuit Playground: L is for LED

## Transcript

![](https://cdn-learn.adafruit.com/assets/assets/000/042/207/medium800/circuit_playground_L_is_for_LED1.jpg?1496266429)

 **BILLIE:** I gotta right to sing the blues, I gotta right to moan inside …

I gotta right to sit and cry, down by the river …

![](https://cdn-learn.adafruit.com/assets/assets/000/042/208/medium800/circuit_playground_L_is_for_LED2.jpg?1496266477)

 **ADABOT:** Whoa! What’s that music?

**RUBY:** That’s just Billie!

**ADABOT:** Really? - she sounds kind of sad …

**GUS:** Yeah, don’t go nuts. Billie’s just got the blues again.

**ADABOT:** Ohhhh …

![](https://cdn-learn.adafruit.com/assets/assets/000/042/209/medium800/circuit_playground_L_is_for_LED4.jpg?1496266531)

 **ADABOT:** Hey Billie, Why so blue?

**BILLIE:** I suppose that’s just the way I am.&nbsp;

**ADABOT:** So, you’ve always been blue?

**GUS:** Yeah, well - she’s made with **Gallium Nitride**.

**ADABOT:** Gallium what? What are you talking about?

**RUBY:** Well, Adabot - inside every **LED** is a small **crystal** …

**ADABOT:** Oh, really …

![](https://cdn-learn.adafruit.com/assets/assets/000/042/211/medium800/circuit_playground_L_is_for_LED9.jpg?1496266598)

 **RUBY:** When you connect the short leg of an LED to **ground** , and the longer leg to **positive voltage** - voila!

**GUS:** The crystal glows and the LED lights up!

![](https://cdn-learn.adafruit.com/assets/assets/000/042/212/medium800/circuit_playground_L_is_for_LED10.jpg?1496266636)

 **ADABOT:** Very cool - so when&nbsp; **electricity** flows&nbsp; **through** an LED’s crystal, it creates light! But why are LEDs certain colors in the first place?

**RUBY:** The type of crystal used in an LED determines that LED’s color.

**ADABOT:** Oh - interesting!

![](https://cdn-learn.adafruit.com/assets/assets/000/042/213/medium800/circuit_playground_L_is_for_LED12.jpg?1496266675)

 **RUBY:** A red LED like me uses a type of crystal made of **Gallium Arsenide** &nbsp;- that’s two elements, **Gallium** and **Arsenic** , mixed together.

![](https://cdn-learn.adafruit.com/assets/assets/000/042/226/medium800/circuit_playground_L_is_for_LED14.jpg?1496267123)

 **GUS:** I use an **Aluminium**  **Gallium** crystal to get so green.

![](https://cdn-learn.adafruit.com/assets/assets/000/042/215/medium800/circuit_playground_L_is_for_LED17.jpg?1496266739)

 **BILLIE:** and **Indium**  **Gallium**  **Nitride** is what makes me so blue.

![](https://cdn-learn.adafruit.com/assets/assets/000/042/216/medium800/circuit_playground_L_is_for_LED18.jpg?1496266769)

 **ADABOT:** Oh - so different crystals make different colored light!

**RUBY:** Yeah!

**ADABOT:** But I’ve also seen LEDs that change color? How do they do that?

**RUBY:** Well, we usually call those color-changing LEDs – **RGB** &nbsp;LEDs.

![](https://cdn-learn.adafruit.com/assets/assets/000/042/217/medium800/circuit_playground_L_is_for_LED21.jpg?1496266822)

 **BILLIE:** Hey - I’ve got an RGB LED here.

**RUBY:** Oh good - Let’s take a closer look to see how they work …

![](https://cdn-learn.adafruit.com/assets/assets/000/042/219/medium800/circuit_playground_L_is_for_LED23.jpg?1496266848)

 **RUBY:** We call them **RGB** because inside every one of them are three different types of crystals - one that makes **red** light, one that makes **green** light, and one that makes **blue**.

![](https://cdn-learn.adafruit.com/assets/assets/000/042/220/medium800/circuit_playground_L_is_for_LED24.jpg?1496266880)

 **ADABOT:** ohh, **R - G - B – red, green, blue**!

**RUBY:** Exactly - and by mixing red green and blue - we can make pretty much **any color** we want!

![](https://cdn-learn.adafruit.com/assets/assets/000/042/222/medium800/circuit_playground_L_is_for_LED25.jpg?1496266953)

 **GUS:** like, say - **purple** …

![](https://cdn-learn.adafruit.com/assets/assets/000/042/224/medium800/circuit_playground_L_is_for_LED26.jpg?1496267037)

 **BILLIE:** or **orange** …

![](https://cdn-learn.adafruit.com/assets/assets/000/042/225/medium800/circuit_playground_L_is_for_LED27.jpg?1496267053)

 **RUBY:** Or even **white**!

![](https://cdn-learn.adafruit.com/assets/assets/000/042/223/medium800/circuit_playground_L_is_for_LED28.jpg?1496266996)

 **ADABOT:** Wow - thanks, guys! LEDs make a lot more sense now!  
   
**RUBY:** You’re very welcome, Adabot. LEDs are in so many **electronic devices** , **screens** , **billboards** , – even **light bulbs** …   
   
**BILLIE:** It’s really important to understand how they work!

**ADABOT:** You know, Billie - you may be blue, but you light up my life.

**GUS, RUBY, BILLIE:** Awwwwwww …

# Circuit Playground: L is for LED

## Learn More

![](https://cdn-learn.adafruit.com/assets/assets/000/042/228/medium800/circuit_playground_LED-diagram2.jpg?1496268016)

From [Wikipedia](https://en.wikipedia.org/wiki/Light-emitting_diode)

> A light-emitting diode (LED) is a two-lead semiconductor light source. It is a p–n junction diode that emits light when activated. When a suitable voltage is applied to the leads, electrons are able to recombine with electron holes within the device, releasing energy in the form of photons. This effect is called electroluminescence, and the color of the light (corresponding to the energy of the photon) is determined by the energy band gap of the semiconductor. LEDs are typically small (less than 1 mm) and integrated optical components may be used to shape the radiation pattern.

![](https://cdn-learn.adafruit.com/assets/assets/000/042/230/medium800/circuit_playground_LEDs-vintage.jpg?1496268807 photo by Osmdesat CC BY-SA 3.0)

> Appearing as practical electronic components in 1962, the earliest LEDs emitted low-intensity infrared light. Infrared LEDs are still frequently used as transmitting elements in remote-control circuits, such as those in remote controls for a wide variety of consumer electronics. The first visible-light LEDs were also of low intensity and limited to red. Modern LEDs are available across the visible, ultraviolet, and infrared wavelengths, with very high brightness.
> 
> Early LEDs were often used as indicator lamps for electronic devices, replacing small incandescent bulbs. They were soon packaged into numeric readouts in the form of seven-segment displays and were commonly seen in digital clocks. Recent developments have produced LEDs suitable for environmental and task lighting. LEDs have led to new displays and sensors, while their high switching rates are useful in advanced communications technology.

![](https://cdn-learn.adafruit.com/assets/assets/000/042/229/medium800/circuit_playground_LEDs-group.jpg?1496268605)

> LEDs have many advantages over incandescent light sources, including lower energy consumption, longer lifetime, improved physical robustness, smaller size, and faster switching. Light-emitting diodes are used in applications as diverse as aviation lighting, automotive headlamps, advertising, general lighting, traffic signals, camera flashes, and lighted wallpaper. As of 2017, LED lights home room lighting are as cheap or cheaper than compact fluorescent lamp sources of comparable output. They are also significantly more energy efficient and, arguably, have fewer environmental concerns linked to their disposal.

[Read more](https://en.wikipedia.org/wiki/Light-emitting_diode)

# Use Arduino to control an LED
![](https://cdn-learn.adafruit.com/assets/assets/000/042/238/medium800/circuit_playground_arduino-w-LED.jpg?1496351679)

Check out the [Arduino Lesson 2. LEDs guide](../../../../adafruit-arduino-lesson-2-leds/leds?view=all#blinking-the-led) to learn how to use an LED, breadboard, and microcontroller to flash an LED.

# All About LEDs
![](https://cdn-learn.adafruit.com/assets/assets/000/042/239/medium800/circuit_playground_all-about-LEDs.jpg?1496351791)

Learn everything you ever wanted to know about LEDs from anode to cathode with our thorough&nbsp;[All About LEDs guide](../../../../all-about-leds/what-are-leds-used-for?view=all#overview)!

# … and more

- [MAKE Presents: The LED](https://youtu.be/P3PDLsJQcGI)
- [LED Resistor Calculator](https://www.digikey.com/en/resources/conversion-calculators/conversion-calculator-led-series-resistor?&WT.srch=1&gclid=CjwKEAjw07nJBRDG_tvshefHhWQSJABRcE-ZTm3cDW0apSjIKsRMnanaIBjHkb3PaZagIbajaHzQ0BoCMITw_wcB)
- [Oct. 9, 1962: First Visible LED Is Demonstrated](https://www.wired.com/2012/10/oct-9-1962-the-first-visible-led-is-demonstrated/)
- [50 Years of LED Technology](50%20Years%20of%20LED%20Technology)


## Featured Products

### Coloring book - "Ladyada's E is for electronics"

[Coloring book - "Ladyada's E is for electronics"](https://www.adafruit.com/product/1000)
Discontinued - [**you can grab&nbsp;** Ladyada's Coloring book - "R is for Robots" **instead!&nbsp;**](https://www.adafruit.com/product/1936)

Ladyada's "E is for Electronics" is a coloring book adventure with electronic components and their...

No Longer Stocked
[Buy Now](https://www.adafruit.com/product/1000)
[Related Guides to the Product](https://learn.adafruit.com/products/1000/guides)
### Cappy the Capacitor - Circuit Playground Plushie

[Cappy the Capacitor - Circuit Playground Plushie](https://www.adafruit.com/product/1021)
[Discontinued - **you can grab** Ruby the Red LED - Circuit Playground Plushie **&nbsp;instead!**](https://www.adafruit.com/product/1025)

Cappy is the de facto leader of the group. He is always coming up with crazy schemes. A running joke is that his capacitance value...

No Longer Stocked
[Buy Now](https://www.adafruit.com/product/1021)
[Related Guides to the Product](https://learn.adafruit.com/products/1021/guides)
### Hans 555 Timer IC - Circuit Playground Plushie

[Hans 555 Timer IC - Circuit Playground Plushie](https://www.adafruit.com/product/1022)
[Discontinued - **you can grab one of our many other&nbsp;Plushies&nbsp;instead!&nbsp;**](https://www.adafruit.com/?q=plushie&sort=BestMatch)

Hans is the 'old man' of the group. He tends to be nervous and is often indecisive. Hans frequently changes his mind and...

No Longer Stocked
[Buy Now](https://www.adafruit.com/product/1022)
[Related Guides to the Product](https://learn.adafruit.com/products/1022/guides)
### Connie the Transistor - Circuit Playground Plushie

[Connie the Transistor - Circuit Playground Plushie](https://www.adafruit.com/product/1024)
Connie is the co-leader of the group with Cappy. Connie is much more level-headed though, and somewhat of a mother figure for the others, particularly Ruby and Billie. She is very thorough, remarkably smart, and has a good heart. She is very dedicated to the others and acts as a balance to the...

No Longer Stocked
[Buy Now](https://www.adafruit.com/product/1024)
[Related Guides to the Product](https://learn.adafruit.com/products/1024/guides)
### Mho the Resistor - Circuit Playground Plushie

[Mho the Resistor - Circuit Playground Plushie](https://www.adafruit.com/product/1023)
Mho has a laid-back, passive personality. He likes to do as little work as possible and prefers to simply let the world happen around him. Mho is kind of a hippie&nbsp;and is very quiet and gentle. He is best friends with Ruby, the red LED, who shares his idealism, though he's often...

No Longer Stocked
[Buy Now](https://www.adafruit.com/product/1023)
[Related Guides to the Product](https://learn.adafruit.com/products/1023/guides)
### Ruby the Red LED - Circuit Playground Plushie

[Ruby the Red LED - Circuit Playground Plushie](https://www.adafruit.com/product/1025)
Ruby is the ingenue of the group, and something of a Pollyanna. She is the youngest, the most talkative, and gets easily excited about everything. Ruby has a lot of energy and she's always ready to go on an adventure. Ruby's wanderlust sometimes gets her in trouble. Her best friend is...

No Longer Stocked
[Buy Now](https://www.adafruit.com/product/1025)
[Related Guides to the Product](https://learn.adafruit.com/products/1025/guides)
### Gus the Green LED - Circuit Playground Plushie

[Gus the Green LED - Circuit Playground Plushie](https://www.adafruit.com/product/1026)
[Discontinued - **you can grab the&nbsp;** Ruby the Red LED - Circuit Playground Plushie&nbsp; **instead!**](https://www.adafruit.com/product/1025)

Gus is the smartest member of the group, but also the most coarse. Gus is the closest thing to an engineer in the group: he...

No Longer Stocked
[Buy Now](https://www.adafruit.com/product/1026)
[Related Guides to the Product](https://learn.adafruit.com/products/1026/guides)
### Billie the Blue LED - Circuit Playground Plushie

[Billie the Blue LED - Circuit Playground Plushie](https://www.adafruit.com/product/1027)
Billie doesn't just sing the blues, she lives the blues. Billie has a good heart, but she can be a total downer. She always sees glass as half-empty (even when it's full), and doesn't like to try new things. Billie has a big-sister relationship with Ruby, and admires her...

No Longer Stocked
[Buy Now](https://www.adafruit.com/product/1027)
[Related Guides to the Product](https://learn.adafruit.com/products/1027/guides)

## Related Guides

- [Circuit Playground: C is for Capacitor](https://learn.adafruit.com/circuit-playground-c-is-for-capacitor.md)
- [Glowing Lotus Flower - Electronic Origami for Beginners](https://learn.adafruit.com/glowing-lotus-flower-electronic-origami-for-beginners.md)
- [Circuit Playground: G is for Ground](https://learn.adafruit.com/circuit-playground-g-is-for-ground.md)
- [Circuit Playground: R is for Robots](https://learn.adafruit.com/circuit-playground-r-is-for-robots.md)
- [Circuit Playground: K is for Kits](https://learn.adafruit.com/circuit-playground-k-is-for-kits.md)
- [Circuit Playground - A is for Ampere](https://learn.adafruit.com/circuit-playground-a-is-for-ampere.md)
- [Circuit Playground - P is for PCB](https://learn.adafruit.com/circuit-playground-p-is-for-pcb.md)
- [Circuit Playground: S is for Soldering Iron](https://learn.adafruit.com/circuit-playground-s-is-for-soldering-iron.md)
- [Circuit Playground: M is for MOSFET](https://learn.adafruit.com/circuit-playground-m-is-for-mosfet.md)
- [Circuit Playground: F is for Frequency](https://learn.adafruit.com/circuit-playground-f-is-for-frequency.md)
- [Circuit Playground: D is for Diode](https://learn.adafruit.com/circuit-playground-d-is-for-diode.md)
- [Circuit Playground: B is for Battery](https://learn.adafruit.com/circuit-playground-b-is-for-battery.md)
- [Circuit Playground: Q is for Quartz](https://learn.adafruit.com/circuit-playground-q-is-for-quartz.md)
- [Circuit Playground: J is for Joule](https://learn.adafruit.com/circuit-playground-j-is-for-joule.md)
