Skip to the content
2 layers89 × 50 mmSchaltung, the printed circuit board in 3D

A simple, microcontroller-based PWM buck converter power supply, designed to provide precise voltage control and current measurement.

Size
89 × 50 mm
Copper layers
2
Thickness
1.6 mm
Parts
23
Nets
12
Pads
40
Tracks, vias
58, 2
Pours
1
Routed
Yes
KiCad
KiCad 9.0 (file 20241229)
Created
18 Jun 2025
Updated
20 Jun 2025

Overview

Schaltung is an open-source printed circuit board by YannickKoenig, from the YannickKoenig/DIY-Laboratory-Power-Supply repository on GitHub, published under the MIT licence. It is a 2-layer board of 89 × 50 mm with 23 parts on 12 nets, routed with 58 tracks and 2 vias.

It is built around the IRLZ44N and SS34. Its parts include 9 connectors, 4 resistors, 2 capacitors, 1 IC and 1 diode. It belongs with the power boards and the RP2040 boards of this library.

Main components

2

README

README.md

image info

DIY Laboratory Power Supply Unit

A simple, microcontroller-based PWM buck converter power supply, designed to provide precise voltage control and current measurement. The output voltage is easily adjustable using a rotary encoder for accurate and intuitive input. This project is compact, affordable, and perfect for DIY laboratory power supply applications.

Features

  • Voltage regulation via PWM buck converter
  • User-friendly voltage adjustment using a rotary encoder
  • Real-time display of voltage and current
  • Custom PCB Boards
  • Compact and cost-effective design (~9€)

Table of Contents

Bill of Materials (BOM)

ItemDescriptionQuantityPriceTotal
KY-040Rotary Encoder10,89 €0,89 €
IRLZ44NMOSFET-Transistor (TO-220)10,22 €0,22 €
Fuse (2A)5x20mm Glass Fuse10,03 €0,03 €
SS34Schottky Diode10,02 €0,02 €
TM16374-digit 7-segment LED Display21,90 €3,80 €
DC Plug-10,24 €0,24 €
Power Switch-10,12 €0,12 €
TC4427MOSFET Driver (SOP-8)10,29 €0,29 €
Buck Converter PCBCustom PCB for Buck Converter10,08 €0,08 €
Frontend PCB (optional)Custom PCB for Input & Displays10,80 €0,80 €
Raspberry Pi PicoMicrocontroller12,00 €2,00 €
Electrolytic Capacitor470µF10,30 €0,30 €
Ceramic Capacitor1µF10,10 €0,10 €
InductorCD75, 47UH10,10 €0,10 €
SMD ResistorValues 51k and 10k (1206)20,01 €0,02 €
SMD ResistorValue 0.1 Ohm (2512)10,01 €0,01 €

Total: 9,01 €

Assembly

  1. Order the PCBs: For easier and cleaner assembly, it is recommended to order the PCBs from manufacturers like JLCPCB, PCBWAY, or AllPCB. Both the Buck Converter PCB and the optional Frontend PCB can be used. Just upload the appropriate Gerber files (buckdown-pcb, frontend-pcb)
  2. Solder the components: Carefully solder all the required components. The project includes both SMD and THT parts, so make sure you have the right tools and technique.
  3. Flash the microcontroller:
  • Connect the Raspberry Pi Pico to your computer while holding the BOOTSEL button during startup.
  • You can either compile the firmware yourself or simply upload the precompiled .uf2 file provided in the releases section.
  1. Connect the wiring:
  • Connect the Buck Converter PCB and the Frontend PCB (if used) using the following connections:

    • GND → GND

    • I+ → I_in

    • U+ → U_in

  • Connect the output of the Buck Converter:

    • V_out+ → Positive output terminal (e.g., banana plug).

    • V_out- → Negative output terminal (e.g., banana plug).

You can use banana plugs, terminal blocks, or any other suitable connectors for your output.

  • If using the Frontend PCB, connect both TM1637 displays and the rotary encoder to the appropriate headers.

  • Make sure to add a fuse (e.g., 2A) to protect your circuit from potential damage.

  • To power the Raspberry Pi Pico, you can either:

    • Power it via USB, or

    • Use a separate buck converter module (e.g., LM2596S) connected in parallel with the DC input.

Usage

display

To adjust the output voltage:

  • Turn the rotary encoder left to decrease the selected digit.
  • Turn it right to increase the selected digit.
  • Press the rotary encoder to switch between digits.

You can fine-tune the PI controller parameters (K_P and K_I) experimentally in the firmware to improve voltage regulation stability and response. See RegulatorManager.hpp for details.

Contributing

Contributions are welcome! Feel free to fork this project, submit pull requests, or open issues for improvements and bug fixes.

Third-Party Libraries

This project uses the following third-party software:

License

This project is open-source and available under the MIT License.

Schematics

image info

image info

Parts

23
QtyValueFootprintReferences
2GNDMountingHole:MountingHole_2.2mm_M2_PadJ8, J10
1
10.1 OhmResistor_SMD:R_2512_6332MetricR1
11000µFCapacitor_THT:CP_Radial_D10.0mm_P5.00mmC1
1100kResistor_SMD:R_1206_3216MetricR4_Bleed1
110kResistor_SMD:R_1206_3216MetricR3
11µFCapacitor_THT:C_Disc_D5.0mm_W2.5mm_P5.00mmC2
151kResistor_SMD:R_1206_3216MetricR2
1I +MountingHole:MountingHole_2.2mm_M2_PadJ6
1IRLZ44NPackage_TO_SOT_THT:TO-220-3_VerticalQ1
1LInductor_SMD:L_Sunlord_MWSA1003SL1
1MountingHole_2.2mm_M2MountingHole:MountingHole_2.2mm_M2REF1
1PWM +MountingHole:MountingHole_2.2mm_M2_PadJ5
1SS34Diode_SMD:D_SMAD1
1TC4427xOAPackage_SO:SOIC-8_3.9x4.9mm_P1.27mmU1
1U +MountingHole:MountingHole_2.2mm_M2_PadJ7
1V_OUT +MountingHole:MountingHole_2.2mm_M2_PadJ3
1V_OUT -MountingHole:MountingHole_2.2mm_M2_PadJ4
1V_in +MountingHole:MountingHole_2.2mm_M2_PadJ1
1V_in -MountingHole:MountingHole_2.2mm_M2_PadJ2

The 21 most common of 23 parts.

More from YannickKoenig/DIY-Laboratory-Power-Supply

1
  • 2 layers99.1 × 95.3 mmSchaltung labor netzteil display, the printed circuit board in 3D

    Schaltung labor netzteil display

    YannickKoenig/DIY-Laboratory-Power-Supply

    A simple, microcontroller-based PWM buck converter power supply, designed to provide precise voltage control and current measurement.

    15 partsMIT

Similar boards

  • 2 layers100.7 × 138.5 mmVCUinvertor, the printed circuit board in 3D

    VCUinvertor

    EVR-Tuiasi/Shield_VCU_Invertoare

    158 parts1
  • 2 layers204.5 × 113 mmSTM, the printed circuit board in 3D

    STM

    Noraiz963/Mini-PLC-

    Compact industrial mini PLC designed in KiCad

    139 parts1
  • 4 layers50 × 50 mmDryer control, the printed circuit board in 3D

    Dryer control

    souptik-samanta/dryer

    A custom PCB and self-centering spool holder for drying 3D printer filament. The PCB controls the fans, monitors temperature, and provides connections for PTC heaters.

    33 parts1
  • 2 layers90 × 60 mmCC Load, the printed circuit board in 3D

    CC Load

    AleksaHeler/Programmable-DC-Load

    Flexible programmable DC constant current/power load using Arduin Nano & custom PCB

    105 partsMIT
  • 2 layers100.3 × 75.5 mmRPU1.1-Controller, the printed circuit board in 3D

    RPU1.1-Controller

    CooperW824/KiCAD-Projects

    A place for me to store my KiCAD Projects

    124 partsMIT
  • 2 layers138.5 × 108.5 mmBuck boost, the printed circuit board in 3D

    Buck boost

    IPrometheusI/buck-boost

    Cargador solar buck-boost no inversor con control CC-CV en ESP32, simulación MATLAB/Simulink y diseño PCB en KiCad.

    32 partsMIT
  • 2 layers160 × 110 mmLipo Discharger, the printed circuit board in 3D

    Lipo Discharger

    Lnotti/5-Channel-High-Current-Li-po-Discharger

    A PCB designed to discharge 6S LiHV battery packs to storage voltage (3.8V per cell / 22.8V total) across up to 5 independent channels simultaneously.

    122 parts
  • 2 layers76 × 45.2 mmMasjid2, the printed circuit board in 3D

    Masjid2

    Mahmoud1205/AthanLamp

    Hardware, software, and devlog of the Athan Lamp project.

    60 partsMIT

Questions

How big is the Schaltung PCB?

It measures 89 × 50 mm and has 2 copper layers, 1.6 mm thick.

What parts does the Schaltung use?

23 parts, built around the IRLZ44N and SS34. 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 Schaltung KiCad files?

From the YannickKoenig/DIY-Laboratory-Power-Supply repository on GitHub, at the commit this page was made from: the board is hardware/electrical/buck-converter/KiCAD/schaltung.kicad_pcb and its schematic hardware/electrical/buck-converter/KiCAD/schaltung.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the Schaltung 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).