User avatar
miquel.a
Posts: 47
Joined: Mon Jan 01, 2018 5:34 pm
Contact: Send private message

Re: OctoPrint issues and tips

Tue Feb 20, 2018 8:42 am

Hi,

I'm waiting for my MK3 and since I have nothing better to do I'm reading the forums.

I did not understand if the issues described in this thread affect just a Pi0 connected directly to the board or we are also having problems with Octopi on a Pi3 connected via USB.

Sorry for such a simple question I've been reading this thread but if that's answered I skipped it.

Thanks!

rhys.e
Posts: 9
Joined: Sat Sep 23, 2017 9:28 pm
Contact: Send private message

Re: OctoPrint issues and tips

Tue Feb 20, 2018 9:07 pm

Has anyone hooked up a camera? How did you do it? Can you attach a camera to ZERO via the usb port on mk3?

steven.b17
Posts: 78
Joined: Tue Oct 24, 2017 3:12 am
Contact: Send private message

Re: OctoPrint issues and tips

Tue Feb 20, 2018 9:24 pm

miquel.a wrote:
Tue Feb 20, 2018 8:42 am
Hi,

I'm waiting for my MK3 and since I have nothing better to do I'm reading the forums.

I did not understand if the issues described in this thread affect just a Pi0 connected directly to the board or we are also having problems with Octopi on a Pi3 connected via USB.

Sorry for such a simple question I've been reading this thread but if that's answered I skipped it.

Thanks!
It was both but I think the latest firmware fixed that.

jordan.l6
Posts: 6
Joined: Mon Feb 19, 2018 1:02 pm
Contact: Send private message

Protip: Raspberry Pi Zero WH has the GPIO header pre-installed:

Wed Feb 21, 2018 7:49 am

Pre-ordered my Mk 3 and although I have multiple Pis sitting around, I did not have a Zero to manage the wireless printing functionality.

Went looking for one tonight and what should I find?

https://www.adafruit.com/product/3708?g ... gJ4DPD_BwE

WiFi PLUS a pre-soldered GPIO array! Done!

jweaver
Posts: 235
Joined: Fri Jul 07, 2017 3:32 pm
Contact: Send private message

Re: Protip: Raspberry Pi Zero WH has the GPIO header pre-installed:

Wed Feb 21, 2018 8:44 am

jordan.l6 wrote:
Wed Feb 21, 2018 7:49 am
Pre-ordered my Mk 3 and although I have multiple Pis sitting around, I did not have a Zero to manage the wireless printing functionality.

Went looking for one tonight and what should I find?

https://www.adafruit.com/product/3708?g ... gJ4DPD_BwE

WiFi PLUS a pre-soldered GPIO array! Done!
*** WARNING ***

Someone correct me if i am wromg, it connecting this to the MK3 as is will destroy the Pi and potentially the Einsy too.

You only need the 6 pins soldered.... if you connect the whole strip (like the pic) you will connect a whole bunch of dangerous things to the Pi (i.e 24v).

So before you connect this, you need to desolder all of the unused pins...

Plus.. those header pins armt even long enough for this application.. have a look at section 5 & 6 here

http://manual.prusa3d.com/Guide/0.+Prep ... 85?lang=en

per andreas.s
Posts: 4
Joined: Mon Oct 09, 2017 4:03 pm
Contact: Send private message

Prusa MK3 Raspberyy Pi 3 B with Camera V2 Guide

Wed Feb 21, 2018 10:09 am

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.

Shopping list:
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:

General:
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
X: 250
Y: 210
Z: 200

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.

Axes:
(I kept the defaults which were)
X 6000
Y 6000
Z 200
E 300

Hotend & extruder:
(I kept the defaults which were)
0.4 mm
1 extruder

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)
NEXT

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.

User avatar
edward.c6
Posts: 299
Joined: Tue Oct 17, 2017 9:47 pm
Contact: Send private message

Re: OctoPrint issues and tips

Wed Feb 21, 2018 1:07 pm

I think I used the Prusa supplied image, though I can't remember as I waffled between the images, anyway it was pretty straight forward and I get no warnings when the priming spooge is laid down, that's why I think I must have used the Prusa image. I'm using a Pi 3B with the Pi Camera V2.1 and have no issues. I burned the image plugged the camera in and was up and running. The hardest part for me was figuring out how to set the camera resolution and frame rate, sorry I can't recall the exact procedure and I'm not at home to attach to the Pi via command line to remember what I did. I'm not a Linux guy and documentation for setting the resolution and frame rate in Octopi is a little sparse at best. The Pi camera defaults to a really low resolution when connected to Octopi. I have a Pi Zero as well but shied away from using it because it doesn't allow special characters in WiFi passwords so I ended up using the Pi 3B hardwired to my network.

steven.b17
Posts: 78
Joined: Tue Oct 24, 2017 3:12 am
Contact: Send private message

Re: OctoPrint issues and tips

Wed Feb 21, 2018 9:05 pm

I started with the Prusa image on a Pi 3 but now I'd like it to boot to a UI and run Chromium on the 7" Pi touchscreen and I'm having problems. I can get it to load chromium as the desktop but then it complains because it is starting as root user. I'll get there but dang it's been a while since I used Linux.

FYI I bought a Logitech C615 and it works perfectly with the Prusa image.

steven.b17
Posts: 78
Joined: Tue Oct 24, 2017 3:12 am
Contact: Send private message

Re: OctoPrint issues and tips

Thu Feb 22, 2018 12:31 am

I didn't realize there was a script to install the desktop support already on the image. After running that I can run chromium in kiosk mode. But even using the touchui plugin its a pain to control without a mouse. Chrome is using at least 10% of the cpu and if I have the webcam tab open it uses about 30%. I'll look into alternate ui's that would fit better than the default but are better that touchui.

Doing a test print now. All seems to work well.

Anyone know how to get long filenames from the sdcard in octoprint ui?

neil.e
Posts: 127
Joined: Sun Nov 12, 2017 12:02 am
Contact: Send private message

Re: OctoPrint issues and tips

Thu Feb 22, 2018 12:38 am

steven.b17 wrote:
Thu Feb 22, 2018 12:31 am
Anyone know how to get long filenames from the sdcard in octoprint ui?
It isn't possible: https://github.com/foosel/OctoPrint/issues/1600

Return to “User mods - OctoPrint, enclosures, nozzles, ...”

Who is online

Users browsing this forum: No registered users and 0 guests