Today we're gonna talk about how to install a optical sensor on the BigTreeTech
SKR Pro version 1.1 i need to point out a couple of things real quick first
of all we have our Endstops over here so to start with we have our x-min our
Y min are Z min our x max our y max our Z max inside here each one of
these shares the same type of pins so starting with the one on the far corner
that's our voltage then we have our ground then we have our signal
so let me point out on the optical sensor right here we have our voltage
our signal our ground so this takes a special type of cable
where
you can see that has a notch connector that fits in it and what I've done is
they traced out I'm a notched connector where
the colors or a spawn to each color though as you can see here we have our
red which is voltage we have our blank is signal and then we have our ground so
to connect this what we're going to do is we're going to connect first voltage
and we're going to connect our ground
and then we're finally gonna connect our signal
now in order to load this with firmware on the big tree tech SKR pro version 1.1
we need to use a micro SD card I'm going to remove this card from here from the
TF drive and place it inside the micro SD adapter I'm now going to place that
in a computer and you're gonna hear a beep okay to start with as we can see
the SD card is inserted in the computer and we have a file called firmware now
it thinks it's the form of the type cursor
when actually it's just our current firmware so what we're gonna do is we're
gonna go over to ATOM with PlatformIO loaded and I need to tell you a couple
of things first of all inside here we have the bugfix 2.0 X by Marlin that in
order to do this you need to download the Marlin - bug ix 2.0.X and then
unzip it after you've unzipped it you're gonna
have to go to file and open the folder for Marlin - bugfix - 2.0 X and you'll
have this now in order to actually load the firmware we're gonna go over to the
source folder the core folder and we're gonna open up boards.h inside boards.h
we're gonna do a search on SKR underscore Pro and the actual board
definition that we're looking for is board underscore BigTree underscore SKR
underscore Pro underscore v1 underscore 1 we're gonna copy that
then we're going to close that of boards.h
next we're going to go over to configuration.h and we're going to
do a search on motherboard
and what we have here is the current board definition that we're not using so
we're going to replace that with what we pasted over it here which is board
underscoreBigTree underscore SKR underscore Pro underscore v1 underscore
one next we're going to scroll up and for define serial underscore port 0
we're going to change the 0 to a negative 1
and then what we're gonna do is we're gonna do a search on Endstop
and what we have here currently is our endstops that we're using so we have the
x-min the Y min and the Z min but we can enable other ones if we so choose
like if we wanted a second
x-max or maybe Yi MAX or Z max by removing the comment so we're gonna do
the Z max probe over here even though we're using X minimum and down here we
have something for n stop pull-ups this will allow you to adjust or smooth out a
float point situation with the state of your endstop but I'll let you
experiment with that on your own and then down here we have inverting now
sometimes when we use an endstop what happens is the signal comes out the
opposite of what we want and in the case of the optical endstep we're not sure
if it's gonna be showing up as triggered or if it's gonna show up as open but
what we're gonna do is we're gonna change just this one endstop to true
and see what happens if it's incorrect on your own you can go back and change
it back to false but if it's true then you'll know what to do when it happens
so next thing that we need to do is configure our actual PlatformIO.ini
and inside here what you see is it says default key and these that's
default environment that's the board chipset that we would be working with
but the MEGAATMEG2560 is not our board's chipset we need to search on it
so it's SKR underscore Pro and as you can see it says BigTree underscore Pro
or excuse me BigTree underscore SKR underscore Pro we're gonna copy that and
then we're going to page up and we're gonna replace our default
environment rate here so we're gonna paste that now in order to compile we're
gonna click this check box and then save
okay now that the compilation has finished we're gonna go to PlatformIO
and then we're gonna go to toggle build panel and what we see right here is it
says one succeeded in almost three minutes but we're gonna scroll up here
and it looks like our board succeeded so we're good there so we're gonna toggle
the build panel and in order to load the firmware we
have to first find it so we're gonna go to .pio and we're gonna expand that
folder then we're gonna expand the build folder and then the BigTree folder
we're gonna right click on and we're gonna say show in Explorer
so we're gonna open it up over here and we're gonna go to the subfolder and
here's what we're looking for a firmware.bin but we're gonna right-click on
that and we're gonna say Send to SD card and then we're gonna click on the SD
card and sure enough it's there so we're gonna remove the microSD
adapter from the computer
okay now that we have the SD card removed from the computer we're gonna
take the TF card out of it and we're gonna place it inside the drive for the
big tree Tech SKR Pro and what we want to do is we want to make sure that we
have this pin and this pin jumped so that we can use five bolts and next what
we're going to do is we're going to insert the large side of the serial USB
into the connector here and then we're gonna take the other side and we're
gonna connect it to the computer and you're probably gonna hear a beep and
you notice the flashing in the center that's the loading of the firmware we're
in the Printrun directory for Pronterface so what we want to do is we
want to click on Pronterface to open up the executable connect the printer as
you can see the printer says that it's online so we're gonna type M119 for
the g-code to check the status of the endstops
and as you can see they all say triggered now the reason that the x-men
says triggered because it's connected is because earlier when we were in the
Marlin firmware we inverted the actual output so normally it would say open
without the changing the false to a true so what I'm gonna do now is I'm gonna
place a piece of paper between the endstop for the optical sensor now what's
the light
notice how it goes out so we've tripped the endstop let's press ENTER on M119
again and see what we get and now it says open
so if we remove the paper the light goes back on and when we type M119
press ENTER again it says triggered so if you liked my tutorial please press
the like button and subscribe and thank you for your time