Browse Source

New screws fit better now

master
Maximilian Stiefel 4 years ago
parent
commit
c0140674f5
  1. 80
      kblock_ext/kblock_ext.scad

80
kblock_ext/kblock_ext.scad

@ -1,5 +1,4 @@
include <fillets_and_rounds.scad> h=9.5;
h=7;
r0=3; r0=3;
$fn=50; $fn=50;
l=60; l=60;
@ -9,51 +8,50 @@ magnet_l=19.5+magnet_play;
magnet_w=5.8+magnet_play/5.0; magnet_w=5.8+magnet_play/5.0;
magnet_h=2.7+magnet_play; magnet_h=2.7+magnet_play;
magnet_hole_h=0.86*h; magnet_hole_h=0.86*h;
screw_play=0.2; screw_play=0.3;
// Let's give one millimeter more // Let's give one millimeter more
screw_head_r=6.8/2 + 5*screw_play; screw_head_r=7.8/2 + 5*screw_play;
screw_thread_r=3.5/2 + screw_play; screw_thread_r=4.1/2 + screw_play;
screw_head_h=2.5 + screw_play; screw_head_h=3 + 8*screw_play;
color("white", 1.0) { color("white", 1.0) {
// add_fillets(R=2) { difference()
difference() {
union()
{ {
union() translate([0.15*l, 0.001, -0.19*h])
{ rotate([90, 0, 0])
translate([0.15*l, 0.001, -0.45*h]) linear_extrude(height = h/10)
rotate([90, 0, 0]) text("stiefel.tech", font = "Liberation Sans", size=6.5);
linear_extrude(height = h/10) translate([r0, r0, 0])
text("stiefel.tech", font = "Liberation Sans", size=6.5); hull() {
translate([r0, r0, 0]) for (x=[0:1:1]) {
hull() { for (y=[0:1:1]) {
for (x=[0:1:1]) { translate([(l-2*r0)*x, (w-2*r0)*y, 0])
for (y=[0:1:1]) { cylinder(h, r=r0, center=true);
translate([(l-2*r0)*x, (w-2*r0)*y, 0])
cylinder(h, r=r0, center=true);
}
} }
} }
} }
union() { }
translate([0.1*l, w/2, 0]) union() {
cylinder(h+0.001, r=screw_thread_r, center=true); translate([0.1*l, w/2, 0])
// For screw head cylinder(h+0.001, r=screw_thread_r, center=true);
translate([0.1*l, w/2, h/2-screw_head_h/2+0.001]) // For screw head
cylinder(screw_head_h, r1=screw_thread_r, r2=screw_head_r, center=true); translate([0.1*l, w/2, h/2-screw_head_h/2+0.001])
translate([0.9*l, w/2, 0]) cylinder(screw_head_h, r1=screw_thread_r, r2=screw_head_r, center=true);
cylinder(h+0.001, r=screw_thread_r, center=true); translate([0.9*l, w/2, 0])
// For screw head cylinder(h+0.001, r=screw_thread_r, center=true);
translate([0.9*l, w/2, h/2-screw_head_h/2+0.001]) // For screw head
cylinder(screw_head_h, r1=screw_thread_r, r2=screw_head_r, center=true); translate([0.9*l, w/2, h/2-screw_head_h/2+0.001])
} cylinder(screw_head_h, r1=screw_thread_r, r2=screw_head_r, center=true);
translate([l/2, 0, 0]) }
union() { translate([l/2, 0, 0])
for (x=[-2:1:2]) { union() {
translate([x*1.0*magnet_w-x*0.001, w/2, -h/2+magnet_hole_h/2-0.001]) for (x=[-2:1:2]) {
rotate([0, 0, 90]) translate([x*1.0*magnet_w-x*0.001, w/2, -h/2+magnet_hole_h/2-0.001])
cube([magnet_l, magnet_w, magnet_hole_h], center=true); rotate([0, 0, 90])
} cube([magnet_l, magnet_w, magnet_hole_h], center=true);
} }
} }
} }
//} }

Loading…
Cancel
Save