Hinge updated

This commit is contained in:
2023-06-23 01:08:11 +02:00
parent d2a15b8387
commit 2cd05f0a67

View File

@@ -33,9 +33,10 @@ translate([146.6, 0, 0])
// raspberry pi 4 cover
rpi4_cover();
// hinge test
//translate([width+(thickness*2)/2), -20, 0])
//male_hinge();
// display hinge
translate([(width+thickness*2)/2, -9, 6.57])
rotate([90, 270, 0])
male_hinge();
module usb_compartment(){
usb_tray_width=31;
@@ -141,12 +142,38 @@ module sloped_walls(width, depth, height, thickness){
}
}
module tab(length, thickness){
difference(){
union(){
translate([0,0,-5])
cube([length, thickness, 10], center=true);
rotate([90,0,0])
cylinder(h=thickness, d=length, center=true);
}
rotate([90,0,0])
cylinder(h=20, d=5, center=true);
}
}
module male_hinge(){
translate([0, 0, -10+th/2])
th=2.90; //Thickness of solid tabs
sp=3.10; //Width of seperation gap
w=15.14; //Width of base
l=13.14; //length of base
translate([0, 0, -10+th/2])
hull(){
cube([l, w, th], center=true);
//generating 2 tabs with sp spacing
translate([0, -sp, 0])
tab();
translate([0, sp, 0])
tab();
translate([-l/2, -w/2-4, -2])
cube([l+4, w+8, 0.1]);
}
//generating 2 tabs with sp spacing
translate([0, -sp, 0])
tab(l, th);
translate([0, sp, 0])
tab(l, th);
}