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.
37 lines
1.3 KiB
37 lines
1.3 KiB
/////////////////////////////////////////////////////////////////////////////////
|
|
// Lid for the housing box for UppSense first tries.
|
|
//
|
|
// Author: Maximilian Stiefel
|
|
// Last modification: 23.05.2017
|
|
/////////////////////////////////////////////////////////////////////////////////
|
|
|
|
/////////////////////////////////////////////////////////////////////////////////
|
|
// Vars
|
|
/////////////////////////////////////////////////////////////////////////////////
|
|
allowance_pcb = 0.2;
|
|
thickness = 5;
|
|
length = 80 + 2*allowance_pcb;
|
|
width = 50 + 2*allowance_pcb;
|
|
lid_depth = 5;
|
|
my_color = "DarkRed";
|
|
knob_r = 10;
|
|
knob_h = 20;
|
|
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_lid, h=lid_depth);
|
|
translate([0, width, 0])
|
|
cylinder(r=thickness/2-allowance_lid, h=lid_depth);
|
|
translate([length, 0, 0])
|
|
cylinder(r=thickness/2-allowance_lid, h=lid_depth);
|
|
translate([length, width, 0])
|
|
cylinder(r=thickness/2-allowance_lid, h=lid_depth);
|
|
|
|
}
|
|
translate([(length + thickness)/2, (width + thickness)/2, lid_depth-1])
|
|
cylinder(r=knob_r,h=knob_h);
|
|
}
|
|
|