Arduino IDE 2.XX and GRBL
Release status: Tutorial
Description | Arduino IDE 2.XX and GRBL
|
License | |
Author | |
Contributors | |
Based-on | [[]]
|
Categories | |
CAD Models | |
External Link |
Inleiding
Thanks to the great people working on the Arduino IDE, it has everything you need to compile grbl included in their software package. This method compiles the Grbl source code and automatically uploads it to an Arduino. You can't directly flash a pre-compiled .hex file through the IDE interface. See our Flashing Grbl to an Arduino wiki page for how to do this if you only have a .hex file.
NOTE: Before starting, delete prior Grbl library installations. Otherwise, you'll have compiling issues! On a Mac, Arduino libraries are located in ~/Documents/Arduino/libraries/. On Windows, it's in My Documents\Arduino\libraries. On Linux (Ubuntu), it's in /usr/share/arduino/libraries If you cannot find the grbl library in order to delete and reinstall, check the sketchbook location in the IDE via file -> preferences and view /sketchbook/location/path at the top.
Click on the <> Code tab.
Click the clonedownload button on the Grbl home page.
Select "Download ZIP" from the menu.
Wait for the download to finish.
Unzip the downloaded grbl-master.zip file.
Copy the grbl subfolder of the unzipped folder to the libraries subfolder of your Arduino sketchbook folder.
ⓘ If you don't know the location of the sketchbook folder, you can find it by opening the Arduino IDE preferences (File > Preferences) and looking at the path shown in the "Sketchbook location" field there.
The correct installation structure must look like this:
<Sketchbook location>/ ├── libraries/ │ └── grbl/ │ ├── examples/ │ │ └── ... │ ├── grbl.h │ └── ... └── ...
Launch Arduino IDE. ❗ Make sure you are using the most recent version of Arduino IDE! Select File > Examples > grbl > grblUpload from the Arduino IDE menus. ⚠ Do not alter this example in any way! Grbl does not use any Arduino code. Altering this example may cause compilation to fail. Connect your Arduino Uno to your computer. Select Tools > Board > Arduino AVR Boards > Arduino Uno from the Arduino IDE menus. Select the port of your Uno from the Tools > Port menu. Select Sketch > Upload from the Arduino IDE menus.
_NOTE: If you are still unable to upload the library, try unzipping the library and dragging out the "grbl" folder to your main downloads, then upload that folder as the library. To upload libraries to the Arduino IDE, they must be in the root folder, thus dragging it out makes sure all the library files are in the root folder. Advanced usage Most users are just fine with Grbl's default build, but you can customize Grbl by editing the config.h file.