Skip to content
Snippets Groups Projects
Commit 49b2cc59 authored by fxk8y's avatar fxk8y :spider:
Browse files

Begin developing cabling stuff

parent 33b95946
No related branches found
No related tags found
No related merge requests found
// This file is just an inclusion proxy
// It is designed to be included by the `use`-statement without
// needing to mention every single of it's sub-components
include <electrical/CableClamp.scad>
$fa = 0.35;
$fs = $fa * 2;
$str = 3;
$E = 0.01;
module CableClamp(width, screwTX, screwD, cableDiameter, cableHeight=0, cableWidth=0) {
w = width;
w2 = width / 2;
cd = cableDiameter;
ch = cableHeight;
cw = cableWidth;
cd2 = cd / 2;
cw2 = cw / 2;
cw_tx = cw;
module arc(d) {
d2 = d / 2;
difference() {
translate([0, -d2 + ch, 0]) {
hull() {
for (tx=[-cw_tx, cw_tx])
translate([tx, d2, 0])
circle(d=d);
for (tx=[-cw_tx, cw_tx])
translate([tx - d2, 0, 0])
square([d, $E]);
}
}
translate([0, -(d*2 + ch*10)/2, 0])
square([d*2, d*2 + ch*10], center=true);
}
}
// m = mount
m_sq_w = screwTX - cd/2 + $str;
difference() {
union() {
linear_extrude(width) {
difference() {
arc(cd + $str*2);
arc(cd);
}
for (tx=[-cw_tx-m_sq_w*2, cw_tx+m_sq_w])
translate([tx, 0, 0])
square([m_sq_w, $str]);
}
for (tx=[-screwTX, screwTX])
translate([tx, $str, w2])
rotate([90, 0, 0])
cylinder(d=width, h=$str);
}
for (tx=[-screwTX, screwTX])
translate([tx, $str*1.5, w2])
rotate([90, 0, 0])
cylinder(d=screwD, h=$str*2);
}
}
module CableClampScrewPlacement(screwTX, cableDiameter, cableWidth) {
cw_tx = cableWidth;
m_sq_w = screwTX - cableDiameter/2;
for (tx=[-screwTX, screwTX])
translate([tx, 0, 0])
translate([0, 0, cw_tx/2])
rotate([90, 0, 0])
children();
}
CableClamp(width=12, screwTX=26/2, screwD=5, cableDiameter=15);
module HighWasher(screwD=5, screwHeadD=10, screwHeadH=2.5, outerDiameter=12, h=13) {
difference() {
cylinder(d=outerDiameter, h=h);
cylinder(d=screwD, h=h);
translate([0, 0, h - screwHeadH])
cylinder(d1=screwD, d2=screwHeadD, h=screwHeadH);
}
}
CableClampScrewPlacement(screwTX=26/2, cableDiameter=15, cableWidth=12)
rotate([180, 0, 0])
HighWasher();
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment