← Back to Library

How diodes, leds and solar panels work

Derek Muller takes a seemingly technical topic—diodes, LEDs, and solar panels—and turns it into something approaching performance. His genius lies not in the physics itself but in his willingness to anthropomorphize the atomic world, giving atoms preferences and making electrons behave like a gas that diffuses across junctions. This is unusual: most educational content stays rigorously clinical. Muller openly admits he's anthropomorphizing, then does it anyway—and asks readers to "strap in" for the ride.

The Atom That Wants Eight Electrons

Muller opens with what feels like a science classroom but quickly reveals deeper pedagogical strategy. He writes, "atoms don't actually like to have eight electrons in the outer shell but i actually think anthropomorphizing is fine so long as everyone knows that you're doing it and that it's a shorthand for a more complex process." This is a revealing admission—essentially telling us he's using metaphor as a teaching tool, not because he believes atoms have preferences, but because the metaphor helps us understand covalent bonding. The approach works beautifully for fluorine: "when it's neutral then it wants one more so if there's another fluorine nearby they can come together and share an electron each." Here Muller essentially describes molecular bonding through the lens of social cooperation—two atoms negotiating shared electrons like partners sharing a meal.

How diodes, leds and solar panels work

The silicon section gets more complex, but Muller handles it well. He explains that silicon needs four electrons to share with four surrounding atoms, building outward through "covalent bonding" in what he calls a "flat 2D representation" that helps us see complete shells—though he acknowledges the real structure is three-dimensional with "these tetrahedral bonds." The key insight here is that all these electrons are locked away in complete shells, meaning no freely moving charged particles. This sets up the doping explanation: phosphorus has an extra electron with nowhere to go, creating what he calls "n-type semiconductor"—negative because charge carriers are negative.

Atoms don't actually like to have eight electrons in the outer shell but i actually think anthropomorphizing is fine so long as everyone knows that you're doing it.

The Hole That Moves Like a Particle

The most distinctive conceptual move comes when Muller explains boron doping. He describes how incomplete shells create "holes" and nearby electrons jump in, leaving behind a hole that moves around—"and you can actually model the hole like it's a particle like it's a positively charged charge carrier." This is elegant: holes behave exactly like positive particles, even though they're really just absences of electrons. The analogy lets Muller treat them as real particles that move left when electrons move right.

When he pushes n-type and p-type semiconductors together, the explanation becomes genuinely illuminating. The "cloud" of electrons diffuses into the p-type semiconductor while positive charge builds in the n-type side, creating an electric field that pulls electrons back across. This creates equilibrium—"the point is there are no freely moving charged particles in the depletion zone." The depletion zone concept is crucial for understanding both diodes and solar cells.

Why Batteries Make Diodes Work Forward (And Not Backward)

The battery explanation is where Muller's pedagogical approach really shines. When positive terminal connects to n-type semiconductor, electrons are attracted to the positive terminal while holes in p-type are pulled toward negative terminal—"the depletion zone increases in size." This builds charge that resists the pull of the battery until no current flows. Muller acknowledges this is complex: "i think it's useful at this point to just re-establish the fact that we're modeling the holes as if they're particles and link it back to what's really happening."

When reversed, something different happens: electrons and holes are pushed toward the junction instead of away, shrinking the depletion zone until electrons can jump across. "With the battery oriented this way electricity is able to flow and the diode has fulfilled its purpose." This is the classic explanation—forward bias allows current; reverse bias blocks it—but Muller adds something important about what happens when electrons cross:

When an electron jumps across the depletion zone and falls into a hole it goes from a high energy state to a low energy state... when an electron does that it emits a photon.

This is where LEDs come from. The electron's energy drop releases light. But Muller also wants us to understand the reverse: shining light creates electron-hole pairs, pushing electrons into n-type and holes into p-type—generating voltage. This is solar cells. Both technologies are fundamentally the same thing: diodes.

Band Gaps and Color

A subtle but important detail explains why different materials emit different colors. "With silicon you start off with infrared but then with gallium arsenide phosphide you go through red orange and yellow and it's gallium nitride that has the really big drop in energy the really big band gap that gives you your blue photons." The physics is straightforward—larger band gap means higher energy photon—but Muller frames it as a "drop in energy" losing to a "photon," making the explanation feel almost like a waterfall.

Where This Gets Difficult

Critics might note that Muller's anthropomorphization, while effective for fluorine and basic silicon concepts, breaks down somewhat when explaining more complex semiconductor physics. The hole-as-particle model works but isn't technically accurate—holes are absence of electrons, not particles. Similarly, describing electrons as a "gas" that diffuses oversimplifies the quantum mechanical behavior these materials actually exhibit. These metaphors help beginners but risk reinforcing incorrect mental models for more advanced learners.

Bottom Line

Muller's strongest contribution isn't the physics itself—which is standard textbook material—but his willingness to make atoms feel like characters in a story. The covalent bond becomes cooperation; holes become particles that move left while electrons move right; band gaps become energy drops that release photons. This is STEM storytelling at its best: making complex concepts emotionally accessible without sacrificing accuracy. His vulnerability is also his strength—the anthropomorphisms work brilliantly for fluorine and boron but strain when semiconductor physics gets more complicated. For a general audience, though, this is exactly the right level of metaphor.

Deep Dives

Explore these related deep dives:

Sources

How diodes, leds and solar panels work

by Derek Muller · Veritasium · Watch video

this video is a standalone explanation of how diodes leds and solar panels work if that's what you have to keep watching but it's also the second part of a two-part series if you want to see a video of diodes doing weird things then check out part one first the link is in the card there and in the description the purpose of a diode is to restrict to the flow of electricity in a circuit electricity can only flow in one direction through a diode that's the point of it and there's a couple of ways basically to make a diode the old-fashioned way with vacuum tubes or the modern way with semiconductors and this video explains the modern way of doing it because semiconductor diodes are so much more than simple one-way valves for electricity diodes are made by pushing two little bits of semiconductor together and to figure out what happens when you do that you need to understand covalent bonds so you might know that atoms like to have eight electrons in their outer shell with some exceptions and yes i am anthropomorphizing the atom atoms don't actually like to have eight electrons in the outer shell but i actually think anthropomorphizing is fine so long as everyone knows that you're doing it and that it's a shorthand for a more complex process also i'm gonna do it a lot more so strap in if you've got an atom of say fluorine that has seven electrons in its outer shell when it's neutral then it wants one more so if there's another fluorine nearby they can come together and share an electron each so look in the crossover between the two outer shells there's these two electrons so now this atom has eight electrons in the outer shell and this atom has h electrons in the outer shell and they're both happy i'm not even going to do air quotes so that is the covalent bond of a fluorine molecule f2 but think about silicon now silicon has four electrons in its outer shell so it needs to share the four that it has with four more silicon atoms surrounding it and those four atoms around it need to have silicon atoms around them so that they can have full shells and those atoms need to have atoms around them so they can have full ...