CNC Circuit Mill/Manufacturing Instructions: Difference between revisions

From Open Source Ecology
Jump to navigation Jump to search
No edit summary
No edit summary
Line 40: Line 40:
=+1=
=+1=


=3 Soldering Connectors and Connections=
=Soldering Connectors and Connections=


=3 Wiring=
=Wiring=


=-1=
=-1=


=2 Detailed Software Guide=
=Detailed Software Guide=


=+1=
=+1=


=3 Ubuntu 10.04 LTS 32-Bit=
=Ubuntu 10.04 LTS 32-Bit=


=+1=
=+1=


=4 Getting Git=
=Getting Git=


*Open Terminal and type:
*Open Terminal and type:
Line 60: Line 60:
sudo apt-get install git-core
sudo apt-get install git-core


=4 Getting Arduino Integrated Development Environment=
=Getting Arduino Integrated Development Environment=


*Go to this webpage:
*Go to this webpage:
Line 68: Line 68:
*Download the Linux 32-bit version of Arduino IDE to a directory of your choosing
*Download the Linux 32-bit version of Arduino IDE to a directory of your choosing


=4 Compatibilizing Arduino IDE=
=Compatibilizing Arduino IDE=


*The following steps are a summary of the information in this webpage:
*The following steps are a summary of the information in this webpage:
Line 94: Line 94:
*Restart your computer
*Restart your computer


=4 Getting RUBY Programming Language=
=Getting RUBY Programming Language=


*Open Terminal and type:
*Open Terminal and type:
Line 102: Line 102:
*Restart the computer for the changes to take place
*Restart the computer for the changes to take place


=4 Getting GRBL Files=
=Getting GRBL Files=


*Open Terminal and type:
*Open Terminal and type:
Line 108: Line 108:
git clone https://github.com/damellis/grbl.git grbl
git clone https://github.com/damellis/grbl.git grbl


=4 Getting Gctrl=
=Getting Gctrl=


*Open Terminal and type:
*Open Terminal and type:
Line 114: Line 114:
git clone https://github.com/damellis/gctrl.git gctrl  
git clone https://github.com/damellis/gctrl.git gctrl  


=4 Getting Processing=
=Getting Processing=


*Go to this webpage:
*Go to this webpage:
Line 122: Line 122:
*Download the latest version of Processing to a directory of your choosing
*Download the latest version of Processing to a directory of your choosing


=4 Moving RXTX files=
=Moving RXTX files=


*Navigate to the Arduino IDE folder>lib.
*Navigate to the Arduino IDE folder>lib.
Line 140: Line 140:
*Paste librxtxSerial.so, replacing the existing version
*Paste librxtxSerial.so, replacing the existing version


=4 Modifying Gctrl=
=Modifying Gctrl=


*Open the Gctrl folder
*Open the Gctrl folder
Line 156: Line 156:
boolean streaming = false;
boolean streaming = false;


=4 Modifying GRBL Files=
=Modifying GRBL Files=


*Navigate to the GRBL folder
*Navigate to the GRBL folder
Line 166: Line 166:
PROGRAMMER = -c stk500v1 -P /dev/ttyACM0 -b 115200
PROGRAMMER = -c stk500v1 -P /dev/ttyACM0 -b 115200


=4 Flashing GRBL=
=Flashing GRBL=


*Open Terminal and navigate to the GRBL folder (ex. by using the "ls" and "cd" commands)
*Open Terminal and navigate to the GRBL folder (ex. by using the "ls" and "cd" commands)
Line 184: Line 184:
*Disconnect the Arduino Uno
*Disconnect the Arduino Uno


=4 Running GRBL=
=Running GRBL=


*Navigate to the Processing folder
*Navigate to the Processing folder
Line 198: Line 198:
*Note: For certain functions of gctrl, press and hold down the key for the popup windows to populate.
*Note: For certain functions of gctrl, press and hold down the key for the popup windows to populate.


=4 Determining GRBL Configuration Changes Required=
=Determining GRBL Configuration Changes Required=


*Go to the following webpage:
*Go to the following webpage:
Line 204: Line 204:
http://dank.bengler.no/-/page/show/5474_configuringgrbl?ref=mst
http://dank.bengler.no/-/page/show/5474_configuringgrbl?ref=mst


=4 Modifying GRBL Settings=
=Modifying GRBL Settings=


*Navigate to the Arduino IDE folder
*Navigate to the Arduino IDE folder

Revision as of 20:38, 9 February 2012

Replication

  • Information resources required to construct different versions of the CNC Circuit Mill are saved in this section.
  • Version 1

http://opensourceecology.org/wiki/CNCCMV1

Notes: Using the same template in a given axis for alignment and shortening the spindle shaft for stability are important. Sleeve bearing mounting method needs improvement. Separation of cubeframe and axes structure ideal. High thermal energy draw from overvolting raises concerns.

  • Version 2

Prototyping

+1

Preparation

  • The following active spreadsheet is for prototyping purposes only.


  • To edit or download the spreadsheet, click on the following link.

https://docs.google.com/spreadsheet/ccc?key=0AlpsBarfpPkzdFk5aDY3dHM0eEhfZHNkWVppdV9EelE

Structure

+1

-1

Electronics

+1

Soldering Connectors and Connections

Wiring

-1

Detailed Software Guide

+1

Ubuntu 10.04 LTS 32-Bit

+1

Getting Git

  • Open Terminal and type:

sudo apt-get install git-core

Getting Arduino Integrated Development Environment

  • Go to this webpage:

http://arduino.cc/hu/Main/Software

  • Download the Linux 32-bit version of Arduino IDE to a directory of your choosing

Compatibilizing Arduino IDE

  • The following steps are a summary of the information in this webpage:

http://www.pluggy.me.uk/arduino-ubuntu/

  • Open System>Administration>Synaptic Package Manager, then type your password
  • In Synaptic Package Manager, search for jre, then mark for installation the item with the following name:

Openjdk-6-jre

  • Note: marking these items will bring up other packages also to be marked. Click "mark" during these times.
  • In Synaptic Package Manager, search for gcc-avr, then mark for installation the item with the following name:

gcc-avr

  • In Synaptic Package Manager, search for avr-libc, then mark for installation the item with the following name:

avr-libc

  • In Synaptic Package Manager, click "Apply"
  • Restart your computer

Getting RUBY Programming Language

  • Open Terminal and type:

sudo apt-get install ruby1.9.1

  • Restart the computer for the changes to take place

Getting GRBL Files

  • Open Terminal and type:

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

Getting Gctrl

  • Open Terminal and type:

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

Getting Processing

  • Go to this webpage:

http://processing.org/download/

  • Download the latest version of Processing to a directory of your choosing

Moving RXTX files

  • Navigate to the Arduino IDE folder>lib.
  • Copy RXTXcomm.jar
  • Navigate to the Processing folder>modes>java>libraries>serial>library
  • Paste RXTXcomm.jar, replacing the existing version
  • Navigate to the Arduino IDE folder>lib
  • Copy librxtxSerial.so
  • Navigate to the Processing folder>modes>java>libraries>serial>library>Linux32
  • Paste librxtxSerial.so, replacing the existing version

Modifying Gctrl

  • Open the Gctrl folder
  • 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;

Modifying GRBL Files

  • Navigate to the GRBL folder
  • Open "Makefile" in gedit
  • Edit the PROGRAMMER line as:

PROGRAMMER = -c stk500v1 -P /dev/ttyACM0 -b 115200

Flashing GRBL

  • Open Terminal and navigate to the GRBL folder (ex. by using the "ls" and "cd" commands)
  • In Terminal, type:

make clean

make

  • Connect the Arduino Uno to the computer via USB cable
  • In Terminal, type:

make flash

  • Disconnect the Arduino Uno

Running GRBL

  • Navigate to the Processing folder
  • Open and run Processing, setting the sketchbook folder as the folder in which the gctrl folder exists
  • In Processing, open gctrl using File>Sketchbook>
  • Connect the Arduino Uno to the computer via USB cable
  • In Processing, run gctrl using Sketch>Run
  • Note: For certain functions of gctrl, press and hold down the key for the popup windows to populate.

Determining GRBL Configuration Changes Required

  • Go to the following webpage:

http://dank.bengler.no/-/page/show/5474_configuringgrbl?ref=mst

Modifying GRBL Settings

  • Navigate to the Arduino IDE folder
  • Double-click "Arduino" then click "run" in the popup window
  • Note: you may want to create a quick launcher for the Arduino IDE
  • Connect the Arduino Uno to the computer via USB cable
  • In Arduino IDE, open Tools>Serial Monitor
  • Note: the Serial Monitor window should pop up and you should see the following:

Grbl 0.6b

'$' to dump current settings

  • In the Serial Monitor, change the left drop-down setting to the following:

Both NL & CR

  • In the Serial Monitor, type the following in the command line:

$

  • Note: you should now see the following:

$0 = 157.480 (steps/mm x)

$1 = 157.480 (steps/mm y)

$2 = 157.480 (steps/mm z)

$3 = 10 (microseconds step pulse)

$4 = 500.0 (mm/min default feed rate)

$5 = 600.0 (mm/min default seek rate)

$6 = 0.100 (mm/arc segment)

$7 = 0 (step port invert mask. binary = 0)

$8 = 25.0 (acceleration in mm/sec^2)

$9 = 225.0 (max instant cornering speed change in delta mm/min)

'$x=value' to set parameter or just '$' to dump current settings


  • In the Serial Monitor, type commands as necessary in the following format, where "X" and "Y" are numbers:

$X = Y

-2