How to set up and install Octoprint on a Raspberry Pi

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
hi everyone and welcome back to another 3D Revolution in this video I'm going to be taking you through how to download install and set up octoprint on a Raspberry Pi let's have a look [Music] a few years ago I posted a video on how to do exactly this how to set up octoprint on a Raspberry Pi but since then the process has changed quite a bit and luckily it's become a lot quicker and easier to do so I thought I'd post a updated tutorial on how to get started now whilst octoprint can be installed and set up on a variety of devices it's most common to set up on a Raspberry Pi whilst there is a global shortage of these at the moment it is still technically possible to get hold of them all based at boosted prices and I'll pop the link in the description below to some of the places you can still get them now whilst this is the most popular device to install octoprint on this tutorial is going to focus on how to install it on a Raspberry Pi but if there are any other devices you would like to see a tutorial on please pop them in the comments below now to get started on downloading and installing octoprint on a Raspberry Pi you don't actually need the Raspberry Pi itself all you need is a Micro SD card a card reader and a computer so let's have a look at how to get started head to raspberry pi.com forward slash software I'll pop a link in the description below and download the Raspberry Pi imager I'll be doing the tutorial from a Windows machine but this process is pretty much identical for Windows Mac and Linux but if you are using Raspberry Pi Os or if you've got any issues regarding differences between systems you can either check the descriptions on the Raspberry Pi website or post them as a comment below and I'll get back to you as quick as I can with some help with the Raspberry Pi image are loaded go down to choose OS other specific purpose OS 3D printing octopi and finally octopi stable which is the most recently released stable version of Oxo pi now with microSD card connect to your computer via card reader go to choose storage if you have multiple options here make sure you're selecting the right one your micro SD card because whatever you select here is going to get formatted so that's my card there now before we select write let's go down and click on the Cog settings button this opens up a quick and simple menu which allows us to change some settings saving us some time later on let's start out by activating set hostname this allows us to set a name for our octopi or our octoprint if you're going to be using just the one in your household then potentially just call it octoprint if you're going to be using multiple versions of this for multiple printers maybe name each one after the printer that you're going to use to control it next one is enable SSH we want to activate this as well and this is going to allow you to log into your Raspberry Pi from a computer or another device so you can change certain settings and you want to keep use password authentication turned on you also want to make sure that set username and password is activated and leaving username set as Pi by default set yourself a nice and secure password next configure wireless LAN you want to turn this on because you want to be able to connect to your Wi-Fi so enter the name of your Wi-Fi network here and then under password the password for your Wi-Fi network and finally you can just click save now we've got that all set up you can click right and this is just double checking that you are aware that the card that you've selected is going to be formatted we'll click yes now this is going to take a bit of time so I will skip forward when this is completed once this has we can move forward so I'll see you in a sec okay and once that's complete you can click continue and remove your micro SD card from the card reader so now pop your micro SD card into your Raspberry Pi and plug it into a power source provided you into the right Wi-Fi details on the previous section whilst we were in the imaging software it should now automatically connect to your Wi-Fi network as is the first time we powered it on since installing it it might take a minute to load up so go make yourself a cup of tea and then pop back onto your computer open the browser window and in the address bar at the top enter either the IP address of your Raspberry Pi or if you set up a hostname at the start of the image of software that we just used you can enter that dot local so for me it was octoprint dot local then hit enter if nothing loads your Raspberry Pi may still be getting set up when you've plugged it in for the first time after installing octoprint it can take a while to get itself unpacked and ready to go so go and make yourself a cup of tea come back try entering the IP address or hostname again and it should be brought here so here we have the setup wizard it's just a quick and easy way of getting octoprints set up and ready to go so I'll take you through these steps now we can click next this isn't a feature we'll need to use right now but it's a useful feature to be aware of for the future if you do a backup save from octoprint once everything's set up and save it to your computer if you need to either restore that save in the future because your Raspberry Pi is broken or because you're getting another one set up you can then restore it from that save and it will just save you time having to do all of your individual personalized settings in the future it will do it all in one go but we won't do that for now or click next now whilst you set up a username and password earlier that was for the Raspberry Pi itself and you use that for accessing it via SSH to do things like updating your operating system this is your username and password for octoprint itself and you want to make sure that you use something different here then just click create account and click next rather than your raspberry try trying to really intensively send and receive data over the Internet when it's not got a connection you can activate the connectivity check which allows it to routinely so it's standard sets of 15 minutes check if it has an active internet connection before it does any of these processes you can also set the IP address that it checks against um but for for all this stuff I would just see leave it as standard and click enable connectivity check then click next now I'm sure most of you are familiar with the anonymous usage tracking on various websites and software um it's generally just tracking what sort of functions you're using if you get errors come up and sending that back anonymously to octoprints so they can be aware of what's causing issues and making the software better down the line it's obviously going to be a personal choice it won't have any impact on how the software is going to perform for you it just AIDS octoprint if you were to trust the information that they take taking um in improving the software um I absolutely trust them they're a great group so I'm just going to click enable and then click next unless you're developing your own Plugin or you really know what you're doing I'd advise you have the plug-in Blacklist turned on this is effectively a way of preventing you from downloading or updating to plugins which have known issues with your version of oxoprint so I'm going to click enable and once that's done click next now we can set up your printer give your printer a name I'm just going to call mine for now Cruiser it's a Mark III that I'm going to set up and then you can go through to print bed and build volume tab so obviously all the settings in this section are going to depend on what printer you're setting up I'm setting up for a cruiser Mark III S but if you're using any other printer please make sure you're using the correct settings for your printer you'll be able to find them online easily enough so the first option here is form factor you've got rectangular which is the standard Cartesian design most 3D printers these days are you've also got circular so that would be a Delta style princess or leave this with rectangular for now origin you've got lower left or Center this is basically a what point on your print bed is the origin point for all of the dimensions with your tool pads you can then tick if you've got a hate bed a heated chamber Etc and then you also need to enter your print volumes this is going to be the dimensions of the printable area of your printer okay and then let's go up to axes you want to enter the maximum speed that your printer is capable of running in each of the different axes as well as making sure that the Z height is uh it will usually be a significantly slower rate and the Extrusion rate that your printer is capable of in addition to that based on where the end point is on your printer you might need to invert some of the axes and finally we have the hot end and extruder tab so here you've got the nozzle diameter most printers that you buy these days will come as standard with a 0.4 millimeter nozzle so unless you've changed it it is most likely going to be a 0.4 millimeter nozzle the amount of extruders you've got again as standard is going to be one unless you've got a multi extruder printer but you'll be aware of that and then the default Extrusion length you can leave that to five millimeters all of these settings can be changed at a later date but this just helps you get set up and ready to go okay so let's click next so we can click finish and let the setup wizard get started okay so your default settings have been set up let's go connect this to your printer as your pile will be running the whole time you're printing for hours and sometimes even days it's good to make sure it stays cool so for that I use a 5 volt fan and you can plug this directly into the 5 volt and ground pins on your pie so this will automatically power up anytime your Raspberry Pi is turned on I then put the whole thing into a 3D printed enclosure and I can strap that or screw that straight onto my printer to keep it out of my way but within reach of easy Cable Management then all you have to do is connect your Raspberry Pi to your printer using the same port on your printer that you'd use to connect it to your computer and power them both on now head back to your computer and open a browser on the left here you have your connection window this is basically the settings used to connect your Raspberry Pi to your printer most of this can be left on also but we'll go through what each of them means so the serial Port is basically the physical port on your Raspberry Pi that is connected to your printer if you have multiple devices connected to your Raspberry Pi that could be perceived as a printer by octoprint you can click on the menu here and select which one you wanted to talk to under board rate this is effectively the speed at which the data is transferred between the octoprint and the printer this will depend on what prints you're using but having it set to auto works fine 99 of the time and finally the printer profile this is the profile that you set up during the setup wizard if you had set up more printers you would be able to choose between them here and tell octoprene which of your printers it's going to talk to finally you can save connection settings if you had set something different than the auto standard settings here and also connect on Startup I'd suggest having this because it just means every time you turn on octoprint with your printer it's going to automatically connect to that printer unless you're unplugging and plugging things in on a regular basis this is probably going to be a good option for you and click connect so now it's connected to your printer you'll notice that it is hidden the connection window you can click on here to open up again but unless you want to actively disconnect your printer there's no need for this window so you can hide that again so the state window is something we'll look at a bit later on when we're actively Printing and below that we have files now this is going to show two different things firstly it'll show you any of your G-Code files that you've uploaded to octoprint to your octoprint server and you can upload them from here which we'll look at in a bit but you can see that even though we've only just installed this it's already showing a G-Code file here that's because this is showing the G-Code files on the SD card in my printer itself so anything you've got on the SD card in your printer itself will also show up here and you can access it via the octoprint server so we'll come to this in a bit before we move on let's go up and click the spanner settings button on the top here there's a lot of options in the settings tabs here but we won't go through a lot of these tabs for now as for many of you they won't be essential but I will be releasing videos looking into each of these in time for now click down to printer profiles this is the printer that we set up in the setup wizard but if you had your octoprint connected to multiple printers or you're going to switch it between printers you can click Add profile here and add more printers I won't take you through this now but it's the exact same process as we did in the setup wizard that is how you add them and then you can then jump between them in the connection window on the home page here you can choose your printer profile here so next let's go down to G-Code scripts you'll likely have already found that in your slicing software you can enter certain commands to be actioned before and after your print it's worth noting that you can also set commands like that here which will run before and after anything that's been set in your slicer so not only can you set things up that are going to run every time with every print but you can add additional stuff that's going to run if you're running via octoprint rather than straight from your printer itself now let's jump on to the webcam and time lapse tab cameras on octoprint are useful for a variety of things they can help you monitor your print whilst you're out of the room you can run and record time lapse and videos of your prints and you can use plugins such as obico previously called spaghetti detective which uses AI to monitor your print and if it detects a problem it will pause the print and send you a photo to your phone to check if you're ready to continue or you want to cancel the print anyway you've got a couple of options when it comes to using a camera you can use Raspberry Pi camera and connect it via the ribbon cable connector on the board or you can use a standard USB webcam here you can enable the webcam support where you can set a few different settings to adjust the camera and video settings it's also possible to have multiple webcams plugged in and running simultaneously but I'll cover that in a different and more specific video I'll also just quickly point out that in the plugin manager down here is where you can add deactivate and delete plugins you've installed which add functionality to octoprint I've posted a video previously going through some of the best plugins for octoprint but I will be doing an updated version soon it's worth noting that by flicking this switch here you can disable a plugin without uninstalling it so if you're troubleshooting you can find out if the problem is related to one of your plugins without having to completely uninstall and then reinstall it as I mentioned there's a lot of features in here but that's all we need to go through for now whilst we're getting you up and running so let's hit save okay so before we upload and start printing a file let's have a quick look at the user interface here so I've already been through the connection window and we're going to look at the state and files Windows in a minute so let's keep an eye on the right hand side here so the first tab here is temperature this is quite self-explanatory this is a chart that shows you the temperature of the various components of your printer so the red is relative to your tool or your hot end of your extruder and then the blue is relative to your print bed if you've got a heater print but that is so um you've got time along the bottom and temperature along the top so you can see how that changes the Bold color is the temperature it actually is at and The Faded more pastel version of those colors is the target so if you've just turned it on and it's heating up to 200 degrees it will show this color here as 200 degrees and then this color is going to slowly build up to that point as it heats up on the bottom them here you've got your actual temperature for each component so the temperature that currently is at then here you've got your target temperatures which are going to be relative to if it is receiving G-Code it will show the correct Target that the G-Code is requested for each here but you can actively change these on the fly if you need to so on that topic you've got the offset let's say you've created a G-Code for a file and it's all ready to go but you've decided to print it in a different filament that requires let's say 10 degree hotter to print it properly instead of having to re-slice it and recreate that G-Code you could just come into your offset and then create 10 degrees click save and now that means that any G-Code command it receives will be 10 degrees hotter than what has been requested so this is a relative change to all commands for that tool I'm not going to use that for now so I'll get rid of that but that's a really useful tool if you need to make on the Fly changes the next window is control so here you've got a few things this top bit here is obviously the webcam view if you don't have a webcam plugged in this will just be a black window but you can also if you've got multiple webcams you can change between which one you're viewing here underneath you have controls to actually move the printer itself so this button here and this button here are your homing buttons so this homes your x and y axis and this homes your z-axis the arrows are allowing you to move those axes in the direction you click and the number here is how far you move it per click so 10 is 10 millimeters 100 is 100 millimeters and so on so if we've got 10 millimeters select at the moment let's select 100 if we get the print bed to go back 100 millimeters there we go and then you could have the nozzle go up 10 millimeters and then to the right 20 there we go um next you've got the tool so this is if you want to extrude or retract the filament within there by a certain amount you'd set how much filament you want to retract or extrude click that button and then the motor is going to extrude or retract that filament then you've got General so you can turn off your Motors if it's been sitting there a long time it just helps reduce the strain on the motors and then you've got your fan on or off so you can turn off or on all your fans if you need to finally you've got your feed rate modifier and your flow rate modifier and these are much like the offsets on the temperature these allow you to modify the rate of feed and flow if you need to change those settings so next let's go to the G-Code viewer so here you're going to get a 2d drawing representing of the layer that is currently doing if you're in the middle of a print here you can change a few different settings that will affect how that looks the next step is terminal here is going to be a live feed of all the information being transferred between your printer and the Raspberry Pi and you can send manually written commands to your printer or octoprint and then finally we have time lapse so here is how you can run a time lapse with your webcam of your print I'm going to do a few full tutorial dedicated to time lapses with octoprint but a quick overview for now your time-lapse mode obviously you would want this on in one of these two modes so time is just taking a photo every let's say five seconds or 10 seconds on Zed change takes a photo every time it moves up a layer so this potentially could be a smoother time lapse because if your layers are vastly different sizes then this will mean that the speed at which your print progresses will be drastically different so I would usually go for on Zed change that will change the settings you've got here again I'm going to do a full tutorial on how to do time lapses both using the built-in time-lapse mode as well as using some really good octoprint time lapse plugins so for now I'll click that off and we can go back to temperature so to get something printed the first thing you're going to want to do is to upload G-Code so as I mentioned before there's technically already G-Code accessible here this is something that's sitting on the SD card inside the printer itself but I won't show you how to upload files to octoprint so if you come down here click upload and then I'll upload this which past my portal pumpkin design that I had a video of recently so that's uploading this to octoprint onto the octoprint server if I was to go upload to SD card that uploads it to the SD card within my printer and means that I can run that through my printer so if my printer has certain features that aren't going to be accessible by octoprint that's a way that I can action that okay so once that's uploaded you've got a few different options here I'll go through them quickly so you've got downloads so you can download your G-Code back to your computer from your octoprint server you can move this so if you were to create a folder say my designs you could then move this into the my designs folder so this is a good way of organizing it if you've got lots of G-Code on your octopi uh you've next got delete so this will just delete the G-Code from the server you've got load we'll look that in a second and you've got print so load and print does two things at once we'll just go load and what that does is it brings it up into our state window so you've got the file name uh the date and time that it was uploaded to octoprint who it was uploaded by obviously we're logged in as ourselves at the moment and then a couple of other details that aren't yet visible so the last stage is to click print if we were to click load and print down here it would do this all in one go and it would start printing so if we click print now and if we were to go into G-Code viewer yes please visualize regardless of size because it's a large file it's just warning me if I move up through it here I can now see each layer that it is going to draw as it prints so we'll come back to temperature you can see now the Target and the actual so the target for the uh the actual for the tool is 136 degrees which is here and then the target is up at 215 degrees so as I move this along you see this red line that's moving with me the number here and here is relative to where that line is intersecting with these lines here okay so all we can do now is we can obviously pause the print or we can completely cancel the print once it's finished running the G-Code that it was currently doing that is something that's worth bearing in mind is that to pause or cancel the print it's not going to be immediate it's going to finish doing its current job the current commands that it is sent and then it will cancel your print okay and so that is how to set up and start using octoprint and that's it that's how you get octoprint downloaded installed setup and printing on a Raspberry Pi I really recommend that you check out my video on recommended plugins for octoprint as it can really improve the user experience with this setup and also keep an eye out for my future videos like the updated plugins video as well as things like the time lapses in octoprint video which will be coming out very soon I'll pop the link in the description below to things like the Raspberry Pi fans webcams and other things that might be useful for this setup if you've got any questions pop them in the comments below otherwise don't let forget to like And subscribe and I'll see you guys next time thanks very much foreign [Music]
Info
Channel: 3D Revolution
Views: 8,263
Rating: undefined out of 5
Keywords: Octoprint, octopi, Raspberry, Pi, 3D printing, server, tutorial
Id: 1wEhpzeFJtQ
Channel Id: undefined
Length: 25min 17sec (1517 seconds)
Published: Fri Nov 04 2022
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.