diff --git a/cad/CyanStripe/PCB.scad b/cad/CyanStripe/PCB.scad index 583a7898ad0bf7d4fcfd9345c1685d8b9d2d64bf..e9751e15fa7879652463d048e5d271de0d5e1ca4 100644 --- a/cad/CyanStripe/PCB.scad +++ b/cad/CyanStripe/PCB.scad @@ -26,9 +26,13 @@ function terminals_y() = 18.50; // tpow = power terminal function tpow_x() = -30.25; function tpow_y() = 14.50; -function tpow_sx() = 11.00; -function tpow_sy() = 11.50; -function tpow_sz() = 3.00; // TODO: measure!! +// function tpow_sx() = 11.00; +// function tpow_sy() = 11.50; +// function tpow_sz() = 3.00; // TODO: measure!! + +tled_y = [18.5, 0, -18.5]; +function tled_x() = 5.75 + 23; +function tled_y(i) = tled_y(i); function sc_left_off() = 5.0; // left side screw holes offset from edge @@ -74,8 +78,19 @@ module pcb3D(pcb_t=pcb_t()) { // Solder() // translate([tpow_x(), tpow_y(), pcb_t() - $E]) // cube([tpow_sx(), tpow_sy(), tpow_sz()], center=true); - translate([tpow_x(), tpow_y(), pcb_t() - $E]) +// translate([tpow_x(), tpow_y(), pcb_t() - $E]) +// terminal2(); + + + translate([tpow_x(), tpow_y(), pcb_t()]) terminal2(); + + for (ty=tled_y) + translate([tled_x(), ty, pcb_t()]) + rotate([0, 0, 180]) + terminal3(); + + } } @@ -125,13 +140,12 @@ module terminal3() { roundRect(t_l_sx, t3_l_sy, 1.337, center=true); } - _ty = t3_sy * 1/4; - for (ty=[-_ty, _ty]) + _ty = t3_sy * 1/3; + for (ty=[-_ty, 0, _ty]) translate([-t3_sx/2, ty, t_h0/2]) rotate([0, -90, 0]) cylinder(d=3, h=8, center=true); } } -translate([0, 0, pcb_t()]) terminal3(); pcb3D();