remove old test piece
This commit is contained in:
parent
6dbaf36928
commit
600ab54d2e
|
@ -1,35 +0,0 @@
|
|||
// this SCAD file defines the support structures for the neotrellis grid. (potentially also bottom case)
|
||||
pcb_size = 60; // the PCB is 60x60mm square
|
||||
pcb_depth = 7.57; // the PCB is 7.57mm deep, overall (including connector + lEDs)
|
||||
connector_depth=5.7; // the connector on the bottom of the PCB is 5.8mm thick.
|
||||
pcb_thickness= 1.7; // the PCB itself (just the board, w/o components) is roughly 1.7mm thick
|
||||
|
||||
wall_width=5; // width of support structure walls
|
||||
support_depth=10; // depth of support structure wall
|
||||
|
||||
cutout_width=25; // width of the cutouts in the support structure, for wires etc
|
||||
cutout_depth=5; // depth of the cutouts in the support structure
|
||||
|
||||
// translate everything down relative to the PCB reference
|
||||
translate([0,0,-support_depth-pcb_thickness]) {
|
||||
// create outer walls by differencing a box with an inner box that is smaller
|
||||
difference() {
|
||||
// outer box - the size of the overall box
|
||||
cube([pcb_size,pcb_size,support_depth]);
|
||||
translate([wall_width,wall_width,-1]) {
|
||||
// inner box - cuts a hole to create outer walls rather than a box
|
||||
cube([pcb_size-(wall_width*2),pcb_size-(wall_width*2),support_depth+1.01]);
|
||||
}
|
||||
translate([-1, pcb_size/2-cutout_width/2, support_depth-cutout_depth]) {
|
||||
cube([pcb_size+2,cutout_width,cutout_depth+1]); // cutouts in one direction
|
||||
}
|
||||
translate([pcb_size/2-cutout_width/2, -1, support_depth-cutout_depth])
|
||||
cube([cutout_width, pcb_size+2, cutout_depth+1]); // cutouts in the other direction
|
||||
}
|
||||
}
|
||||
// load and position the PCB as a reference
|
||||
rotate([180,0,0]) {
|
||||
translate([pcb_size/2,-pcb_size/2]) {
|
||||
%import("pcb-single.stl");
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue