Patterson Paxton (MicroKinetics) Lathe Upgrade to ESP32 GrblHAL

by jbc8 in Workshop > CNC

41 Views, 1 Favorites, 0 Comments

Patterson Paxton (MicroKinetics) Lathe Upgrade to ESP32 GrblHAL

IMG_4740.JPG

This guide explains how to convert a Paxton / Patterson Lathe from the 2000s into one that has support for GRBL GCode commands, and other features of the ESP32 microcontroller. MicroKinetics sells/supports their own software and hardware which designed to be compatible with existing hardware but it is relatively expensive. The standard 8-bit Arduino with the grbl shield and grbl firmware is too slow.

Supplies

  1. 2x Model 6600 stepper motor drivers
  2. grblHAL supported Microcontroller (such as Makerbase DLC 32-Bit)
  3. Laptop or computer
  4. USB cable
  5. Power supply
  6. Wires and wire splice connectors

Access Panel

IMG_4745.JPG

Move the CNC onto a stand. It's heavy so lift with two people. Open the screws for the bottom hatch. If the screw heads are rusty and break off, you can cut them using a Dremel rotary tool with iron-oxide grinder blade. The panel will swing down from the hinge. The wires are all neatly labeled. The two stepper motors are for Z and X axis. You will find the end stops but they are not needed like a 3d printer.

Wiring

IMG_4738.JPG
IMG_4741.JPG
IMG_4743.JPG
IMG_4742.JPG
IMG_4739.JPG

Each stepper motor has two pairs of wires. You can detect which pairs are connected using a continuity tester on a multimeter. The wires are called pairs A and B. The stepper drivers can use up to 24v. I used a bench power supply set at 23v and 5a maximum. The speed controller is a AC power PWM driver from Harbor Freight Tools. The built-in speed controller stopped working. The back of the wood stand has a power strip attached.

Firmware

The firmware is grblHAL for 32-bit controller.

A flaw in the firmware is that the minimum feed rate is 1mm/s. You can get around this minimum speed limit by interspersing dwell G4 P0.5 commands between the movement commands to slow down the tool.

More commands can be found here: http://wiki.fluidnc.com/en/home

For example,

G4 P0.5
G1 Z0.0000
G4 P0.5
G1 Z-0.0100
G4 P0.5

Software

cnc-lathe-software.png

The software used to run Gcode is Universal Gcode Sender.

Test Gcode Program

Here is a test program that moves the cutter against the work piece.

It removes about 0.5mm from a 5mm length x 5mm diameter stainless steel standoff.

The run time is about 1.5 minutes. The first step is move the cutter to just barely touch the part. Then set the Z position to 0.0mm. Moving towards the part in the chuck is negative on the Z-axis.


G21
F1000
G4 P1.
G1 Z0.05
G4 P1.
; // move in gradually from 0.5 to 0
F1
G1 Z0.0400
G4 P0.2
G1 Z0.0300
G4 P0.2
G1 Z0.0200
G4 P0.2
G1 Z0.0100
; // start cutting
F1
G4 P0.5
G1 Z0.0000
G4 P0.5
G1 Z-0.0100
G4 P0.5
G1 Z-0.0200
G4 P0.5
G1 Z-0.0300
G4 P0.5
G1 Z-0.0400
G4 P0.5
G1 Z-0.0500
G4 P0.5
G1 Z-0.0600
G4 P0.5
G1 Z-0.0700
G4 P0.5
G1 Z-0.0800
G4 P0.5
G1 Z-0.0900
G4 P0.5
G1 Z-0.1000
G4 P0.5
G1 Z-0.1100
G4 P0.5
G1 Z-0.1200
G4 P0.5
G1 Z-0.1300
G4 P0.5
G1 Z-0.1400
G4 P0.5
G1 Z-0.1500
G4 P0.5
G1 Z-0.1600
G4 P0.5
G1 Z-0.1700
G4 P0.5
G1 Z-0.1800
G4 P0.5
G1 Z-0.1900
G4 P0.5
G1 Z-0.2000
G4 P0.5
G1 Z-0.2100
G4 P0.5
G1 Z-0.2200
G4 P0.5
G1 Z-0.2300
G4 P0.5
G1 Z-0.2400
G4 P0.5
G1 Z-0.2500
G4 P0.5
G1 Z-0.2600
G4 P0.5
G1 Z-0.2700
G4 P0.5
G1 Z-0.2800
G4 P0.5
G1 Z-0.2900
G4 P0.5
G1 Z-0.3000
G4 P1
G1 Z-0.3100
G4 P1
G1 Z-0.3200
G4 P1
G1 Z-0.3300
G4 P1
G1 Z-0.3400
G4 P1
G1 Z-0.3500
G4 P1
G1 Z-0.3600
G4 P1
G1 Z-0.3700
G4 P1
G1 Z-0.3800
G4 P1
G1 Z-0.3900
G4 P1
G1 Z-0.4000
G4 P1.0
G1 Z-0.4100
G4 P1.0
G1 Z-0.4150
G4 P1.0
G1 Z-0.4200
G4 P1.0
G1 Z-0.4250
G4 P1.0
G1 Z-0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