commit 4c3319ed5da2ffd9eea818c059f4653a1ef6d378 Author: Xavi Date: Sat Jan 28 13:30:51 2023 -0800 Added Cable Holders and Desk Tray diff --git a/README.md b/README.md new file mode 100644 index 0000000..ea7f9d5 --- /dev/null +++ b/README.md @@ -0,0 +1,9 @@ +# open_scad_projects +## Cable Holder +![Cable Holder](./images/cable_holder.png) + +## Cord Holder +![Cord Holder](./images/cord_holder.png) + +## Desk Cable Manage +![Cord Holder](./images/desk_cable_manage.png) diff --git a/cable_holder.scad b/cable_holder.scad new file mode 100644 index 0000000..2e47d2e --- /dev/null +++ b/cable_holder.scad @@ -0,0 +1,37 @@ +$fn=10; + +// std dimensions +width = 400; +depth = 100; +height = 5; + +// front wall dimensions +front_wall_height = 25; +front_wall_angle = 55; + +// top dimensions +top_depth = 50; + +// base +cube([width,depth,height]); + +// back wall +translate([0,depth,0]){ + rotate([90,0,0]){ + cube([width,depth,height]); + } +} + +// front wall +translate([width,0,0]){ + rotate([front_wall_angle,0,180]){ + cube([width,front_wall_height,height]); + } +} + +// top holder +translate([0,depth-top_depth,depth-height]) +cube([width,top_depth,height]); + + + diff --git a/cord_holder.scad b/cord_holder.scad new file mode 100644 index 0000000..3a8bb80 --- /dev/null +++ b/cord_holder.scad @@ -0,0 +1,45 @@ +$fn = 50; + + +// CHANGE +size = 35; + + +// CONSTANTS +diameter = size; +hole_diameter = diameter/4; +hole_depth = diameter; +opening_width = diameter/9; + +// small top opening +//minkowski(){ + //sphere(1); + difference(){ + + // cable holding hole + difference(){ + + // cutting bottom half of circle + difference(){ + sphere(d=diameter); + + // cut with cube + translate([0,0,-diameter/4]){ + cube([diameter,diameter,diameter/2],center = true); + } + } + + // cut with cylinder + translate([0, hole_depth/2, diameter/3]){ + rotate([90,0,0]){ + cylinder(h = hole_depth, d = hole_diameter); + } + } + } + + // cut with small cube + translate([0,0,diameter/2]){ + cube([opening_width,hole_depth,opening_width], center = true); + } + } +//} diff --git a/desk_cable_manage.scad b/desk_cable_manage.scad new file mode 100644 index 0000000..7a268b1 --- /dev/null +++ b/desk_cable_manage.scad @@ -0,0 +1,51 @@ +$fn = 50; + +// CHANGE +// NO SMALLER THAN 25 +size = 50; + + +// CONSTANT +width = size; +depth = width*(3/5); +height = width*(2/5); + +hole_diameter = width/7; +opening = width*.07; + +difference(){ + difference(){ + // cut bottom half of ellipse + difference(){ + resize([width,depth,height]){ + sphere(1); + } + + translate([0,0,-height/2]){ + cube([width,depth,height], center = true); + } + } + + translate([0,0,height/4+.25]){ + rotate([90,0,0]){ + cylinder(h = depth, d = hole_diameter, center = true); + } + + translate([-width/4,0,0]){ + rotate([90,0,0]){ + cylinder(h = depth, d = hole_diameter, center = true); + } + } + + translate([width/4,0,0]){ + rotate([90,0,0]){ + cylinder(h = depth, d = hole_diameter, center = true); + } + } + } + } + + translate([0,0,height/2]){ + cube([opening,depth,width/10], center = true); + } +} diff --git a/images/cable_holder.png b/images/cable_holder.png new file mode 100644 index 0000000..fec6f20 Binary files /dev/null and b/images/cable_holder.png differ diff --git a/images/cord_holder.png b/images/cord_holder.png new file mode 100644 index 0000000..2d1540a Binary files /dev/null and b/images/cord_holder.png differ diff --git a/images/desk_cable_manage.png b/images/desk_cable_manage.png new file mode 100644 index 0000000..0205f65 Binary files /dev/null and b/images/desk_cable_manage.png differ