Monday, January 27, 2020

DIY CNC 3018 Adding Limit Switches

I am in the process of adding some limit switches to a CNC3018.  It can be done without any adapters.  For the Y axis I used some 3/4 inch 4-40 screws.  The screw head goes through a washer that is cut flat on one side, so it can fit in the T slot groove.  Then a large bolt goes into the slot of the platform.  Something square would make the switch levers hit more evenly.  I might make something out of aluminum for that purpose.
This is the completed, front Y axis switch with a aluminum square block on the bolt.
CNC 3018 Pro Y Limit Switch

Here are pictures of the first X limit switches.  These were later changed to smaller switches like the ones used on the Z axis.


This is the Z axis limit switch.  It is required as the Z axis is tested first.

This is how a major website shows to wire the CNC 3018 PRO.  This is TOTALLY wrong!  The platform will crash when it tries to go back because the wires and wire ties are in the way..
Here is how I wired my CNC 3018.  I used some black electrical tape to cover the wires from the Y axis stepper motor.  The wires to the X axis stepper are folded in thirds within the wire wrap.

 This is how I wired the Z axis.  This works quite well and allows the cable to move freely.
CNC 3018 Pro Z axis Wiring

I improved the wiring harness and the X axis limit switches.  The wiring harness now looks like, and could be, one continuous piece.
CNC 3018 Pro Wiring

The new X axis limit switches are micro switches like the one I used for the Z axis.  The biggest problem with these switches is that a 4-40 screw is too big.  You need a 2-56 screw.  I found some screws that came with servos for use with the servo horns.
CNC 3018 Pro X and Z limit switches

It is finally working!


The problem was calibrating the driver voltage/current.  With a voltmeter on ground and on the center of the trimmer adjust for .7 to .8 volts.  That results in 1.4 to 1.6 amps to the coils and much cooler drivers.  If you do not have a voltmeter and are using 8825 drivers set the trimmers to match this picture or to about 25 degrees to the right of straight up.


This is a picture zoomed in on the trimmers.

Here is the code to work with the limit switches and to make "home" the 0,0 position.

$0=10;
$1=25;
$2=0;
$3=5;
$4=0;
$5=0;
$6=0;
$10=1;
$11=0.010;
$12=0.002;
$13=0;
$20=1;
$21=0;
$22=1;
$23=3;
$24=25.000;
$25=500.000;
$26=250;
$27=2.000;
$30=1000;
$31=0;
$32=0;
$100=1600.000;
$101=1600.000;
$102=1600.000;
$110=1000.000;
$111=1000.000;
$112=800.000;
$120=30.000;
$121=30.000;
$122=30.000;
$130=300.000;
$131=180.000;
$132=40.000;

After going to "home" set the Z axis down to the surface and then set the X, Y and Z to "0".

Tuesday, January 14, 2020

I gave in and built a CNC 3018 DIY CNC Kit.

Building the CNC 3018 DIY kit.  This is how it arrived in the box.  I purchased it slightly used, so some parts were not in their normal locations in the box.

This is the electrical parts that came with the kit.  It is missing the cover and fan for the controller.


This is the smaller mechanical parts.


This is the larger mechanical parts.


This is the bottom side of the base once it was assembled.  Make sure it is not skewed by running all the way to one end before tightening the screws.


This is the top view of the assembled base.

At this point I did not take any more pictures until after it was assembled.  The wire wrap was added after this picture was taken.

This is the front top view of the assembled 3018 CNC.  It only takes about one hour to assemble this CNC kit!

This picture compares the size of the Z axis to my homemade CNC.  The DIY Z axis on the right is as small as I could make it.

After several attempts to get the CNC to work, I determined that the CNC Controller board was toast.  I removed it and removed two of the motor jacks for this next picture.  So now I am looking to repair it or replace it.