Compare commits
2
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
00307cbd2a | ||
|
|
9bd1b7ac5c |
@@ -6,7 +6,7 @@ plate_rounding = 20;
|
||||
|
||||
wall_thickness = 2;
|
||||
|
||||
hex_hole_size = 4;
|
||||
hex_hole_size = 4; // [4:0.5:20]
|
||||
hex_spacing = hex_hole_size/2;
|
||||
|
||||
pipe_outer_diameter = 100;
|
||||
|
||||
@@ -2,11 +2,19 @@
|
||||
include <BOSL2/std.scad>
|
||||
include <BOSL2/skin.scad>
|
||||
|
||||
loop_r = 30;
|
||||
hook_d = 15;
|
||||
hook_angle = 145;
|
||||
straight_l = 85;
|
||||
flatten_h = hook_d/20;
|
||||
// Radius of the hook ends
|
||||
loop_radius = 30;
|
||||
|
||||
// Diameter of the hook
|
||||
hook_diameter = 15;
|
||||
|
||||
// How many degrees should the hook ends bend
|
||||
hook_angle = 145; // [60:270]
|
||||
|
||||
// Length of the straight part
|
||||
straight_length = 85;
|
||||
|
||||
flatten_height = hook_diameter/20;
|
||||
|
||||
$fn=80;
|
||||
|
||||
@@ -14,44 +22,35 @@ difference() {
|
||||
/* Hook */
|
||||
group() {
|
||||
/* Start cap */
|
||||
rotate([0,-90,0]) {
|
||||
rotate_extrude(){
|
||||
rotate([0,-90,0])
|
||||
rotate_extrude()
|
||||
intersection(){
|
||||
circle(d=hook_d);
|
||||
square(hook_d);
|
||||
}
|
||||
}
|
||||
circle(d=hook_diameter);
|
||||
square(hook_diameter);
|
||||
}
|
||||
|
||||
/* Draw the hook */
|
||||
turtle_cmds = ["arcrightto", loop_r, hook_angle,
|
||||
"move", straight_l,
|
||||
"arcleftto", loop_r, 0];
|
||||
path = turtle(turtle_cmds,
|
||||
state=[0,0],
|
||||
full_state=false);
|
||||
path_sweep(circle(d = hook_d), path);
|
||||
turtle_cmds = ["arcrightto", loop_radius, hook_angle,
|
||||
"move", straight_length,
|
||||
"arcleftto", loop_radius, 0];
|
||||
path = turtle(turtle_cmds, state=[0,0], full_state=false);
|
||||
path_sweep(circle(d = hook_diameter), path);
|
||||
|
||||
/* End cap */
|
||||
translate(path[len(path) - 1]) {
|
||||
rotate([0,90,0]) {
|
||||
rotate_extrude(){
|
||||
translate(path[len(path) - 1])
|
||||
rotate([0,90,0])
|
||||
rotate_extrude()
|
||||
intersection(){
|
||||
circle(d=hook_d);
|
||||
square(hook_d);
|
||||
}
|
||||
}
|
||||
}
|
||||
circle(d=hook_diameter);
|
||||
square(hook_diameter);
|
||||
}
|
||||
}
|
||||
|
||||
/* Flatten the hook with two cubes */
|
||||
group(){
|
||||
translate([-4*straight_l+2*loop_r,-2*straight_l+loop_r,(hook_d/2)-flatten_h]) {
|
||||
cube([4*straight_l,2*straight_l,flatten_h]);
|
||||
}
|
||||
translate([-4*straight_l+2*loop_r,-2*straight_l+loop_r,-(hook_d/2)]) {
|
||||
cube([4*straight_l,2*straight_l,flatten_h]);
|
||||
}
|
||||
translate([-4*straight_length+2*loop_radius,-2*straight_length+loop_radius,(hook_diameter/2)-flatten_height])
|
||||
cube([4*straight_length,2*straight_length,flatten_height]);
|
||||
translate([-4*straight_length+2*loop_radius,-2*straight_length+loop_radius,-(hook_diameter/2)])
|
||||
cube([4*straight_length,2*straight_length,flatten_height]);
|
||||
}
|
||||
}
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 36 KiB |
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
After Width: | Height: | Size: 36 KiB |
@@ -0,0 +1,76 @@
|
||||
/* https://github.com/BelfrySCAD/BOSL2 */
|
||||
include <BOSL2/std.scad>
|
||||
include <BOSL2/screws.scad>
|
||||
|
||||
rpi_mount_hole_x = 58;
|
||||
rpi_mount_hole_y = 49; // Zero: 23mm, RPi 2-5: 49mm
|
||||
rpi_mount_hole_padding = 5;
|
||||
|
||||
holder_width = 8;
|
||||
holder_length = rpi_mount_hole_y+2*rpi_mount_hole_padding;
|
||||
holder_thickness = 5;
|
||||
|
||||
wall_width = 65+2*15;
|
||||
wall_height = 15;
|
||||
wall_thickness = 3.5;
|
||||
box_rounding = 3;
|
||||
|
||||
hole_wide_diameter = 4.5;
|
||||
hole_wide_depth = 2.5;
|
||||
hole_narrow_diameter = 2.75;
|
||||
hole_narrow_depth = 2.5;
|
||||
|
||||
screw_r = 4.6;
|
||||
screw_back_offset = 0.5;
|
||||
screw_side_offset = wall_width/4+rpi_mount_hole_x/4+holder_width/4;
|
||||
|
||||
$fn = 80;
|
||||
|
||||
module ScrewHole() {
|
||||
rotate([90,-90,0]) {
|
||||
screw_hole("#8,1/4", head="flat", anchor=TOP);
|
||||
cylinder(h=screw_back_offset, r=screw_r);
|
||||
}
|
||||
}
|
||||
|
||||
module Holder() {
|
||||
cuboid([holder_width,holder_length,holder_thickness], rounding=box_rounding, edges="Z", except=BACK);
|
||||
}
|
||||
|
||||
module HolderHole() {
|
||||
cylinder(d = hole_narrow_diameter, h = hole_narrow_depth);
|
||||
translate([0,0,-hole_narrow_depth])
|
||||
// cylinder(d = hole_wide_diameter, h = hole_wide_depth);
|
||||
nut_trap_inline(hole_wide_depth, "M2.5", spin=90, $slop=0.2);
|
||||
}
|
||||
|
||||
difference() {
|
||||
/* Wall part */
|
||||
cuboid([wall_width,wall_thickness,wall_height], rounding=box_rounding, edges="Y");
|
||||
|
||||
/* Screw holes */
|
||||
translate([screw_side_offset,-wall_thickness/2,0])
|
||||
ScrewHole();
|
||||
translate([-screw_side_offset,-wall_thickness/2,0])
|
||||
ScrewHole();
|
||||
}
|
||||
|
||||
/* Holders */
|
||||
difference() {
|
||||
group() {
|
||||
translate([rpi_mount_hole_x/2,-wall_thickness/2-holder_length/2,holder_thickness/2-wall_height/2])
|
||||
Holder();
|
||||
translate([-rpi_mount_hole_x/2,-wall_thickness/2-holder_length/2,holder_thickness/2-wall_height/2])
|
||||
Holder();
|
||||
}
|
||||
group() {
|
||||
translate([rpi_mount_hole_x/2,-wall_thickness/2-rpi_mount_hole_padding,holder_thickness/2-wall_height/2])
|
||||
HolderHole();
|
||||
translate([rpi_mount_hole_x/2,-wall_thickness/2-rpi_mount_hole_padding-rpi_mount_hole_y,holder_thickness/2-wall_height/2])
|
||||
HolderHole();
|
||||
translate([-rpi_mount_hole_x/2,-wall_thickness/2-rpi_mount_hole_padding,holder_thickness/2-wall_height/2])
|
||||
HolderHole();
|
||||
translate([-rpi_mount_hole_x/2,-wall_thickness/2-rpi_mount_hole_padding-rpi_mount_hole_y,holder_thickness/2-wall_height/2])
|
||||
HolderHole();
|
||||
}
|
||||
}
|
||||
Binary file not shown.
Reference in New Issue
Block a user