Circuit 9 of 48: The Linear Regulator

48 Circuits or Less The Linear Regulator

By: Dominic Sciarrino | Stompbox Electronics | Last Updated: April 9th, 2026

Most guitar effects circuits run directly from a 9V supply with no voltage regulation required. The moment a digital component enters the design (i.e. a PT2399 echo processor, a microcontroller, a DSP chip) that changes. Digital ICs commonly require 5V or 3.3V, and the linear voltage regulator is the standard, practical way to produce those voltages from a 9V supply. This article covers what a linear regulator does, when a builder needs one, the three parameters that determine whether a regulator will work in a given design, how to calculate heat dissipation, and how to implement both fixed and adjustable regulators.

As a member of the Reverb Partner Program, eBay Partner Network, and as an Amazon Associate, StompboxElectronics earns from, and is supported by, qualifying purchases.

Disclaimer: Stompbox Electronics and/or the author of this article is/are not responsible for any mishaps that occur as a result of applying this content.

A linear voltage regulator accepts an input voltage that is higher than required and outputs a lower, stable, regulated voltage regardless of variations in the input voltage or load current. That stability is its primary value. If the supply voltage from the wall-wart fluctuates, the regulated output holds steady. If the downstream circuit draws more current, the output holds steady.

Block diagram of a linear voltage regulator circuit.
Figure 9.1 Block diagram of a linear voltage regulator circuit.

Internally, a linear regulator contains a pass element (typically a transistor) wired between the input and output. A feedback circuit continuously monitors the output voltage and adjusts the pass element’s resistance to maintain the correct output level. If the output rises, resistance increases to pull it back. If the output drops, resistance decreases to let more current through.

Because the excess voltage (input voltage – output voltage) is lost as heat rather than recovered, managing the thermal load is critical. This reality directly dictates your choice of components and cooling strategies (see the Heat Dissipation section below).

Linear regulators are not needed in most all-analog guitar effects designs. A standard overdrive, boost, fuzz, or compressor circuit runs directly from the 9V supply rail with no regulation required. The linear regulator becomes necessary when the design includes a component that requires a supply voltage different from what the main supply provides.

The two scenarios a builder will encounter most often:

  1. PT2399 echo/delay circuits: The PT2399 is one of the most widely used ICs in DIY delay and echo pedal designs. It requires a 5V supply. Since most pedal designs are powered at 9V, a 5V linear regulator is a standard inclusion in any PT2399-based design. The Valve Wizard Small Time design is a well-known example, using a 78L05 (a low-power 5V regulator) to supply the PT2399 cleanly from the 9V rail.
  2. Microcontroller-based designs: Older microcontrollers such as the ATmega328 (Arduino UNO) require 5V. Newer ARM-based microcontrollers (ESP32, STM32 series, and Raspberry Pi RP2040) require 3.3V. Any pedal design incorporating a microcontroller needs the appropriate regulated rail.
Linear voltage regulator circuit from Valve Wizard's Small Time PT2399 Delay design.
Figure 9.2 Regulator circuit from Valve Wizard’s Small Time PT2399 Delay design.

Before selecting a regulator, three parameters need to be understood and verified against the design requirements.

The output voltage is the regulated voltage the device maintains at its output terminal. Fixed regulators have a manufacturer-preset output voltage that cannot be changed. For example, the 7805 always outputs 5V, and the 7812 always outputs 12V. Adjustable regulators like the LM317 allow the output voltage to be set with external resistors, covering a continuous range from 1.25V to 37V.

Dropout voltage is the minimum difference required between input and output voltage for the regulator to maintain regulation. If the input voltage drops too close to the output voltage, the regulator loses control of the output.

For a standard 7805, the dropout voltage is typically 2 to 3 volts. This means the input must be at least 7 to 8V for reliable 5V output. From a 9V supply that’s comfortable margin, but if the supply sags under load or a battery is running down, the margin erodes.

Low-Dropout (LDO) regulators are designed to minimize the dropout voltage at typically 0.3V or less. This becomes particularly important in battery-powered designs, where supply voltage gradually falls as the battery discharges. An LDO can maintain regulation much closer to the battery’s depleted voltage than a standard regulator. For 3.3V designs powered from a 9V supply, the dropout voltage of a standard regulator is not an issue, but for designs where the supply margin is tight, always verify the dropout specification.

Every regulator has a maximum output current rating. Exceeding it causes the output voltage to drop and the device to overheat. Common current ratings in DIY pedal design:

PackageTyp. Current RatingCommon Use
TO-92 (78Lxx series)100 mAPT2399, low-current digital ICs
TO-220 (78xx series)1 AHigher-current loads, microcontrollers
SOT-223 (AMS1117, LD1117)800 mA – 1 A3.3V / 5V for ARM microcontrollers
SOT-23 (small LDO)150-300 mASpace-constrained PCB designs
Table 9.1  Common regulator package types and their typical current ratings. Always verify with the specific datasheet.

Before finalizing a regulator choice, calculate the expected current draw of everything connected to its output rail by summing the quiescent current values from each component datasheet and confirm the regulator’s rated output current exceeds that total.

5V Linear Voltage Regulators in TO-92 and TO-220 packages
Figure 9.3 5V Linear Voltage Regulators in TO-92 and TO-220 packages.

A linear regulator does not convert excess voltage into useful energy. The voltage difference between input and output is dissipated entirely as heat in the pass element. The power dissipated is:

Equation 9.1 Basic power dissipation formula for linear voltage regulator.
Equation 9.1 Basic power dissipation formula for linear voltage regulator.

Where P is power in watts, Vin is the input voltage, Vout is the regulated output voltage, and I is the load current in amperes.

A 7805 is supplying a PT2399 from a 9V rail. The PT2399 draws approximately 30mA at 5V.

120mW is manageable. A TO-92 package (78L05) can handle this without a heat sink under normal conditions.

A 7805 supplying a microcontroller draws 200mA from a 9V supply.

800mW in a small package will cause significant heat buildup. A TO-220 package with an appropriate heat sink is required at this power level.

Note: As a rule of thumb, if your circuit draws over, say, 20mA then you are advised to use a heat sink in order to dissipate the heat. There are kits available on Amazon or Tayda specifically for heat sinking 78xx components.

The 78xx family of fixed-voltage regulators is the standard starting point for DIY pedal designs requiring a regulated positive supply voltage. They are three-terminal devices (input, output, and ground) and require minimal external components to function.

The suffix after “78” directly encodes the output voltage. 7805 outputs 5V. 7809 outputs 9V. 7812 outputs 12V. The “L” variant (78L05, for example) denotes a low-power version in a TO-92 package, rated for 100mA rather than 1A. Use the L variant for low-current loads like the PT2399; use the standard TO-220 package for anything drawing more.

DeviceOutput VoltageMax CurrentPackageCommon Application
7805 / 78L055V1A / 100mATO-220 / TO-92PT2399 delay circuits, 5V logic
78099V1ATO-220Regulated 9V sub-rail
781212V1ATO-22012V sub-rail from higher supply
AMS1117-3.33.3V800 mASOT-223ESP32, STM32, RP2040, ARM MCUs
LD1117-3.33.3V800 mATO-220 / SOT-223ARM MCUs, 3.3V digital ICs
LD1117-55V800 mATO-220 / SOT-223Higher-current 5V LDO applications
Table 9.2 Common fixed-voltage regulators for DIY pedal design. LDO variants (AMS1117, LD1117) offer lower dropout voltage for tighter supply margin applications.
Fixed-Voltage Linear Regulator Circuit
Figure 9.4 Fixed-voltage linear regulator circuit.

The circuit requires only two capacitors beyond the regulator itself. C1 on the input pin and C2 on the output pin stabilize the regulator and suppress oscillation. Typical values from the 7805 datasheet are 100µF on the input and 47µF on the output. For LDO regulators such as the AMS1117-3.3, the datasheet typically recommends smaller capacitors: 10µF is common on both input and output. Always check the specific datasheet for recommended values.

Note that the power supply filter from Circuit 8 (R1, C1, and D1) should still precede the regulator on the incoming supply rail. The regulator does not replace the filter; the filter cleans the rail before it reaches the regulator’s input.

When the required output voltage does not match a standard fixed regulator, the LM317 adjustable regulator is the practical solution. It covers output voltages from 1.25V to 37V and is available in TO-220 and TO-92 packages.

Like the 78xx family, the LM317 is a three-terminal device, but instead of a ground pin, it has an adjustment pin (ADJ). The output voltage is set by a resistor divider connected between the output pin and the adjustment pin. The LM317 maintains a fixed 1.25V reference voltage between its output and adjustment pins. The resistor divider uses that reference to set the final output voltage.

Figure 11.5 An adjustable-voltage linear regulator using a simple resistor R2 for the voltage adjustment.
Figure 9.5 An adjustable-voltage linear regulator using a simple resistor R2 for the voltage adjustment.
Equation 9.2 LM317 Output Voltage Formula

R1 is typically fixed at 240Ω, which is a value chosen to ensure the LM317’s minimum load current requirement is met. R2 is selected to achieve the desired output voltage.

With R1 = 240Ω and R2 = 750Ω, the actual output voltage is:

5.16V is within acceptable tolerance for the PT2399 and most 5V digital logic. For applications requiring tighter precision, adjust R2 accordingly or substitute a trimpot for R2 to allow fine adjustment on the bench.

Figure 11.6 An adjustable-voltage linear regulator using a trimpot for the voltage adjustment.
Figure 9.6 An adjustable-voltage linear regulator using a trimpot for the voltage adjustment.

A four-step process covers the decision for most DIY pedal design scenarios.

  1. What voltage does the component need? Find the supply voltage specification in the datasheet of the IC or module being powered. Note whether it requires a single voltage or a range.
  2. Does the dropout voltage work with your supply? Subtract Vout from Vin. If the result exceeds the regulator’s dropout voltage specification by a comfortable margin, the regulator will function correctly. If the margin is tight (particularly in battery-powered designs where Vin will fall over time) select an LDO regulator.
  3. How much current will the load draw? Sum the quiescent current from the datasheets of all components on the regulated rail. Calculate heat dissipation using P = (Vin − Vout) × I. Determine whether a heat sink is needed.
  4. Is the required output a standard fixed voltage? If yes, use a fixed 78xx or LDO device. If the required voltage is non-standard or needs to be adjustable during development, use the LM317 with appropriate resistors or a trimpot.

The following components cover the linear regulator requirements for the most common DIY pedal design scenarios.

ComponentValue / TypePurpose
78L055V, 100mA, TO-92Fixed 5V for PT2399 and low-current 5V loads
78055V, 1A, TO-220Fixed 5V for higher-current 5V loads
AMS1117-3.33.3V, 800mA, SOT-223Fixed 3.3V for ARM microcontrollers (ESP32, STM32, RP2040)
LM3171.25 – 37V adjustable, 1.5A, TO-220Adjustable output for non-standard voltages
C1 (input cap)100uF electrolytic (78xx) / 10uF (LDO)Stabilizes regulator output
C2 (output cap)47uF electrolytic (78xx) / 10uF (LDO)Stabilizes regulator output
R1 (LM317)240Ω (1/4W)LM317 reference resistor (fixed)
R2 (LM317)Calculated per Vout or trimpotLM317 output voltage setting
Heat sinkTO-220 compatibleRequired when P dissipation exceeds ~500mW
Table 9.3 Component reference for linear regulator implementations in DIY pedal design.

[1] Stompbox Electronics LM317 Calculator – Calculate R1 and R2 values for any LM317 output voltage target.
[2] Valve Wizard Small Time Schematic – A well-documented PT2399 delay design showing the 78L05 regulator in context.
[3] 78xx Series – Wikipedia – Full 78xx family reference including output voltages and package types.
[4] Circuit 8 of 48: The Power Supply – The power supply filter (R1, C1, C2, D1) precedes the linear regulator in the power stage.


Guitar Effects Design in 48 Circuits or Less

This post is part of the 48 Circuits or Less series by Stompbox Electronics. Each installment covers one fundamental pedal circuit building block – concept, demonstration, and supplemental resources.

View more articles in this series here.

Meet the Author:

Share post: