Difference between revisions of "Mini CNC"

From TAMI
Jump to navigationJump to search
 
(27 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 +
=its broke, needs a ramps+mega combo=
  
  
== MYDIYCNC ==
+
http://i.imgur.com/8EjnffL.jpg
[http://i.imgur.com/gDEV2NR.jpg pic1] <br>
 
<strike>its wired, but not moving yet</strike><br>
 
* suspect the supplied driver being  bad or wired wrong.
 
[http://i.imgur.com/qs1ZOES.jpg pic2]
 
* moving successfully all 3 axis using an [http://www.schmalzhaus.com/EasyDriver/Examples/EasyDriverExamples.html easy-driver] controller - a common stepper driver for <750mA steppers.
 
[http://i.imgur.com/vzXyVdL.jpg pic3]
 
* i would like to try running the miniCNC using different controller, preferably a RAMPS board (elecfreaks.com)
 
<br>
 
for the other cnc's in the space see the [[Big_CNCs]] page
 
  
= manual =
+
original body came from a MYDIYCNC that was left on a beach.<br>
]https://wiki.hackmanhattan.com/images/4/42/MyDIYCNC_Comprehensive_Plans_and_Manual_eBook_1-4.pdf MyDIYCNC_Comprehensive_Plans_and_Manual_eBook_1-4.pdf[
+
now try the software side.
  
= links =  
+
==TODO==
* milling fine PCB traces calls for leveling the bed-
+
*<s>z stepper motor is broken - nema17 replacement need to install.</s>
** PcbSubtraction
+
* connect the dremel to the RAMPS board
**
+
* limit switch
 +
* z-probe - [http://www.repetier.com/documentation/repetier-firmware/z-probing/ repetier z-probing]
  
= wiring =
+
==software==
 +
there are usually several programs in the process.
 +
* create the artwork (inkscape for 2D, XXX for 3D)
 +
* generate the toolpath/gcode (pycam, ....)
 +
* cnc controller, to send the gcode
  
stepper wiring<br>
 
A1 - black <br>
 
A2 - green<br>
 
B1 - red<br>
 
B2 - blue<br>
 
<br><br>
 
following is the cable wiring with function/color/number
 
we connected using diagram from manual (page 45)
 
  
 +
===cnc controller===
  
spindle cw blk  1
+
got it working with [http://zapmaker.org/projects/grbl-controller-3-0/ grbl controller] on windows
 +
====universal gcode sender====
 +
using the 1.0.8 release , its java based so works anywhere. tested on arch/linux
  
xstep  brwn 2
+
link https://github.com/winder/Universal-G-Code-Sender
 +
screenshot https://imgur.com/6BYzooS
  
xdir red 3
+
LTDR
 +
  wget  https://github.com/winder/builds/blob/master/UniversalGCodeSender/UniversalGcodeSender-v1.0.8.zip
 +
  unzip UniversalGcodeSender-v1.0.8.zip
 +
  cat README.txt
 +
  java -jar -Xmx256m UniversalGcodeSender.jar
  
x enabe orng 4
+
====command line ====
 +
https://github.com/grbl/grbl/wiki/Using-Grbl
  
y step ylw 5
 
  
ydirdeep grn 6
+
and a list of other grbl controllers - http://www.shapeoko.com/wiki/index.php/Communication_/_Control
  
yenabe deepBlu 7
+
==firmware==
 +
===gbrl===
 +
one of the popular firmware for controlling stepper drivers and parsing G-CODE
  
zsteppurplr 8
+
noam installed gbrl for ramps - http://sourceforge.net/projects/grblforramps14/
  
zdir gry 9
+
===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):
  
wht 10
+
import serial
 +
s = serial.Serial('
  
x limit switch pinkk 11
+
$ 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))
  
light green 12
 
  
grey blk 13
+
firmware "configuration.h" file [http://pastebin.com/raw.php?i=gggdtKE3 pastebin] as of 2014-10-25 <br>
 +
enabled support for z-probing,the settings are at ball park esp.<br>
  
zenable brwn white 14
+
// distance/difference between activated probe and nuzzle height
 +
#define Z_PROBE_HEIGHT 40
  
red white 15
+
<br><br>
 
 
orng white 16
 
 
 
deep green /whte 17
 
 
 
blu white 18
 
 
 
purpe white 19
 
 
 
red blk 20
 
 
 
orng blk 21
 
 
 
ylw bk 22
 
 
 
grn blk 23
 
 
 
gry blk 24
 
  
pnk blk 25
 
  
= software =
 
*KCAM 4 (demo version) -
 
slightly configured (page 84)
 
*linuxCNC
 
i mounted the live linuxCNC disk and installed ubuntu on the cnc machine [[PCs #74]]<br>
 
got a conf file from mydiycnc site (named MyDIYCNC.stepconf)<br>
 
conf files are used to setup the configuration of new machines.<br>
 
  
following the [http://wiki.linuxcnc.org/cgi-bin/wiki.pl?Configuring_EMC2 linuxCNC configuration file]
+
==hardware==
 +
* PSU pinout http://www.rom.by/files/DPS-800GB-A_0.png
  
*MACH3
+
==manual==
 +
* machine manual, good mostly for historical, mechanical design<br>
 +
[https://wiki.hackmanhattan.com/images/4/42/MyDIYCNC_Comprehensive_Plans_and_Manual_eBook_1-4.pdf MyDIYCNC_Comprehensive_Plans_and_Manual_eBook_1-4.pdf]
  
 +
==links==
  
* others on the web
+
===generating models and gcode===
http://reprap.org/wiki/PCB_Milling
+
{{#ev:youtube|107FGoYX1bg}}
https://github.com/pknoe3lh/cncgcodecontroller
+
* [https://inkscape.org/en/ inkscape]-> [http://www.makercam.com/ makercam] -> <s>GRBL</s> RepetierHost  -> arduino+RAMPS
 +
* nica [http://reprap.org/wiki/PCB_Milling
 +
https://github.com/pknoe3lh/cncgcodecontroller tutorial] for makercam

Latest revision as of 12:30, 27 November 2015

its broke, needs a ramps+mega combo

8EjnffL.jpg

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

there are usually several programs in the process.

  • create the artwork (inkscape for 2D, XXX for 3D)
  • generate the toolpath/gcode (pycam, ....)
  • cnc controller, to send the gcode


cnc controller

got it working with grbl controller on windows

universal gcode sender

using the 1.0.8 release , its java based so works anywhere. tested on arch/linux

link https://github.com/winder/Universal-G-Code-Sender screenshot https://imgur.com/6BYzooS

LTDR

 wget  https://github.com/winder/builds/blob/master/UniversalGCodeSender/UniversalGcodeSender-v1.0.8.zip
 unzip UniversalGcodeSender-v1.0.8.zip
 cat README.txt
 java -jar -Xmx256m UniversalGcodeSender.jar 

command line

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


and a list of other grbl controllers - http://www.shapeoko.com/wiki/index.php/Communication_/_Control

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/

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




hardware

  • PSU pinout DPS-800GB-A_0.png

manual

  • machine manual, good mostly for historical, mechanical design

MyDIYCNC_Comprehensive_Plans_and_Manual_eBook_1-4.pdf

links

generating models and gcode

https://github.com/pknoe3lh/cncgcodecontroller tutorial] for makercam