Linear Regulators and Heat: the short answer
3 V from 5 V. It works like a self-adjusting resistor: whatever voltage is not needed is dropped across the regulator, and the current flows through it. Example: No. 2.2 W would overheat it and trip its thermal shutdown. Use a buck converter from 12 V to 5 V first, then the AMS1117 (or the board's own regulator) for 3.3 V.
- Level
- Beginner
- Time
- About 6 min
- Topic
- Power
Use a linear regulator such as the AMS1117 correctly and check that it will not overheat.
Before this: Ohm’s Law, Power & Heat
A linear regulator makes a steady lower voltage from a higher one, for example 3.3 V from 5 V. It works like a self-adjusting resistor: whatever voltage is not needed is dropped across the regulator, and the current flows through it. That means the regulator turns the difference into heat: P = (Vin − Vout) × I.
Every linear regulator needs some headroom, called the dropout voltage. The AMS1117 needs about 1.1 to 1.3 V, so an AMS1117-3.3 wants at least about 4.5 V in. That is why it works from USB 5 V but not from a single Li-ion cell at 3.7 V. Low-dropout (LDO) regulators such as the MCP1700 or HT7333 need only a few hundred mV.
Regulators also need capacitors on the input and output, as the datasheet says (for the AMS1117, typically 10 µF or more, close to the pins). Without them the output can oscillate. Small packages such as SOT-223 can only get rid of about 0.5 to 1 W without a large copper area, so check the heat whenever the voltage difference or the current is large.
How it regulates
Inside a linear regulator a pass transistor acts as a variable resistor between input and output, adjusted by feedback so the output stays at the target. All the current the load draws passes through that transistor, with the unwanted voltage across it. That is why the heat equals (Vin − Vout) × I, and why efficiency can never beat Vout ÷ Vin: from 5 V to 3.3 V, at best 66 %.
That is not always bad. A linear regulator is quiet, simple and needs few parts, which is why it is still used to power sensitive analog circuits and small loads where the heat is trivial.
Check dropout and heat before you build
Two checks. Headroom: is Vin at least Vout plus the dropout voltage at your current, across the whole battery range? An AMS1117-3.3 with a 4.2 V Li-ion cell will not hold 3.3 V; an MCP1700 or similar LDO will. Heat: multiply the drop by the current, then multiply by the thermal resistance. A SOT-223 on a small pad is about 60 to 90 °C/W, so 0.5 W adds 30 to 45 °C.
At 12 V in and 3.3 V out at 300 mA, the regulator makes 2.6 W: too much for a small package and a clear sign to use a buck converter.
Capacitors are part of the circuit
Many regulators need a minimum output capacitance, and some need a capacitor with a minimum ESR to stay stable. The AMS1117's datasheet asks for about 22 µF of tantalum on the output, and ceramics can make it unstable; many modern LDOs are designed for ceramics instead. Follow the datasheet figure for input and output capacitors and place them close to the pins.
A missing or wrong capacitor shows up as an oscillating output or a board that resets under load and works fine when you probe it, because the probe adds capacitance.
Quiescent current and other ratings
Quiescent current is what the regulator itself takes, with no load. An AMS1117 uses several milliamps, which is fine on USB and ruins a battery project that sleeps at microamps. Some LDOs take under 2 µA. Also check the input voltage limit, the output current limit and the accuracy (±1 % is typical for good LDOs, ±2 to 3 % for cheap ones).
- Powering a 3.3 V board from a 12 V supply through a small linear regulator and letting it overheat.
- Leaving off the input and output capacitors, which makes the output oscillate.
- Using a regulator with milliamp quiescent current in a battery project that must sleep.
- P = (Vin − Vout) × I
- heat in a linear regulator
- η = Vout ÷ Vin
- best possible efficiency
Heat against input voltage
Work it with your own numbers: Regulator heat
Can an AMS1117-3.3 power an ESP32 from a 12 V adapter?
- ESP32 Wi-Fi peaks: plan for 250 mA average under load.
- Voltage dropped: 12 − 3.3 = 8.7 V.
- Heat: 8.7 V × 0.25 A ≈ 2.2 W.
- SOT-223 on a small module: roughly 0.5 to 1 W before it gets too hot.
Result. No. 2.2 W would overheat it and trip its thermal shutdown. Use a buck converter from 12 V to 5 V first, then the AMS1117 (or the board's own regulator) for 3.3 V.
Power an AMS1117-3.3 module from 5 V and load it with an LED and resistor drawing about 20 mA. Measure input and output voltage, calculate the power lost in the regulator, then touch-test (carefully) whether it is warm.
3 quick questions
A regulator drops 5 V to 3.3 V at 200 mA. How much heat does it make?
Why won't an AMS1117-3.3 give a steady 3.3 V from one Li-ion cell?
What do linear regulators need on their input and output pins?
