Difference between revisions of "Mini CNC"

From TAMI
Jump to navigationJump to search
(grbl update)
Line 11: Line 11:
  
 
==software==
 
==software==
===generating models and gcode===
 
{{#ev:youtube|107FGoYX1bg}}
 
* [https://inkscape.org/en/ inkscape]-> [http://www.makercam.com/ makercam] -> <s>GRBL</s> RepetierHost  -> arduino+RAMPS
 
  
  
====misc notes====
 
Can use pronsole / direct g code to serial port (example in firmware, need to move here)
 
  
RepetierHost ([https://github.com/repetier/Repetier-Host git]) for Fedora - this is an aside, I'm working on fixing the situation for fedora with this software (supposed to be good since we are using it's firmware part)
+
==firmware==
* OpenTK requires a newer release (see [https://bugzilla.redhat.com/show_bug.cgi?id=1157173 fedora bz 1157173] I opened, and [https://bugzilla.redhat.com/show_bug.cgi?id=1032883 1032883]) which requires packaging mono-cecil ([https://bugzilla.redhat.com/show_bug.cgi?id=1058765 1058765])
+
===gbrl===
* RepetierHost needs a newer version, 0.9 is packaged but that doesn't work with our firmware, we need the newer 1.0.6
+
one of the popular firmware for controlling stepper drivers and parsing G-CODE
 +
 
 +
noam installed gbrl for ramps - http://sourceforge.net/projects/grblforramps14/
 +
 
 +
got it working with grbl controller on windows, now we want to move to linux/arch...
 +
 
 +
connecting to the serial port i get input
 +
  Grbl 0.9g ['$' for help]
 +
 
 +
* using grbl from command line
 +
https://github.com/grbl/grbl/wiki/Using-Grbl
 +
 
 +
* list of grbl controllers - http://www.shapeoko.com/wiki/index.php/Communication_/_Control
 +
 
  
==firmware==
 
 
===repetier host===
 
===repetier host===
 +
<b>on hold</b>
 
[http://www.repetier.com/ Repertier-Host] ([https://github.com/repetier/Repetier-Host git]) is used for firmware and optionally for controlling software. Version 0.9 (current on fedora [http://pkgs.fedoraproject.org/cgit/RepetierHost.git/ 21]) isn't good enough. But [pronsole (printrun) works fine, so does this python snippet: (using pyserial only, and very basic gcode gleened from pronsole source):
 
[http://www.repetier.com/ Repertier-Host] ([https://github.com/repetier/Repetier-Host git]) is used for firmware and optionally for controlling software. Version 0.9 (current on fedora [http://pkgs.fedoraproject.org/cgit/RepetierHost.git/ 21]) isn't good enough. But [pronsole (printrun) works fine, so does this python snippet: (using pyserial only, and very basic gcode gleened from pronsole source):
  
Line 50: Line 58:
 
<br><br>
 
<br><br>
  
===gbrl===
 
<b>on hold</b>
 
this needs a adaptation for using our arduino shield (RAMPS1.4) there is a custom firmware (GRBL_RAMPS1_4) for this but it doesn't seem to be actively developed, or work.
 
  
one of the popular firmware for controlling stepper drivers and parsing G-CODE
 
* compile and upload -https://github.com/grbl/grbl/wiki/Compiling-Grbl
 
*connecting to an MCU - https://github.com/grbl/grbl/wiki/Connecting-Grbl
 
  
 
==manual==
 
==manual==
Line 66: Line 68:
 
http://reprap.org/wiki/PCB_Milling
 
http://reprap.org/wiki/PCB_Milling
 
https://github.com/pknoe3lh/cncgcodecontroller
 
https://github.com/pknoe3lh/cncgcodecontroller
 +
===generating models and gcode===
 +
{{#ev:youtube|107FGoYX1bg}}
 +
* [https://inkscape.org/en/ inkscape]-> [http://www.makercam.com/ makercam] -> <s>GRBL</s> RepetierHost  -> arduino+RAMPS

Revision as of 13:03, 8 March 2015


original body came from a MYDIYCNC that was left on a beach.
now try the software side.

TODO

  • z stepper motor is broken - nema17 replacement need to install.
  • connect the dremel to the RAMPS board
  • limit switch
  • z-probe - repetier z-probing

software

firmware

gbrl

one of the popular firmware for controlling stepper drivers and parsing G-CODE

noam installed gbrl for ramps - http://sourceforge.net/projects/grblforramps14/

got it working with grbl controller on windows, now we want to move to linux/arch...

connecting to the serial port i get input

 Grbl 0.9g ['$' for help]
  • using grbl from command line

https://github.com/grbl/grbl/wiki/Using-Grbl


repetier host

on hold Repertier-Host (git) is used for firmware and optionally for controlling software. Version 0.9 (current on fedora 21) isn't good enough. But [pronsole (printrun) works fine, so does this python snippet: (using pyserial only, and very basic gcode gleened from pronsole source):

import serial
s = serial.Serial('
$ cat rectral.py 
import serial

s = serial.Serial(port='/dev/ttyACM0', baudrate=250000)
d = [('X', 1), ('Y', 1), ('X', -1), ('Y', -1)]
l = [100, 200, 300, 400, 500, 600, 700, 800, 1000, 1100]

for le in l:
    for axis, direc in d:
        s.write('G%s%s F3000\n' % (axis, direc * le))


firmware "configuration.h" file pastebin as of 2014-10-25
enabled support for z-probing,the settings are at ball park esp.

// distance/difference between activated probe and nuzzle height
#define Z_PROBE_HEIGHT 40




manual

  • machine manual, good mostly for historical, mechanical design

MyDIYCNC_Comprehensive_Plans_and_Manual_eBook_1-4.pdf


links

http://reprap.org/wiki/PCB_Milling https://github.com/pknoe3lh/cncgcodecontroller

generating models and gcode