Skip to content

umute97/OpenCNCPilot

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OpenCNCPilot

OpenCNCPilot is a GRBL compatible G-Code Sender.

It's main feature is its ability to probe user-defined areas for warpage and wrap the toolpath around the curved surface. This is especially useful for engraving metal surfaces with V-shaped cutters where any deviation in the Z-direction will result in wider or narrower traces, eg for isolation milling PCBs where warpage would result in broken or shorted traces.

Screenshot

It is written in C# and uses WPF for its UI. Sadly, this means that it will not run under linux as Mono does not support WPF. The 3D viewport is managed with HelixToolkit.

Here is a quick overview on YouTube https://www.youtube.com/watch?v=XDCu3cgOjCY

Installation

Install .NET 4.6, this has been the cause of at least 6 support requests so far.
Go to the Releases section and download the latest binaries (or compile it from source). Unzip all files to your hard drive and run "OpenCNCPilot.exe"

Make sure to use GRBL version 1.1f (later versions may work but are yet untested)

Quick Start Guide

Before the first run, you have to select a Serial Port, the selector is hidden in the Settings menu that you can access in the "Machine" tab. Other than that, you don't need to modify any settings.
Now you can connect to your machine.

Open gcode or height map files by dragging them into the window, or using the according buttons.

To create a new height map, open the "Probing" tab and click "Create New". You will be asked to enter the dimensions.
Be sure to enter the actual coordinates eg when your toolpath is in the negative X-direction, enter "-50" to "0" instead of "0" to "50". You will see a preview of the area and the individual points in the main window

To probe the area, set up your work coordinate system by entering "G92 X0 Y0 Z0" at your selected origin, make sure to connect A5 of your Arduino to the tool and GND to your surface, and hit "Run".

Once it's done probing the surface, load the gcode file you want to run and hit the "Apply HeightMap" button in the "Edit" tab. Now you can run the code with the "Start" button in the "File" tab.

Notes

The probing data is stored in an array of (double precision) floats, the intermediate values are obtained via bilinear interpolation between the four nearest points. All GCode commands whose length exceeds the GridSize are split up into sections smaller than the GridSize. This includes arcs.

In the input files, arcs can be defined via center (IJ) coordinates or by a radius (R). The output file will always use IJ notation, absolute coordinates and metric units. Both relative coordinates and imperial units are supported, but are converted to the aforementioned format.

Supported G-Codes:

  • G0, G1 linear motion
  • G2, G3 arc motion
  • G4 dwell
  • G20, G21 units
  • G90, G91 distance mode
  • S spindle speed
  • M M-codes

Donations

Since this project did get some attention, I'll include a donation button. Getting this application to a point where it's 'production-ready' took many days of non-stop work before and during the fist three semesters of my physics studies.
Please note that my programs will always be (ad-)free
paypal

About

autolevelling gcode-sender for grbl

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C# 100.0%