~kennylevinsen/skadis-brackets

24056f4e34ac245225abce220c5a28a3ba98d880 — Kenny Levinsen 1 year, 2 months ago e1c97c0
Changes
3 files changed, 56 insertions(+), 46 deletions(-)

M powerdrill-bracket.scad
A powerdrill-common.scad
A powerdriver-bracket.scad
M powerdrill-bracket.scad => powerdrill-bracket.scad +2 -46
@@ 1,50 1,6 @@
$fn = 100;

include  <common.scad>;

module frontPowerDrillBracketCyl(bore, r, girth, h, minDist) {
    translate([0, bore, r+minDist]) {
        rotate([90, 0, 0]) {
            difference() {
                cylinder(r=r+girth, h=h);
                cylinder(r=r, h=h);
            }
        }
    }
}

module frontPowerDrillBracket() {
    bore = 2.45;
    h = 10;
    r = 21.5;
    girth = 3;
    minDist = 11;
    
    difference() {
        hull() {
            frontPowerDrillBracketCyl(bore, r, girth, h, minDist);
            // The four pegs
            translate([0, -25, 0])
                cylinder(h=1, r=bore);
            translate([0, -19.5, 0])
                cylinder(h=1, r=bore);
            translate([-20, 0.5, 0])
                cylinder(h=1, r=bore);
            translate([-20, -5, 0])
                cylinder(h=1, r=bore);
            translate([20, 0.5, 0])
                cylinder(h=1, r=bore);
            translate([20, -5, 0])
                cylinder(h=1, r=bore);
        }
        // Cut the hole
        translate([0, 10, r+minDist]) {
            rotate([90, 0, 0]) {
                cylinder(r=r, h=40);
            }
        }
    }
}
include  <powerdrill-common.scad>;

union() {
    translate([0, -20, 0])


@@ 54,5 10,5 @@ union() {
    translate([20, 0, 0])
        backTabs();
    
    frontPowerDrillBracket();
    frontPowerDrillBracket(10, 21.5, 11);
}
\ No newline at end of file

A powerdrill-common.scad => powerdrill-common.scad +40 -0
@@ 0,0 1,40 @@
include  <common.scad>;

module frontPowerDrillBracketCyl(bore, r, girth, h, minDist) {
    translate([0, bore, r+minDist]) {
        rotate([90, 0, 0]) {
            difference() {
                cylinder(r=r+girth, h=h);
                cylinder(r=r, h=h);
            }
        }
    }
}

module frontPowerDrillBracket(h, r, minDist, girth=3) {
    bore = 2.45;
    difference() {
        hull() {
            frontPowerDrillBracketCyl(bore, r, girth, h, minDist);
            // The four pegs
            translate([0, -25, 0])
                cylinder(h=1, r=bore);
            translate([0, -19.5, 0])
                cylinder(h=1, r=bore);
            translate([-20, 0.5, 0])
                cylinder(h=1, r=bore);
            translate([-20, -5, 0])
                cylinder(h=1, r=bore);
            translate([20, 0.5, 0])
                cylinder(h=1, r=bore);
            translate([20, -5, 0])
                cylinder(h=1, r=bore);
        }
        // Cut the hole
        translate([0, 10, r+minDist]) {
            rotate([90, 0, 0]) {
                cylinder(r=r, h=40);
            }
        }
    }
}

A powerdriver-bracket.scad => powerdriver-bracket.scad +14 -0
@@ 0,0 1,14 @@
$fn = 100;

include  <powerdrill-common.scad>;

union() {
    translate([0, -20, 0])
        backTabs(short=true);
    translate([-20, 0, 0])
        backTabs();
    translate([20, 0, 0])
        backTabs();
    
    frontPowerDrillBracket(15, 19.5/2, 16);
}
\ No newline at end of file