4. Computer controlled cutting

The goal of this week is to test vinylcutter and design, lasercut, and document a parametric press-fit construction kit

Checkout the documentation of our group assignment.

Vinylcutter

For the vynile cutter, I want to make a sticker with the logo of my company. I take the design that I maid with Gimp, it can be downloable just by clicking here.

udez_logo

Preparation

  1. Download and install Silhouette studio
  2. Prepare the PNG
  3. Prepare vynile paper on the machine, upload it on the machine, and like in the bellow picture, you need to check that the machine is ready.

vynile_paper_uploaded

Silhoutte studio

Machining

  1. Upload the logo

udez_silhouette_import

  1. Vectorize the logo in silhouette (not recommanded, but my logo is quiet simple so it's ok)
  2. Check that the vynile paper is already on the machine and ready to be used, and recheck the file, if the vectorization is ok.
  3. Then you can launch the job, when the job is launched, you need to be sure that you don't have problems with your vynile paper. It can fails sometimes and you can bait the machine.

machine_cutting

  1. And here you can see the result in the first picture, it's the top of my laptop and the other is the bottom.

logo_bottom_laptop logo_top_laptop

Files

You can download files just here:

Laser cutter

robot_pressfit

The failure

My initial goal

I would like to learn more about OPENSCAD, and continue to improve my first design.

So, I try to find openscad library for laser cutting and use it to make jointure for my first design.

The first and most important library that I found was this github library, so I try to use it.

Add library openscad on windows

  1. Download the library using direct download or when it's possible git.
  2. Add library on OPENSCADPATH/libraries/ folder _For more details, please go there

Why it's failure ?

Because for a reason that I really don't know, a major party of examples of the library doesn't work on my desktop; even the simple examples does not working.

It's work ... but not really

I choose to start by twho projects how inspired me.

My first idea was to test the two scripts and adapt them to my need. I try to apply modfications for my parameters and with cardboard. The code was not easy to read, and the modification doesn't always take effects. Moreover, the pieces was not totally pressfit. But it was so instructable for me to learn how to deal with openscad and laser cutting.

Library openscaser

To improve the previous projects and have my pressfit like I want. I decide to create my own OpenScad library.

I want create a library with this features:

  • Generate collection of variable puzzles cardboard
  • Utils functions for adding slots or holes
  • Modules minimalistic and reusable

Organization

To create this library, I start by taking the script of Ben Z. Yuan and try to simplify it and remove what I can.

The idea is to start with most simple shape, and when it's done go to the next shape.

Github repository

The idea of this is to create parametric library to generate pressfit kits. You can find the sources, just here

Organisation code

Contains 3 files for the moment:

  • config.scad contains all the parametric variable of the project.

  • slots.scad contains all the module to generate parametric slots and holes.

    This file need to be slit in two or three files (utils.scad, transformations.scad and slots.scad)

  • main.scad use slots to display and export the all thing.

    Need to write great parametric functions for displaying and exporting the code in DXF

    For now, they are two functions in this file for rendering, one of the is an export light, just to see all the disponible pieces.

    export_light export_light

How to export render in DXF file

  1. Make a render of your code
  2. Then click on File> Export > Export as DXF...
  3. Upload the file on Inkscape
  4. Adapt your document properties in Inkscape Inkscape
  5. Launch the lasercut machine

Principale mistakes

  • use vs include to import library: When you use use you juste reference the library of openscad (you can not update variables), however when you use include, you make concatenation between the two files, so you can update variables.
  • Preview vs Render: When you work on openscad, you have two modes of visualisations, and for lasercut, you need to be always in rendering mode to show your final rendering
  • Export as SVG does'nt keep the dimensions of the document

What's next ?

  • write functions of diplaying and exporting
  • Improve the transformation with external shapes