Difference between revisions of "Windows build grbl"

From ShapeOko
Jump to: navigation, search
Line 1: Line 1:
 +
==Overview==
 
''[https://github.com/simen/grbl grbl!]'' is a free, open source embedded CNC controller for the AVR series of microcontrollers. The initial  
 
''[https://github.com/simen/grbl grbl!]'' is a free, open source embedded CNC controller for the AVR series of microcontrollers. The initial  
 
version is still under development. The source code and an overview of the current status can be found  
 
version is still under development. The source code and an overview of the current status can be found  
Line 6: Line 7:
 
enough to get started using it! We just need a couple of tweaks, a bit of black magic, and a little luck!
 
enough to get started using it! We just need a couple of tweaks, a bit of black magic, and a little luck!
  
Here we go…..
+
==Installing winAVR==
First we will need to download and install winAVR. This is the program which will allow you to compile  
+
Here we go. First we will need to download and install winAVR. This is the program which will allow you to compile  
 
grbl.  
 
grbl.  
 
* Download winAVR - http://sourceforge.net/projects/winavr/files/
 
* Download winAVR - http://sourceforge.net/projects/winavr/files/
Line 13: Line 14:
 
**NOTE: If you are a neat freak then you may be tempted to put your winAVR installation  into your program files. Something like:  C:\Program Files (x86)\WinAVR-20100110. You will find that things do not go quite so well if you do that. After trying to do a "make all", I came up with this error: make: Interrupt/Exception caught (code = 0xc00000fd, addr = 0x4217b3)... after doing some googling, it ends up that it's not wise to change the default install path for winAVR. By putting it inside the program files (x86) folder, I inadvertently caused the error. Apparently, winAVR doesn't like the "()" in the file path! So I had to uninstall winAVR, reboot, and then reinstall winAVR to the DEFAULT path. If you would like to reproduce the error, feel free to install it to Program Files(x86), otherwise, just stick with the default location.
 
**NOTE: If you are a neat freak then you may be tempted to put your winAVR installation  into your program files. Something like:  C:\Program Files (x86)\WinAVR-20100110. You will find that things do not go quite so well if you do that. After trying to do a "make all", I came up with this error: make: Interrupt/Exception caught (code = 0xc00000fd, addr = 0x4217b3)... after doing some googling, it ends up that it's not wise to change the default install path for winAVR. By putting it inside the program files (x86) folder, I inadvertently caused the error. Apparently, winAVR doesn't like the "()" in the file path! So I had to uninstall winAVR, reboot, and then reinstall winAVR to the DEFAULT path. If you would like to reproduce the error, feel free to install it to Program Files(x86), otherwise, just stick with the default location.
  
 +
==Downloading grbl==
 
*After winAVR has been downloaded and installed, we can go ahead and download grbl from github.
 
*After winAVR has been downloaded and installed, we can go ahead and download grbl from github.
 
** Download Latest grbl - http://github.com/simen/grbl
 
** Download Latest grbl - http://github.com/simen/grbl
 
** Extract grbl to mydocs - C:\Users\eford\Documents\grbl
 
** Extract grbl to mydocs - C:\Users\eford\Documents\grbl
 
+
==Verifying install==
 
At this point, you can check your winAVR install by browsing to the grbl directory and typing "make  
 
At this point, you can check your winAVR install by browsing to the grbl directory and typing "make  
 
clean" - if no errors occur, then you're good to go on the software front.
 
clean" - if no errors occur, then you're good to go on the software front.

Revision as of 09:33, 17 January 2012

Overview

grbl! is a free, open source embedded CNC controller for the AVR series of microcontrollers. The initial version is still under development. The source code and an overview of the current status can be found at the github repository.

So, what does this mean? It means that if you know enough to have found grbl, then you probably know enough to get started using it! We just need a couple of tweaks, a bit of black magic, and a little luck!

Installing winAVR

Here we go. First we will need to download and install winAVR. This is the program which will allow you to compile grbl.

  • Download winAVR - http://sourceforge.net/projects/winavr/files/
  • Install WinAVR to the default location (C:\winAVR)*
    • NOTE: If you are a neat freak then you may be tempted to put your winAVR installation into your program files. Something like: C:\Program Files (x86)\WinAVR-20100110. You will find that things do not go quite so well if you do that. After trying to do a "make all", I came up with this error: make: Interrupt/Exception caught (code = 0xc00000fd, addr = 0x4217b3)... after doing some googling, it ends up that it's not wise to change the default install path for winAVR. By putting it inside the program files (x86) folder, I inadvertently caused the error. Apparently, winAVR doesn't like the "()" in the file path! So I had to uninstall winAVR, reboot, and then reinstall winAVR to the DEFAULT path. If you would like to reproduce the error, feel free to install it to Program Files(x86), otherwise, just stick with the default location.

Downloading grbl

  • After winAVR has been downloaded and installed, we can go ahead and download grbl from github.

Verifying install

At this point, you can check your winAVR install by browsing to the grbl directory and typing "make clean" - if no errors occur, then you're good to go on the software front.

Wait, did I mention you have to use a command prompt? It's OK! Don't panic. This is easy stuff.

  • Windows XP: Click on your start button and in the run box type "cmd" (without the quotes).
  • Windows 7: click the start button and just type cmd, then press enter

Arduino Installation

  • plug in arduino to PC, wait for PC to install drivers.
  • Right click on "My Computer", select "properties", select device manager.
    • In the tree, expand "Ports (COM & LPT)", your arduino will be the USB Serial Port (COM?)", where the “?” represents the COM

number.

    • If there are multiple USB serial ports, right click each one and check the manufacturer, the

arduino will be FTDI. (Mine is Com6)