Skip to the content
2 layers25.4 × 26.3 mm05 linear regulator, the printed circuit board in 3D

05 linear regulator

nitu2126/kicad-learning-path

My KiCad learning path: fully documented PCB projects from a simple LED board to advanced designs, with schematics, layouts, Gerbers, calculations and verification reports.

Size
25.4 × 26.3 mm
Copper layers
2
Thickness
1.6 mm
Parts
14
Nets
5
Pads
25
Tracks, vias
58, 1
Pours
1
Routed
Yes
KiCad
KiCad 10.0 (file 20260206)
Created
21 Oct 2026
Updated
6 Nov 2026

Overview

05 linear regulator is an open-source printed circuit board by nitu2126, from the nitu2126/kicad-learning-path repository on GitHub, published under the MIT licence. It is a 2-layer board of 25.4 × 26.3 mm with 14 parts on 5 nets, routed with 58 tracks and 1 via.

It is built around the L7805. Its parts include 4 capacitors, 2 diodes, 2 connectors, 1 resistor and 1 IC. It belongs with the power boards of this library.

Main components

1

README

05-linear-regulator/README.md

Diode Power Entry and 5 V Linear Regulator

KiCad 10 2-layer PCB ERC DRC License: MIT

A 9 V battery or 7.6 V to 12 V DC supply turned into a clean 5 V rail: a Schottky diode against reverse connection, an L7805 linear regulator, input and output capacitors, a power LED and four test points. Project 5 of my KiCad learning path: reverse-polarity protection, the linear regulator, capacitors that keep it stable, and heat.

3D render of the finished board

Table of contents

Overview

Every earlier board assumed a clean 5 V supply. This board makes one. Real power sources are not clean: batteries sag, bench supplies are set too high, and people plug them in backwards. This board handles all three.

SectionPartsWhat it demonstrates
Power entryJ1, D1A series Schottky diode blocks a reversed connection, at the cost of a small voltage drop
RegulationU1A linear regulator turns any input from 7.6 V to 12 V into a steady 5 V, burning the difference as heat
CapacitorsC1 to C4Bulk and high-frequency capacitors on the input and output
IndicatorR1, D2A power LED that also provides the regulator's minimum load
MeasurementTP1 to TP4Probe points before the diode, after the diode, at the output, and ground

New ideas compared with Project 4:

  1. Reverse-polarity protection and the cost of a diode drop
  2. Linear regulation, dropout voltage and efficiency
  3. Heat: power dissipation, thermal resistance, junction temperature and heatsinks
  4. Electrolytic and ceramic capacitors working together, and electrolytic polarity
  5. The regulator's minimum load current
  6. A wider net class (1.0 mm) for supply tracks
  7. A voltage and power budget in the documentation

The full engineering write-up (theory, derivations, thermal analysis, KiCad configuration, layout rules, test procedure) is in docs/DESIGN_NOTES.md.

Key specifications

ParameterValue
Input voltage7.6 V to 12 V DC (9 V battery nominal), at screw terminal J1
Reverse-polarity protection1N5819 Schottky, blocks up to 40 V in reverse
Output voltage5 V, within 4.75 V to 5.25 V over all line, load and temperature conditions (datasheet)
Output current, free air300 mA with up to 10 V input at 40 °C ambient
Output current, with heatsink500 mA with up to 12 V input and a clip-on heatsink of 18 °C/W or better
Minimum load5 mA, met by the power LED (9.1 mA)
Regulator heat1.17 W at 9 V in and 300 mA out (junction 83 °C at 25 °C ambient)
Efficiency54 % at 9 V in and 300 mA out, 41 % at 12 V in and 300 mA out
Board layers2
Board thickness1.6 mm
Copper weight1 oz (35 µm)
Board size70 × 45 mm
Components14 (10 circuit parts and 4 test points)
Pads / nets25 / 5
Design toolKiCad 10.0.x
ERC / DRC0 errors / 0 errors

Gallery

Schematic

Schematic

Full-size PDF: docs/schematic.pdf

PCB layout

PCB layout

3D views

TopBottom
3D top3D bottom

Operating area and power budget

Dropout and thermal limits

Operating area

PlotReading
A. Output against inputThe output stays at 5 V while the input is high enough. Below about 7.6 V at J1 the regulator is in dropout and the output falls with the input
B. Maximum load against inputThe higher the input voltage, the more heat the regulator must burn for the same current, so the allowed current falls. A heatsink raises the limit

Where the power goes

Power budget

A linear regulator wastes the difference between input and output as heat. From 9 V to 5 V it can never be better than 56 % efficient, and from 12 V to 5 V never better than 42 %. At 9 V and 300 mA the regulator burns 1.17 W, while the load receives 1.55 W.

How the circuit works

text
 J1+ ── TP1 ── D1 (1N5819) ── TP2 ──┬──────────┬── U1 IN ─── U1 OUT ──┬─────────┬────────┬── TP3 / J2+
                                   C1         C2                    C3        C4       R1 ─ D2 (LED)
                                 100 µF       1 µF                 100 nF    100 µF       │
 J1− ── TP4 ───────────────────────┴──────────┴────── U1 GND ───────┴─────────┴────────┴── J2−
  1. Reverse polarity. With the supply connected correctly, D1 conducts and drops about 0.45 V. If the supply is reversed, D1 is reverse-biased and blocks it, so nothing downstream sees a negative voltage.
  2. Input capacitors. C1 (100 µF) is a reservoir that supplies sudden current demands. C2 (1 µF ceramic) sits at the regulator's input pin and handles fast changes. The datasheet asks for at least 0.33 µF at the input, with the shortest possible leads.
  3. Regulation. U1 compares its output with an internal reference and adjusts an internal pass transistor to hold 5 V. The pass transistor drops the surplus voltage multiplied by the current, and that power becomes heat.
  4. Output capacitors. C3 (100 nF) and C4 (100 µF) improve the response to load changes. The L7805 is stable without an output capacitor, but the datasheet notes that one improves transient response.
  5. Minimum load. The regulator needs at least 5 mA of load to regulate properly. R1 and the power LED draw 9.1 mA, so it is always satisfied.

The metal tab of the TO-220 package is connected to ground (pin 2). It is the part that carries heat to a heatsink.

Design calculations (summary)

Minimum input voltage. The regulator needs its input to be at least 7 V (the datasheet's lowest test condition, equal to 5 V plus the 2 V dropout), and the diode takes up to 0.6 V:

$$V_{in,min} = 7.0\ \text{V} + 0.6\ \text{V} = 7.6\ \text{V}$$

Regulator power:

$$P_{reg} = (V_{raw} - V_{out}) \times I_{out} + V_{raw} \times I_q \qquad V_{raw} = V_{in} - V_F$$

For 9 V in, 300 mA load (plus 9.1 mA for the LED), 0.45 V diode drop and 8 mA quiescent current:

$$P_{reg} = (8.55 - 5.0) \times 0.309 + 8.55 \times 0.008 = 1.17\ \text{W}$$

Junction temperature (TO-220 in free air, 50 °C/W, 25 °C ambient):

$$T_J = T_A + P_{reg} \times R_{\theta JA} = 25 + 1.17 \times 50 = 83\ ^\circ\text{C}$$

The datasheet's operating limit is 125 °C.

Operating pointP_regT_J at 25 °C ambientT_J at 40 °C ambientEfficiency
9 V in, 100 mA0.46 W48 °C63 °C52 %
9 V in, 300 mA1.17 W83 °C98 °C54 %
9 V in, 500 mA1.88 W119 °C134 °C (over the limit)55 %
12 V in, 300 mA2.12 W131 °C (over the limit)146 °C (over the limit)41 %
12 V in, 500 mA3.43 Wneeds a heatsink of 18 °C/W or better41 %

The full derivation, tolerance analysis, heatsink selection and capacitor reasoning are in docs/DESIGN_NOTES.md.

Purpose of each component

RefValuePurpose
J12-pin screw terminal, 5.08 mmInput from a 9 V battery clip or a bench supply (pin 1 +, pin 2 −)
D11N5819 Schottky, 40 V, 1 ABlocks a reversed supply. Chosen over a silicon diode for its lower drop (0.6 V maximum at 1 A)
U1L7805CV, TO-220Fixed 5 V linear regulator, up to 1.5 A, with thermal shutdown and current limiting
C1100 µF, 25 V electrolyticInput reservoir: supplies sudden current demands and smooths the supply. Polarised
C21 µF, 50 V X7R ceramicInput high-frequency capacitor at the regulator pin. Meets the datasheet's 0.33 µF minimum even after ceramic DC-bias loss
C3100 nF, 50 V X7R ceramicOutput high-frequency capacitor (the datasheet's test value)
C4100 µF, 16 V electrolyticOutput reservoir: improves response to load steps. Polarised
R1330 ΩSets the power LED current to 9.1 mA
D2Red LED, 0805Power indicator, and the regulator's minimum load
J22-pin header5 V output (pin 1 +5V, pin 2 GND)
TP1Test pointVIN: input before the diode
TP2Test pointVRAW: regulator input, after the diode
TP3Test point+5V: regulated output
TP4Test pointGND: reference

Bill of materials

RefQtyValueFootprintDescription
J11Screw_Terminal_01x02TerminalBlock_bornier-2_P5.08mm2-pin screw terminal, supply in
J21Conn_01x02_PinPinHeader_1x02_P2.54mm_Vertical2-pin header, 5 V out
D111N5819D_DO-41_SOD81_P10.16mm_HorizontalSchottky diode, 40 V, 1 A
U11L7805CVTO-220-3_Vertical5 V linear regulator
C11100 µF, 25 VCP_Radial_D6.3mm_P2.50mmElectrolytic capacitor
C211 µF, 50 V, X7RC_0805_2012MetricCeramic capacitor
C31100 nF, 50 V, X7RC_0805_2012MetricCeramic capacitor
C41100 µF, 16 VCP_Radial_D6.3mm_P2.50mmElectrolytic capacitor
R11330 ΩR_0805_2012MetricLED resistor, 1 %
D21REDLED_0805_2012MetricRed LED
TP1 to TP44TestPointTestPoint_THTPad_D2.0mm_Drill1.0mmThrough-hole test points
Optional1Clip-on TO-220 heatsink, 18 °C/W or bettern/aFor loads above 300 mA or inputs above 10 V

The same list is available as CSV in fabrication/bom.csv.

Netlist

NetConnections
VINJ1-1, D1 anode, TP1
VRAWD1 cathode, C1 +, C2-1, U1-1 (IN), TP2
+5VU1-3 (OUT), C3-1, C4 +, R1-1, J2-1, TP3
GNDJ1-2, U1-2 (GND), C1 −, C2-2, C3-2, C4 −, D2 cathode, J2-2, TP4
LEDAR1-2, D2 anode

Repository structure

This project lives in the 05-linear-regulator/ folder of the kicad-learning-path repository.

text
05-linear-regulator/
├── README.md
├── 05_linear_regulator.kicad_pro     KiCad project file
├── 05_linear_regulator.kicad_sch     Schematic
├── 05_linear_regulator.kicad_pcb     PCB layout
├── fabrication/
│   ├── gerbers/                      Gerber and drill files
│   ├── 05_linear_regulator_gerbers.zip
│   └── bom.csv
└── docs/
    ├── DESIGN_NOTES.md               Full engineering documentation
    ├── schematic.pdf
    ├── images/                       Operating area, power budget, screenshots, renders
    └── reports/                      ERC and DRC reports

Getting started

Open the project

  1. Install KiCad 10.
  2. Clone or download this repository.
  3. Open 05-linear-regulator/05_linear_regulator.kicad_pro in KiCad. The project uses only the standard KiCad libraries.

Rebuild the manufacturing files

  1. Open the PCB editor and run Inspect → Design Rules Checker. It should report 0 errors.
  2. Open File → Fabrication Outputs → Gerbers and Generate Drill Files. The exact settings are listed in docs/DESIGN_NOTES.md.
  3. Zip the output folder.

Order the PCB

Upload fabrication/05_linear_regulator_gerbers.zip to a PCB fabricator. Suggested options for a low-cost fab: 2 layers, 1.6 mm, 1 oz copper, HASL finish.

Testing

Safety first: the regulator gets hot (about 77 °C at its case when delivering 300 mA from 9 V) and the test load resistors get hot too. Step-by-step measurements, expected values, test loads and a troubleshooting table are in docs/DESIGN_NOTES.md. In short: test the reversed connection first with a current-limited supply, then apply 9 V and check TP2 (about 8.5 V) and TP3 (about 5.0 V), then load the output step by step.

Verification status

CheckResult
Electrical Rules Check (ERC)0 errors
Design Rules Check (DRC)0 errors, 0 unrouted nets
Gerber viewer checkPassed
Physical board built and testedNot yet

Reports: docs/reports/

Future improvements

  • Add a protection diode across the regulator if you attach very large output capacitors
  • Replace the series diode with a P-channel MOSFET for a much smaller voltage drop (see Project 12)
  • Try a low-dropout regulator and compare its efficiency at 7.6 V
  • Add a fuse or resettable fuse at the input
  • Add mounting holes and a bolt-on heatsink position

License

Released under the MIT License.

Author: Nitish Ghadage · GitHub

Parts

14
QtyValueFootprintReferences
1+5VTestPoint:TestPoint_THTPad_D2.0mm_Drill1.0mm+5V
1100nFCapacitor_SMD:C_0805_2012MetricC3
1100uF 16VCapacitor_THT:CP_Radial_D6.3mm_P2.50mmC4
1100uF 25VCapacitor_THT:CP_Radial_D6.3mm_P2.50mmC1
11N5819Diode_THT:D_DO-41_SOD81_P10.16mm_HorizontalD1
11uFCapacitor_SMD:C_0805_2012MetricC2
1330Resistor_SMD:R_0805_2012MetricR1
1GNDTestPoint:TestPoint_THTPad_D2.0mm_Drill1.0mmGND
1INPUTTerminalBlock_Phoenix:TerminalBlock_Phoenix_MKDS-1-2-3.81_1x02_P3.81mm_HorizontalJ1
1L7805Package_TO_SOT_THT:TO-220-3_VerticalU1
1OUTPUTConnector_PinHeader_2.54mm:PinHeader_1x02_P2.54mm_VerticalJ2
1REDLED_SMD:LED_0805_2012MetricD2
1VinTestPoint:TestPoint_THTPad_D2.0mm_Drill1.0mmVIN
1VrawTestPoint:TestPoint_THTPad_D2.0mm_Drill1.0mmVRAW

More from nitu2126/kicad-learning-path

4
  • 2 layers20.6 × 18.7 mm03-voltage divider, the printed circuit board in 3D

    03-voltage divider

    nitu2126/kicad-learning-path

    My KiCad learning path: fully documented PCB projects from a simple LED board to advanced designs, with schematics, layouts, Gerbers, calculations and verification reports.

    13 partsMIT
  • 2 layers24.1 × 18.8 mm04 npn transistor switch, the printed circuit board in 3D

    04 npn transistor switch

    nitu2126/kicad-learning-path

    My KiCad learning path: fully documented PCB projects from a simple LED board to advanced designs, with schematics, layouts, Gerbers, calculations and verification reports.

    13 partsMIT
  • 2 layers17.8 × 21 mm02 555 blinker, the printed circuit board in 3D

    02 555 blinker

    nitu2126/kicad-learning-path

    My KiCad learning path: fully documented PCB projects from a simple LED board to advanced designs, with schematics, layouts, Gerbers, calculations and verification reports.

    9 partsMIT
  • 2 layers18.7 × 11.5 mm01 led button, the printed circuit board in 3D

    01 led button

    nitu2126/kicad-learning-path

    My KiCad learning path: fully documented PCB projects from a simple LED board to advanced designs, with schematics, layouts, Gerbers, calculations and verification reports.

    4 partsMIT

Similar boards

  • 2 layers40.6 × 110 mmEuropi surface mount, the printed circuit board in 3D

    Europi surface mount

    Allen-Synthesis/EuroPi

    EuroPi: A reprogrammable Eurorack module based on the Raspberry Pi Pico

    92 parts584CC0-1.0
  • 2 layers132.1 × 45.7 mmIPoS, the printed circuit board in 3D

    IPoS

    peterheinrich/InternetOverSpaghetti

    Transmitting IP packages over a pair of spaghetti thus demonstrating how media independent IP really is.

    42 parts342
  • 2 layers59.7 × 57.5 mmFunBox, the printed circuit board in 3D

    FunBox

    GuitarML/FunBox

    Stereo guitar pedal platform using Daisy Seed.

    61 parts289MIT
  • 2 layers90.8 × 35.6 mmERCF easy brd, the printed circuit board in 3D

    ERCF easy brd

    Tircown/ERCF-easy-brd

    More informations on how to reset for flashing:\ https://wiki.seeedstudio.com/Seeeduino-XIAO/#enter-bootloader-mode

    28 parts195GPL-3.0
  • 2 layers111.3 × 106.4 mmSuper Sixteen v1, the printed circuit board in 3D

    Super Sixteen v1

    matthewcieplak/super-sixteen

    Code and schematics for the Super Sixteen Eurorack sequencer

    141 parts171
  • 2 layers91.4 × 71.1 mmPico w rover, the printed circuit board in 3D

    Pico w rover

    NikodemBartnik/Mini-Mars-Rover

    Educational robotic platform made to look like a mini mars rover

    20 parts143MIT
  • 2 layers144.1 × 182.2 mmSHVC CPU-01, the printed circuit board in 3D

    SHVC CPU-01

    starlightk7/OpenSFC

    OSHW Reproduction Parts related to the Super Famicom / Super Nintendo game console

    498 parts114CERN-OHL-S-2.0
  • 2 layers106.1 × 155 mmMotherboard, the printed circuit board in 3D

    Motherboard

    Redherring32/OpenTendo-TopLoader

    An Open Source HardWare (OSHW) recreation of the 1993 toploading NES motherboard (Also known as NES-101)

    84 parts94

Questions

How big is the 05 linear regulator PCB?

It measures 25.4 × 26.3 mm and has 2 copper layers, 1.6 mm thick.

What parts does the 05 linear regulator use?

14 parts, built around the L7805. The full list of its parts is on this page, with links to each part's symbol and footprint where PCBKit's library has them.

Where can I download the 05 linear regulator KiCad files?

From the nitu2126/kicad-learning-path repository on GitHub, at the commit this page was made from: the board is 05-linear-regulator/05_linear_regulator.kicad_pcb and its schematic 01-led-button/01_led_button.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the 05 linear regulator design in my own project?

Its repository publishes it under the MIT licence: you may reuse it on that licence's terms (keep the author's notice, and for a copyleft licence share your changes alike).