I thought I would write a quick guide for installing Octoprint on an MK3 with the Raspberry pi Camera V2 since I saw so much helpful but also fragmented information. I wanted high quality Timelapse photos with the camera mounted to the bed. This is my first 3D printer and my first pi.
My plan is first to get Octoprint running, then the camera, then mount everything to the MK3.
Firstly, I decided against the pi zero. I actually bought a pi zero for this purpose but I kept running into problems. In particular, the Pi Camera V2 ribbon cable will not connect to the Pi Zero. Additionally, there is a thread on the Octoprint homepage which scared me off from using the pi Zero. So Pi 3 B it is! I also decided to use USB to connect it to the MK3 and I am powering it through a MicroUSB cable since I've heard murmors about power issues and I have a USB port nearby anyway.
Raspberry Pi 3 B with a power supply and sd card
Pi Camera V2
Extra Long Camera Ribbon Cable (I have a 2m cable)
Some PETG filament
Make sure you have the latest MK3 firmware.
Download Octoprint image file
Install Image File on an SD Card (I used Etcher on a MAC). Make sure if you use an SD card adapter that said adapter is unlocked. That one took me way too long to troubleshoot!
On the SD card (now flashed) locate the file octopi-network.txt
Edit the file using a text editor like Notepad ++ (Windows) or Atom (for Mac). A stock text editor will mess up the text file!
In my case I uncommented the 3 single # lines after "## WPA/WÅA2 secured" and entered my network info below and saved the file.
Now boot up the pi from the SD card and connect the pi to the MK3 with a USB cable (I'm using the included cable for now until I get everything working and figure out how I want to mount the pi).
Access OctoPrint through http://octopi.local
or http://<your pi's ip address>.
At this point I was able to access Octoprint on my Pi and I decided to setup the camera later once I get Octoprint running.
Now run through the setup wizard.
I skipped setting up a slicing profile because I want to slice on my laptop.
Now for the Printer profile:
Give your printer a name and a model number (you cannot change the Identifier but the devs wanted us to see this box anyway lol)
Print bed & build volume
Now you have a decision to make. Since the printer likes to print a little test line at the edge of the bounding box each time (which I happen to like) you will get a warning with each print that your print is outisde of the bounding box during the bounding box check. You can either remove the line from your prints, change the bounding box by setting x to -5 or -3 (depending on who you ask). My personal solution will be to disable the warning later.
(I kept the defaults which were)
Hotend & extruder:
(I kept the defaults which were)
Now press Next (and then I had to press reload) and then Octoprint wanted to update right away so I let it. By the way, there were tons of warnings during the updates in scary red text. And then the server was offline. And then I had to reload. Ok, lots of buttons to push here... mash away at Next or Reload or Try again etc until you get to the Online connectivity check.
Online connectivity check:
(I enabled it)
Enable Plugin Blacklisting:
Seems reasonable. I enabled it.
OK finish the setup and then press connect.
Now if you are like me and you want to disable that warning for bed size you can do that under settings, features
[ ] Enable model size detection and warn if model exceeds print bed Beta (uncheck that box)
At this point, I was connected and started a small test print.
OK, now it's time to add the camera.
I used the 2M cable from Adafruit although Ill probably order a shorter one later. First I unplugged the pi and the MK3 and then fastened the ribbon cable to the camera and the pi 3 (to the connector labeled camera). Note that you may have to remove some protective film from the ribbon cable connector.
Started up the pi and the MK3 and I have an image in the Octoprint interface! I went into Octoprint settings and found webcam settings where I flipped the camera vertically.
I'm actually a bit surprised by how easy this was. I didn't change any settings whatsoever on the MK3 (with latest firmware)!
OK, my next step will be to find a perfect location for the camera and mount it to the bed. No promises on when this gets updated though.