// Cateye slide plate -> Hammerhead Karoo mount, tucked-under bracket (v2) // https://bluespark.co.nz/karoo3_cateye_mount/ // // Frame of reference (bike upright): +X forward, +Z up, Z = 0 is the // underside of the Hammerhead mount. X = 0 is midway between the two // mount bolts. // // Fitting order: drop the M4 nut into its hex well (mount side), bolt the // bracket up with the two M3s, then bolt the Cateye plate on from below. // // Print with the mount face on the bed, exactly as exported: no supports. view = "print"; // "print" | "bike" | "assembly" | "section" /* [Hammerhead mount] */ hole_spacing = 24; // centres of the two outer inserts m3_len_total = 15; // bolt overall, head included m3_head_h = 3.0; // cap head height m3_engage = 3.8; // thread into the mount (inserts are 5 deep) m3_hole = 3.4; m3_cbore = 6.6; // pocket for the 6 mm head slot_play = 1.0; // rear hole is a slot: 24 +/- 0.5 td_front_r = 11.2; // teardrop: big round at the front... td_front_x = 5.0; // ...centred this far ahead of X = 0 td_rear_r = 7.0; // ...small round on the rear bolt td_h = 3.0; // plain teardrop wall before it flares to the seat /* [Light position] */ tilt = 15; // degrees nose-down relative to the mount face m4_x = 3.0; // Cateye M4 axis ahead of X = 0, at the seat drop = 10.2; // seat below the mount face, at the M4 axis /* [Cateye plate] */ plate_w = 20.5; plate_rear = 5.3; // M4 axis to the plate's rear edge boss_d = 11.5; // pocket for the ~10 boss around the M4 boss_h = 2.1; floor_t = 2.6; // plastic between boss and nut m4_hole = 4.4; nut_af = 7.2; // hex well for the 7 mm nut arc_r = 14.4; // nose radius; the curved bar's rear edge is ~14.9 from the M4 arc_h = 4.4; // height of the curved bar above the plate face arc_under = 2.0; // nose is cut back this much at the plate face key_w = 3.6; // notch for the small round on the bar key_r = 12.2; // notch starts this far from the M4 lip_h = 1.6; lip_t = 2.3; side_gap = 0.15; /* [Hidden] */ $fn = 96; grip = m3_len_total - m3_head_h - m3_engage; // plastic under the M3 head zb = -(grip + m3_head_h + 0.2); // underside behind the plate W = plate_w + 2*side_gap + 2*lip_t; tw = boss_h + floor_t; hw = plate_w/2 + side_gap; step_u = -(plate_rear + 0.7); // rear stop, seat coordinates step_x = m4_x + step_u * cos(tilt); module seat_frame() { translate([m4_x, 0, -drop]) rotate([0, tilt, 0]) children(); } module teardrop2d() { hull() { translate([td_front_x, 0]) circle(r = td_front_r); translate([-hole_spacing/2, 0]) circle(r = td_rear_r); } } // footprint of the seat, in seat coordinates module shoe2d() { r = 2; hull() for (x = [step_u + r, 9 - r], y = [-W/2 + r, W/2 - r]) translate([x, y]) circle(r = r); } module nose2d() { intersection() { circle(r = arc_r, $fn = 200); translate([8, -hw]) square([arc_r, 2*hw]); } } module td_front_slice() { translate([0, 0, -td_h]) linear_extrude(0.01) intersection() { teardrop2d(); translate([step_x, -50]) square([100, 100]); } } module solid() { // teardrop column, lightly chamfered where it meets the mount translate([0, 0, -60]) linear_extrude(59.5) teardrop2d(); hull() { translate([0, 0, -0.51]) linear_extrude(0.01) teardrop2d(); translate([0, 0, -0.01]) linear_extrude(0.01) offset(delta = -0.5) teardrop2d(); } // flare from the teardrop out to the seat and to the nose hull() { seat_frame() linear_extrude(1.5) shoe2d(); td_front_slice(); } hull() { seat_frame() linear_extrude(arc_h + 0.6) nose2d(); td_front_slice(); } } module underside() { // plate seat: nothing below the seat plane ahead of the rear stop seat_frame() translate([step_u, -50, -60]) cube([100, 100, 60]); // behind the stop the block ends flat, level with the M3 head pocket intersection() { translate([-100, -100, zb - 60]) cube([200, 200, 60]); seat_frame() translate([step_u - 100, -50, -60]) cube([100, 100, 120]); } } module lips() seat_frame() { for (s = [-1, 1]) translate([-3.8, s > 0 ? hw : -W/2, -lip_h]) cube([10.8, lip_t, lip_h + 0.5]); } // space the plate's curved bar needs, everything outside the nose module bar_keepout() seat_frame() { difference() { translate([6, -hw, -3]) cube([40, 2*hw, 3 + arc_h + 0.6]); rotate_extrude($fn = 200) polygon([[0, -3.1], [arc_r - arc_under, -3.1], [arc_r - arc_under, 0], [arc_r, arc_h], [arc_r, arc_h + 0.7], [0, arc_h + 0.7]]); } // notch for the small round translate([key_r, -key_w/2, -3]) cube([40, key_w, 3 + arc_h + 0.8]); } module m3(x, play = 0) { for (d = [[m3_hole, 61], [m3_cbore, 60 - grip]]) hull() for (dx = [-play/2, play/2]) translate([x + dx, 0, -60]) cylinder(d = d[0], h = d[1]); } module m4_voids() seat_frame() { translate([0, 0, -3]) cylinder(d = m4_hole, h = tw + 4); translate([0, 0, -3]) cylinder(d = boss_d, h = boss_h + 3); // hex well, flats fore and aft, open at the mount face translate([0, 0, tw]) rotate(30) cylinder(d = nut_af / cos(30), h = 40, $fn = 6); } module bracket() { difference() { union() { difference() { solid(); underside(); } lips(); } bar_keepout(); m3( hole_spacing/2); m3(-hole_spacing/2, slot_play); m4_voids(); translate([-100, -100, 0]) cube([200, 200, 50]); // nothing above the mount face } } // ---- reference parts, check views only ---- module ref_bolts() { for (x = [-1, 1] * hole_spacing/2) { translate([x, 0, -grip - m3_head_h]) cylinder(d = 6, h = m3_head_h); translate([x, 0, -grip]) cylinder(d = 3, h = m3_len_total - m3_head_h); } seat_frame() { translate([0, 0, -9.3]) cylinder(d = 4, h = 9.3 + 1.9 + 6); // M4 translate([0, 0, tw]) rotate(30) cylinder(d = 8.08, h = 3.2, $fn = 6); // nut } } module ref_plate() seat_frame() { translate([-plate_rear, -plate_w/2, -9.3]) cube([28.4, plate_w, 9.3]); // plate cylinder(d1 = 10.4, d2 = 7.5, h = 1.9); // boss intersection() { // curved bar difference() { cylinder(r = 18.4, h = arc_h); translate([0, 0, -1]) cylinder(r = 14.9, h = 10); } translate([0, -8.95, 0]) cube([30, 17.9, 10]); } translate([13.6, 0, 0]) cylinder(d = 1.6, h = arc_h); // small round } module ref_light() seat_frame() translate([-35, -15, -9.3 - 28]) cube([107, 30, 28]); module ref_mount() translate([-22, -15, 0]) cube([44, 30, 5]); module cut2d() projection(cut = true) rotate([-90, 0, 0]) children(); if (view == "print") rotate([180, 0, 0]) bracket(); else if (view == "assembly") { color("orange") bracket(); color("silver") ref_bolts(); color("dimgray") ref_plate(); %ref_light(); %ref_mount(); } else if (view == "section") { color("orange") cut2d() bracket(); color("black") cut2d() ref_bolts(); color("gray") cut2d() ref_plate(); color("lightblue") cut2d() ref_light(); color("tan") cut2d() ref_mount(); } else if (view == "clash_plate") intersection() { bracket(); ref_plate(); } else if (view == "clash_bolts") intersection() { bracket(); ref_bolts(); } else if (view == "clash_light") intersection() { bracket(); ref_light(); } else if (view == "clash_parts") intersection() { ref_plate(); ref_bolts(); } else bracket();