Difference between revisions of "3d printing"

From Applied Optics Wiki
Jump to: navigation, search
(Typical workflow (how to design and print something))
(Typical workflow (how to design and print something))
Line 30: Line 30:
  
 
== Typical workflow (how to design and print something) ==
 
== Typical workflow (how to design and print something) ==
In OpenSCAD design an object - this is done by writing a little program to describe it.  This is very easy and very efficient, eg.
+
# In OpenSCAD design an object - this is done by writing a little program to describe it.  This is very easy and very efficient, eg.
 
 
 
<pre>  
 
<pre>  
 
// linos compatible plate with 30mm hole
 
// linos compatible plate with 30mm hole
Line 49: Line 48:
 
}
 
}
 
</pre>
 
</pre>
 +
 +
When you're happy use OpenSCAD to save in the .STL format
 +
 +
# Turn the .STL into .x3g
 +
 +
## Load the .STL file in replicatorg
 +
'''NB: Make sure replicatorg is set for the correct printer''' (machine:machine type (driver):replicator 2).
 +
## Use the GCode:estimate function to estimate how long your design will take to print - do you really want to do this?
 +
## Select generate .gcode (or click the ->gcode button), this will typically take a few minutes. This '''should''' spot if your
 +
design has -ve height - '''allow replicatorg to fix this'''. Get a cup of tea.
 +
## Generate the .x3g file - press the ->document icon (Build file for SD card, located next to ->gcode button). '''Make sure you select .x3g".
 +
 +
# Check the .gcode with RepitierHost
 +
 +
Simply load the .gcode file and check it layer by layer to make sure you are happy.
 +
 +
# Put your .x3g file onto an SD card. Take to the printer, insert and print.

Revision as of 18:42, 9 June 2013

The Fab Lab has a Makerbot Replicator 2 for 3D printing using PLA plastic.

Training

The replicator 2 is a relatively easy and straightforward machine to use. BUT please ask someone who has used it before to show you how before trying it.

Prerequisites

The printer is set up only to accept files in .x3g format supplied on an SD card. If you want to print some other way forget it. Since most instructions will assume you print from makerware from a computer directly attached to the print please follow these instructions carefully (else you can bugger the printer).

Software

Please install the follow bits of software on your computer - they all run on all platforms (Windows, Mac and Linux) and all have reasonable instructions for installation. I have only tested on linux from kubuntu, YMMV.

OpenSCAD

This is a really nice bit of software for designing 3D objects. You use it be writing a very simple program to describe your object. Once you are happy you export to a .STL file which describes your object. OpenSCAD is in kubuntu repositories

ReplicatorG

This will take the .STL file and produce .gcode and .x3g code. The .gcode is basically the generic instructions for printing the object. The .x3g is a specific translation of the gcode for the 3D printer. ReplicatorG can be obtained here: http://replicat.org/

ReptierHost

This is useful for viewing the .gcode instructions to make sure you are happy with the internal structure of the object you're designing. RepetierHost can be downloaded here: http://www.repetier.com/download/

Makerware

This is makerbot's own system - I haven't tried it.

Typical workflow (how to design and print something)

  1. In OpenSCAD design an object - this is done by writing a little program to describe it. This is very easy and very efficient, eg.
 
// linos compatible plate with 30mm hole
$fn=50; 
difference(){ 
	// the cube 
	minkowski(){ 
	cube([38,38,8],center=true); 
	cylinder(r=1,h=1); 
	} 
	// the stuff we remove 
	rotate([0,0,0])cylinder(h=50,r=15,center=true); 
	translate([15,15,0])cylinder(h=10,r=3,center=true); 
	translate([-15,15,0])cylinder(h=10,r=3,center=true); 
	translate([15,-15,0])cylinder(h=10,r=3,center=true); 
	translate([-15,-15,0])cylinder(h=10,r=3,center=true); 
	}

When you're happy use OpenSCAD to save in the .STL format

  1. Turn the .STL into .x3g
    1. Load the .STL file in replicatorg

NB: Make sure replicatorg is set for the correct printer (machine:machine type (driver):replicator 2).

    1. Use the GCode:estimate function to estimate how long your design will take to print - do you really want to do this?
    2. Select generate .gcode (or click the ->gcode button), this will typically take a few minutes. This should spot if your

design has -ve height - allow replicatorg to fix this. Get a cup of tea.

    1. Generate the .x3g file - press the ->document icon (Build file for SD card, located next to ->gcode button). Make sure you select .x3g".
  1. Check the .gcode with RepitierHost

Simply load the .gcode file and check it layer by layer to make sure you are happy.

  1. Put your .x3g file onto an SD card. Take to the printer, insert and print.