today we're gonna talk about the basic Endstop switch with two wires I'm gonna
show you how to connect this today on the big tree tech SKR pro version 1.1
now what you need to keep in mind is that we have three Endstop switches on
this board we have our X minimum right here we have our Y minimum and then we
have our Z minimum inside these pins there's a couple of different things
that you need to know starting with you have your 3.3 volt pin
right here for your X minimum in the center or ground you have your ground
pin and then at the very bottom you have your signal pin so when connecting a
switch Endstop such as this with two wires what you want to connect to is the
ground and signal pins so I'm going to show you how to do this real quick
now if you're looking at the wires what you can see right here is a red and a
black we're gonna use the red for the signal so we're gonna connect the black
to the center pin and the other one to the ground or our Endstop switch right
here that will function like so now keep in mind that no one is paying
me or sponsoring me to do this tutorial and I purchased all of the equipment
with my own money but I will be placing Amazon affiliate links in the
description for your convenience so what we need to do to program this is remove
the TF drive or microSD and then we need to connect this into our adapter for our S
disk or Sand discs and this is our SD adapter now we're gonna need to connect
this to the computer and you may hear a beep okay to start with I want to
refresh yet again on the pins as you can see these are our Endstops right here
on the pinout diagram we have X minimum Y minimum and Z minimum all three have
3.3 volts for the top pin which would be up here on the actual board the center
pin is ground in the bottom pin our signal pins
so what I want to show you now is actually how to set up your environment
so the first thing that we're gonna do is we're gonna go to Marlin firmware
that's Marlinfw.org and press ENTER and we're gonna go to the download section
now the build that we're gonna use is not this one this is the latest 2.0 build
we're gonna use the nightly build because it's the most current so what
I'm going to do is I'm gonna download the zip and while that's downloading
what I'm gonna do is I'm gonna show you a little bit about the resources that
are available because we have reporting issues this means reporting bugs but you
can also ask questions here so I'm going to click on it and I'm going to show you
that down here as you can see there are current bugs that were recently opened
you can read through these or you can search for instance if you're looking
for the TMC 2209 which I haven't done a tutorial on yet you can search for
issues so down here you can see that there's a
bunch of different issues that regard the TMC 2209 with different hardware
configurations keep that in mind because you can also pose questions here that
maybe I have not covered yet in a tutorial
so what we're gonna do next is we're gonna go to the folder for our downloads
and we're gonna right click and we're gonna extract so what I'm gonna do is
click the extract button over here and while this is extracting let me let you
know that I no longer use ATOM for the integrated development environment
because it no longer is supported by PlatformIO for a plugin who I will be
using VScode with PlatformIO as a plugin now keep in mind that I've done
tutorials for my SKR version 1.4 showing how to install this so I'm probably not
gonna do another one for a while so now this is finished unzipping I'm
gonna type VS four VScode and I'm gonna open up VS-
code an inside VScode what we need to do is we need to set up our environment
so inside your source folder you're going to expand out your source then
your core then you're gonna click on board.h
inside here you're gonna search on SKR underscore Pro but seeing how I already
have it up right here I'm just going to highlight it and copy it
then I'm gonna close out of board.h I'm gonna minimize the core folder in
the source folder and I'm gonna go to configuration dot H inside configuration
dot H I'm gonna do a search on motherboard and as you can see the
current chipset is board underscore RAMPS underscore one four underscore EFB
so I'm gonna paste what we just copied being on our board then I'm going to
scroll up and change our serial port from 0 to negative 1 and now we're gonna
take a look at the Endstop so I'm going to do a search on Endstop is one word
and as you can see the minimum and steps are enabled by
default in the firmware and the maximums are not now in this case we're using
minimum so I'm not gonna go into talking about
the maximum Endstops for this tutorial because it's out of scope and I'm not
gonna talk about and stop pull-ups because there's no resistor or capacitor
on these Endstops they're just simple switches that cause connections but
we're also not going to do pull-downs but down here we have logic that we can
use for inverting so for instance if you click on your Endstop and then in
Pronterface you check the status of your unstop with the M119 command of the
g-code what you'll probably see is true in some instances you may see something
not what you're looking for so to change the logic you can change the false who
it true and flip the logic from triggered to open but in this case we
don't need to so I'm going to leave it alone
next we need to go to pPatformIO.ini and as you can see our default
environment is the MEGA2560 which is not our chipset so we're gonna search on
it by doing a control+F and we're gonna search on SKR underscore Pro
and here's our chipset which is BigTree underscore SKR underscore Pro so
we're going to copy that then we're going to scroll back to the
top and we're gonna highlight our default environment for the MEGA2560
and paste over it now to compile unfortunately we cannot do a direct
upload which is a combination of build and upload because it doesn't work in
this configuration as it currently stands but we can do a compile or build
right here by clicking the check box well that's what I'm going to do
okay now that the compilation or build has finished and scroll up we can check
be if the builds okay and it says successful so what we're gonna do is
we're gonna go to, ".pio", and we're gonna click on it then go to the build
folder then BigTreeTech SKR Pro we're gonna right click and we're gonna
go to reveal in Explorer and click on that and then we're gonna go to the big
tree subfolder and as you can see it's got firmware dot bin so we're gonna
right click and we're going to say send to after we highlight it
and we're gonna send it to our SD card now we can check to make sure it's okay
by clicking on the SD card here and as you can see it's got firmware.bin
now so I'm going to remove this and I'm gonna place it inside the BigTreeTech
SKR Pro version 1.1
okay now that we have it actually in the SD card here we're gonna remove it from
here we're gonna place the micro SD card or
TF card into the BigTreeTech SKR Pro version 1.1 and we're going to take the
big side of the USB and we're gonna place it here and then we have to turn
the power on for the USB so I have the other end disconnected right now for USB
so I'm gonna slide this in here now I'm gonna take the other end and connect it
to the computer and it's gonna begin flashing what's on the drive
now that that's complete we're gonna go to Pronterface and see
what happens okay on my desktop I'm gonna open up the
printrun directory and I'm gonna open up Pronterface
inside pronterface I'm gonna connect the SKR Pro and as you can see it said
connecting now it says printer is now online because it's running out five
volts so what I'm going to do is I'm going to type M119
and I'm gonna press ENTER and see what happens and as you can see it says open
so we know that there's actually something there because it's connected
so I'm gonna take my finger and actuate the Endstop then I'm gonna press the
send button because we already have the M119 command specified so I'm gonna
click it again and now it says triggered so I'm gonna remove my finger
and I'm going to do M119 again by pressing send
says open if you liked my tutorial please press the like button and
subscribe and thank you for your time