diff --git a/pcb/10W/TransportProtection.scad b/cad/CyanLight_10W/TransportProtection.scad similarity index 100% rename from pcb/10W/TransportProtection.scad rename to cad/CyanLight_10W/TransportProtection.scad diff --git a/cad/CyanStripe/Case.scad b/cad/CyanStripe/Case.scad index f99a78a7fc3b4407eaf6d5c7c0dcf868781801c4..e268edb84e95391aef62bb52e0332b84e9c5c76c 100644 --- a/cad/CyanStripe/Case.scad +++ b/cad/CyanStripe/Case.scad @@ -1,5 +1,6 @@ use <PCB.scad>; +use <Material.scad>; use <../../WebWeaver/scad/Util.scad>; // TODO: needed? @@ -15,9 +16,22 @@ plexi = 3; c_sx = pcb_w() + 0; c_sy = pcb_h() + 0; c_sz = 20; +c_fs = 15; // frontSpace = pcb to upper plexi +module frontPlexiOutline() { + + + +} + +module frontPlexi() { + Plexiglass() + linear_extrude(plexi, convexity=20) + frontPlexiOutline(); +} + module CyanStripeCase() { diff --git a/cad/CyanStripe/Material.scad b/cad/CyanStripe/Material.scad new file mode 100644 index 0000000000000000000000000000000000000000..2c61d1035440c785d0c52030e9d8b049ddb8b17e --- /dev/null +++ b/cad/CyanStripe/Material.scad @@ -0,0 +1,13 @@ + + +module Plexiglass(alpha=0.1) { + color([0 /255, 0/255, 0/255], alpha=alpha) children(); +} + +module FR4(alpha=1.0) { + color([170 /255, 0, 200 /255], alpha=alpha) children(); +} + +module Solder(alpha=1.0) { + color("grey", alpha=alpha) children(); +} diff --git a/cad/CyanStripe/PCB.scad b/cad/CyanStripe/PCB.scad index 04ee8c8fa6260640f4fed3cf5d68a0cd81b26d53..0fd7987a9165b7649c25518db8257e3d789cadae 100644 --- a/cad/CyanStripe/PCB.scad +++ b/cad/CyanStripe/PCB.scad @@ -1,4 +1,5 @@ +use <Material.scad>; use <../../WebWeaver/scad/Util.scad>; $fs = 0.35; @@ -53,20 +54,20 @@ module pcbOutline() { } module pcb3D(pcb_t=pcb_t()) { - color([170 /255, 0, 200 /255]) + FR4() linear_extrude(pcb_t()) pcbOutline(); if ($preview) { pcbScrewHoles() - color("grey") + Solder() difference() { translate([0, 0, -$E]) cylinder(d=M3()*2, h=pcb_t()+2*$E); translate([0, 0, -$E*2]) cylinder(d=M3()-$E, h=pcb_t()+4*$E); } - color("grey") + Solder() translate([tpow_x(), tpow_y(), pcb_t() - $E]) cube([tpow_sx(), tpow_sy(), tpow_sz()], center=true); } diff --git a/pcb/10W/TransportProtection_TODO:MERGE.scad b/pcb/10W/TransportProtection_TODO:MERGE.scad deleted file mode 100644 index 63ed5fd314c6ec31b678bb68a845e12b6ad298a3..0000000000000000000000000000000000000000 --- a/pcb/10W/TransportProtection_TODO:MERGE.scad +++ /dev/null @@ -1,38 +0,0 @@ - -$fs = 0.5; -$fa = 1.0; - - - -pcb_w = 40.5; -pcb_h = 67.5; -pcb_r = 5; // edge radius -pcb_off = 0.4; -pcb_t = 5; // thickness including LED and inductor - -_str = 2; - - -module pcb(w=pcb_w, h=pcb_h, r=pcb_r, off=pcb_off) { - - _w = w + 2*off; - _h = h + 2*off; - _r = r + off; - - hull() for (tx=[_r, _w-_r], ty=[_r, _h-_r]) translate([tx, ty, 0]) circle(r=r); -} - -module pcb3D(w=pcb_w, h=pcb_h, r=pcb_r, off=pcb_off, _str=1.6) { - linear_extrude(_str, convexity=4) pcb(w, h, r, off); -} - -module pcbBox(w=pcb_w, h=pcb_h, r=pcb_r, off=pcb_off, h=pcb_t, _str=_str) { - - difference() { - pcb3D(w=w, h=h, r=r, off=off, _str=h); - translate([_str, _str, _str]) pcb3D(w=w-2*_str, h=h-2*_str, r=r, off=off, _str=h); - } -} - -pcbBox(); -