DIY-Laboratory-Power-Supply

Public

@yannickkoenig

Share DIY-Laboratory-Power-Supply

Check access before sharing the link.

Who can open this board

Anyone can open this board. No sign-in is required.

This link opens the latest version. Copying it does not grant additional access.

Loading 3D model… large boards can take a moment.

README

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

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

Comments

No comments yet. Be the first to ask about this board.

Ask about this board

Sign in to BoardRepo

New here? Signing in creates your account; there is no separate sign-up.