Skip to content

neilgupta/prusa-octoprint-setup

Repository files navigation

OctoPrint setup for Prusa MK3S

Prusa recommends using a Raspberry Pi Zero W to run OctoPrint for your printer. While this is very clean and easy, it is underpowered and you can't get a camera. You also risk the print failing if you are checking its status too often via the UI or app. Here's my setup for attaching a Raspberry Pi 3B+, camera, and lights to a Prusa MK3S printer for a reliable OctoPrint server with a camera. The total cost is about $100.

Hardware

  • Raspberry Pi 3B+
  • 16GB microSD Card
  • Raspberry Pi Camera v2
  • 1 meter ribbon cable for camera
  • WS2812 LED light strip

Prints

Raspberry Pi Mount - Bottom

https://www.thingiverse.com/thing:2843889

Resolution: 0.15

Infill: 20% (optional)

Raspberry Pi Mount - Lid

http://www.thingiverse.com/thing:559858

Resolution: 0.1

Infill: 20%

Camera Mount - Arm, Camera, Lid, Post

https://www.prusaprinters.org/prints/7064-customizable-raspberry-pi-camera-bed-mount-prusa-m/

Customizable via included OpenSCAD, but the gcode files committed here should work great with an MK3S. This mount does require using a couple of the spare M4 screws included with your Prusa.

Material: PLA should be safe, but PETG is better given its proximity to heat bed

Resolution: 0.2

Infill: 20%

Ribbon clips

http://www.thingiverse.com/thing:3189351

Print 4 of these!

Resolution: 0.2

Infill: 10%

Octoprint

  1. Flash Raspberry Pi SD card with OctoPi image
  2. Set wifi password in octopi-wpa-supplicant.txt
  3. Boot up raspberry pi and ssh [email protected]
  4. passwd to change root password
  5. Edit /etc/hostname to give this octopi a unique name
  6. Visit http://octopi.local in browser
  7. Configure Prusa MK3S printer profile
  8. Install octoslack and octopod plugins
  9. Restart Raspberry Pi
  10. Configure plugins as needed
  11. Happy printing!

Lighting

This repo also includes a script that can control a WS2812 LED light strip attached to the raspberry pi. It will dynamically change lights based on the status of the printer. I use these ones but Adafruit's NeoPixels will work well too.

  1. Connect lights to raspberry pi

Trim led strip to 15 pixels so that they fit on the top frame of the MK3S. Solder 3 wires (65cm length each) to connect led strip to 5V, GND, and GPIO pin 18. I also use a Texas Instruments SN74AHCT125N buffer to ensure correct logic voltage, but this is optional. My Raspberry Pi 3B+ was able to drive the LED strip with 3.3v logic.

Mount the led strip to the bottom of the frame with double sided tape and use 4 zip ties to hold in place, since the heat from the lights + extruder will weaken the tape very quickly.

  1. Clone this repo
git clone https://github.com/neilgupta/prusa-octoprint-setup.git
cd prusa-octoprint-setup
  1. Install dependencies
sudo apt-get update
sudo apt-get install -y python3-pip
sudo pip3 install -r requirements.txt
  1. Install MQTT plugin in Octoprint, configure it to talk to hiome.local. This assumes you have Hiome... if not, get on that first! Set the topic format to _hiome/1/sensor/CLIENT_NAME/ where CLIENT_NAME is "prusa_" + octopi's hostname (ie "prusa_octopi")

  2. Install led systemd service

sudo cp octoprint-led.service /etc/systemd/system/octoprint-led.service
sudo systemctl enable octoprint-led.service
sudo systemctl start octoprint-led.service

To run the script as a one-off, it's sudo python3 led.py

  1. Start a print from octoprint!

About

Just some notes from my Prusa MK3S + OctoPrint setup

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages