WattNWave
DIY projects › Basics for beginners

Build a bench power supply from a laptop charger

A bench power supply gives you any voltage you need and limits the current so mistakes do not burn parts. An old laptop charger already does the hard part safely. Add a step-down module with a display and you can set the volts and the amps with two knobs.

9V
EasySoldering1 to 2 hours
New to electronics? The words used on this page
Fuse
A small part that melts and cuts the power if too much current flows. It protects the wire from overheating.
Multimeter
A hand-held meter that measures voltage. Use it to check before you connect anything.
Step-down (buck) board
A small board that lowers a voltage, for example 12 V down to 5 V.

ACharger, step-down module and output posts

For powering and testing your projects from about 1.25 V up to just under the charger's voltage. Soldering · 1 to 2 hours

Laptop charger19 V1DC socketcentre +Step-downmodule with display4Output postsred +, black −5plug in5 A23+ positive− negative
Swipe sideways to see the whole drawing. The numbers on the drawing match the steps below.

You will need

  • Old laptop charger, 19 V or similar65 W or more is best
    View on Amazon
  • Step-down module with display, CC and CV5 A type; shows volts and amps
    View on Amazon
  • DC socket to fit the charger's plugOften 5.5 × 2.5 mm; check yours
    View on Amazon
  • Binding posts, red and blackThe output terminals
    View on Amazon
  • Inline fuse holder and blade fusesFuse size from the calculator
    View on Amazon
  • Project boxWith room for the module and vent holes
    View on Amazon
  • MultimeterTo check voltages before you connect anything
    View on Amazon

Tools

Soldering iron, drill, wire stripper, multimeter.

Step by step

  1. 1

    Plug the charger into the wall and measure inside its plug: about 19 V, + on the centre. Then unplug it.

    Check: if centre is −, swap the two wires in step 2.

  2. 2

    Solder the DC socket: centre pin through the fuse to the module's IN+, outer contact to IN−.

  3. 3

    Solder the module's OUT+ to the red post and OUT− to the black post.

  4. 4

    Plug in. Turn the voltage knob to the voltage you want. Then turn the current knob right down, join the two posts with a wire, and turn it up to the limit you want.

    Check: the display shows volts and amps as you turn.

  5. 5

    Mount it all in the box with the display and posts on the front.

    Check: label the posts + and −.

Every connection, one by one

Tick each one as you make it. When every box is ticked, the wiring is complete.

DoneFromToWire
DC socket centre pinFuse, then module IN+Red
DC socket outer contactModule IN−Black
Module OUT+Red binding postRed
Module OUT−Black binding postBlack

As an Amazon Associate I earn from qualifying purchases. Links open Amazon search results.

What can your charger deliver?

The voltage range and the current at the voltage you want.

On the charger's label, after OUTPUT.
On the label too. 65 W chargers are about 3.4 A, 90 W about 4.7 A.
Our suggestion
—

How this is calculated

Method
Charger power = volts × amps. Highest output = charger voltage − 1.5 V. Most current at your voltage = charger power × 90% ÷ output voltage, limited to the module's 5 A.
Assumptions
A step-down module needs about 1.5 V of headroom and is about 90% efficient. Lowest output about 1.25 V. Run the module below its rating if it has no heatsink.
Sources
XL4015 and LM2596 datasheets.

Stay safe

Stop at once if a cell or board smells, gets hot to the touch, swells, hisses or smokes. Unplug it, move it onto a non-flammable surface outdoors if you safely can, and keep away until it is cold.
  • Use the laptop charger as it is. Do not open it: the inside is at mains voltage.
  • Set the current limit low before you connect a new circuit. It is what saves your parts when something is wired wrong.
  • Put the module in a box with vent holes; it gets warm at high current.
  • Do not charge lithium batteries with it unless you know how to set a charging voltage and current exactly.
  • Use a TP4056 board with protection (the version with the DW01 chip and two outputs, OUT+ and OUT−), or a proper BMS for packs.
  • Buy cells from a known brand and seller. Fake cells often hold a fraction of the label and can lack protection.
  • Do not leave lithium cells charging unattended, and charge them on a non-flammable surface.
  • Never use a swollen, dented or leaking cell. Recycle it.
  • Put a fuse close to the battery's + terminal.
  • While soldering or spot-welding, keep the cell ends covered so nothing can short them.

Questions people ask

Which module should I buy?

A step-down (buck) module with a display and two settings: constant voltage (CV) and constant current (CC). A 5 A type suits a laptop charger well.

What voltage range will I get?

From about 1.25 V up to about 1.5 V below the charger's voltage, so roughly 1.25 to 17.5 V from a 19 V charger. For more, use a buck-boost module.

What is the current limit for?

It caps how much current can flow. With it set to 0.1 A, a wiring mistake makes a part warm instead of making it smoke.

Some Dell and HP chargers do not switch on. Why?

They wait for an ID signal from the laptop on the centre pin. Most still give power on the main contacts; if yours does not, use a different charger.

Written and checked by Moataz FOUAD, telecom and electronics engineer. About this site.