diff options
author | Jonas Gunz <himself@jonasgunz.de> | 2024-09-14 19:34:30 +0200 |
---|---|---|
committer | Jonas Gunz <himself@jonasgunz.de> | 2024-09-14 19:34:30 +0200 |
commit | 471dbd8d1d578ad6d2d558c1c1bb2e39d589f070 (patch) | |
tree | d68792abf2307b8b0391f95a2523d80c763186ce | |
parent | c380946750613f9ace78919154a30f00f175ee1e (diff) | |
download | oscad_gridfinity-471dbd8d1d578ad6d2d558c1c1bb2e39d589f070.tar.gz |
psu
-rw-r--r-- | Makefile | 3 | ||||
-rw-r--r-- | psu.scad | 35 | ||||
-rw-r--r-- | psu_cover.scad | 2 | ||||
-rw-r--r-- | psu_lid.scad | 2 | ||||
-rw-r--r-- | psu_main.scad | 2 |
5 files changed, 34 insertions, 10 deletions
@@ -44,6 +44,9 @@ stl: $(STLDIR) $(STL) $(STLDIR)/gridfinity.stl: gridfinity.scad @echo +$(STLDIR)/psu.stl: $(BITSTORAGE_SIZES) + @echo + $(STLDIR)/bitstorage_%.stl: bitstorage.scad @echo [ STL ] $< $* @$(SCAD) $(STLOPTS) \ @@ -23,6 +23,8 @@ usb_x = 11.6 + tol; usb_y = 21.5 + tol; usb_z = 1 + tol; +usb_location = [100,0,0]; + module module_negative() { rotate([90,0,0]) linear_extrude(5) { translate([-2, module_y/2 - module_clip_width/2]) square([2,module_clip_width]); @@ -46,17 +48,30 @@ module usb_hole_negative() { translate([-1,-5,0]) cube([usb_x+2,5,8]); } -usb_location = [100,0,0]; +module psu_lid() { + gridfinity(ux, uy, 1, lip=true, magnets=false, fill = false, bottom_height = 0); +} -difference() { - gridfinity(ux, uy, uz, lip=true, magnets=false, fill = false, bottom_height = 0); - translate(concat(gf_inner_origin(), [gf_inner_bottom()])) { - translate([5,0,10]) module_negative(); - translate([90,0,15]) plug_negative(); - translate([90,0,15+plug_distance]) plug_negative(); - translate(usb_location) usb_hole_negative(); +module psu_cover() { + difference() { + gridfinity(ux, uy, uz + 1, lip=true, magnets=false, fill = false, bottom_height = 0); + translate(concat(gf_inner_origin(), [gf_inner_bottom()])) { + translate([0,-5,0]) cube([gf_inner(ux),5,gf_top(uz+1)-gf_inner_bottom() + 5]); + } } } -translate(concat(gf_inner_origin(), [gf_inner_bottom()])) - translate(usb_location) usb_inset(); +module psu_main() { + difference() { + gridfinity(ux, uy, uz, lip=true, magnets=false, fill = false, bottom_height = 0); + translate(concat(gf_inner_origin(), [gf_inner_bottom()])) { + translate([5,0,10]) module_negative(); + translate([90,0,15]) plug_negative(); + translate([90,0,15+plug_distance]) plug_negative(); + translate(usb_location) usb_hole_negative(); + } + } + + translate(concat(gf_inner_origin(), [gf_inner_bottom()])) + translate(usb_location) usb_inset(); +} diff --git a/psu_cover.scad b/psu_cover.scad new file mode 100644 index 0000000..f870e6a --- /dev/null +++ b/psu_cover.scad @@ -0,0 +1,2 @@ +use <psu.scad> +psu_cover(); diff --git a/psu_lid.scad b/psu_lid.scad new file mode 100644 index 0000000..c2b1484 --- /dev/null +++ b/psu_lid.scad @@ -0,0 +1,2 @@ +use <psu.scad> +psu_lid(); diff --git a/psu_main.scad b/psu_main.scad new file mode 100644 index 0000000..9b45138 --- /dev/null +++ b/psu_main.scad @@ -0,0 +1,2 @@ +use <psu.scad> +psu_main(); |