How to Power a Raspberry Pi from a 3D Printer Using Your Printer’s Power Supply Unit (PSU)

Powering a Raspberry Pi using a 3D printerPowering a Raspberry Pi using a 3D printer
Who needs more power bricks?
Zach Zach (217)
Total time: 30 minutes 
Updated: February 3rd, 2020
Calling all writers!

Are you a writer who loves 3D printing? Send us a message

This guide will show you how to power a Raspberry Pi using your 3D printer’s power supply. This is especially useful if you’re using OctoPrint and only want to run your Pi when your 3D printer is running.

In a nutshell, we’re going to connect our printer to a small voltage regulator, also known as a “buck converter” or “step down converter”, to reduce the printer’s higher voltage to the 5V needed by the Pi.

This guide will work for any Raspberry Pi model, including the Raspberry Pi 4.

Important note: This guide involves electricity. Take proper precautions even when working with low voltages.

Here’s everything you’ll need to complete this guide:

Soldering ironSoldering iron×1
3D printer×1
Multimeter×1
Wire strippers×1
Solder×1 tube
LM2596 DC voltage regulator×1
XT60 Y-splitter cable (optional)XT60 Y-splitter cable (optional)×1

Before we can connect the LM2596 voltage regulator, we’ll need to determine where the connection should take place.

There are basically two methods of tapping into your 3D printer’s power supply:

Method #1: Run a new power supply line from your PSU

For this method, open up your printer’s power supply unit (PSU) and run a new positive (+) and negative (-) wire from one of the available slots. If you’re lucky, your PSU might have a separate 5V power output terminal.

In this unlikely case, no voltage regulator is needed! You can skip forward and connect these lines directly to your Pi. However, be sure that at least 2A is being output, or else you’ll need to use another supply line.

Note: Before opening your power supply, disconnect your printer’s power and wait for any capacitors in the PSU to discharge.

Method #2: Splice into the printer’s existing (external) wires

For this method, we can splice into one of the wires already coming out of your power supply. By splice, I don’t mean strip and use electrical tape. I recommend using some kind of Y-splitter cable to split the power out.

This method takes less time because no PSU disassembly is required. Additionally, it takes only seconds to revert the change if you’d like to undo your modifications. For these reasons, this is the method I’m going with.

My printer is the Creality Ender 3 and uses common XT60 connectors, so I used this extension cable. Some printers use other connectors, however; thus, be sure to choose a Y-splitter cable that will work with your printer.

The rest of this guide will work for you regardless of which approach you choose!

Soldered buck converter input wiresSoldered buck converter input wires

Now we’re going to connect the INPUT side of the LM2596 voltage regulator/buck converter to the printer’s power supply.

Since I’m using method #2, this means soldering my Y-splitter cable directly to the converter. I recommend printing a small enclosure for your LM2596; you can find tons of these on Thingiverse. The exact enclosure I used is included with this printer-mounted Pi enclosure.

First, Cut and strip one “leg” of the Y cable.

Then, solder the red positive (+) wire to the positive (+) INPUT terminal.

Finally, solder the black negative (-) wire to the negative (-) INPUT terminal.

Be sure to thread the wires through the enclosure opening before soldering them.

Soldered buck converter output wiresSoldered buck converter output wires

The Raspberry Pi 1, 2, 3, and Zero use a Micro USB port for power, so we’ll need to solder one to the output terminals of our buck converter. To do this, we’ll cannibalize an old Micro USB cable or AC adapter.

The Raspberry Pi 4 uses a USB-C port for power. If you’re using a Pi 4, you’ll need to cannibalize a USB-C cable or adapter instead.

Cut open and strip the cable. Locate the red positive (+) and black negative (-) wires, and solder these to the OUTPUT terminals of the buck converter.

Again, if you’re using an enclosure, thread the cable through the enclosure hole first.

Completed buck converter micro USB with XT-60 circuitCompleted buck converter micro USB with XT-60 circuit

Lookin’ good.

Adjust the buck converter output voltageAdjust the buck converter output voltage

Next, we need to adjust the buck converter’s output voltage to 5V. For my printer, the line I’m tapping into is 24V, so I’ll be stepping this 24V down to 5V.

To do this, we’re going to connect a multimeter to the buck converter’s output, power on the printer (input), and turn a small potentiometer on the buck converter using either a small screwdriver or your fingernail.

If you don’t have a multimeter, you can alternatively purchase a buck converter that shows the output voltage on a built-in LCD display (though these are more expensive).

With your printer’s power cord disconnected, connect your buck converter to your printer’s power supply using either the wires you connected directly to your PSU (method #1) or the Y-splitter cable (method #2). Make sure neither the buck converter or any of your wires are touching any metal.

Then, set your multimeter to DC and connect it to the output terminals of the buck converter. I recommend using alligator clip leads if you have them; if you don’t, a second set of hands helps.

After you’re sure all hands and wires are free from any contact, connect your printer’s power cable and power it on. Turn the small potentiometer until your multimeter reads 5V. Then, turn off and unplug your printer.

Buck converter enclosure mounted to a 3D printerBuck converter enclosure mounted to a 3D printer

Secure the LM2596 enclosure to your printer using foam tape, taking care not to mount it in the way of any moving parts.

Secured 3D pritner buck converter wiresSecured 3D pritner buck converter wires

Connect the USB cable to your Pi. Use zip ties to secure your wires away from any moving parts and power on your Pi.

Pat yourself on the back, you’re all done! If you’re working on an OctoPrint setup, be sure to check out my comprehensive OctoPrint setup guide.

We’re hiring!
Are you a passionate writer or editor? We want to hear from you!

Want to support Howchoo? When you buy a tool or material through one of our Amazon links, we earn a small commission as an Amazon Associate.

How to Power a Raspberry Pi from a 3D Printer Using Your Printer’s Power Supply Unit (PSU)

Powering a Raspberry Pi using a 3D printerPowering a Raspberry Pi using a 3D printer
Who needs more power bricks?
Zach Zach (233)
Total time: 30 minutes 
Updated: February 3rd, 2020

This guide will show you how to power a Raspberry Pi using your 3D printer’s power supply. This is especially useful if you’re using OctoPrint and only want to run your Pi when your 3D printer is running.

In a nutshell, we’re going to connect our printer to a small voltage regulator, also known as a “buck converter” or “step down converter”, to reduce the printer’s higher voltage to the 5V needed by the Pi.

This guide will work for any Raspberry Pi model, including the Raspberry Pi 4.

Important note: This guide involves electricity. Take proper precautions even when working with low voltages.

Here’s everything you’ll need to complete this guide:

Soldering ironSoldering iron×1
3D printer×1
Multimeter×1
Wire strippers×1
Solder×1 tube
LM2596 DC voltage regulator×1
XT60 Y-splitter cable (optional)XT60 Y-splitter cable (optional)×1

Before we can connect the LM2596 voltage regulator, we’ll need to determine where the connection should take place.

There are basically two methods of tapping into your 3D printer’s power supply:

Method #1: Run a new power supply line from your PSU

For this method, open up your printer’s power supply unit (PSU) and run a new positive (+) and negative (-) wire from one of the available slots. If you’re lucky, your PSU might have a separate 5V power output terminal.

In this unlikely case, no voltage regulator is needed! You can skip forward and connect these lines directly to your Pi. However, be sure that at least 2A is being output, or else you’ll need to use another supply line.

Note: Before opening your power supply, disconnect your printer’s power and wait for any capacitors in the PSU to discharge.

Method #2: Splice into the printer’s existing (external) wires

For this method, we can splice into one of the wires already coming out of your power supply. By splice, I don’t mean strip and use electrical tape. I recommend using some kind of Y-splitter cable to split the power out.

This method takes less time because no PSU disassembly is required. Additionally, it takes only seconds to revert the change if you’d like to undo your modifications. For these reasons, this is the method I’m going with.

My printer is the Creality Ender 3 and uses common XT60 connectors, so I used this extension cable. Some printers use other connectors, however; thus, be sure to choose a Y-splitter cable that will work with your printer.

The rest of this guide will work for you regardless of which approach you choose!

Soldered buck converter input wiresSoldered buck converter input wires

Now we’re going to connect the INPUT side of the LM2596 voltage regulator/buck converter to the printer’s power supply.

Since I’m using method #2, this means soldering my Y-splitter cable directly to the converter. I recommend printing a small enclosure for your LM2596; you can find tons of these on Thingiverse. The exact enclosure I used is included with this printer-mounted Pi enclosure.

First, Cut and strip one “leg” of the Y cable.

Then, solder the red positive (+) wire to the positive (+) INPUT terminal.

Finally, solder the black negative (-) wire to the negative (-) INPUT terminal.

Be sure to thread the wires through the enclosure opening before soldering them.

Soldered buck converter output wiresSoldered buck converter output wires

The Raspberry Pi 1, 2, 3, and Zero use a Micro USB port for power, so we’ll need to solder one to the output terminals of our buck converter. To do this, we’ll cannibalize an old Micro USB cable or AC adapter.

The Raspberry Pi 4 uses a USB-C port for power. If you’re using a Pi 4, you’ll need to cannibalize a USB-C cable or adapter instead.

Cut open and strip the cable. Locate the red positive (+) and black negative (-) wires, and solder these to the OUTPUT terminals of the buck converter.

Again, if you’re using an enclosure, thread the cable through the enclosure hole first.

Completed buck converter micro USB with XT-60 circuitCompleted buck converter micro USB with XT-60 circuit

Lookin’ good.

Adjust the buck converter output voltageAdjust the buck converter output voltage

Next, we need to adjust the buck converter’s output voltage to 5V. For my printer, the line I’m tapping into is 24V, so I’ll be stepping this 24V down to 5V.

To do this, we’re going to connect a multimeter to the buck converter’s output, power on the printer (input), and turn a small potentiometer on the buck converter using either a small screwdriver or your fingernail.

If you don’t have a multimeter, you can alternatively purchase a buck converter that shows the output voltage on a built-in LCD display (though these are more expensive).

With your printer’s power cord disconnected, connect your buck converter to your printer’s power supply using either the wires you connected directly to your PSU (method #1) or the Y-splitter cable (method #2). Make sure neither the buck converter or any of your wires are touching any metal.

Then, set your multimeter to DC and connect it to the output terminals of the buck converter. I recommend using alligator clip leads if you have them; if you don’t, a second set of hands helps.

After you’re sure all hands and wires are free from any contact, connect your printer’s power cable and power it on. Turn the small potentiometer until your multimeter reads 5V. Then, turn off and unplug your printer.

Buck converter enclosure mounted to a 3D printerBuck converter enclosure mounted to a 3D printer

Secure the LM2596 enclosure to your printer using foam tape, taking care not to mount it in the way of any moving parts.

Secured 3D pritner buck converter wiresSecured 3D pritner buck converter wires

Connect the USB cable to your Pi. Use zip ties to secure your wires away from any moving parts and power on your Pi.

Pat yourself on the back, you’re all done! If you’re working on an OctoPrint setup, be sure to check out my comprehensive OctoPrint setup guide.

We’re hiring!
Are you a passionate writer? We want to hear from you!

Want to support Howchoo? When you buy a tool or material through one of our Amazon links, we earn a small commission as an Amazon Associate.

Total time: 20 minutes 
Updated: February 3rd, 2020
Calling all writers!

We’re hiring. Write for Howchoo

pi
PRIMARY
216 guides
diy
38 guides
home
21 guides
Calling all writers!

We’re hiring. Write for Howchoo

Ash's profile pictureAsh
Joined in 2018
Ash is an experienced tech writer with an endless passion for technology. She enjoys retro gaming, 3D printing, and making awesome projects on the Raspberry Pi.
Raspberry Pi livestreams each Thursday with new things for kids to code!
Michael's profile picture MichaelView
In these interests: kidsnewspi
For Raspberry Pi beginners who still love to follow along in a book.
Michael's profile picture MichaelView
In these interests: booksretropiepi
What’s better than an experiment? An experiment in space!
Michael's profile picture MichaelView
In these interests: kidspinews
Kali Linux is a great distribution for Raspberry Pi users who want to get to grips with security testing.
The Raspberry Pi micro-computer grows in power with each new model release, with more resources that make it a more capable, low-cost content server for your media and resources.
Laptops, smartphones, tablets, even lightbulbs—an endless number of devices now have the ability to connect to your local network and the wider internet.
The Raspberry Pi was designed to boot from an SD card, but in some cases, it’s convenient to boot from a USB drive.
Get the new official Raspberry Pi OS on your Pi.
New to the Raspberry Pi? Start here.
Blocking ads just got easier with Pi-hole, a network-wide ad blocker for the Raspberry Pi
Don’t skip out on a proper case for your Pi 4.
The only Raspberry Pi Bluetooth guide you’ll ever need.
pi
PRIMARY
The Raspberry Pi is a small, inexpensive computer developed by the Raspberry Pi Foundation in the United Kingdom.
“It takes half your life before you discover life is a do-it-yourself project.” – Napoleon Hill
Home is where the heart is.
Ash's profile pictureAsh
Joined in 2018
Ash is an experienced tech writer with an endless passion for technology. She enjoys retro gaming, 3D printing, and making awesome projects on the Raspberry Pi.
Related to this guide:
Raspberry Pi Web Server LAMP StackRaspberry Pi Web Server LAMP Stack
The Raspberry Pi micro-computer grows in power with each new model release, with more resources that make it a more capable, low-cost content server for your media and resources.
Ben's profile picture BenView
In these interests: pi
NEMS and Raspberry Pi LogosNEMS and Raspberry Pi Logos
Laptops, smartphones, tablets, even lightbulbs—an endless number of devices now have the ability to connect to your local network and the wider internet.
Ben's profile picture BenView
In these interests: networkingpi
How to Boot Your Raspberry Pi 4 From a USB DriveHow to Boot Your Raspberry Pi 4 From a USB Drive
The Raspberry Pi was designed to boot from an SD card, but in some cases, it’s convenient to boot from a USB drive.
Tyler's profile picture TylerView
In these interests: pi
People also read:
Raspberry Pi OS
Get the new official Raspberry Pi OS on your Pi.
Raspberry Pi FAQ
New to the Raspberry Pi? Start here.
The Pi-hole logo
Blocking ads just got easier with Pi-hole, a network-wide ad blocker for the Raspberry Pi
Raspberry Pi 4 Cases 2020
Don’t skip out on a proper case for your Pi 4.
Setting up Bluetooth on a Raspberry Pi
The only Raspberry Pi Bluetooth guide you’ll ever need.
Raspberry Pi Windows
Your favorite MS OS on the Pi.
DietPi Logo
If you need a resource-light operating system for your Raspberry Pi, then you should consider trying DietPi.
Posted in these interests:
pipi
pi
PRIMARY
The Raspberry Pi is a small, inexpensive computer developed by the Raspberry Pi Foundation in the United Kingdom.
Discuss this guide:
We’re hiring!
Are you a passionate writer or editor? We want to hear from you!
We’re hiring!
Are you a passionate writer or editor? We want to hear from you!

Want to support Howchoo? When you buy a tool or material through one of our Amazon links, we earn a small commission as an Amazon Associate.

Want to support Howchoo? When you buy a tool or material through one of our Amazon links, we earn a small commission as an Amazon Associate.