Today we're gonna talk about how to install a simple switch on the SKR
version 1.4 now keep in mind this only has two connectors it has a red one and
a black one now the red one's somewhat deceiving it's not actually voltage in
this case it is actually for the signal pin and the black will be for ground so
let me review what our end stops are starting with our x minimum right here
then our X or scuse me our Y minimum then our Z minimum and inside these pins
they're set up as our 5 volt pin is on top right here then we have our middle
pin which is ground and then the bottom pin in this connector is the signal in
you're concerned only with the ground pin and this signal pin so I'm going to
show you the connector here real quick then I'm gonna rotate it and I'm gonna
bring it in to the X minimum and place it on those 2 pins so as you can see
it's on the ground pin and the signal pin
so what we need to do to program this is we need to connect the big side of our
USB serial cable right here who are bored and the small side to our computer
you may hear a beep and right now it's not powering so I'm
gonna disconnect this right here for a moment and I'm going to change the
jumper pin so that we actually have power going in five volts so what you're
gonna do is basically pop off the pin and the bottom two pins in that row are
four five volt connections via the USB cable so I'm going to reconnect the big
side to the board and as you can see it's now powered but once again I want
to review the actual pins with you just to make it clear we have our X and stop
right here which has 5 volts ground and then a signal pin the same goes for our
Y minimum and our Z minimum as well for 5 volts ground and signal but what we
need to do is go over to our web browser for a moment and type Marlin
FW.org and press ENTER then go to the download tab and as you can see there
are several different builds here we can only use the one for 32-bit which would
be the 2.0 version and so what I'm gonna do is use the nightly bug fix by
clicking right here so this is gonna download
and while this is downloading what we're gonna do is first go to the folder to
see where it is which is in our downloads folder and right click and
click on extract all and now we're going to press the extract button
so what this is doing is extracting our build
so let me explain that no one is paying me or sponsoring me to do this tutorial
and I purchased all the equipment with my own money but I will be placing
Amazon affiliate links in the description for your convenience
so once this finishes downloading what we're gonna need to do is go over to VS
Code and VScode as a plugin for PlatformIO which allows us to set up
our environment so it's almost there so I'm going to move over to visual studios
in a second and open it up
so inside VScode what we have is our environment as it hopefully will be
configured and what we need to do is go over to our source folder
then our core folder then boards dot H inside boards that H what we need to do
is we need to search on the SKR so we're gonna do a control+f type SKR
underscore one four and see if we can find it
so what we have here is actually our board which is the BigTreeTech SKR
version 1.4 now keep in mind that there are two versions of this board there's
the regular board that they supply and there's a turbo version the difference
between the two is that the processors are different so in this case what we
need to do is search on this one so we're gonna copy it for now and I'm
gonna show you where the other one is located it's actually down here if you
were using the turbo version you'd copy this instead so what I'm gonna do now is
I'm actually gonna close out of this folder close out of boards dot H and go
to configuration dot H inside configuration dot H I'm going to go to
the top of the file
and I'm gonna do a search on motherboard
and as you can see the current board specified is board underscore RAMPS
underscore 1_4 so what we're gonna do is we're going to right click and paste
what we just copied then we're gonna scroll up and we're gonna change the
serial port to negative 1 and then I'm going to show you the endstops
so I'm going to do a control+F and search on end stop is one word and as
you can see it specifies what to use for the X minimum the Y minimum and the Z
minimum keep that in mind because that's what's specified for the board currently
with the pinouts so we can't really use these maximums
unless we make some changes to our pins file so we're gonna skip talking about
that because it's not relevant at the moment and then endstop pull-ups because
we're using a simple switch and stop that creates a circuit we do not need to
worry about pull-ups because there's no capacitor or resistors on the board the
same goes for the end stop pulldown but down here sometimes you may need to
change the logic of your endstop for instance if we're checking to see what
the status of the endstop is in Pronterface with the G code M 119
if it says for instance when we do that that it's triggered but we want it to be
open we would change the false who would true to reverse the logic but seeing how
we don't have to worry about that for this endstop I'm gonna go directly to
PlatformIO.ini and we need to set up our default environment right now
except for the MEGA2560 chipset but we need to change that to our chipset so
we're gonna do a search on SKR underscore one four you can see if we can
find it apparently we can so we're gonna scroll
down through the file and see what we can find
so
may take a moment
so apparently we're not finding it very quick here but I know a shortcut so I'm
gonna go over to Source
then I'm gonna go to Core and I'm going to find the pins folder now I know it's
a unique board chipset so I'm gonna search through each one of these now
obviously it's not here so we're gonna go up and look at the LPC1769 and as
you can see there is no board here as well so what we're gonna do next is go
to the LPC1768 and as you can see they have a big tree
tech SKR v 1.4 so we know it's gonna be the LPC1768 for the chipset we're gonna
scroll up and we're gonna go to the MEGA2560 and change that to capital LPC1768
and that's our chipset so we can search on that just to confirm by
copying it and then doing a control app and seeing where it is and so it's
saying that our we have an ARM Cortex let's see if there's any other instances
so apparently we can't confirm much that's okay but we know it's in this
folder so we're all good but what we need to do next is we need to build this
now there's a couple of ways to build this one you can click on the check box
which will then build or compile your source code changes but in this case we
can connect to it via the USB so we're gonna click the upload button which will
build or compile for us then upload directly to our board we're gonna click
on that and this may take a few moments
okay now that the build is completed we can check on it to see if it's
successful which it appears to be well that's good now the other thing we can
do is we can go over to our micro SD Drive that shows up via the USB
connection for serial and you can see that the old version is 2.8 or the 8th
of February and then the new version that we just compiled being firmware dot
bin for the binary is today on the first so in order to load this what we need to
do is we need to remove the USB connection and to do that what I'm gonna
do is I'm gonna take out the actual connection for USB so it disappears and
then I'm going to reconnect in order to allow it to load this may take a second
but it'll pop back up and we'll know if it's successful because now it's updated
just firmware so now that we actually want to test it
what we need to do is open up Pronterface
so I'm gonna go over to my desktop in my Printrun directory and click on
Pronterface inside Pronterface I'm gonna connect who the SKR version 1.4 as
you can see it's said connecting and now it says printer is now online so I'm
gonna type M119 and press enter as you can see the X minimum says open so to
test this what we're gonna do is we're going to actually actuate it with my
finger and press ENTER again on the send command and as you can see it now says
triggered there now I'm gonna let my finger go and I'm going to type M119
again and press ENTER and it says open so if you liked my tutorial please press
the like button and subscribe and thank you for your time