Introduction
This support page contains a quick introduction to using the great g2core CNC controller software in combination with Djuke products like the Djuke g2core shield and the Djuke Alu30 CNC machine.
https://github.com/synthetos/g2
https://github.com/synthetos/g2/wiki
The g2core github project was forked to add some minor fixes and example configurations for my machine:
https://github.com/Djuke-DIYAudio/g2
Linux
Required tools
sudo apt-get install git-core make bossa-cli
GIT checkout
It is up to the user to choose between the more stable 'master' branch or the development 'edge' branch with the latest features. Make a local GIT clone of the repository using either
git clone https://github.com/synthetos/g2.git -b master --recursive
or
git clone https://github.com/synthetos/g2.git -b edge --recursive
or
git clone https://github.com/Djuke-DIYAudio/g2.git -b edge --recursive
Adjustments
Because the Arduino Due does not have an EEPROM to store persistent settings it is advised to make your own settings file containing your machines configuration and build a custom g2core firmware which includes this configuration. Copy from e.g. settings/settings_Djuke_test.h and adjust it for your situation.
Hints:
- If you want to use the Due spindle direction pin 13 for automatically setting the spindle direction, adjust the following line in gShield-pinout.h (Note that this fix is already present on https://github.com/Djuke-DIYAudio/g2)
pin_number kSpindle_DirPinNumber = 13;
- If you want to use a GRBL CNC shield on the Due with a common motor enable pin 8, use the 'master' branch as the current (100.21) 'edge' branch does not set this pin properly.
Building
cd g2/g2core (for edge)
cd g2/TinyG2 (for master)
make BOARD=gShield SETTINGS_FILE=settings_Djuke_test.h
Flashing
See https://github.com/synthetos/g2/wiki/Flashing-g2core-with-Linux