{"id":4085,"date":"2020-07-15T21:09:17","date_gmt":"2020-07-16T01:09:17","guid":{"rendered":"https:\/\/www.circuitcrush.com\/?p=4085"},"modified":"2021-06-30T13:32:10","modified_gmt":"2021-06-30T17:32:10","slug":"how-leds-work-intro","status":"publish","type":"post","link":"https:\/\/www.circuitcrush.com\/how-leds-work-intro\/","title":{"rendered":"How LEDs Work"},"content":{"rendered":"<h1><strong>What are LEDs and how do LEDs Work?<br \/>\n<\/strong><\/h1>\n<p>What is an LED? How do LEDs work?<\/p>\n<p>Many of us take the humble LED, or <strong><em>light emitting diode<\/em><\/strong>, for granted despite their ubiquity.<\/p>\n<p>LEDs not only show up in many of your projects, they find a home in a myriad of consumer and commercial products and are now making headway into lighting, driving incandescent and fluorescent lighting into obsolescence.<\/p>\n<p>Before we answer the question <em>what is an LED<\/em> or delve into how LEDs work, let\u2019s do a quick history lesson on a few common types of light emitting devices you\u2019re probably familiar with. After that, we\u2019ll talk about what LEDs are made of and how they work. Then, we\u2019ll get into the practical side of LEDs and how to use LEDs in your projects and designs.<\/p>\n<p><!--more--><\/p>\n<h2><strong>LED &amp; Lighting History 101<br \/>\n<\/strong><\/h2>\n<p>The incandescent light bulb was the first viable electric light on the scene (though arc lamps were demonstrated as early as 1835). Thomas Edison patented the device in 1879.<\/p>\n<p>Modern incandescent bulbs use a tungsten filament to emit light. A glass envelope encloses the filament and a vacuum or inert gas fills the envelope. Many incandescent bulbs connect to the light socket using a screw base, but other types of bases exist.<\/p>\n<p>Incandescent bulbs were the standard for a long time in homes and other places. They generate a fair amount of light and have an okay lifespan, as long as they\u2019re not subject to abuse (like mechanical shock).<\/p>\n<p>The problem is that they\u2019re energy hogs. Much of the electric power the bulbs consume converts to heat rather than light. If you\u2019ve ever touched an incandescent bulb that\u2019s been on for more than a few seconds you know what I mean.<\/p>\n<p>The bulbs are also fragile, and their lifespan is relatively short.<\/p>\n<p>Before the advent of LEDs, small incandescent lamps were often used as indicators in various consumer and commercial products. Other variations of these lamps exist including halogen bulbs, high pressure sodium (think street lights), mercury vapor and metal halide. While the last three are not truly incandescent bulbs, we\u2019ll lump them in here anyway as they deserve a mention. You may not be familiar with them, but they show up in commercial and industrial applications.<\/p>\n<p>Fluorescent bulbs have been around since the 1930\u2019s but the compact fluorescent bulb or CFL didn\u2019t show up on the scene until much later.<\/p>\n<p>CFLs are much more energy efficient than incandescent bulbs and have a longer life with the potential to last years, but they are also fragile. In addition, they contain mercury which is highly toxic. Once you flip the switch to turn a CFL bulb on, they tend to take a minute or two to \u201cwarm up\u201d before they reach peak brightness. To many, this is a disadvantage.<\/p>\n<p>LED bulbs boast a long life, are very efficient and contain no mercury. They are also more robust and not as fragile as incandescent lamps or CFLs. For these reasons, many people &#8212; including myself &#8212; have switched out the CFLs in their homes for LED bulbs as the prices keep falling. Another perk some LED bulbs sport are IoT capabilities. These \u201csmart bulbs\u201d can change colors (among other things) and are easy to control with an app on a smartphone.<\/p>\n<p>Finally, LED bulbs progressively get dimmer over thousands of hours of use rather than failing suddenly as incandescent lamps do.<\/p>\n<h2><strong>How LEDs Work<br \/>\n<\/strong><\/h2>\n<p>While LED bulbs are replacing incandescent and fluorescent lighting in buildings and architectural design, most electronics enthusiasts are going to work with the smaller, more traditional LEDs. They\u2019re the main topic of this post, so let\u2019s talk about what an LED is and how LEDs work.<\/p>\n<p>Since an LED is a type of diode, the reader may wish to review <a href=\"https:\/\/www.circuitcrush.com\/how-diodes-work\/\" target=\"_blank\" rel=\"noopener noreferrer\">How Diodes Work \u2013 An Introduction<\/a> for a quick recap on diodes and semiconductors.<\/p>\n<p>The basic operation of a typical LED follows below.<\/p>\n<p>When an LED is forward biased, electrons cross the <em>pn<\/em> junction from the n-type material to the p-type material. The electrons recombine with holes in the p-type material. LEDs work by emitting light when this recombination takes place because the electrons release photons (energy in the form of light). Figure 1 depicts this process.<\/p>\n<p style=\"text-align: center;\"><img fetchpriority=\"high\" decoding=\"async\" class=\"size-full wp-image-4106 aligncenter\" src=\"http:\/\/www.circuitcrush.com\/wp-content\/uploads\/How-LED-Works.jpg\" alt=\"What is an LED?\" width=\"346\" height=\"514\" srcset=\"https:\/\/www.circuitcrush.com\/wp-content\/uploads\/How-LED-Works.jpg 346w, https:\/\/www.circuitcrush.com\/wp-content\/uploads\/How-LED-Works-202x300.jpg 202w, https:\/\/www.circuitcrush.com\/wp-content\/uploads\/How-LED-Works-101x150.jpg 101w\" sizes=\"(max-width: 346px) 100vw, 346px\" \/><\/p>\n<p style=\"text-align: center;\"><strong><em>Figure 1: how an LED works.<\/em><\/strong><\/p>\n<p>This release of photons is due to fact that the electrons in the conduction band have a higher energy level than the holes in the valance band. To shed this excess energy, they release a little bit of heat and photons of electromagnetic radiation in various frequencies once they recombine with the holes. The frequency determines the color of light the LED emits. Some LEDs, like the type in a typical remote control, emit infrared radiation (or IR) which is invisible to the human eye.<\/p>\n<p>This process, known as electroluminescence, is the basis on how LEDs work.<\/p>\n<p>Different impurities are added during the doping process to establish the color of light the LED will emit.<\/p>\n<p>Here\u2019s another fun fact: electroluminescence was first observed in 1907.<\/p>\n<h3 style=\"text-align: center;\">Become the Maker you were born to be. Try <a href=\"https:\/\/learnarduinonow.com\">Arduino Academy<\/a> for FREE!<\/h3>\n<p><img decoding=\"async\" class=\"wp-image-4238 aligncenter\" src=\"https:\/\/www.circuitcrush.com\/wp-content\/uploads\/FB_Cover2.png\" alt=\"\" width=\"318\" height=\"121\" srcset=\"https:\/\/www.circuitcrush.com\/wp-content\/uploads\/FB_Cover2.png 828w, https:\/\/www.circuitcrush.com\/wp-content\/uploads\/FB_Cover2-300x114.png 300w, https:\/\/www.circuitcrush.com\/wp-content\/uploads\/FB_Cover2-150x57.png 150w, https:\/\/www.circuitcrush.com\/wp-content\/uploads\/FB_Cover2-768x292.png 768w\" sizes=\"(max-width: 318px) 100vw, 318px\" \/><\/p>\n<h2><strong>How LEDs are Made<br \/>\n<\/strong><\/h2>\n<p>LEDs are semiconductors. However, designers usually do not use silicon or germanium because they are mainly heat producing materials and are poor at producing light.<\/p>\n<p>Compounds like gallium arsenide (GaAs), gallium arsenide phosphate (GaAsP), gallium nitride (GaN), and gallium phosphide (GaP) usually comprise many LEDs.<\/p>\n<p>GaAs LEDs produce IR radiation, while GaAsP LEDs emit either red or yellow light. GaP devices emit either green or red light and GaN LEDs emit blue light. There are other materials that also find use in LED fabrication.<\/p>\n<p>A plastic epoxy lens of the same color the device emits encloses the semiconductor chip that makes up the LED. The lens protects the semiconductor chip and also helps focus the light the LED emits so it is easier to see. This gives the typical bench-top LED its dome-like shape you\u2019re familiar with.<\/p>\n<p>At first, a combination of red, green, and blue LEDs were used to make white light. Later phosphor based white LEDs showed up on the scene. Some of you may have a tri-color LED with red, green, and blue chips in the same package. Depending on the intensity of each color, a variety of different colors including white can be made.<\/p>\n<p>Newer white LEDs usually consist of a blue LED chip with a coating of some sort of luminescent phosphor material. This phosphor converts some of the blue light into red, orange, and yellow light. When these colors mix with the blue light from the LED chip, it appears to the human eye as though the device is emitting white light.<\/p>\n<h2><strong>How to Use LEDs \u2013 the Practical Stuff<br \/>\n<\/strong><\/h2>\n<p>This introductory tutorial assumes the reader knows nothing about LEDs, so we\u2019re going to start with the basics and go from there.<\/p>\n<p>Figure 2 depicts the schematic symbol for an LED.<\/p>\n<p><img decoding=\"async\" class=\"wp-image-4087 aligncenter\" src=\"http:\/\/www.circuitcrush.com\/wp-content\/uploads\/LED-Symbol.png\" alt=\"How LEDs work - schematic symbol\" width=\"338\" height=\"106\" srcset=\"https:\/\/www.circuitcrush.com\/wp-content\/uploads\/LED-Symbol.png 1200w, https:\/\/www.circuitcrush.com\/wp-content\/uploads\/LED-Symbol-300x94.png 300w, https:\/\/www.circuitcrush.com\/wp-content\/uploads\/LED-Symbol-1024x321.png 1024w, https:\/\/www.circuitcrush.com\/wp-content\/uploads\/LED-Symbol-150x47.png 150w, https:\/\/www.circuitcrush.com\/wp-content\/uploads\/LED-Symbol-768x241.png 768w, https:\/\/www.circuitcrush.com\/wp-content\/uploads\/LED-Symbol-600x188.png 600w\" sizes=\"(max-width: 338px) 100vw, 338px\" \/><\/p>\n<p style=\"text-align: center;\"><strong><em>Figure 2: schematic symbol for an LED.<\/em><\/strong><\/p>\n<p>Notice also that the two ends in figure 2 have labels. The anode is the positive side and the cathode is the negative side of the LED. Notice the perpendicular line at the right tip of the triangle. That\u2019s the cathode. Remember this because the two terminals are often not labeled in schematics.<\/p>\n<p>To get the LED to light, the anode must be more positive than the cathode. To do so, we apply a voltage to the anode and tie the cathode to a lower voltage, like ground. This is how LEDs work.<\/p>\n<p>When looking at an actual LED, we can see that one of the legs is shorter than the other, as figure 3 shows. This is the cathode of the LED.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-4088 aligncenter\" src=\"http:\/\/www.circuitcrush.com\/wp-content\/uploads\/LED-Cathode.jpg\" alt=\"How to tell LED cathode\" width=\"507\" height=\"285\" srcset=\"https:\/\/www.circuitcrush.com\/wp-content\/uploads\/LED-Cathode.jpg 1280w, https:\/\/www.circuitcrush.com\/wp-content\/uploads\/LED-Cathode-300x169.jpg 300w, https:\/\/www.circuitcrush.com\/wp-content\/uploads\/LED-Cathode-1024x576.jpg 1024w, https:\/\/www.circuitcrush.com\/wp-content\/uploads\/LED-Cathode-150x84.jpg 150w, https:\/\/www.circuitcrush.com\/wp-content\/uploads\/LED-Cathode-768x432.jpg 768w, https:\/\/www.circuitcrush.com\/wp-content\/uploads\/LED-Cathode-600x338.jpg 600w\" sizes=\"(max-width: 507px) 100vw, 507px\" \/><\/p>\n<p style=\"text-align: center;\"><strong><em>Figure 3: the anode and cathode of an LED.<\/em><\/strong><\/p>\n<p>You will also notice a flat spot on the rim below the LED\u2019s dome. This is another way to tell which terminal is the cathode if you cannot see the leads. For instance, if I need to look at an LED which has already been soldered to a board, I can tell which lead is the cathode by looking at this flat spot.<\/p>\n<p>LEDs have a forward (a.k.a. threshold) voltage below which they will not operate. This is usually denoted V<sub>F<\/sub> on data sheets and technical documents. The forward threshold voltage depends on the color of the LED but is significantly higher than the 0.7 V a silicon diode needs to conduct, regardless of the LED&#8217;s color. Conversely, the reverse breakdown voltage of an LED is considerably less than that of a typical silicon diode (usually around 3 V \u2013 10 V for an LED).<\/p>\n<p>The redder the light emitting diode, the lower the forward voltage with IR LEDs coming in at the lowest with a forward voltage of about 1.2 V.<\/p>\n<p>In fact, the higher the frequency of radiation the LED emits, the higher this threshold forward voltage is. Since IR \u201clight\u201d has a low frequency with red coming in second-last, these LEDs have the lowest threshold voltages. Blue and white LEDs have the highest (blue light is higher in frequency than IR or red light) which is typically about 3.5 V. As with all components, there is a variation which depends on current, temperature and other factors.<\/p>\n<p>The nifty chart in figure 4 shows the typical forward voltages for various LED colors.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-4089 alignnone\" src=\"http:\/\/www.circuitcrush.com\/wp-content\/uploads\/LED-Forward-Voltages.png\" alt=\"LED forward Voltage Chart\" width=\"803\" height=\"391\" srcset=\"https:\/\/www.circuitcrush.com\/wp-content\/uploads\/LED-Forward-Voltages.png 803w, https:\/\/www.circuitcrush.com\/wp-content\/uploads\/LED-Forward-Voltages-300x146.png 300w, https:\/\/www.circuitcrush.com\/wp-content\/uploads\/LED-Forward-Voltages-150x73.png 150w, https:\/\/www.circuitcrush.com\/wp-content\/uploads\/LED-Forward-Voltages-768x374.png 768w, https:\/\/www.circuitcrush.com\/wp-content\/uploads\/LED-Forward-Voltages-600x292.png 600w\" sizes=\"(max-width: 803px) 100vw, 803px\" \/><\/p>\n<p><strong><em>Figure 4: LED forward voltages for different colors. The chart shows the typical and max values. <\/em><\/strong><\/p>\n<p>&nbsp;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-4090 alignnone\" src=\"http:\/\/www.circuitcrush.com\/wp-content\/uploads\/LED-Color-Spectrum.png\" alt=\"the electromagnetic spectrum\" width=\"691\" height=\"409\" srcset=\"https:\/\/www.circuitcrush.com\/wp-content\/uploads\/LED-Color-Spectrum.png 691w, https:\/\/www.circuitcrush.com\/wp-content\/uploads\/LED-Color-Spectrum-300x178.png 300w, https:\/\/www.circuitcrush.com\/wp-content\/uploads\/LED-Color-Spectrum-150x89.png 150w, https:\/\/www.circuitcrush.com\/wp-content\/uploads\/LED-Color-Spectrum-600x355.png 600w\" sizes=\"(max-width: 691px) 100vw, 691px\" \/><\/p>\n<p><strong><em>Figure 5: the electromagnetic spectrum with an emphasis on visible light. We can see IR right below red on the frequency spectrum with blue and purple on the high end of the visible portion of the spectrum. All the colors combined make white light.<\/em><\/strong><\/p>\n<h3><strong>LED Circuits and Current<br \/>\n<\/strong><\/h3>\n<p>Light emitting diodes have a maximum current rating, so you\u2019ll always need a series resistor when using LEDs in your circuits. More on this in a minute.<\/p>\n<p>The brightness of an LED is typically linear with current. That is, the more current you push through it, the brighter the LED gets. Too much current and the LED releases its magic smoke. Or the excessive current will reduce the life span of the device if it isn\u2019t enough to destroy it. Too little current and the LED doesn\u2019t light at all or is very dim.<\/p>\n<p>LEDs do have a finite lifespan, even if you use the right amount of current. It\u2019s long though and something like 11+ years of continuous use.<\/p>\n<p>Reducing the current will increase the lifespan. The relationship between current and LED lifespan is exponential, so if we reduce the current by 50% the lifespan can increase by something like a factor of 50. This works both ways, so as we already know, too much current greatly reduces LED life.<\/p>\n<p>A 50% reduction in brightness &#8211; and therefore current (remember the current-brightness relationship is linear) &#8211; is actually not very noticeable to humans but it will extend the life of an LED significantly. It\u2019ll also be helpful if your project runs on batteries and will extend their life.<\/p>\n<p>Earlier, we said you always need to use a current limiting resistor with LEDs, but how do we pick that resistor?<\/p>\n<p>Circuits exist with values ranging from 100 Ohms to 1k Ohms or more, but 220 \u2013 240 Ohms are common values that are often acceptable.<\/p>\n<p>Let\u2019s take a closer look at a simple circuit with an LED.<\/p>\n<p><strong><u>Ex:<\/u><\/strong> Consider the simple circuit in figure 6. The LED may look blue, but your eyes deceive you \u2013 it is actually red. What value resistor do we need to safely operate the LED without sending it to a premature grave?<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-4091 aligncenter\" src=\"http:\/\/www.circuitcrush.com\/wp-content\/uploads\/LED-Circuit.jpg\" alt=\"simple LED circuit\" width=\"357\" height=\"217\" srcset=\"https:\/\/www.circuitcrush.com\/wp-content\/uploads\/LED-Circuit.jpg 357w, https:\/\/www.circuitcrush.com\/wp-content\/uploads\/LED-Circuit-300x182.jpg 300w, https:\/\/www.circuitcrush.com\/wp-content\/uploads\/LED-Circuit-150x91.jpg 150w\" sizes=\"(max-width: 357px) 100vw, 357px\" \/><\/p>\n<p style=\"text-align: center;\"><strong><em>Figure 6: LED circuit. We need to find a good value for R.<\/em><\/strong><\/p>\n<p><strong><u>Answer:<\/u><\/strong><\/p>\n<p>It\u2019s a red LED so we\u2019re going to use a forward voltage drop of 1.5 V. We want to keep our LED comfortable, so even though the data sheet says the maximum current is 20 mA we\u2019re going to run it at about 10 mA as it should still be sufficiently bright for our purposes.<\/p>\n<p>The circuit has a 9 V source and the LED will drop 1.5 V, so the resistor will drop 9 V \u2013 1.5 V = 7.5 V.<\/p>\n<p>We know we want 10 mA, so we\u2019ll use Ohm\u2019s Law: 7.5 V \/ 0.010 A = 750 Ohms for our resistor.<\/p>\n<p>We\u2019re lucky because 750 Ohms is a standard value for resistors with 5% tolerance. If our calculation gives us a non-standard value like 703 Ohms, we just pick a value that\u2019s close. In this case, we can choose between the 750 Ohm resistor or a 680 Ohm resistor. Either of these would make the current close enough to our desired value.<\/p>\n<p>In general, the formula to find the correct resistor value in a circuit like this is:<\/p>\n<p><strong>Eq. 1<\/strong>\u00a0\u00a0\u00a0\u00a0\u00a0 (V<sub>SOURCE<\/sub> &#8211; V<sub>F<\/sub>) \/ I<sub>DESIRED <\/sub>= R<\/p>\n<p>Or the source voltage minus the LED\u2019s forward voltage divided by the amount of current we desire gives us our resistor value.<\/p>\n<p>This is basic circuit analysis 101. For a good review on basic circuit analysis see <a href=\"https:\/\/www.circuitcrush.com\/circuit-analysis\/\" target=\"_blank\" rel=\"noopener noreferrer\">Simple Circuit Analysis Techniques You Should Know<\/a>.<\/p>\n<p>Here\u2019s something to think about: if our source voltage were lower, would the resistor value need to be bigger, smaller, or the same for 10 mA to flow through the LED?<\/p>\n<h3><strong>Pulsing LEDs<br \/>\n<\/strong><\/h3>\n<p>If for some reason you need to run an LED at a current rating at or above the max, you can pulse the LED. To the human eye, the LED will appear to be on all the time (assuming the pulse rate is high enough). But the LED will actually switch on and off, giving the LED die time to cool.<\/p>\n<p>One should consult the data sheet for details, but, as an example, if it says the max DC current is 10 mA you may be able to feed it 40 mA using a pulse with a 25% duty cycle (on vs off time). Of course, the pulses need to be short enough to prevent overheating and degradation of the LED.<\/p>\n<p>This is an introduction to using LEDs, so that\u2019s all were going to say about running LEDs like this for now.<\/p>\n<h3><strong>Using Multiple LEDs<br \/>\n<\/strong><\/h3>\n<p>Our circuit with one LED and a resistor is pretty straight forward, but what if we have more than one LED?<\/p>\n<p>You can\u2019t parallel multiple LEDs with a single resistor like we see in figure 7.<\/p>\n<p>This is because the LED with the lower forward voltage will pull the voltage down to that level. Remember, the voltage in a parallel circuit is the same across all legs of the circuit. In this case, the red LED pulls the parallel combination down to 1.5 V, so the blue LED doesn\u2019t light. Even if you have two LEDs of the same color this is still not a good idea and may not work because the LEDs may not be perfectly identical.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-4092 aligncenter\" src=\"http:\/\/www.circuitcrush.com\/wp-content\/uploads\/Using-Multiple-LEDs.jpg\" alt=\"LEDs in parallel\" width=\"460\" height=\"269\" srcset=\"https:\/\/www.circuitcrush.com\/wp-content\/uploads\/Using-Multiple-LEDs.jpg 460w, https:\/\/www.circuitcrush.com\/wp-content\/uploads\/Using-Multiple-LEDs-300x175.jpg 300w, https:\/\/www.circuitcrush.com\/wp-content\/uploads\/Using-Multiple-LEDs-150x88.jpg 150w\" sizes=\"(max-width: 460px) 100vw, 460px\" \/><\/p>\n<p><strong><em>Figure 7: the blue LED in this circuit doesn\u2019t light because the red one pulls the voltage at the node near the top down to 1.5 V. This is because LEDs act like zener diodes which are another special type of diode often used for voltage regulation.<\/em><\/strong><\/p>\n<p>There are a couple options to using multiple LEDs in a circuit correctly.<\/p>\n<p>First, each LED can have its own series resistor. This is the easiest and most common way to do things.<\/p>\n<p>If you are desperate to save resistors, you can also put multiple LEDs in series with a resistor as in figure 8. The downside is that your source voltage needs to be higher than the sum of all the LEDs\u2019 forward voltages. This can be a problem when using more than a few LEDs. The upshot (other than saving a resistor or two) is that equal current will flow through all the LEDs since they\u2019re in series.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-4093 aligncenter\" src=\"http:\/\/www.circuitcrush.com\/wp-content\/uploads\/Using-Multiple-LEDs-Correct.jpg\" alt=\"LEDs in series\" width=\"451\" height=\"314\" srcset=\"https:\/\/www.circuitcrush.com\/wp-content\/uploads\/Using-Multiple-LEDs-Correct.jpg 451w, https:\/\/www.circuitcrush.com\/wp-content\/uploads\/Using-Multiple-LEDs-Correct-300x209.jpg 300w, https:\/\/www.circuitcrush.com\/wp-content\/uploads\/Using-Multiple-LEDs-Correct-150x104.jpg 150w\" sizes=\"(max-width: 451px) 100vw, 451px\" \/><\/p>\n<p><strong><em>Figure 8: multiple LEDs in series with a resistor. The source voltage needs to be higher than the LEDs\u2019 combined forward voltage, which in this case is 5 V. This set up also makes sure equal current flows through each LED.<\/em><\/strong><\/p>\n<h2><strong>Other Uses of LEDs<br \/>\n<\/strong><\/h2>\n<p>Another common application of LEDs that may show up in your projects and gadgets you buy is the 7-segment display.<\/p>\n<p>Think of an old alarm clock with red numbers. These numbers are usually 7-segment displays which are in turn made of small LEDs. The appropriate segments are lit according to the number that needs to be displayed. Figure 9 depicts a typical 7-segent display. Displays that are capable of showing more than one digit are also available in one convenient package. Of course, similar devices with more than 7 segments in different patterns are available for displaying letters and different characters.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-4094 aligncenter\" src=\"http:\/\/www.circuitcrush.com\/wp-content\/uploads\/7-Segment-Display.jpg\" alt=\"7-Segment-Display\" width=\"237\" height=\"237\" srcset=\"https:\/\/www.circuitcrush.com\/wp-content\/uploads\/7-Segment-Display.jpg 500w, https:\/\/www.circuitcrush.com\/wp-content\/uploads\/7-Segment-Display-300x300.jpg 300w, https:\/\/www.circuitcrush.com\/wp-content\/uploads\/7-Segment-Display-150x150.jpg 150w, https:\/\/www.circuitcrush.com\/wp-content\/uploads\/7-Segment-Display-100x100.jpg 100w\" sizes=\"(max-width: 237px) 100vw, 237px\" \/><\/p>\n<p style=\"text-align: center;\"><strong><em>Figure 9: a typical 7-segment display.<\/em><\/strong><\/p>\n<p>One thing that may surprise those new to electronics is that an LED can find use as a photo detector. They are not extremely sensitive and respond best to the color of light they\u2019re designed to emit but they\u2019re cheap and can be used this way in certain applications.<\/p>\n<p>LEDs also show up in optoisolators. These devices are good for electrically isolating different parts of circuits. Think of an optoisolator as a relay that uses light instead of a mechanical contact on the inside. Figure 10 shows such a device.<\/p>\n<p>&nbsp;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-4095 aligncenter\" src=\"http:\/\/www.circuitcrush.com\/wp-content\/uploads\/Optoisolator.jpg\" alt=\"Optoisolator\" width=\"544\" height=\"196\" srcset=\"https:\/\/www.circuitcrush.com\/wp-content\/uploads\/Optoisolator.jpg 906w, https:\/\/www.circuitcrush.com\/wp-content\/uploads\/Optoisolator-300x108.jpg 300w, https:\/\/www.circuitcrush.com\/wp-content\/uploads\/Optoisolator-150x54.jpg 150w, https:\/\/www.circuitcrush.com\/wp-content\/uploads\/Optoisolator-768x276.jpg 768w, https:\/\/www.circuitcrush.com\/wp-content\/uploads\/Optoisolator-600x216.jpg 600w\" sizes=\"(max-width: 544px) 100vw, 544px\" \/><\/p>\n<p><strong><em>Figure 10: an optoisolator (a) and schematic representation of its insides (b). Terminals 3 and 4 connect to a phototransistor which has a light-sensitive base.<\/em><\/strong><\/p>\n<h2>How LEDs Work: Summary &amp; Recap<em><strong><br \/>\n<\/strong><\/em><\/h2>\n<p>It\u2019s time to try something new. All the skimmers will love this (though you should read the whole article). Below is a quick summary and recap of what we talked about.<\/p>\n<ul>\n<li>An LED or light emitting diode is a semiconductor device that emits light.<\/li>\n<li>LED lighting is starting to replace incandescent, fluorescent and other forms of lighting in homes and other buildings.<\/li>\n<li>The color of light the LED emits depends on the material the LED is made of.<\/li>\n<li>The cathode of an LED is the negative side and the anode is the positive side. To identify the cathode, look for the shorter leg and\/or the flat spot on the epoxy case right below the dome. On a schematic, the cathode is identified by the perpendicular line on the tip of the triangle, just like a regular diode schematic symbol.<\/li>\n<li>IR LEDs have the lowest forward (or threshold) voltage with red coming in second lowest. Blue and white LEDs have the highest. The forward voltages typically range from 1.2 V on the low end to 3.5 V &#8211; 4 V on the high end.<\/li>\n<li>You NEED to use a series resistor with an LED to limit the current so it doesn\u2019t burn out prematurely. The resistor\u2019s value depends on the LED but it\u2019s usually not hard to calculate. For details, see the example above.<\/li>\n<li>LEDs can often be pulsed which may allow you to use a higher current than what the data sheet recommends.<\/li>\n<li>It is not a good idea to put LEDs in parallel unless they each have their own series resistor.<\/li>\n<li>Several LEDs can be wired in series in with one resistor but the supply voltage needs to be high enough to overcome the sum of all the LED\u2019s forward voltages plus a little more for the resistor drop.<\/li>\n<li>LEDs find use in 7-segment displays, optoisolators, and other things. An LED can make a cheap photodetector though it\u2019s not extremely sensitive and responds best to the color of light the LED was designed to emit.<\/li>\n<\/ul>\n<h2><strong>Shedding Some Light on How LEDs Work<br \/>\n<\/strong><\/h2>\n<p>Now that we\u2019ve answered the questions <em>what is an LED?<\/em> and <em>how do LEDs work?<\/em><\/p>\n<p>It\u2019s time to go forth and light the way\u2026<\/p>\n<p>\u2026Ok, I just had to put that bad pun in there.<\/p>\n<p>On a more serious tip, we\u2019ve only scratched the surface. Just like all things in the world of electronics there is a lot more to say about LEDs. Many applications exist for them. There are other, newer types of LEDs like organic light emitting diodes (OLEDs) which can be used to make flexible displays. There&#8217;s a lot more behind the workings of even a typical bench top LED that we didn\u2019t discuss in this introductory tutorial. And when it comes to diodes in general, there\u2019s a whole myriad of types and applications and a ton to say about each.<\/p>\n<p>For now though, we have a good starting point on LEDs, especially for those new to electronics.<\/p>\n<p>Drop a comment and tell us about your latest super-cool projects or experiments involving LEDs. I\u2019m sure we\u2019d all love to hear about it!<\/p>\n<h2 style=\"text-align: center;\">Become the Maker you were born to be. Try <a href=\"https:\/\/learnarduinonow.com\">Arduino Academy<\/a> for FREE!<\/h2>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-4238 aligncenter\" src=\"https:\/\/www.circuitcrush.com\/wp-content\/uploads\/FB_Cover2.png\" alt=\"\" width=\"536\" height=\"204\" srcset=\"https:\/\/www.circuitcrush.com\/wp-content\/uploads\/FB_Cover2.png 828w, https:\/\/www.circuitcrush.com\/wp-content\/uploads\/FB_Cover2-300x114.png 300w, https:\/\/www.circuitcrush.com\/wp-content\/uploads\/FB_Cover2-150x57.png 150w, https:\/\/www.circuitcrush.com\/wp-content\/uploads\/FB_Cover2-768x292.png 768w\" sizes=\"(max-width: 536px) 100vw, 536px\" \/><\/p>\n<a target=\"_blank\" href=\"https:\/\/www.drpeterscode.com\/index.php\"><img src=\"https:\/\/www.circuitcrush.com\/wp-content\/plugins\/dpabottomofpostpage\/apixel1x1.jpg\" ><\/a><table><\/table>","protected":false},"excerpt":{"rendered":"<p>What are LEDs and how do LEDs Work? What is an LED? How do LEDs work? Many of us take the humble LED, or light emitting diode, for granted despite their ubiquity. LEDs not only show up in many of your projects, they find a home in a myriad of consumer and commercial products and [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":4098,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_genesis_hide_title":false,"_genesis_hide_breadcrumbs":false,"_genesis_hide_singular_image":false,"_genesis_hide_footer_widgets":false,"_genesis_custom_body_class":"","_genesis_custom_post_class":"","_genesis_layout":"","_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[182],"tags":[183,184],"class_list":{"0":"post-4085","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-leds","8":"tag-led","9":"tag-light-emitting-diode","10":"entry"},"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"https:\/\/www.circuitcrush.com\/wp-content\/uploads\/How-LEDs-Work.jpg","_links":{"self":[{"href":"https:\/\/www.circuitcrush.com\/wp-json\/wp\/v2\/posts\/4085","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.circuitcrush.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.circuitcrush.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.circuitcrush.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.circuitcrush.com\/wp-json\/wp\/v2\/comments?post=4085"}],"version-history":[{"count":20,"href":"https:\/\/www.circuitcrush.com\/wp-json\/wp\/v2\/posts\/4085\/revisions"}],"predecessor-version":[{"id":4246,"href":"https:\/\/www.circuitcrush.com\/wp-json\/wp\/v2\/posts\/4085\/revisions\/4246"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.circuitcrush.com\/wp-json\/wp\/v2\/media\/4098"}],"wp:attachment":[{"href":"https:\/\/www.circuitcrush.com\/wp-json\/wp\/v2\/media?parent=4085"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.circuitcrush.com\/wp-json\/wp\/v2\/categories?post=4085"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.circuitcrush.com\/wp-json\/wp\/v2\/tags?post=4085"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}