By bongkow · CC0 1.0
STARLINK_MOUNT: a parametric OpenSCAD design by bongkow, published under CC0 1.0. View it in 3D, read the code, and copy it to your account to change it.
// STARLINK_MOUNT: part 0 = P0:STARLINK_MOUNT (the assembled shape), part k = Pk:STARLINK_MOUNT (one printable part, flat on z=0).
// Each part is engraved "Pk:STARLINK_MOUNT" on a face hidden once assembled. Add parts to the list below.
part = 0; // [0:Assembly, 1:Base]
NAME = "STARLINK_MOUNT";
$hl = 0; // set by the web app: the assembly draws only part $hl (red in P0); -1 = every part, lifted apart
$fn = 64;
// --- fit values (tune after a test print) ---
base = 200; // plate side
plate_t = 6; // plate thickness
corner_r = 10; // plate corner radius
inset = 15; // corner screw hole centre from each edge
screw_d = 4.5; // #8 shank clearance
csk = true; // true: countersunk (flat-head) seat, false: plain hole (pan head)
csk_d = 8.8; // #8 flat-head diameter
ext = 20; // 2020 extrusion
ext_clr = 0.4; // total pocket clearance (pocket = ext + ext_clr)
wall = 5; // socket wall
floor_z = 10; // extrusion end sits at this height (room for the M5 head below)
sock_d = 40; // socket depth around the extrusion
m5_d = 5.5; // M5 clearance
m5_head_d = 9.5; // M5 socket-head counterbore
m5_head_h = 5.5;
rib_t = 5; // diagonal rib thickness
post_len = 300; // ghost only: 2020 length
pocket = ext + ext_clr;
sock_o = pocket + 2 * wall;
top_z = floor_z + sock_d;
/** Wrap each part placed in the assembly: show(k) translate(...) partk(); (-1 lifts part k by k * 10 m so the
* web app can tell the parts apart when you click one in P0) */
module show(k) if ($hl == 0 || $hl == k || $hl == -1) translate([0, 0, $hl == -1 ? k * 10000 : 0]) children();
/** "Pk:NAME" cut into the face at z=0 from below (mirrored so it reads correctly from underneath). */
module engrave(k, size = 4, depth = 0.4)
translate([0, 0, -0.01]) linear_extrude(depth + 0.01) mirror([1, 0, 0])
text(str("P", k, ":", NAME), size = size, halign = "center", valign = "center");
function corners() = [for (sx = [-1, 1], sy = [-1, 1]) [sx * (base / 2 - inset), sy * (base / 2 - inset)]];
/** P1 Base: 200x200 plate, 4 corner #8 holes, centre socket for a 2020 extrusion. */
module part1() difference() {
union() {
hull() for (sx = [-1, 1], sy = [-1, 1])
translate([sx * (base / 2 - corner_r), sy * (base / 2 - corner_r), 0]) cylinder(r = corner_r, h = plate_t);
translate([-sock_o / 2, -sock_o / 2, 0]) cube([sock_o, sock_o, top_z]);
// diagonal ribs toward the corner screws (stop short of the screw heads)
for (a = [45, 135, 225, 315]) rotate(a) rotate([90, 0, 0]) translate([0, 0, -rib_t / 2])
linear_extrude(rib_t) polygon([[0, 0], [base / 2 * sqrt(2) - inset * sqrt(2) - 14, 0],
[base / 2 * sqrt(2) - inset * sqrt(2) - 14, plate_t], [sock_o / 2, top_z - 3], [0, top_z - 3]]);
}
// 2020 pocket
translate([-pocket / 2, -pocket / 2, floor_z]) cube([pocket, pocket, sock_d + 1]);
// M5 from below into the extrusion's tapped centre hole, head fully recessed
translate([0, 0, -1]) cylinder(d = m5_d, h = floor_z + 2);
translate([0, 0, -0.01]) cylinder(d = m5_head_d, h = m5_head_h);
// M5 side screws into T-nuts (+X and +Y slots)
for (a = [0, 90]) rotate(a) translate([0, 0, floor_z + sock_d * 0.6]) rotate([0, 90, 0]) cylinder(d = m5_d, h = sock_o);
// corner #8 screws
for (p = corners()) translate([p.x, p.y, 0]) {
translate([0, 0, -1]) cylinder(d = screw_d, h = plate_t + 2);
if (csk) translate([0, 0, plate_t - (csk_d - screw_d) / 2]) cylinder(d1 = screw_d, d2 = csk_d + 0.02, h = (csk_d - screw_d) / 2 + 0.01);
}
translate([0, -50, 0]) engrave(1, size = 6);
}
// Bought parts: 2020 aluminium extrusion standing in the socket.
module ghosts() if ($hl <= 0)
translate([0, 0, floor_z]) difference() {
translate([-ext / 2, -ext / 2, 0]) cube([ext, ext, post_len]);
translate([0, -ext / 2 + 0.6, post_len / 2]) rotate([90, -90, 0]) linear_extrude(0.7)
text("2020 PROFILE", size = 8, halign = "center", valign = "center");
}
if (part == 0) { show(1) part1(); ghosts(); } // the assembly
if (part == 1) part1();