Browse Source

Optimized some stuff. Hope to be bug free now.

master
Maximilian Stiefel 7 years ago
parent
commit
0192094bde
  1. 12
      cad/adapter.scad
  2. 1303
      cad/adapter.step
  3. 264
      cad/adapter.stl
  4. 9
      cad/housing.scad
  5. 7479
      cad/housing.step
  6. 2924
      cad/housing.stl
  7. 18
      cad/lid.scad
  8. 2959
      cad/lid.step
  9. 1166
      cad/lid.stl

12
cad/adapter.scad

@ -2,19 +2,23 @@
// Housing box for UppSense first tries.
//
// Author: Maximilian Stiefel
// Last modification: 28.04.2017
// Last modification: 23.05.2017
/////////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////////
// Vars
/////////////////////////////////////////////////////////////////////////////////
allowance_glass = 0.2;
allowance_glass = 0.1;
allowance_pcb = 0.2;
thickness = 5;
length = 80 + 2*allowance_pcb;
my_color = "DarkRed";
glass_width = 26 + allowance_glass;
glass_height = 2 + allowance_glass;
glass_length = 76 + allowance_glass;
slot = 3; // Depness of the glass slot
adapter_length = 2 + 5 + 4 + slot; // 2*allowance_pcb + thickness + distance(glass_slide, wall_inside) + slot
slot = 3; // Deepness of the glass slot
adapter_length = thickness + length + slot - glass_length;
/////////////////////////////////////////////////////////////////////////////////
// Action

1303
cad/adapter.step

File diff suppressed because it is too large

264
cad/adapter.stl

@ -1,310 +1,310 @@
solid OpenSCAD_Model
facet normal -1 0 0
outer loop
vertex -31.44 0 7.62939e-07
vertex -31.44 14 6.6
vertex -31.44 14 7.62939e-07
vertex -31.32 -7.62939e-07 3.8147e-07
vertex -31.32 12.3 6.3
vertex -31.32 12.3 3.8147e-07
endloop
endfacet
facet normal -1 -0 0
outer loop
vertex -31.44 14 6.6
vertex -31.44 0 7.62939e-07
vertex -31.44 0 6.6
vertex -31.32 12.3 6.3
vertex -31.32 -7.62939e-07 3.8147e-07
vertex -31.32 -7.62939e-07 6.3
endloop
endfacet
facet normal -0 0 1
outer loop
vertex -31.44 14 6.6
vertex -8.7738e-07 0 6.6
vertex -8.7738e-07 14 6.6
vertex -31.32 12.3 6.3
vertex -7.24792e-07 -7.62939e-07 6.3
vertex -7.24792e-07 12.3 6.3
endloop
endfacet
facet normal 0 0 1
outer loop
vertex -8.7738e-07 0 6.6
vertex -31.44 14 6.6
vertex -31.44 0 6.6
vertex -7.24792e-07 -7.62939e-07 6.3
vertex -31.32 12.3 6.3
vertex -31.32 -7.62939e-07 6.3
endloop
endfacet
facet normal 1 -0 0
outer loop
vertex -8.7738e-07 0 6.6
vertex -8.7738e-07 14 7.62939e-07
vertex -8.7738e-07 14 6.6
vertex -7.24792e-07 -7.62939e-07 6.3
vertex -7.24792e-07 12.3 3.8147e-07
vertex -7.24792e-07 12.3 6.3
endloop
endfacet
facet normal 1 0 0
outer loop
vertex -8.7738e-07 14 7.62939e-07
vertex -8.7738e-07 0 6.6
vertex -8.7738e-07 0 7.62939e-07
vertex -7.24792e-07 12.3 3.8147e-07
vertex -7.24792e-07 -7.62939e-07 6.3
vertex -7.24792e-07 -7.62939e-07 3.8147e-07
endloop
endfacet
facet normal 0 1 0
outer loop
vertex -8.7738e-07 14 6.6
vertex -2.62 14 4.4
vertex -31.44 14 6.6
vertex -7.24792e-07 12.3 6.3
vertex -2.61 12.3 4.2
vertex -31.32 12.3 6.3
endloop
endfacet
facet normal 0 1 0
outer loop
vertex -8.7738e-07 14 6.6
vertex -2.62 14 2.2
vertex -2.62 14 4.4
vertex -7.24792e-07 12.3 6.3
vertex -2.61 12.3 2.1
vertex -2.61 12.3 4.2
endloop
endfacet
facet normal 0 1 0
outer loop
vertex -2.62 14 2.2
vertex -8.7738e-07 14 7.62939e-07
vertex -28.82 14 2.2
vertex -2.61 12.3 2.1
vertex -7.24792e-07 12.3 3.8147e-07
vertex -28.71 12.3 2.1
endloop
endfacet
facet normal 0 1 -0
outer loop
vertex -8.7738e-07 14 7.62939e-07
vertex -2.62 14 2.2
vertex -8.7738e-07 14 6.6
vertex -7.24792e-07 12.3 3.8147e-07
vertex -2.61 12.3 2.1
vertex -7.24792e-07 12.3 6.3
endloop
endfacet
facet normal 0 1 -0
outer loop
vertex -28.82 14 4.4
vertex -31.44 14 6.6
vertex -2.62 14 4.4
vertex -28.71 12.3 4.2
vertex -31.32 12.3 6.3
vertex -2.61 12.3 4.2
endloop
endfacet
facet normal 0 1 -0
outer loop
vertex -28.82 14 2.2
vertex -31.44 14 6.6
vertex -28.82 14 4.4
vertex -28.71 12.3 2.1
vertex -31.32 12.3 6.3
vertex -28.71 12.3 4.2
endloop
endfacet
facet normal 0 1 0
outer loop
vertex -28.82 14 2.2
vertex -31.44 14 7.62939e-07
vertex -31.44 14 6.6
vertex -28.71 12.3 2.1
vertex -31.32 12.3 3.8147e-07
vertex -31.32 12.3 6.3
endloop
endfacet
facet normal 0 1 0
outer loop
vertex -31.44 14 7.62939e-07
vertex -28.82 14 2.2
vertex -8.7738e-07 14 7.62939e-07
vertex -31.32 12.3 3.8147e-07
vertex -28.71 12.3 2.1
vertex -7.24792e-07 12.3 3.8147e-07
endloop
endfacet
facet normal 0 0 -1
outer loop
vertex -31.44 0 7.62939e-07
vertex -8.7738e-07 14 7.62939e-07
vertex -8.7738e-07 0 7.62939e-07
vertex -31.32 -7.62939e-07 3.8147e-07
vertex -7.24792e-07 12.3 3.8147e-07
vertex -7.24792e-07 -7.62939e-07 3.8147e-07
endloop
endfacet
facet normal -0 0 -1
outer loop
vertex -8.7738e-07 14 7.62939e-07
vertex -31.44 0 7.62939e-07
vertex -31.44 14 7.62939e-07
vertex -7.24792e-07 12.3 3.8147e-07
vertex -31.32 -7.62939e-07 3.8147e-07
vertex -31.32 12.3 3.8147e-07
endloop
endfacet
facet normal -1 0 0
outer loop
vertex -41.92 -14 -3.3
vertex -41.92 0 9.9
vertex -41.92 0 -3.3
vertex -41.76 -12.3 -3.15
vertex -41.76 -7.62939e-07 9.45
vertex -41.76 -7.62939e-07 -3.15
endloop
endfacet
facet normal -1 -0 0
outer loop
vertex -41.92 0 9.9
vertex -41.92 -14 -3.3
vertex -41.92 -14 9.9
vertex -41.76 -7.62939e-07 9.45
vertex -41.76 -12.3 -3.15
vertex -41.76 -12.3 9.45
endloop
endfacet
facet normal -0 0 1
outer loop
vertex -41.92 0 9.9
vertex 10.48 -14 9.9
vertex 10.48 0 9.9
vertex -41.76 -7.62939e-07 9.45
vertex 10.44 -12.3 9.45
vertex 10.44 -7.62939e-07 9.45
endloop
endfacet
facet normal 0 0 1
outer loop
vertex 10.48 -14 9.9
vertex -41.92 0 9.9
vertex -41.92 -14 9.9
vertex 10.44 -12.3 9.45
vertex -41.76 -7.62939e-07 9.45
vertex -41.76 -12.3 9.45
endloop
endfacet
facet normal 1 -0 0
outer loop
vertex 10.48 -14 9.9
vertex 10.48 0 -3.3
vertex 10.48 0 9.9
vertex 10.44 -12.3 9.45
vertex 10.44 -7.62939e-07 -3.15
vertex 10.44 -7.62939e-07 9.45
endloop
endfacet
facet normal 1 0 0
outer loop
vertex 10.48 0 -3.3
vertex 10.48 -14 9.9
vertex 10.48 -14 -3.3
vertex 10.44 -7.62939e-07 -3.15
vertex 10.44 -12.3 9.45
vertex 10.44 -12.3 -3.15
endloop
endfacet
facet normal 0 0 -1
outer loop
vertex -41.92 -14 -3.3
vertex 10.48 0 -3.3
vertex 10.48 -14 -3.3
vertex -41.76 -12.3 -3.15
vertex 10.44 -7.62939e-07 -3.15
vertex 10.44 -12.3 -3.15
endloop
endfacet
facet normal -0 0 -1
outer loop
vertex 10.48 0 -3.3
vertex -41.92 -14 -3.3
vertex -41.92 0 -3.3
vertex 10.44 -7.62939e-07 -3.15
vertex -41.76 -12.3 -3.15
vertex -41.76 -7.62939e-07 -3.15
endloop
endfacet
facet normal 0 -1 0
outer loop
vertex -41.92 -14 -3.3
vertex 10.48 -14 9.9
vertex -41.92 -14 9.9
vertex -41.76 -12.3 -3.15
vertex 10.44 -12.3 9.45
vertex -41.76 -12.3 9.45
endloop
endfacet
facet normal 0 -1 -0
outer loop
vertex 10.48 -14 9.9
vertex -41.92 -14 -3.3
vertex 10.48 -14 -3.3
vertex 10.44 -12.3 9.45
vertex -41.76 -12.3 -3.15
vertex 10.44 -12.3 -3.15
endloop
endfacet
facet normal 0 1 0
outer loop
vertex 10.48 0 9.9
vertex -8.7738e-07 0 6.6
vertex -41.92 0 9.9
vertex 10.44 -7.62939e-07 9.45
vertex -7.24792e-07 -7.62939e-07 6.3
vertex -41.76 -7.62939e-07 9.45
endloop
endfacet
facet normal 0 1 0
outer loop
vertex 10.48 0 9.9
vertex -8.7738e-07 0 7.62939e-07
vertex -8.7738e-07 0 6.6
vertex 10.44 -7.62939e-07 9.45
vertex -7.24792e-07 -7.62939e-07 3.8147e-07
vertex -7.24792e-07 -7.62939e-07 6.3
endloop
endfacet
facet normal 0 1 0
outer loop
vertex -8.7738e-07 0 7.62939e-07
vertex 10.48 0 -3.3
vertex -31.44 0 7.62939e-07
vertex -7.24792e-07 -7.62939e-07 3.8147e-07
vertex 10.44 -7.62939e-07 -3.15
vertex -31.32 -7.62939e-07 3.8147e-07
endloop
endfacet
facet normal 0 1 -0
outer loop
vertex 10.48 0 -3.3
vertex -8.7738e-07 0 7.62939e-07
vertex 10.48 0 9.9
vertex 10.44 -7.62939e-07 -3.15
vertex -7.24792e-07 -7.62939e-07 3.8147e-07
vertex 10.44 -7.62939e-07 9.45
endloop
endfacet
facet normal 0 1 -0
outer loop
vertex -31.44 0 6.6
vertex -41.92 0 9.9
vertex -8.7738e-07 0 6.6
vertex -31.32 -7.62939e-07 6.3
vertex -41.76 -7.62939e-07 9.45
vertex -7.24792e-07 -7.62939e-07 6.3
endloop
endfacet
facet normal 0 1 -0
outer loop
vertex -31.44 0 7.62939e-07
vertex -41.92 0 9.9
vertex -31.44 0 6.6
vertex -31.32 -7.62939e-07 3.8147e-07
vertex -41.76 -7.62939e-07 9.45
vertex -31.32 -7.62939e-07 6.3
endloop
endfacet
facet normal 0 1 0
outer loop
vertex -31.44 0 7.62939e-07
vertex -41.92 0 -3.3
vertex -41.92 0 9.9
vertex -31.32 -7.62939e-07 3.8147e-07
vertex -41.76 -7.62939e-07 -3.15
vertex -41.76 -7.62939e-07 9.45
endloop
endfacet
facet normal 0 1 0
outer loop
vertex -41.92 0 -3.3
vertex -31.44 0 7.62939e-07
vertex 10.48 0 -3.3
vertex -41.76 -7.62939e-07 -3.15
vertex -31.32 -7.62939e-07 3.8147e-07
vertex 10.44 -7.62939e-07 -3.15
endloop
endfacet
facet normal 1 -0 0
outer loop
vertex -28.82 11 4.4
vertex -28.82 14 2.2
vertex -28.82 14 4.4
vertex -28.71 9.3 4.2
vertex -28.71 12.3 2.1
vertex -28.71 12.3 4.2
endloop
endfacet
facet normal 1 0 0
outer loop
vertex -28.82 14 2.2
vertex -28.82 11 4.4
vertex -28.82 11 2.2
vertex -28.71 12.3 2.1
vertex -28.71 9.3 4.2
vertex -28.71 9.3 2.1
endloop
endfacet
facet normal 0 0 -1
outer loop
vertex -28.82 11 4.4
vertex -2.62 14 4.4
vertex -2.62 11 4.4
vertex -28.71 9.3 4.2
vertex -2.61 12.3 4.2
vertex -2.61 9.3 4.2
endloop
endfacet
facet normal -0 0 -1
outer loop
vertex -2.62 14 4.4
vertex -28.82 11 4.4
vertex -28.82 14 4.4
vertex -2.61 12.3 4.2
vertex -28.71 9.3 4.2
vertex -28.71 12.3 4.2
endloop
endfacet
facet normal -1 0 0
outer loop
vertex -2.62 11 2.2
vertex -2.62 14 4.4
vertex -2.62 14 2.2
vertex -2.61 9.3 2.1
vertex -2.61 12.3 4.2
vertex -2.61 12.3 2.1
endloop
endfacet
facet normal -1 -0 0
outer loop
vertex -2.62 14 4.4
vertex -2.62 11 2.2
vertex -2.62 11 4.4
vertex -2.61 12.3 4.2
vertex -2.61 9.3 2.1
vertex -2.61 9.3 4.2
endloop
endfacet
facet normal -0 0 1
outer loop
vertex -28.82 14 2.2
vertex -2.62 11 2.2
vertex -2.62 14 2.2
vertex -28.71 12.3 2.1
vertex -2.61 9.3 2.1
vertex -2.61 12.3 2.1
endloop
endfacet
facet normal 0 0 1
outer loop
vertex -2.62 11 2.2
vertex -28.82 14 2.2
vertex -28.82 11 2.2
vertex -2.61 9.3 2.1
vertex -28.71 12.3 2.1
vertex -28.71 9.3 2.1
endloop
endfacet
facet normal 0 1 -0
outer loop
vertex -2.62 11 2.2
vertex -28.82 11 4.4
vertex -2.62 11 4.4
vertex -2.61 9.3 2.1
vertex -28.71 9.3 4.2
vertex -2.61 9.3 4.2
endloop
endfacet
facet normal 0 1 0
outer loop
vertex -28.82 11 4.4
vertex -2.62 11 2.2
vertex -28.82 11 2.2
vertex -28.71 9.3 4.2
vertex -2.61 9.3 2.1
vertex -28.71 9.3 2.1
endloop
endfacet
endsolid OpenSCAD_Model

9
cad/housing.scad

@ -2,7 +2,7 @@
// Housing box for UppSense first tries.
//
// Author: Maximilian Stiefel
// Last modification: 26.04.2017
// Last modification: 23.05.2017
/////////////////////////////////////////////////////////////////////////////////
use <open_box.scad>
@ -10,7 +10,7 @@ use <open_box.scad>
/////////////////////////////////////////////////////////////////////////////////
// Vars
/////////////////////////////////////////////////////////////////////////////////
allowance_pcb = 1;
allowance_pcb = 0.2;
width = 50 + 2*allowance_pcb;
length = 80 + 2*allowance_pcb;
height = 45;
@ -23,12 +23,11 @@ bolt_spacing = 5;
my_color = "DarkRed";
allowance_glass = 0.2;
allowance_glass = 0.1;
allowance_adapter = 0.2;
glass_width = 26 + allowance_glass;
glass_height = 2 + allowance_glass;
glass_length = 76 + allowance_glass;
slot = 3;
adapter_length = 2 + 5 + 4 + slot; // 2*allowance_pcb + thickness + distance(glass_slide, wall_inside) + slot;
@ -89,7 +88,7 @@ difference(){
// Slots for glass slide
// Slot in the back
//translate([length + thickness/2, thickness + (width - glass_width)/2, (height + thickness)/2 - glass_height])
translate([length + thickness/2, -(glass_width-1.2*glass_width)/2 + thickness + (width - 1.2*glass_width + allowance_adapter)/2, (3*glass_height + allowance_adapter - glass_height)/2 +(height + thickness)/2])
translate([length + slot, -(glass_width-1.2*glass_width)/2 + thickness + (width - 1.2*glass_width + allowance_adapter)/2, (3*glass_height + allowance_adapter - glass_height)/2 +(height + thickness)/2])
cube([thickness, glass_width, glass_height]);
// Slot in the front
translate([thickness + 1, thickness + (width - 1.2*glass_width + allowance_adapter)/2, (height + thickness)/2])

7479
cad/housing.step

File diff suppressed because it is too large

2924
cad/housing.stl

File diff suppressed because it is too large

18
cad/lid.scad

@ -2,34 +2,34 @@
// Lid for the housing box for UppSense first tries.
//
// Author: Maximilian Stiefel
// Last modification: 27.04.2017
// Last modification: 23.05.2017
/////////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////////
// Vars
/////////////////////////////////////////////////////////////////////////////////
allowance = 1;
allowance_pcb = 0.2;
thickness = 5;
length = 80 + 2*allowance;
width = 50 + 2*allowance;
length = 80 + 2*allowance_pcb;
width = 50 + 2*allowance_pcb;
lid_depth = 5;
my_color = "DarkRed";
knob_r = 10;
knob_h = 20;
allowance = 0.1;
allowance_lid = 0.2;
color(my_color, 0.8) union(){
//cube([length + thickness, width + thickness, lid_depth]);
translate([thickness/2, thickness/2, 0])
hull()
{
cylinder(r=thickness/2-allowance, h=lid_depth);
cylinder(r=thickness/2-allowance_lid, h=lid_depth);
translate([0, width, 0])
cylinder(r=thickness/2-allowance, h=lid_depth);
cylinder(r=thickness/2-allowance_lid, h=lid_depth);
translate([length, 0, 0])
cylinder(r=thickness/2-allowance, h=lid_depth);
cylinder(r=thickness/2-allowance_lid, h=lid_depth);
translate([length, width, 0])
cylinder(r=thickness/2-allowance, h=lid_depth);
cylinder(r=thickness/2-allowance_lid, h=lid_depth);
}
translate([(length + thickness)/2, (width + thickness)/2, lid_depth-1])

2959
cad/lid.step

File diff suppressed because it is too large

1166
cad/lid.stl

File diff suppressed because it is too large
Loading…
Cancel
Save