This is the front side of an optical End stop I want to show you how this works
the dental pick will be an object that actually moves into this crevasse and
when the field is broken what happens is a circuit is formed in a moment I'll
show you the other side and how it works here's the backside of the optical end
stop I need to point out a couple of things the G over here stands for ground
the S stands for signal and the V stands for voltage now what I've done is I
marked on this black and red so that you can pick out which side being black is
ground and red is voltage with that we're going to use a connector that's
not in order to create the connection to our printer motherboard and on the other
end that traced out the actual colors so black is ground red is voltage and then
blank is actually the signal so in a moment I'll show you how to connect it
to the board okay just to review we have three sets of endstops we have the red
the blue and the green now this is the x-min this is the x max this is the Y-min
this is the Y max this is the Z min this is the Z max inside here you can
see written in the back you have voltage on the top ground and then signal those
correspond to these pins so in a moment I'll show you how to actually connect to
them okay to connect it we're gonna connect first
z-max so we're going to connect the voltage then we're going to connect the
ground and then we're gonna connect the signal now to connect the USB serial
cable we're going to connect the larger end to the board and the smaller end to
the computer and you should hear beep and let me show you how this works real
quick when the field is broken the light goes out when it's removed the light
goes back on in the moment I'll show you how to load the Marlin firmware okay
we're in the folder for Marlin 1.1.8 we're gonna open that up we're gonna
open up the Marlin folder we're gonna press the letter, 'M', on the keyboard we're
gonna scroll down to, "marlin.ino", and open that up okay now that we're in
Marlin with the Arduino IDE we're gonna check to see if we have the right board
now this is the Arduino mega it has a similar architecture so we're gonna use
that we're gonna verify we have a port enabled which we do so we're gonna go
over to the, "configuration.h", tab we're gonna do a search on, "x_min", we're then
going to scroll up a little bit where it says, "USE_ZMAX_PLUG",
we're gonna uncomment that we're then going to scroll down and we're
gonna change the end stop inverting to true okay next thing we're gonna do is
we're going to compile and upload
okay in the pronterface folder we're going to open up, "pronterface.exe", we're
going to connect to the device we're going to type, "M119", it says that the Z
max is triggered so we have the logic reversed where we said true it should
actually be false in this case so what I'm gonna do is I'm going to actuate the
end stop with a piece of paper
I'm now gonna type, "M119", again and press ENTER now it says open now I'm
gonna remove the paper
and I'm gonna press, "M119", again and it says triggered so if you liked my video
please press the like button and subscribe and thank you for your time