OctoPi 2021: OctoPrint + Raspberry Pi! Super Simple Setup (Mac & Win)

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
hello 3d printing friends today on the bv 3d channel we'll learn how to set up a raspberry pi with octoprint using the pre-configured octopi sd card image stick around and we'll get into it right after this i'm brian and you are watching bv 3d hi welcome back hey if you're new here and you're wanting to learn about 3d printing 3d modeling and other 3d printing related stuff start now by subscribing and clicking the bell so you don't miss anything okay so today we're going to learn how to set up octopi that's the octoprint 3d printer management system running on a raspberry pi single board computer i was going to do a 2020 edition of the guide but then 2020 happened so that didn't happen instead you get my 2021 edition a few things have changed since my last guide both in octoprint and the software i used when going through the setup process so i wanted to make sure that this was up to date this video supersedes my previous octoprint setup videos so until i make one in 2022 use this one so a few introductions may be in order first i'd like to introduce you to the raspberry pi single board computer now these little machines have been around for a number of years now and i've been playing with them since about 2014 or 2015. they typically run a version of debbie and linux and they're pretty inexpensive for what you get now the one that i'll be using is the raspberry pi 4 model b and it's got an ethernet port and wi-fi and bluetooth on board along with four usb ports a couple of hdmi video ports and usbc input for power it's also got a bunch of gpio or general purpose input output pins on board and you could use these for controlling other electronics reading sensors and stuff like that kind of the same way you'd use an arduino although with the pi you can connect a keyboard and a screen and actually do all the programming and debugging right on the device with the arduino you write your code on a separate computer compile it and upload it and there are built-in ports for the raspberry pi camera and a touch screen as well camera and touchscreen sold separately actually a lot of things are sold separately because the raspberry pi is available as just the board and that keeps the cost down to the bare minimum but for what we're going to do with it well at a minimum you're going to need a power supply and a micro sd card now for convenience there are a number of companies selling raspberry pi bundles which include these things now i also want to introduce you to octoprint which of course is the star of this episode now this is also something that i've been using for years and i find it to be really useful octoprint is the work of the amazing gina hoyska it provides a web interface for your 3d printer it's fully open source provides remote control and monitoring of your printer from a web browser and has a plug-in interface so people can add to its functionality on your computer you'll slice models and save the g-code files as you normally would and then drag and drop the g-code onto octa-print in your web browser and start printing and if you're a prusa slicer user you can add the network address of your octoprint instance to a printer profile and send a print job to the printer right from within prusa slicer across your network without having to save the file and drag it somewhere like literally slice then print it's super convenient now the final introduction today is octopi managed by guy sheffer octopi is an sd card image that you flash onto the micro sd card that you're going to be using as your raspberry pi's storage it's got everything that octoprint needs in order to run all in one place and already configured now the recommended raspberry pi hardware is a pi 3b 3b plus or 4b you can use the raspberry pi on an ethernet network or a wi-fi network if you're using it on a wi-fi network there's a single text file to edit so that the pi knows the wi-fi network name and password so now that the introductions are out of the way here's what we're going to need so that we can get octopi installed on the micro sd card and get it connected to a wi-fi network and start using it to control a 3d printer first off we'll need a raspberry pi 3b 3b plus or 4b i'm using a 4b we'll also need a computer connected to the same network that the raspberry pi will be on i'm using my mac but you can use a windows pc we'll need a 32gb micro sd card and if necessary a micro sd card reader for your computer you'll need a 5 volt 3 amp power supply with a usb type-c connector which is the one recommended for a 4b you'll need a usb cable appropriate for the printer that you're going to control and the octopi pre-configured sd card image as of this video octopi 0.18 is on the verge of being released so i'm using release candidate 2. we'll also need software to flash the occupy image onto the micro sd card i'm using balina etcher which is available for mac and windows also good to have is a case to install the pi in most pi bundles include a case but i printed one that will snap onto the side of the printer and links for all of this stuff can be found down in the description so now that we've got all of the things that we need let's get octopi onto the sd card i've downloaded and installed molina etcher and i've downloaded the octopi sd card image i've also inserted the micro sd card into a card reader attached to my computer now just a quick warning before we proceed like most software balina etcher does what you tell it to even if that's not what you meant so pay particularly close attention when selecting the target drive because etcher is going to obliterate whatever's on it and replace it with the octopi image if you're not a hundred percent sure what you're doing it's probably a good idea to have a recent backup of your computer just in case actually it's always a good idea to have a recent backup but especially when doing things that can destroy data so here in bellina etcher i'll click flash from file and then i'll select the octa pi image file and click open then i'll click select target and i'll check the box to select the card it shows up here as generic mass storage class media with a size of 32 gigs now etcher hides other larger volumes from vue to try to prevent you from selecting your computer's hard drive be careful here and remember my warning okay with the card selected i'll click the select button then i'll click flash and etcher at least on the mac will ask for my password to proceed now it's doing this because we need admin level access to overwrite disks also of note you need to be doing this from an administrator account on the mac if your account is a standard account you won't be able to complete this step sadly etcher does not employ the usual macos method of asking for admin access which means it doesn't ask for an admin username to go along with the password it simply assumes you're an admin so having been supplied with the appropriate password etcher proceeds to flash the contents of the image file onto the microsd card when it's done it verifies that the contents of the card match the contents of the file and once etcher has done its thing it ejects the sd card which is unfortunate because there's a file that we need to edit to tell it how to connect to the wi-fi network so i'll remove the card and re-insert it into the reader and now it's mounted so now i can edit that file on mac os many people use its built-in text editor called textedit but this is specifically not recommended for editing configuration files because it can be more than just a plain text editor it can support multiple fonts and text styles which while nice to look at can completely ruin a configuration file i'll use it in a pinch but my preferred plain text editor is bb edit for basic editing it's free and i'll be using it in this video in the same way windows has word pad which also supports fonts and text styles and can kill a configuration file so in windows you can use the built-in notepad app to edit the configuration file or consider something like notepad plus plus okay so let's open up the card and then we can edit the octopi wpa supplicant text file and here it is in bb edit the section we need to edit is the wpa wpa2 secured section the first thing i'm going to do is remove the pound signs from the beginning of these four lines that uncomments them and makes them active in the configuration then on the ssid line inside the quotes that's where your wi-fi network name goes and on the psk line inside the quotes that's where your wi-fi password goes i'm not using my real password here obviously i'll change that when you're not looking that's all the changes we needed to make so now we can save this file quit bb edit or whichever text editor you're using and eject the card so now let's get the raspberry pi ready to go first i'll mount it in the case that i printed and it just snaps into place then i'll insert the micro sd card into the raspberry pi and it goes in with the contacts facing the board then i'll give the pi some power and wait a minute for it to boot okay now that it's booted we can connect to it with an ssh client and go through the security setup on the pi's operating system after that we'll be able to connect to octoprint with a web browser and go through its initial configuration so in mac os you'll use the terminal utility for this and in windows 10 you'll use the command prompt both mac os and windows 10 understand bonjour networking so we can connect to the address octopi.local and on both terminal in mac os and the command prompt in windows 10 we are literally using the exact same command and that's this ssh space pi at octopi.local that starts a secure connection to the raspberry pi and the very first time you connect to it this way you may see a security prompt and you can answer in the affirmative that you want this connection to proceed the pi at part of the command lets the raspberry pi know that we want to log in as the user named pi and that user's password is raspberry so type that in when prompted and press return okay now we're connected and we can start the initial configuration and to configure the raspberry pi we're going to use a utility called raspi config we need to do it as the super user though so we'll use sudo that's super user do like so sudo space raspi dash config and then we'll press return we'll need to provide the pi user's password again first things first let's go change the password to the pi user that's in system options and then password now pick something that you'll remember and then we can change the time zone and that's in localization and then time zone i'll scroll through and find chicago because i'm in central time in the united states and let's change the host name too this setting is in system options and then host name right now it's octopi but i like to set the name to match the printer that it's going to be associated with but it can only be letters digits and hyphens as long as the hyphens aren't the first or the last characters so i'll set this to ender 3. now once we save all this and reboot the pie it'll no longer exist at octopi.local and will instead exist at enter 3.local to save use the tab key to get down to the buttons at the bottom of the utility arrow over to finish and then press return and then confirm that you want to reboot and it'll take a minute or so to reboot okay now that it's rebooted we can connect to it with a web browser and go through octoprint's initial configuration so since i changed the hostname of the raspberry pi to ender3.local that's where i need to connect so i'll go to http colon slash into three dot local and now we're in the setup wizard on this first screen i'll click next octoprint wants to know if i want to restore from a backup now i don't have a backup of an octoprint instance that i want to restore so i'll just click next to go past this screen as for access control this is important now this step used to be optional but now it's required you have to set up a username and a password to log into your octoprint instance i'll set mine up now by filling in the username and the password that i want to use and then i'll click create account now i can click next to continue i'm perfectly happy to allow anonymous usage tracking of my octoprint instance so i'll enable it if you don't want to do this click disable and then click next now i always leave the connectivity check settings at their standard values so i'll scroll down to the bottom click enable connectivity check and then click next to proceed i also always enable plug-in blacklist processing so i'll click enable and then click next now it's time to set up the printer profile there are four tabs general print bed and build volume axes and hot end and extruder and we'll go through each one as you may have guessed i will be using this octoprint instance with an ender 3 so that's what i'm going to name the profile then i'll click the print bed tab here the default settings for the form factor origin and heated bed are correct so i'll scroll down to set the build volume for an ender 3 this is 220 by 220 by 250 millimeters with those set i'll scroll back up and click the axes tab i never change these and they've always worked correctly for me no matter what printer i've used so i'm going to keep these at the standard values now i'll click the hot end and extruder tab in here i'm going to keep this at 0.4 millimeters for the nozzle diameter and 1 for the number of extruders and then i can click next to proceed there's some useful information here basically telling you to never leave a printer unattended and never make your octoprint instance publicly available on the internet and of course a request to support the project if you find it useful i personally do find it useful so i support the project on patreon now i'll click finish to well to finish octoprint will then set itself up based on the choices that i made and then we're ready to connect it to a printer we're almost done the only thing left to do is connect a usb cable between the pi and the printer tell the pi to connect to the printer and send a file to print okay i've got the raspberry pi in its case mounted above the power supply and the pi and the printer are both powered up so i'll plug in a usb cable into an available port on the pi and then plug the other end into the printer's usb port with both devices connected we can tell octoprint to connect to the printer now since i want octoprint to connect to the printer or attempt to every time it starts up i'm going to check the auto connect box first and then i'm going to click connect and just like that the two things are talking to each other in this section here there are tabs for temperature control g-code viewer terminal and time-lapse temperature shows you a nice graph of your printer's temperatures and also allows you to adjust them even during a print you can set the temperature for both the hot end and the bed here control is where if you had a webcam attached to the pi you could see what it was looking at but you also have the ability to move the x y and z axes around or extrude some filament or turn the parts cooling fan on or off gcode viewer shows you the progress of the layer that's currently being printed terminal shows you the status information that's being emitted by the firmware now this is where information for the temperature graph comes from for example you can stop showing certain things in the terminal with these check boxes down here and you can type g-code commands directly to the printer and see the responses this is handy for things like tuning e-steps or pid tuning or any other situation where you'd want to send commands and get status responses and finally the time lapse tab has controls for taking time lapse videos this is the built-in time lapse software and it's pretty basic but it does record time-lapse videos of your print there's a much nicer time-lapse plug-in called octolapse which has a ton of controls and you can set it to take one frame per layer instead of one frame every few seconds like this one does okay down here on the lower left there's a file list now right now it's showing me files on the printer's micro sd card i usually set it to show me only the files that i've uploaded to octoprint and i do that with the little wrench icon here i set it to only show files stored locally i guess at this point all that's left to do is upload a g-code file and start it printing i happen to have a g-code file right here it's just an xyz cube but it'll do the process of printing a gcode file is literally just drag drop and print once i click print octoprint takes over and starts printing the file and that's all there is to it now you can see the target temperatures being set on the graph and you can see the actual temperatures on their way to meet them once the printer is up to temperature the file starts printing and then after about a half an hour the print is done now you can see interesting stats about the print such as when you uploaded it to octoprint how much filament it used how long it took to print and the size of the file so that's how to set up octoprint on a raspberry pi using the octopi sd card image it's as close to plug and play as you can get without having someone set it up for you the only things you have to tell it are your wi-fi network name and its password and once you can connect to your new octoprint instance you take care of the necessary security settings and then answer a few questions to get octoprint set up for your printer octoprint also has a big plug-in repository which makes it easy to extend the functionality and of course octoprint is free the raspberry pi isn't but octoprint is i mean if you didn't want to use a raspberry pi but you had an old computer sitting around there are instructions on the site for installing and configuring octoprint on mac os windows and linux it's just a lot more involved if time is money the octopi plus raspberry pi route is in my opinion the most cost effective now if you do end up installing and using octoprint consider supporting the project there's a link in the description to all the various ways you can help support octoprint well 3d printing friends that's about all the time we have for this episode and now that we're at the end let's go octoprint something cool hey real quick before you go i wanted to say thanks for being one of the super awesome people who sticks around all the way to the end thanks for all the likes comments and shares and an especially big thanks to those who directly support what i do you're all wonderful for doing that and i really appreciate it if you liked this episode a thumbs up would be great and if you'd like to help support the channel check the description for ways you can do exactly that please check out some of my other videos and hey if you haven't already subscribed please do it's absolutely free and it's an excellent way to help keep me making these videos for you well that's it for this one thanks again and i'll see you next time here on the bv 3d channel
Info
Channel: BV3D: Bryan Vines
Views: 66,087
Rating: undefined out of 5
Keywords: 3D Printing, 3D Printing Friends, raspberry pi 4, raspberry pi 4 projects, raspberry pi 4 setup, octoprint raspberry pi 4, octoprint ender 3, octoprint setup
Id: 7JDWHatFENQ
Channel Id: undefined
Length: 20min 32sec (1232 seconds)
Published: Mon Jan 25 2021
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.