Raspberry Pi Zero 2 - Octoprint - Prusa MK3 - Chris's Basement

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
today we're gonna be checking out the raspberry pi zero two and how well it works with octoprints [Music] hello everyone chris here and you may have heard already but the raspberry pi zero two is out and it has more processing power than the zero w and it's officially supported by octoprint now i have been running the raspberry pi zero and zero w for many years using octoprint but because of its low processing power you could get some inconsistent results but it works pretty well on my prusa machines whether it be a bear like orange juicer or the regular mark iii and that's because it has a built-in header on the itezy board where you can plug the raspberry pi zero directly onto it and it makes a nice all-in-one package and for those of you that are not familiar with the prussian mark iii setup here's a look at the back of the controller board these pins right here the gpio pins on your raspberry pi zero can go directly through the board and there's a header on the other side here's a picture of it mounted you actually only need four pins for this to work but they do add a fifth pin just to give it a little more stability and there's a look at the top side of the board where the pins go through these are 20 millimeter pins by the way but we'll go over that and with that installed it really makes using your printer more convenient again there are some caveats there and you might run into some issues but i have not with the prusia mark 3s i set it up i go directly to the ip i kick off my print it's all contained i don't have to mess with the external raspberry pi plugging it in additional power it's been really convenient to use but now we have the zero two and it has a lot more processing power and again is officially supported so how much better is that zero two in this situation well that's what we're gonna find out today let's start by taking a look at the zero w and the zero two side by side and what the advantages of the new model are going to be and on first look the zeros are very very similar here's the original one and here's the zero two version as with all raspberry pi's the gpio headers are going to be exactly the same so we don't have to worry there we can use the same type of pin setup and the main advantage to the zero two is going to be the processing power on the zero you had a broadcom bcm 2835 chip it is one gigahertz but on the zero two you now have a bcm 2710a1 quad-core processor 64-bit still running at 1 gigahertz but that gives you a lot more power with those extra cores they do both still have 512 meg of memory but on the xero 2 now you're running at 450 megahertz and it's ddr2 so it's going to be faster there are a couple other things to mention that got upgraded on the two like it has a 2.4 gigahertz wireless chip it's a little bit better than the old one but mainly it's that processor and the memory change that's going to help us run octoprint more efficiently and remember as always pay attention to your sd card when you're doing a raspberry pi project we are using the same one in both pies these are sandisk 16 gig and their a1 number 10s so a decently performing sd card always helps and you will have to solder your gpio pins on your raspberry pi pretty much exactly like we did on the original one only they have left out one of these pens remember this is gpio 22 it has been left just for support to give the pie just a little bit more footprint on the back of that board it's not actually functional but they used to use both of these pins to support it now they're only going to use one and i do prefer to use these 20 millimeter pins in dual header form just so it gives you more seat here for the pie you have those two rows instead of just one row and just removing the pins i don't need there's also a printed part that helps you mount this it's available within the mark iii printable files i'll leave a link to that in the description but it just sits down over the raspberry pi and it helps you locate where those pins need to be soldered remember this is the original version with those two pins but you can see how there's room for that header it just helps everything stay nice and level when it's on the back of the board the newest version of that prusa part again will just have that gpio 22 pin right here so we still have to solder up five pins but we can get that done pretty quick and there we go our new pi is all soldered up we do have five volts ground transmit and receive so it goes right on your serial bus remember to skip that top row we're going with the second row and that printed part is going to help you know which pins you need to solder remember this one down here is just structural and here's your printed part and it sets on just like that and then we're ready to install it on the back of the board but before we do that we need to do some testing so the new raspberry pi zero two sets up pretty much exactly the same as the old zero w would i did mention they changed up that part just a little bit but it's going to be very similar now there are going to be some concerns about heat with that added processing power on the new 0-2 and that's one of the things that i want to test but also i'd like to get some performance baselines here one of the downsides to using the zero on your mark 3 was that it takes a long time to get the splash screen up when you go into that web url so i want to measure how fast the old one was and how much faster the new one's going to be i have reflashed both of these cards these are brand new images i haven't even gone through the wizard yet so it's going to operate exactly like it would after you flashed your image onto your card to build octoprint and i have videos on how to do all of that i will leave links in the description below but let's start just by seeing how fast the network interface would come up if we booted both of these at the same time i am using again the same sd card on both as well as the same power supply so this could be fun so just to see how fast that pi might be ready and up on the network i've got two command windows here you have on the left the raspberry pi zero the new one on the right zero two and we've got our old buddy google stopwatch and i'm just gonna kick the power on to this power strip for both of them at the same time and go and at one minute fourteen seconds the pi zero two is up and on the wi-fi but only a couple seconds later the original zero w is on the same so not that much improvement there but i'm not really all that surprised so i'm going to log into both of these via shell and shut them down safely then we can proceed to the next test we don't want anything like a file system scan slowing down our tests now that we've shut everything down cleanly on to our next test how fast will the web ui be available on first boot remember we haven't ran the wizard yet so there might be a few more things you have to process than on regular boot time but we're going to check that as well so first we will start with our zero the original one we're just going to power up and see how long it takes i am using the auto refresh extension for chrome i have it set to one second so we can get a pretty accurate time of when it will be available so the original zero w at around 2 minutes and 45 seconds octoprint the web ui started to populate again it's not going to continue because we're on auto front refresh but this is a good indication actually faster than i thought it'd be now let's move the same test to the zero two ready and go we're already starting up at 25 seconds that is impressive that processing power that extra oomph is definitely paying off so far so now i'm just going to run through the wizard on both of these get them set up just a bare bones install shut them down and i want to start them side by side just to see if there was anything on the first boot up that might have been different on every other one and this one really is just for fun just so you can see how much faster that zero two is going to be i'm going to start them both at the same time at 26 seconds maybe a little faster zero twos already starting to populate the original zero at about 50 seconds it's reporting the server is not running even before one minute the zero two is already up and ready to connect and we waited roughly three and a half minutes for the original zero interface to be up and operational and of course you can see the warning over here that it's not supported so that's boot time but let's not stop there what if you just want a refresh you've already put it up on the network you just want to go back to your printer to reuse it so let's just start with a couple of new tabs here in chrome the original pi zero pretty fast only a couple of seconds how about the zero two almost instantaneously so both of them perform pretty well in that regard what about file uploads let's just upload some random g-code to our old pi zero about four seconds for that file to upload it's 3.8 meg and be ready here in the list and then the same file for our zero two less than two seconds so you gain a little speed there as well so the pi zero two is a vast improvement over the old model we can finally use octoprint as it was intended on this tiny little board and it's not just the performance gains that you're gonna get from octoprint you can now also use more of the extensions and plug-ins that you couldn't before on the old xero as well as webcams i could use a webcam on the old zero w but i had to keep it around a 640 480 resolution you should be able to do a lot higher res on this new model and again the install on a prussian mark iii is pretty much exactly the same and the power consumption might be a little bit greater on the zero two but it shouldn't really matter when you're plugged into that mark iii board it should be able to handle it just fine and here's a look at the inc board case on my prusa this is actually the one i use with my mmu2 more on that in a second but you'll notice this adapter right here i leave these hanging out the bottom so i can plug in a camera if i want to but it installs just like before the pins on your new 0-2 slide right through the back of the pcb and if you're so inclined you can plug your camera adapter into this second port right here it slides in just the same as the old board everything should work identical only faster and let's go one step further and plug in a c920 into our camera port and let's boot up and again we're ready in just a couple of seconds now if we go to the control tab we have our new webcam interface that is a little lower res but we can adjust that and you'll notice we don't have a connection yet to our prusa printer that's because there's a few other things you really need to do now prusa does provide an image that you can use on your raspberry pi zero to get octoprint up and running but i'm not exactly sure what version they have right now you do have to make modifications to the linux structure to get this to work with those pins and i'm going to show you how to do that manually again i did show this in the original video but it's a pretty quick thing to edit so we want to be able to use the newest octa print possible the first thing you want to do is make sure your raspberry pi port is on so just head into the menu go down to settings and pretty close to the bottom you're going to have r pi port just make sure that says on if it doesn't just click it and that'll turn it on that way then we need to log in to the shell on our raspberry pi to make a few quick changes to linux so that we can utilize the pins on that pi to communicate with that serial interface so we'll edit the boot config file sudo nano forward slash boot forward slash config dot text we're going to go all the way to the end of this file and we're going to add dt overlay equals pi 3 dash mini uart all one word dash bt that's going to enable the serial communication and swap ports with the bluetooth chip so we can control x y and enter to save and then we need to edit the boot command line text so slash boot slash cmd line dot txt and the portion here that says console serial we're just going to delete it including the baud rate so we'll clear this out we just have console equals tty1 at the beginning and that should be all we need to do control x y enter to save now we can reboot the pi once it comes back up we need to head to settings and add that serial port you add it right here forward slash dev forward slash tty capital ama zero you can save that reload the interface and you should now have that in your serial ports right here pick that ama0 you can leave baud rate on auto set any of these features that you'd like i do like it to auto connect at server startup and hit connect now we're communicating with our push mark iii in the terminal tab you can see the code it's reporting the temperatures so that means it's successful and more on the camera if you'd like to check or change your resolution you can do that jump back into putty log in again to check what your current resolution is usually the easiest way is just to check the jpeg streamer and see what it's running at i just do a ps dash aux we do a pipe and then grep mjpg that'll show you the process that's currently running and that reports your current resolution and you can update that in the config file you want to use forward slash boot octoprint.txt so sudo nano forward slash boot forward slash octopi pi.txt and you can scroll down to this line take the comment off and then put whatever resolution on it that works with your camera since we have some extra processing i'm going to do some tests with it i'm going to set it to full hd 1920 by 1080 and you can use whatever frame rate you would like just go with whatever fits your camera that's the only change you need to make control x y enter to save and we'll reboot one more time and once we come back up there's your new hd stream from your webcam and we're ready to start using our pruship now i said this is my mmu-2 prusa if you want to do that there are a few extra settings so go into settings edit your profile printer profiles use the default or make your own just edit you need to make sure that hot in extruder you have this set to 5 and click shared nozzle because we only have one nozzle but we do technically have five extruders confirm that and my setup likes to throw errors about invalid tools being called it's just the way that octoprint does some checking to make sure you're safe but i have to turn that off so go back to serial connection go to behavior and the sanity checking for the tool commands i have to uncheck this or it will throw errors and not change it correctly so give that a try if it's not working for your mmu2 and we'll save now i know some of you probably had issues with your raspberry pi and octoprint running your mmu2 at one time and i did as well but with the newest version of the prusa firmware 3.10 and the newer versions of octoprint i am running the newest one currently 1.7.2 i haven't had any issues after i made those two configuration changes that i showed you before now we are going to have to do a lot of testing to make sure our new 0-2 is going to work successfully every time with our printer but let's go ahead and kick off a print that runs a couple of hours just to make sure we don't have any initial hiccups and here is our initial test print sir layers a lot is looking amazing again this was on the mmu2 we were running the camera at 1080p and it is flawless there are no signs of dwell that's where you'd get blobs that would be caused by stalls in the connection or being able to process that g-code it looks phenomenal no issues at all and some things to note the preview during the print was pretty jittery we are running at 1080p so that's probably to be expected on this pi zero even though it's pi zero two that's a lot of information to process but the time lapse did come out pretty flawless so i don't think it hurt us any also i was monitoring the temperature of the mcu while it was doing this process we were right at three and a half hours a little bit more during this print and i did see some 64s and some 65s towards the end of the print and about 70 c is as high as you're going to want to go on that raspberry pi now octoprint didn't throw any errors octoprint does monitor for mcu temperature but it didn't complain about it so we're still in good shape it was operating correctly it didn't affect the print but we want to keep an eye on this temperature going forward there might be a few things we can do i'm not sure if we can fit a heat sink under there or not but we'll check that out going forward i need a lot longer print to see how it's going to be impacted but that is one of my worries with this zero too and there we go our raspberry pi zero two install on our prusa printer is now complete the zero two is going to be a great option for us running octoprint and other types of software going forward including clipper it should be more than enough processing power to get any of those jobs done and now we can use a lot more of the fun plugins than we could on the previous zero version so that will be it for today hopefully you found this video helpful and i'll see you very soon on the next one
Info
Channel: Chris Riley
Views: 666
Rating: undefined out of 5
Keywords: 3D, printer, Printing, 3D Printing, 3D Printer, ChrisBasement, ChrissBasement, Chris'sBasement, Chris Basement, Chriss Basement, Chris's Basement, ChrisRiley, Chris Riley, benchy, 3dbenchy, 3d, Raspberry Pi, Pi Zero 2, Pi Zero, MMU2
Id: 54pzwSVa2IE
Channel Id: undefined
Length: 21min 15sec (1275 seconds)
Published: Wed Dec 15 2021
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.