How To Setup OctoPrint the Easy Way
Can't find a Raspberry Pi? Check out Orange Pi for OctoPrint. Boards and complete kits are available now!
What is OctoPrint and why do I need it?
OctoPrint is the most popular 3D printing software for wirelessly monitoring and controlling your 3D printer.
Hundreds of thousands of printers rely on OctoPrint's awesome snappy web interface daily to manage their workflows. In addition there are a ton of awesome plugins that take the power of remote 3D printer monitor and control to a whole new level. In this guide, we will tell you what you need to get OctoPrint set up with your 3D printer and how install it.
Prefer to watch a video to guide you through the process? Check out our video on setting up OctoPrint and getting started with OctoPrint plugins!
Hardware
What hardware do I need?
Minimally, the following hardware is required:
-
Raspberry Pi
- A Raspberry Pi Model 3B or Raspberry Pi Model 4B will work best. We recommend the 4B as it is more powerful and not much more expensive than the 3B.
-
USB power cord
-
USB printer cord
-
SD card (at least 16GB)
We also suggest the following items:
-
A case for the Raspberry Pi
-
Heat sinks
-
Ethernet cable if you are connecting to a router
Where do I get the hardware?
There are two ways to acquire the hardware:
-
Buy the components separately: If you are interested in getting each component separately, Amazon is a great place to start, but there are also some great and highly reputable authorized Raspberry Pi dealers who have e-commerce sites. Vilros and The Pi Shop are two certified resellers but there are others as well.
-
Kit: There are many kits that come with some or all of the hardware needed. TH3D sells an OctoPrint kit that includes everything you need to get started. You can find more complete kits on octoprint.org. Canakit is another popular brand that sells kits with most of the needed hardware included. Some of these kits come with OctoPrint already installed on the SD card while others simply provide the hardware needed.
A camera is not required but you'll probaly want one
Adding a camera to OctoPrint allows you to watch the printer from another room or from another state with one of the awesome remote monitoring plugins like The Spaghetti Detective. A camera will also enable you to record awesome time-lapse videos.
Okay, but which camera should I get?
There are hundreds if not thousands of cameras out there that will work for OctoPrint, it can be hard to pick. A Raspberry Pi camera or a USB webcam are the two main options to consider.
In our experience, Raspberry Pi cameras tend to provide better quality results, but they are not as easy to manage. You'll need to print a mount for it, and the ribbon cables can be quite a pain.
The Raspberry Pi Camera or the Raspberry Pi Camera V2 will give you pretty great results for monitoring your prints, but if you are interested in creating high quality jaw-dropping time-lapse videos, then you'll probably want to check out the Raspberry Pi High Quality Camera.
Setup and Install
Download the Raspberry Pi Imager
- Download the Raspberry Pi Imager from raspberrypi.org/software
- The software is available for both Windows and Mac.
Install and run the imager
- Select Choose OS,
- Select other specific purpose OS,
- Select Octopi. This will automatically download the latest version of the Octopi image from octoprint.org
- Under Choose Storage, select the SD card that you want to install OctoPrint on. Make sure you don't have any important files on this SD card as it will be wiped.
- Don't click write yet You'll want to secure your Pi and configure the wifi first.
Secure your Raspberry Pi
- By default, the password to SSH into your Octopi instance is raspberry and the username is pi. This is not very secure. You'll want to change the password to prevent possible attacks from malicious users.
-
Press Control+Shift+x (CMD+Shift+x on mac) to bring up the Raspberry Pi imagers advanced options menu.
-
Click enable SSH and enter a secure password for the raspberry pi user. The username is pi and the password is the one you just created.
Connect your Raspberry Pi to the internet
We recommend connecting your raspberry pi directly to your wireless router or home ethernet ports if possible as this will provide the best streaming results. However, most users do not have easy access to a wired connection, so we will assume you will want to configure wifi.
Configure Wifi with OctoPrint
-
With the Raspberry Pi imager, wifi configuration is a breeze. Simply enter your username and password under Configure wifi.
-
Be careful, this entry is space and case sensitive, so enter the username and password exactly as it appears on your router.
-
Under the country code section choose the country that you are in.
-
Click save and then click write. Once complete, eject the SD card from your computer.
Connect to OctoPrint
-
Put the SD Card into the bottom of the Raspberry Pi (upside-down).
-
Plug the power cable into the Raspberry Pi and the outlet.
-
It will take a moment for OctoPrint to connect.
-
Tip: Watch the green "ACT" led on the Pi. It will flash on and off for a while and then it will turn off. Once solid, your pi is connected to the internet and OctoPrint.
Connect the Hardware
Step 1: Connect the heatsinks
If you have them, place the heat sinks on the Raspberry Pi.
Step 2: Put the Raspberry Pi in the case
Place the Raspberry Pi into the case if you have one.
Step 3: Plug the printer cable into the Pi.
Plug the printer cable (micro USB, mini USB, or standard printer cable depending on your 3D printer) into the Raspberry Pi.
Step 4: Plug the power cable into the Pi.
- Plug the USB C power adapter into the Raspberry Pi.
Step 5: Connect the webcam
- If you are using a USB webcam, connect the webcam by plugging the usb cable into any of the USB ports on the Raspberry Pi.
- If you are using a Raspberry Pi camera, place the ribbon cable into the camera and the Pi as shown below. Be very careful with the cable.
- Place the other side of the ribbon cable into the pi as shown below. The blue side of the cable should be facing the HDMI port on the Raspberry Pi.
How Do I mount the camera?
There are many different ways to mount your camera. 3D printed mounts, tripods, webcam arm mounts, or even old boxes will all work.
Check out our article on Ender 3 webcam setup for OctoPrint for a more details on webcam setup. While we demonstrate the setup on an Ender 3, the information will be relevant for most brands and models of 3D printers.
Printer Connection
Turn your 3D printer on, if it isn't already.
- Plug the printer cable into your 3D printer.
- Plug the power cable into a power outlet.
At this point, the Raspberry Pi should be powered on, connected to the internet and your 3D printer.