Difference between revisions of "CNC"

8,073 bytes removed ,  21:04, 22 January 2015
Line 16: Line 16:
[[File:Jake using the new CNC machine.JPG|550px|J using our new CNC - isn't it cute? Hope we can get more folks started on machining]]
[[File:Jake using the new CNC machine.JPG|550px|J using our new CNC - isn't it cute? Hope we can get more folks started on machining]]


=Jack's Mill=
== The Past ==


[[JacksMill]]
* [[JacksMill]] In the past jack lent us his CNC mill which we used to cut wood. It was at the old SudoRoom. It is no longer at the SudoRoom but it left behind some awesome memories.
In the past jack lent us his CNC mill which we used to cut wood. It was at the old SudoRoom. It is no longer at the SudoRoom but it left behind some awesome memories.
 
==Maintenance==
* Fairly self-maintaining
* Use a vaccuum while milling, especially with metal or large bits
* Bits can last for a while if treated with care, but aren't very expensive to replace--buy some for fun--but measure since our drill has a small chuck!
* Some items do require lubrication, but seldom
* Opening the lid along the x-axis and cleaning out debris is necessary from time to time
* Careful of hose connecting motor and drill housing, it can get tangled, require possible replacement (~$30)
 
==Components==
* Power supply
* USB to serial converter '''"Smooth Stepper"'''
* Stepper motor controller '''"Gecko Drive"'''
* Computer with operation software
** We use '''"Mach3"''' which seems to be the only software that works with our older hardware and the various other components. Unfortunately this requires windows
*** May want to experiment with running Mach3 in a VM.
** There is a range of available design software, but what seems to work well enough for CNC machines is '''CamBam Studio''', though it is not as nice as '''Sketchup'''
*** There are ways to import STL files into CamBam (also DXF, but they are screwy), but ultimately, care must be made for what type of milling is to be done.
*** To import STL files in CamBam select: Draw > Surface > From Mesh File. Then, select an STL file.
 
==Tutorials==
===Basic Example (wood sign)===
This tutorial seeks to demonstrate the existing tool-chain and a basic example of a project that a general sudoer could follow. If it fails in any fashion, please leave comments and make improvements. This is, after all, a wiki.
 
# Open '''CamBam''' and create a new file if necessary.
## If starting from an STL or DXF file, use the ''Draw > Surface > From Mesh File'' option or the ''File > Import'' option respectively.
## Otherwise, you can design inside of CamBam, including insertion of text, which seems to use any font available in the fonts directory in the operating system.
## On the left-hand side of CamBam, there should be an odd list with folder icons. Select the '''"Machining"''' item with a folder icon. Below, you will see some settings available for configuration.
### At this point you should clamp the stock into place, then measure the exposed, cutting area. There is a small, open face wooden box that has different clamps, give them a try.
### In CamBam, set the "Stock Size" but think of this as the "Cutting Area" of whatever material you'd like to mill into. There are X, Y, and Z dimensions. '''Use millimeters''' it's apparently less buggy this way.
## Now you get to draw!
##* We used ''Draw > Text'' and selected Palatino Linotype to make a sign for [[The Public School]].
##* Resize your drawing to fit the desired area, etc.
## Based on your drawing and the stock size, adjust the stock offset so it sits conveniently with your desired '''origin'''. This will be the place you center the mill later on, and should be a convenient place for ensuring the design is ultimately milled as intended.
##* You may need to move the drawing, resize, or change its position offset again.
## Select a '''Machining''' option from the ''Machining'' menu.
##* We used '''Pocket''' (''Machining > Pocket'')to cut at an even depth with a width greater than the size of the bit itself.
##* You may create multiple '''"Parts"''' by disabling the part, then selecting another Machining option. This is handy when using multiple passes over the stock, such as with a big bit and a small bit to produce clean cuts.
##* ''There are several forms of machining (milling) available that work differently: '''Profile''', '''Pocket''', '''Engrave''', '''3D Profile''', and '''Drill'''. Read the CamBam "Help" docs for more information.''
## Select the Machining Option item under your Part in the Machining settings for your current file (in that window on the left hand side). (E.g. we selected "Pocket1").
##* Most important are '''Target Depth''', '''Roughing / Finishing''', '''Finish Stepover''', '''Roughing Clearance''', and '''Tool Diameter'''--especially the '''Target Depth''' and '''Tool Diameter'''.
##** Use the digital calipers to measure the machining bit, especially if you're unsure of the size.
##* It is '''''strongly encouraged''''' to implement test cuts first, get a sense of the affect of different settings that will help you implement the milling to your desired specifications, especially with cutting rates.
## Finally, select ''Machining > Generate Tool Paths'' and examine the resulting paths. Does this meet your desired outocome?
##* If not, adjust more settings until it does. This process can take a while depending on the complexity.
##* Especially adjust '''Roughing Clearance''' which can be given negative values to oversize holes.
## When you are confident in the tool path, generate gcode by selecting ''Machining > Produce gcode''.
# Before turning anything else on, replace the bits if necessary using the drill key tool on the tool wall.
# Turn on the power supply, located behind the monitor stand, in a hefty, vcr-looking black box. It's '''not''' a white switch, instead it looks similar to the switch on the back of a computer's power supply.
# Also turn on the USB to serial converter using which '''is''' a white switch attached to a tiny black box in between the power supply and the mill. '''Down is on'''.
# Open Mach3
## Select ''File > Load G-Code'' and select the desired gcode generated by CamBam or from elsewhere.
## Select the ''Reset'' button.
## Select the ''REF ALL HOME'' button.
##* These should set the position of the mill at a default state.
## Using the '''up''', '''down''', '''left''', '''right''' arrow keys, jog the drill along the X and Y axes above the desired origin. This will move the drill head and the platen with your stock attached.
## Once in a fairly close position, use the '''pgup''' and '''pgdn''' keys to ''carefully'' move the tip of the bit on the Z axis to just touching or just barely above the desired origin.
##* '''Be careful''' not to move in the X and Y directions since this could break the bit. This is why the bit should be just above the stock when you set it as origin.
## Now, with the bit in place select the '''Zero X''', '''Zero Y''', '''Zero Z''' buttons in order to set the origin by which your design will be milled.
## At this point, lift the bit up in the Z direction just a tad. Select '''Reset'''. Select '''Cycle Start <Alt-R>'''.
## If you're using text, or some image with a left-to-right or right-to-left orientation, it's likely that you will need to "flip" the image in order for it to be milled in the correct direction. Namely, setting the Scale for X to -1 did the trick for us.
## Finally, use the '''Regen. Toolpath''' button to ensure the newly set origin takes effect.
## When ready to begin, select '''Cycle Start''' button. Use the '''Feed Hold''' for pausing the process and '''Stop''' to end the process or in an emergency.
# Use the shopvac to vacuum up the debris as it mills.
# When making multiple passes and changing bits, you only need to re-adjust the zero (origin) for the Z axis--keeping the other two the same ensures perfect registration!
# Happy CNCing!
 
===Alternate Instructions===
 
it is composed of a few components:
* an internet connected desktop windows PC that runs special software: mach3 (icon on desktop)
* a hacked engraver that does the milling
* a stepper driver that sits between the PC and the engraver and communicates via parallel port
 
mach3 only accepts gcode. you can either use your own gcode or use the program on the PC called CamBam to generate the gcode.
 
Until we make better tutorials for CamBam please only use the CNC if you can get a CamBam tutorial from someone!
 
===PCB (Printed Circuit Boards)===
 
====Other software====
* http://pycam.sourceforge.net/ open source program for generating milling paths
 
====Links====
* [http://rapid-pcb.com/ http://rapid-pcb.com/]
* [http://wiki.acemonstertoys.org/Milling_Circuit_Boards AMT's instructions]
* [http://imgur.com/a/461VK photos of the CNC area with helpful descriptions]


= Interested Sudoers =
= Interested Sudoers =
1,549

edits