You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
38 lines
1.3 KiB
38 lines
1.3 KiB
8 years ago
|
/////////////////////////////////////////////////////////////////////////////////
|
||
|
// Lid for the housing box for UppSense first tries.
|
||
|
//
|
||
|
// Author: Maximilian Stiefel
|
||
7 years ago
|
// Last modification: 23.05.2017
|
||
8 years ago
|
/////////////////////////////////////////////////////////////////////////////////
|
||
|
|
||
|
/////////////////////////////////////////////////////////////////////////////////
|
||
|
// Vars
|
||
|
/////////////////////////////////////////////////////////////////////////////////
|
||
7 years ago
|
allowance_pcb = 0.2;
|
||
8 years ago
|
thickness = 5;
|
||
7 years ago
|
length = 80 + 2*allowance_pcb;
|
||
|
width = 50 + 2*allowance_pcb;
|
||
8 years ago
|
lid_depth = 5;
|
||
|
my_color = "DarkRed";
|
||
|
knob_r = 10;
|
||
|
knob_h = 20;
|
||
7 years ago
|
allowance_lid = 0.2;
|
||
8 years ago
|
|
||
|
color(my_color, 0.8) union(){
|
||
7 years ago
|
//cube([length + thickness, width + thickness, lid_depth]);
|
||
|
translate([thickness/2, thickness/2, 0])
|
||
|
hull()
|
||
|
{
|
||
7 years ago
|
cylinder(r=thickness/2-allowance_lid, h=lid_depth);
|
||
7 years ago
|
translate([0, width, 0])
|
||
7 years ago
|
cylinder(r=thickness/2-allowance_lid, h=lid_depth);
|
||
7 years ago
|
translate([length, 0, 0])
|
||
7 years ago
|
cylinder(r=thickness/2-allowance_lid, h=lid_depth);
|
||
7 years ago
|
translate([length, width, 0])
|
||
7 years ago
|
cylinder(r=thickness/2-allowance_lid, h=lid_depth);
|
||
7 years ago
|
|
||
|
}
|
||
|
translate([(length + thickness)/2, (width + thickness)/2, lid_depth-1])
|
||
|
cylinder(r=knob_r,h=knob_h);
|
||
8 years ago
|
}
|