Today we're going to talk about how to install a switch end stop on the BigTreeTech GTR version
1.0 now just so you know there's multiple types of switch end stops the one over on the right over
here uses only two wires so it's going to use the signal and the ground wire on the end stop
whereas the other one has circuitry on it that smooths out the actual end stop so I'm going to
show you a little bit more detail on that one so I'm going to zoom in and as you can see right here
I put three colors on there being green black and red those correspond to the pins underneath
and those are for green being signal black being ground and red being voltage so on the
right hand side over here i have one set up where you can see the actual cabling
and how it's set up so I'm going to show you how to attach this in just a second but we got to look
over on the browser for a moment to see what it looks like so I'm going to bring up the browser
as you can see right here and they have a bunch of different steppers
or excuse me end stops in here for switching and the first row says E0 E1 and E2
that means that they're used probably for filament runout then below it we have negative x y and z
and those will be our end stop so it's x minimum so you have your voltage ground and signal
then you have your y which is exactly the same and so on and so forth between all of these
now these might be reserved for some other functionality yet to be determined so we're not
going to worry about that at the moment so we're going to go back to our workbench over here and
I'm going to connect up the first end stop and this one will be for the one that has circuitry
on it so you can see there's three wires so we're gonna go to the x minimum which is right over here
and we're going to place it down like so so you can see what the wiring is and how it's connected
then we're going to do the z as well now the z is going to be different because of the red
and black wires so we have to do ground and signal so it's going to be the bottom two pins
and it's going to look like that so the next thing that we need to do is actually prepare this to
load the firmware so in order to do that I need to pop out the drive once the drive's out I'm going
to insert it into my converter over here so I can use it on my computer and what I'll do is I'll
place an amazon affiliate link in the description so you can find this as well as the gtr board
and just so you know no one's paying me or sponsoring me to do these tutorials
but people do tip to ask for certain tutorials so I do prioritize those if they in fact need those
right away so some of the things that we have to look at on here before we do anything further
I'm gonna pre-prep this so that you can actually see what's going on so I'm gonna
pop out the actual jumper and move it over here that'll allow us to power through the usb rather
than direct power but when you're actually using the board this needs to be on these two jumpers
over here but for now we're just testing the end stop so I'm going to place them right there so
let's move over to the computer and see if we can look in VScode to see how to set this up
so inside VScode we're going to have to load the actual software so what I'm going to do is I'm
going to show you how to do that so we're going to go over here and we're going to say explorer
then we're going to go to the open folder then our downloads folder where we have our
unzipped Marlin 2.0 so we're going to open that up then we need to open up the second one then
we're going to say select folder inside here we're going to then click on the marlin folder
then the source folder then the core folder then boards.h inside boards.h we're going to
search on GTR underscore v1 which will bring us to our board type so I'm going to highlight that
and I'm actually going to copy it then I'm going to close out of boards.h I'm going to minimize
core and source and go to configuration.h here I'm going to search on motherboard and
I'm going to highlight the RAMPS board because we're not using that and paste ours are over it
next what I'm going to do is I'm going to go to the serial port and change that to
negative 1 so we can communicate with our actual board so let me fix that real quick
then we're going to scroll down and find end stop so we're going to search on end stop
and as you can see it's got three end stops enabled right here for our x minimum
our y minimum and our z minimum but further on down we have actual circuitry that we can enable
being the circuitry on the end stop if we wanted to smooth out the end stop pull-ups that would
be the resistors and capacitors on the second end stop I showed you now there's a high level
and a low level for this meaning a pullup and a pull down for now we're going to ignore that
because it's not really relevant anymore but we do have to pay attention here so our end stops
the logic may be inverted which one of them is and that would be the one with all the circuitry on it
so I'm going to change the false to a true that way we can deal with that when it comes up and
it'll be the correct entry but if you do have an issue where it says triggered when it shouldn't
you can always change your true to a false or your false to a true depending upon the configuration
so I may get it wrong but at least you now know how to change it to the correct setting
so next we need to go to platform io.ini and inside here there's a default environment
which is for the MEGA2560 but we need to set it for the GTR so we're going to do a search
on GTR underscore v1 and that'll bring us to our configuration right here so I'm going to
copy that then I'm going to go back up to the top and paste it over where the MEGA2560 is
now that that's all set we're gonna do a clean which is this little garbage can
over here so that we can clean out the previous build in case there's a change
and then we're gonna do a build with the check box so I'm going to click on this check box and it
will begin to build our build now this may take upwards of 25 seconds to build on this computer
on other computers it may take longer but keep that in mind because it does vary computer
to computer once this is finished though we're going to actually check to see over
here what our current firmware is right now it says firmware.curr that was the last one that
loaded down our board that we have loaded in the thumb drive right now but let's go back and check
on ours right now so it's completed so in order to find it we have to go to the dot pio folder
then the BigTreeTech GTR folder right click and reveal and explore then what we'll do
is now that we can see it in the explorer we're going to go into the GTR folder we're then going
to right click on firmware.bin and we're going to send it to our d drive now you can confirm that by
clicking on your d drive and see that firmware.bin for the binary is there once it loads it will be
renamed to FIRMWARE.CUR or something may have occurred so now that that's done I'm going to go
back over to the workbench so you can see what I'm talking about so I'm going to pop out the drive
I'm then going to extract the drive out right here and I'm going to insert it into the actual SD card
holder then I'm going to power this remember I did move the jumper over so that it can power via USB
and you'll see a flashing light down here which means the firmware is loading so the
next thing we want to do is actually go over to pronterface so inside pronterface
what we're going to see is that it's COM port 1 so we've got a problem we need to figure out
what the com port is so what I'm going to do is I'm actually going to go to device manager
and I'm going to open that up and inside device manager
I'm going to examine the ports so port 14 appears to be our port so I'm going to close this down
and I'm going to change the com port to number 14. then I'm going to connect and as you can see
it says connecting printer is now online over here so now we can actually check the end stops
so to check these what we're going to do is we're going to type the gcode
M119 and press enter and as you can see both of these say open and the z min
says that it is triggered that means it's not connected right now as you can see on the board
so let's go to the first end stop being our accent stop and trigger it with our finger so I'm gonna
trigger this by holding it down you probably can see it a little bit better now now i'm going to do
the send let me just hold this better and you can see it's triggered now i'm going to release it
send again and now it says open so let's try the other one
now it says triggered now let's let it go
and now it says open so if you like my tutorial please press the like button
and subscribe and thank you for your
time