BTT SKR2 -Klipper Firmware Install

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
Today we're going to talk about how to install  Klipper on the BigTreeTech SKR version 2. for   those that don't know Klipper is a slim down  firmware that takes process commands from   the Raspberry Pi with Klipper installed  on it in order to process them faster   so I'm going to show you how to install  this so I'm going to take this out   and prep it right now because we're going to need  the drive here to image so I'm going to put this   in our USB reader for our SD card and place  this in the computer so you may hear a beep   then I'm going to go over to my desktop and on  my desktop the directions for the installation   entails that we install OctoPi so I'm going  to click over here and I'm going to click   on code download this will download it to  my computer where I'll need to extract it   but for now what we're going to do is we're  actually going to set up the imaging of it   so I'm going to go over to Raspberry Pi  imager and I'm going to click on choose OS   use custom then I'm going to use the image  file that I extracted from the download   and click open then I'm going to choose the  storage device which is the SD card then I'm   going to say write and yes this will overwrite it  for us in a few moments pick back up after this   completes and do the rest of the install okay now  that it's completed I'm going to click continue   I'm going to close out of this and then I'm going  to click back so now that we've got that step done   we actually have to configure the Raspberry  Pi so in order to do this we need to go over   to our workbench for a second pop out the drive  and the reason that we do that is so that the   computer will be able to see it again so I'm going  to plug it back in go back over to the desktop I'm   then going to go to my e drive and on the e drive  what we're going to need to do is find the OctoPi   dash WPA supplicant.txt we're going to right  click and we're going to say open with Notepad++   or edit with notepad plus plus then we're  going to scroll down and because I am using a   router in this case for wi-fi I'm going to find  mine right here which is using WPA and WPA2   and I'm going to remove the comments in order to  use this then what I'll do is I'll actually plug   in the name of my router and then the password  to log into it via wi-fi for the Raspberry Pi   so I'm going to close out of this for a  second because I've already done it off camera   and I'm going to just grab it from  my downloads folder where I placed it   and then I'll paste it over this this way we  avoid you seeing my password so I'll replace that   then I'll go back over to my  workbench I'll pop out the drive   I'll then take the drive out flip this over and  then I'll put the drive in here and then what   we'll do is we have to power this so I have  to grab the power cord so I can show you this   so the power cord is the one that comes with  the kit for the Raspberry Pi so it'll plug in   right here and then I can place it on the desk  now it has a power switch which is kind of nice   so I'm just going to turn that on so this  may take a few moments to actually boot up   so while it's booting up I'll show you a  little trick that you can do to actually locate   your particular raspberry pi on your network this  may not always work so I'm going to go over to the   command prompt and at the command prompt I'm going  to type a r p space minus a and what that says is   "arp -a", or all and that means that  anything on the wi-fi network that appears   will show up so if this appears on the network it  will have an IP address so we'll do it real quick   and as you can see right now there's only  two addresses that I'm concerned with   and that's the 1.1 and 1.2 1.1 is the router  and 1.2 is the computer I'm currently on so   we'll give this a moment more to actually show  up and then we'll arp again so this should only   take about a minute or two to actually appear on  the network if it does not appear on the network   then what you can do is log into your router  which is going to be in this case 192.168.1.1 and you'll look for connected devices if it  shows up in there then what you can do is you   can actually ping the device from the command line  so let's try this real quick so in this case I am   not seeing it so either it hasn't shown up yet or  there's an issue with the router I've just noticed   this after my windows update so I'm going to  ping one of two addresses that I think it may be   because I don't want to actually show  you connected devices on my router I'm   just going to guess this way so  I'm going to do ping 192.168.1.5 and hit enter and I'm getting a  reply back so that means there's   something on the network we're not  seeing so I'm going to arp again   and in this case it now shows up this is  something new that started occurring in windows   um as of this week so I wanted to show you  that little trick just in case this doesn't   work right away but the easiest way is to go  to your router and look for connected devices   so what we're going to do next  is we're going to close out of   the command line for a second we're going to  open up a new browser window and type 192.168.1.5 and press enter this may take a second to actually  load but we're going to have to actually configure   the Octopi or Octoprint now so I'm going to  click next I'm going to click next on restore   backup because we're not doing that right  now we're going to give it a username of pi and then we're going to give  it a password of raspberry   very that's r a s p b e r r y and  then we're going to create an account now apparently I didn't match the password  so I'll try that again r a s p b e   r r y and it looks like this password is  incorrect so we'll do r-a-s-p-b-e-r-r-y and now we fixed it so we'll create the account   we'll click close there never save in my case then  I'm going to go next I'm going to enable anonymous   uh usage tracking for the moment  but most people disable it   then I'm going to go next then down here I'm going  to test the name resolution I'm going to enable   connectivity check and then I'm going to go next   I'm going to disable blacklisted processing or  enable it in this case I'm going to enable it   then I'll go next and then for the default name  I'm going to call it clipper for convenience   then I'll click next and finish now they do warn  you to always monitor your printer when printing   to avoid bad situations like fires and I also  suggest that as well so now that it's done we   need to do a quick update so I'm going to click  on the wrench over here then I'm going to go to   software update I'm going to say update all then  proceed the reason that I'm doing this is because   the clipper functionality will initially not  show up if you don't do this step and we're   going to have to install a clipper plug-in on  the actual raspberry pi for OctoPrint first and   then there's going to be another one that we do in  the command line which I'll show you in a moment   so as soon as this finishes it's going to ask us  to update so what we can do after it's finished is   attempt to reconnect this may  take a second we'll reload now and then what we'll do is we'll  actually go over to the wrench   again and see if we can load the Klipper plug-in  so click on the wrench then you're going to go to plug-in manager get more then  you're going to type clipper   and then you're going to say octo clipper  install this may take a moment as well   it's probably about a minute depending upon  your connection and then it's going to say   restart now and then you'll proceed so  this may take a second to come back up so as soon as we can reconnect we're  gonna actually go over the command line   and actually finish this up so over  on the command line after this reloads what we're going to look for is  the following in the directions   we're going to have to check one thing real  quick and that is over here so they say to first do a get so the get is  actually known as like a get   so you're going to a website and you're going  to get the clone from this webpage address   so we're going to copy this and then we're  going to actually open up a command line   so to open the command line you're going to  click on file new inside here it's 192.168.1.5 our port is going to be 22 and then we're going  to use SSH which is Secure Shell it's not telnet   that means that it's a ciphered communication  so I'll click ok then I'll say continue   then the username obviously is  pi and the password is raspberry then enter and it brings up the environment so  I'm going to right click I'm going to hit enter   this isn't a term by the way I'll leave a link  in the description while this downloads it may   be a second or two okay it looks like it's done  now it does tell us to do as our next step this   but I do not suggest that because there's one  step in between that you'll need to do that   they've left out and what I'll do is I'll show  you that right now so apparently what we got to   do is a pseudo app get so it means that you're the  super user in this case it's a modified super user   for the account holder so we're gonna say sudo  application update so we'll hit enter this may   take a minute so it's gonna probably prompt us for  a password which is raspberry we'll press enter   this will take about a minute and a half maybe  less depending upon your connection we'll say yes and then we'll do the next command in Klippers'   installation so this should  be done in a few moments there we go so we'll go over to Klipper we'll  grab the shell command now and a shell command   is a script so this is the actual script  right here it's in this directory of scripts   under the Klipper directory and when you  execute a shell script you have to have the dot   forward slash right here so we're just going  to copy this command this may take upwards   on your computer between 5 minutes and 25 minutes  depending upon your connection and processor speed   in my case if this does take too long I will edit  this down so that it appears to be faster just for   your convenience but we'll give it a minute or so  to see what happens and then we'll go from there so what's actually happening is it's  going out to a website and grabbing   information that it will  need to do an installation so this looks like a series of gets to a degree   okay in this case it appears there may have been  a slight failure on the last command right here   so we can either proceed with it or without it but  what I do to get around this is do a second run of   the script this may solve the problem or you may  have to do another apt get for app get update but   we'll see if this resolves it if not then we'll  do the command that it's suggesting right here to actually take care of the problem okay it  looks like it completed so what we have to do next   is actually go back over the directions and  we're going to use the next set of commands   right here which is cd then it's got a little  wavy symbol here that's a shortcut for not   writing everything out basically and then it says  go to the clipper directory then the other one   is a command that says make menu config so this  will be a configuration menu so I'm going to copy   both of these go back over to TeraTerm I'm  actually going to clean this up so you can see   the screen better and I'm going to right click  it'll ask me if I want to do both commands   which is okay the second one won't execute  because there's no line feed carriage return   so we can press enter this will bring us into  the menu to configure so we'll hit spacebar   then we'll down arrow right arrow then down  arrow to our chipset in this case it's an STM32   microprocessor so we'll hit the space bar  then we have to down arrow again and then   we need to right arrow and we have to pick our  processor in this case our processor is the STM32 and there's a couple of ways I'll show you  later on to figure that out one is through   Marlin another one is actually through their page  so I'll show you that real quick so on the web   page I actually have another tab open that has  the actual configuration so I'll click on that   and inside here what you'll see is that it says  STM32 for the configuration this can also be found   in marlin under the boards.h file if you search on  the SKR so let's go back over and finish this up   so we don't have to worry about clock speed  that should be automatic we shouldn't have   to worry about these because we're going to be  using actual USB for our communication so it's   already defaulted to the right place so all we  have to do is press q and then yes to save so now   to make this or build it we have to type, "make"  and then press enter which is a series of compiles   that is doing our build and once this completes  we'll have to go over to something called   Filezilla and pull this off for our firmware but  it's going to be Klipper dot bin not firmware dot   bin and I'll show you how to handle that so first  things first let's go back over to the desktop   so on the workbench that I have over here we're  gonna pop out the actual drive for the SD card   we're going to place it inside of here and  then place this inside the computer again   then we'll go back over to my computer desktop   I'll open up Filezilla and the host name  in this case is going to be 192.168.1.5 the username is going to be pi the  password is going to be raspberry and the port is going to be 22 like we did  before so we'll do a quick connect we'll click ok   then we'll click on the Klipper folder  then we'll click on the out folder   and then we'll pull the Klipper.bin over  to our downloads folder on the other side   now we can go to our computer we  can click on downloads and you see   Klipper.bin so we'll right click on  that we'll rename this to firmware and then press enter because the bin is already  there now we also have to look at the e drive for   a second and as you can see there's a firmware  dot cur this is a previous Marlin firmware load   so if you want to save it what you can do is I  usually like to rename it so we'll say old version   and we'll call it dot temp that way if we want to use it again or reload  it we'll just rename it to firmware dot bin   so let's go back over to our downloads folder for  a second we'll right click on firmware.bin and   we'll send it to our boot drive so now that's  on there we'll go back over to the computer   desktop for my computer being this and plug in  the SD drive now the power needs to be set to   USB power for the moment when you're running  it you'll set it on direct power so a quick   way to check that is plug this in and see if it  lights up if it doesn't light up then you know   you have your jumper in the wrong place so you  just move it over to the next two set of pins   and in theory it should power the board  hang on oh I know why it's not working   the other end's not plugged in so let me  plug this in this apparently is not powered   so we're in the right spot in the first place so  we'll plug that there and now the firmware will   load so as soon as this completes what we're going  to do is we're actually going to go back over to   our desktop on the computer we'll then go to our  tera term session and we'll use the command that   we used over here that they suggest to find  the actual com port so I'm going to copy that   then I'm going to go back to TeraTerm right click  press enter and there is our USB so we'll need   this later for now we're good what we do have to  do next is actually copy over our configuration   and so I'll show you what they suggest and then  I'll show you the command I use so down here   what they're talking about is where your  drive is but there's a little bit further down   they talk about copying your config over now  this is a generic config that they're talking   about for an example of a cartesian printer we  actually know what ours is called so we just   have to replace this name with our Klipper  name for our config file so we need to find   the generic version of the SKR version 2 which is  right here and then paste that in as our command   so I'm going to do that for you in just a second  let me just pull it up I have it here in my notes so this is what the commands going to look like  when you actually use it on this particular board   so it's generic dash BigTreeTech dash SKR  dash 2 config and it will be renamed to   printer dot config when it gets to the directory  that it's currently in so I'm going to press enter   and I'll show you an ls if it is here which it's  not it's actually one directory above us so I'll   do change directory which is cd dot dot and this  will take us up one level then I'll do ls which   is a listing of the directory and you can see  printer.config now if you want to see what the   contents of that are you can say cat printer and  hit tab and it'll auto complete then press enter   and these are the contents of your current file  so I'll go through a little bit of this real quick   over here they're talking about a pin on your  board and the exclamation point is actually a   negation of the logic or the opposite so if it's  true it becomes false if it's false it becomes   true if you see a carrot symbol that usually has  to do with a resistor in this case if you're using   a particular type it will smooth out the actual  signal by either doing a pull up or a pull down   that's what that symbol is for and then there's  probably other symbols that I may not know but   they talk about all the different configurations  in here and they also show you samples of how   to use the TMC2209 for your x-stepper your  y-stepper your z-stepper and your extruders   so keep this in mind because you're gonna have to  either replace that section up here if you use it   but for now um it's commented out  with a hash mark in front of it   and I'm just trying to show you a basic  setup configuration so let's go back over to   our web browser for a second because I'm going  to show you a shortcut in case we need to do   something if your configuration doesn't copy over  you can always do a copy in here so there's a   copy raw contents which will grab all these  but let's see what we get in OctoPrint now I   know it's not going to work the first time  through so I'll show you what's happening   when we try and connect there's an error and  there's a Klipper tab now over here and it   says that there's a bunch of things wrong  now there's a couple reasons why you get   these messages which I'll show you now so if I go  over to the workbench I have to make some changes   but before I actually do that I have to power  this down and I'm probably gonna have to bring up   the actual configuration that you see over here  for big tree text so I'll click on repositories then I'll type SKR space and find the 2 version  then I'm going to go to hardware and I want to   find the pins file and the reason I want to find  this is so that I know where the pins are located   so what we're interested in is the thermal  bed and the first extruder and then we have   to do the minimum end stops being x y and z now  note the actual voltages ground and pin this is   your signal pin right here and it's the same  for all of these you'll see that it's 5 volts   ground and then your signal pin so I'm going to  show you how to set that up real quick this is   just an example configuration so over here  I've got a test thermistor it's basically a   glass bead that's used to tell temperature  so we're going to go to the very first   thermistor and plug that in so it's  right over here this is for the heat bed   so I'm going to plug that in so I have that  in there then I'm going to do the actual first   extruder because the second one is actually  disabled by default so I'll place that over   here now we gotta actually put in end stops so we  have one type of end stop that's a switch end stop   and what this is is it's ground and signal  in this case red in this case is not voltage   then we have another type of actual end stop this  is the one where that little carrot symbol was   for the resistor pull-ups that are down in here  so this actually has three colors it's gonna be   on the top you see green then black then red  so it's signal ground voltage so we're gonna   do that for the x stepper so to do that we need  to plug it in over here so the top one is voltage   the middle one is ground and the bottom one is  signal so on the other stepper that we're going   to use we're going to do a similar thing to that  let me just see if I can position this better I'm going to actually take this and in  this case it's the bottom two pins so   ground and signal on the bottom so the top pin is blank and that's the voltage pin   and that will be for our next stepper  or excuse me our next endstop and then   we have to do it for our very third one or  last one then we'll plug it in over here so   now that that's all set I'm just going to move  that over to the side and I'm going to plug this   back in now what we're going to have to do is  we're actually going to have to power down the   system so that these changes take effect so I'm  turning off the raspberry pi now I'm turning it   back on and so this will reboot in a moment so  let's go over to the desktop for OctoPrint and see   if we can get into it in just a moment this may  take a second to boot but that should take care of   the majority of issues that you will experience if  in fact it doesn't and you have a misaligned pin   you can always do the open Klipper configuration  and then compare your pins to what's in the file   so what I mean by that is you have obviously  pins throughout this board see PE3 PE2 PE1   these are all signal pins and these pins  are associated with different things such as   down here for your thermal bed you have ground  and then you have a in this case an analog pin   and you have an analog pin here for PA those are  used for temperature so they're slightly different   but the other ones are digital pins which would  like be PC0 so let's go back over here and do   a reload to make sure it comes up then we'll  try connect and it says printer is not ready   Klipper host attempted to connect please  retry in a few moments so let's try restart so it's saying shutdown  there's an underlying issue   so in this case let's try  restarting the actual firmware here so we'll proceed hopefully this will work or we're gonna have to check for underlying issues now this is obviously a very long tutorial  and set up for both myself and you   but my Patrons requested that I do this so the  reason it's not connecting actually is this   when you click on open config and you go down here  you can see that the current path that we were   going to use is incorrect so I'm going to click  on TeraTerm reopen it for you in just a second and we'll fix that problem so we'll go file  new it's still set to what we used it before as   we'll click continue then  we'll type pi then raspberry   then enter then we have to go back and do that  command that it told us to do over here which is to find our serial port so we'll copy  that we'll go back here we'll paste it   we'll press enter we'll then  copy this command right here   this is actually a path we'll go back over  to Raspberry Pi or Octopi and this is where   it gets a little weird I had trouble because  if I click on open Klipper config it works   but when I save it it doesn't so I do open clipper  config on this side and then do it so this is   under the MCU section so you're going to highlight  the part where it's all the way up to dev   and you're going to paste then I'm going to put a  colon back in here in space so it looks right then   I'll click save now I may have to do a reboot  if this doesn't work but let's try connecting   so we still have an issue so let's  click on reboot system proceed   I'm going to disconnect on the desktop  if possible the actual power to the   printer board for the SKR2 but in  this case I don't think I need to   so what I'm going to do now is attempt to  reconnect which probably won't work for a   minute or so and as soon as this comes back  up hopefully we'll have a better connection or   it didn't save what we did in which case we'll  have to log back into terror term and then   place that change back in there but there's  multiple ways to do it they say to do it nano   which is down here there's actually a nano editor  it's a little hard for most people to use that   aren't familiar with it so I'm not going to tell  you too much about that it's probably easier to   do it in OctoPrint so let's try connecting so  now it's working so if you like my tutorial   please press the like button and subscribe and  for all of my patrons and people that have been   donating on PayPal that have been supporting me  I will place a thank you at the end of the video   so please remember to like and  subscribe and thank you very much you
Info
Channel: Ed's 3d Tech
Views: 2,836
Rating: undefined out of 5
Keywords: Klipper, Installing Klipper, Klipper on SKR v2, Klipper on SKR v2.0, Klipper on SKR2, Klipper on BTT SKR2 How to install Klipper on SKR2, Configuring SKR2 with Klipper, SKR 2, BTT SKR 2, SKR v2, BTT SKR v2, BigTreeTech SKR 2, BigTreeTech SKR v2, Big Tree Tech SKR 2, Big Tree Tech SKR v2, Big Tree Tech SKR 2.0, Big Tree Tech SKR v2.0, BTT SKR2, BigTreeTech SKR2, Big Tree Tech SKR2
Id: asorUZrFYE0
Channel Id: undefined
Length: 34min 26sec (2066 seconds)
Published: Sat Sep 25 2021
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.