Gctrl

From Open Source Ecology
Revision as of 04:39, 30 March 2012 by YK (talk | contribs)
Jump to navigation Jump to search

What is Gctrl

Gctrl is a GUI (Graphical User Interface) program for use with GRBL. Gctrl is code that is meant to run on the software called "Processing". Gctrl provides control options for jogging and sending gcode.

Gctrl

How to Get Gctrl on Linux

  • Open Terminal and type:

git clone https://github.com/damellis/gctrl.git gctrl

Gctrl.png

Modify Gctrl code for Easier Connection with Arduino on Linux

  • Open the Gctrl folder

Gctrlfolder.png

  • Open gctrl.pde in gedit
  • Change a part of the code as annotated in the following:

Serial port = null; //change starts

String portname = "/dev/ttyACM0"; // Linux, Arduino Uno

//change ends

boolean streaming = false;

Gctrlnewcode.png

How to Run Gctrl

  • Navigate to the Processing folder

ProcessingFolder.png

  • Open and run Processing, setting the sketchbook folder as the folder in which the gctrl folder exists

RunProcessing.png

  • In Processing, open gctrl using File>Sketchbook>

OpenGctrl.png

  • Connect the Arduino Uno to the computer via USB cable
  • In Processing, run gctrl using Sketch>Run

RunGctrl.png

  • Now the Gctrl GUI window should pop up

GctrlGUI.png

  • Note: For certain functions of gctrl, press and hold down the key for the popup windows to populate.