today we're going to talk about how to install in A4988 and a DRV8825 on the
MKS Gen L version 1.0 now I've done this tutorial before but in this case
the firmware has changed so the process has changed so this will be somewhat of
a review for people that have seen it already so first I want to talk about
your X Port now this is used for the connectors on the underside of your
DRV8825 or your A4988 so you have your X Y or Y Z E0 and E 1 I've left off the
jumper pins over here so you can see what they look like when they're not on
but in the case of a 3d printer you want the highest degree of resolution so
place all jumpers on each one of your pins or these steppers that you're using
and at the moment I'll show you the underside of the A4988 and the DRV8825
ok what we're gonna do here is I'm going to show you where the enable pin is
which is en this is our enable pin and on the other side we have our Direction
pin that's written right here and then we have our ground pin which is here
we're gonna use that to a line the DRV8825 on the MKS Gen L in just a
moment but before that I'm going to show you the A4988 okay here's the underside
of the A4988 the enable pin is right here and it's written an Enable on the
board and then we have our ground pin right here and then we have our
Direction pin right here so on a second I'll show you how to install it on the
MKS Gen L okay before I show you how to install
the stepper I want to show you real quick the actual port for the z-axis and
as you can see our Enable pin is located right here then down here we have our
direction then and over here we have our ground pin we're going to use those to
align the stepper driver in just a moment
okay now that we know where the Enable pins are for here here here here and
here we're gonna hook up the X for the A4988 now we know the enable pin is
located right here we're gonna place that over the connector port and apply a
little bit of pressure to put it in place now where the trim pot is for
adjusting the current it's facing away from the power supply over here and in
this case for the DRV8825 we have our napal pin and our potentiometer is
actually facing this way which is our trim pot so we're gonna apply a little
bit of pressure to get that in place then we're gonna hook up our y-axis for
our stepper and then finally our x-axis in a moment I'll show you how to test it
okay in order to program it we need a USB serial cable so I'm gonna
connect this up and I'm gonna connect the other end of the computer and you're
gonna hear a beep and in a moment I'll show you how to program it in the Marlin
firmware okay the first thing we want to do is open up Marlin - bug fix
- 1.1.9 then we want to open up the Marlin sub folder and then we want to
open up the boards dot H
and inside here we're gonna search on board underscore MKS underscore Gen
underscore L which we found right here and we're gonna copy this then we're
gonna close out of this we're gonna press M on the keyboard and we're gonna
open up the Marlin Arduino file inside the Marlin Arduino file we're gonna open
up or select the configuration dot H tab we're gonna do a search for motherboard
and we're gonna replace board underscore RAMPS underscore one four underscore EFB
with what we just copied which is board underscore MK s underscore Gen
underscore L next thing we want to do a search on A4988 and as you can see here
this is to allow us to configure each one of these stepper drivers because
they're now individually specified and they're all default to A4988 but seeing
how we're mixed with the DRV8825 we need to change things up a little so first
thing I want to do is show you that you need to remove the comments for the
axis's that we're using next thing is I'm going to remove the comment for the
z-axis even though we're not using it so that it helps it compile better and I'm
also gonna do E0 so currently we're saying that all the drivers are A4988
for the stepper drivers but we're gonna change the Y to DRV8825 and that's how
we're gonna configure mixed drivers in this case now keep in mind that if you
use other stepper drivers like the TMC 2130 and you only have one of them
you have to say stand alone it may be for multiple but I do not know for sure
and then if you're using all of the same stepper drivers then you can specify
those as TMC 2130 for the TMC 2130 stepper driver so the next thing we want
to search on is steps underscore per underscore unit and what we have here is
the axis's that we're gonna be working with so we have X Y Z E0 and then we
have other ones that we could possibly use but in this case the default number
of steps for the A4988 is 1/16 of a step whereas the DRV8825 on the y axis
is actually 1/32 so what we need to do is change the 80 to 160 because it's
double the amount of steps the next thing we need to do is check to see that
we have a COM port selected which we do it's COM 10 and that we have the right
board chipset selected which is the MEGA2560 so we're good there so the next
thing we need to do is press the upload button and this will compile and then
upload our changes to the MKS Gen L version 1.0 in a moment I'll show
you how to test it with Pronterface ok off camera that connected the power
supply so in a moment I'm going to show you how to test this in Pronterface so
I'm going to connect the power now keep in mind that safety is paramount so do
not touch this area of the board once it's been energized or has power running
through it okay what we're gonna do is we're gonna open a Pronterface
we're gonna connect to the 3d printer board for the MKS Gen L and now I'm
going to show you how to move ahead ten steps in the x-axis so here we go now
I'm going to show you ten steps in the y-axis
and now I'm going to show you a hundred steps in the x-axis
and now I'm going to show you a hundred steps in the y-axis
so if you liked my tutorial please press the like button and subscribe and thank
you for your time