Welcome back to the Academy! Ever wonder how a 9V battery or a 12V wall adapter can safely run a microcontroller that demands a strict 5V or 3.3V diet without letting out the magic smoke? It’s all about power regulation. Today, we’re diving into the unsung heroes of electronics: voltage regulators. Let’s look at the two main flavors you’ll encounter on your workbench.

Linear regulators, like the ubiquitous LM7805, are the go-to choice for simple, low-noise power delivery. They are cheap, require very few external components, and are incredibly easy to use. However, they have one major catch: thermal considerations.
Linear regulators work by burning off the excess voltage as heat. The larger the voltage difference between the input and the output, and the more current your circuit draws, the hotter the regulator gets. If you try dropping 12V down to 5V while pulling an amp of current, your regulator will quickly turn into a tiny, unwanted space heater—and might even shut down or fail if not properly heatsinked.
When you need to drop a lot of voltage or supply a lot of current, you want a switching regulator (often called buck or boost converters). Instead of burning off excess voltage, they rapidly switch the power on and off, using inductors and capacitors to smooth out the output.
Here are the key takeaways for switching regulators:
Keep your circuits powered safely and efficiently, and I’ll see you in the next lesson!
To follow along with this lesson, you’ll need the following components: