neotrellis-grid/assembly.scad

40 lines
1.2 KiB
OpenSCAD
Raw Normal View History

use <supports.scad>;
use <plate.scad>;
2021-07-20 11:52:35 +00:00
2021-07-20 18:44:16 +00:00
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
pcbs_long = 4;
pcbs_wide = 2;
wall_width = 5; // width of walls above the top of the supports
support_depth=10; // depth of support structure wall
tolerance = 0.4;
wall_height = (pcb_depth-connector_depth)+4; // height of walls above the top of the supports
rotate([180,0,0]) {
translate([pcb_size/2,-pcb_size/2-pcb_size, -support_depth-pcb_thickness]) {
for(x=[0:pcbs_long-1]) {
for(y=[0:pcbs_wide-1]) {
translate([pcb_size*x,pcb_size*y,0]) {
//%import("pcb-single.stl");
}
}
}
}
}
2021-07-20 18:44:16 +00:00
intersection() {
translate([-wall_width-tolerance,-wall_width-tolerance,0])
2021-07-20 20:24:39 +00:00
cube([wall_width+tolerance+(pcb_size/4),wall_width+tolerance+(pcb_size/4),50]);
2021-07-20 18:44:16 +00:00
union() {
box();
translate([0,0,wall_height+support_depth]) {
color("red") plate();
};
}
}