Difference between revisions of "PressFit 3-D sliced parabolic structure"

From Fab Lab Wiki - by NMÍ Kvikan
Jump to: navigation, search
(Resources (Links))
Line 47: Line 47:
  
 
==Resources (Links)==
 
==Resources (Links)==
* [http://toothbrush.dyndns.org/public/John/.data/1257578709727:parab.m parab.m]
+
* [http://web.media.mit.edu/~asun/work/parab.m/parab.m.octave parab.m]
 
* [http://toothbrush.dyndns.org/public/John/.data/1257578697085:cam.py cam.py](requires PIL, numpy, py-tk)
 
* [http://toothbrush.dyndns.org/public/John/.data/1257578697085:cam.py cam.py](requires PIL, numpy, py-tk)
 
* [http://www.gnu.org/software/octave/index.html Octave]
 
* [http://www.gnu.org/software/octave/index.html Octave]

Revision as of 17:26, 7 November 2009

Tutorial
Parab6.jpg
Creating a 3-D press fit parabola using parab.m
Author: John Williams
Materials: {{{Materials}}}
Tools: {{{Tools}}}
Difficulty: {{{Difficulty}}}
Estimated time: {{{Time}}}


This is a tutorial to use octave (or matlab) to generate a frame with a parabolic cut out.


Setting up parab.m parameters.

Parab.m creates an.svg file of slices that slide together, creating a 3-D parabolic structure. There are 7 parameters that you can change in parab.m. Three parameters define the shape and focus of the parabola and four are determined by the material you select. Of those four, two define the nubs on the frame top and are consequently unimportant.

Parabolic:

  • grid: this effects the number of slices, so that slices= 2(grid-1)
  • focus: the focal point distance from the base of the parabola, in inches
  • diameter: the largest diameter in inches

Material:

  • offset: the thickness above the ground
  • w_nub: nub width in inches
  • h_nub: nub height in inches
  • w_grid: Thickness of the frame material

Edit parab.m using any text editor to change the parameters above. Save the file.

Run parab.m in octave.

Open Octave in the same directory as parab.m. At the octave command line, type “parab”. Octave will generate a set of graphs and figures. Octave will automatically create a file named “parab.svg” in this same directory. Quit Octave.

Modifying parab.svg

Currently, parab.m outputs all the slices on top of each other, so you need to clean up parab.svg before using it. There are two ways of doing this. Open the file with a program capable of editing .svg files and drag the slices off of each other, or open up the file with a text editor and delete all but the outside sets of polylines, leaving you with one x slice and one y slice.

Run cam.py to create toolpath for laser cutter

Note: This step is not needed if you have a svg to laser cutter driver. Open parab.svg in cam.py. Choose your output file type in the menu below the preview box, and your output name in the text box above that. Click contour boundary, then click write toolpath. Your toolpath will be created in the directory from which cam.py is running.

Sending toolpath to lasercutter

You can now use the “send to” button to send the toolpath to your lasercutter, or you can just send the toolpath file you created directly to lasercutter.

Troubleshooting

Post problems you had following these instructions, solved or not, here.


Resources (Links)

Gallery

Upload your photos here, we're always interested to see what you made!