Getting lots closer here for a v2

This commit is contained in:
XANTRONIX 2023-11-12 21:57:41 -05:00
parent 109008dd6f
commit 813183a047

View file

@ -18,8 +18,9 @@ module keyboard_base_plate(pcb_width, pcb_length) {
wall_length = pcb_length + 2 * pcb_clearance_edge;
wall_height = 14.0;
bottom_width = 2 * (pcb_clearance_edge + thickness) + pcb_width;
bottom_length = 2 * (pcb_clearance_edge + thickness) + pcb_length;
bottom_width = 2 * (pcb_clearance_edge) + pcb_width;
bottom_length = 2 * (pcb_clearance_edge) + pcb_length;
bottom_height = thickness;
screw_holes = [
[ 4.8150, 85.7250],
@ -107,117 +108,115 @@ module keyboard_base_plate(pcb_width, pcb_length) {
}
/* Upper right corner */
round_corner([thickness + pcb_clearance_edge + pcb_width,
/*round_corner([thickness + pcb_clearance_edge + pcb_width,
thickness + pcb_clearance_edge + pcb_length,
-thickness/2],
[90, 90, 90]);
[90, 90, 90]);*/
/* Lower right corner */
round_corner([ thickness + pcb_clearance_edge + pcb_width,
/*round_corner([ thickness + pcb_clearance_edge + pcb_width,
0 - thickness - pcb_clearance_edge,
-thickness/2],
[180, 90, 90]);
[180, 90, 90]);*/
/* Lower left corner */
round_corner([0 - thickness - pcb_clearance_edge,
/*round_corner([0 - thickness - pcb_clearance_edge,
0 - thickness - pcb_clearance_edge,
-thickness/2],
[-90, 90, 90]);
[-90, 90, 90]);*/
/* Upper left corner */
round_corner([0 - thickness - pcb_clearance_edge,
/*round_corner([0 - thickness - pcb_clearance_edge,
thickness + pcb_clearance_edge + pcb_length,
-thickness/2],
[0, 90, 90]);
[0, 90, 90]);*/
/* Upper edge */
round_edge([0 - thickness - pcb_clearance_edge,
/*round_edge([0 - thickness - pcb_clearance_edge,
thickness + pcb_clearance_edge + pcb_length,
-thickness/2],
[0, 90, 0],
bottom_width);
bottom_width);*/
/* Right edge */
round_edge([ thickness + pcb_clearance_edge + pcb_width,
/*round_edge([ thickness + pcb_clearance_edge + pcb_width,
0 - thickness - pcb_clearance_edge,
-thickness/2],
[270, 0, 0],
bottom_length);
bottom_length);*/
/* Lower edge */
round_edge([0 - thickness - pcb_clearance_edge,
/*round_edge([0 - thickness - pcb_clearance_edge,
0 - thickness - pcb_clearance_edge,
-thickness/2],
[90, 180, 90],
bottom_width);
bottom_width);*/
/* Left edge */
round_edge([0 - thickness - pcb_clearance_edge,
/*round_edge([0 - thickness - pcb_clearance_edge,
0 - thickness - pcb_clearance_edge,
-thickness/2],
[270, 90, 0],
bottom_length);
bottom_length);*/
/* Upper right wall corner */
wall_corner([thickness + pcb_clearance_edge + pcb_width,
/*wall_corner([thickness + pcb_clearance_edge + pcb_width,
thickness + pcb_clearance_edge + pcb_length,
-thickness/2],
[0, 0, 0],
corner_radius,
wall_height);
wall_height);*/
/* Lower right wall corner */
wall_corner([ thickness + pcb_clearance_edge + pcb_width,
/*wall_corner([ thickness + pcb_clearance_edge + pcb_width,
0 - thickness - pcb_clearance_edge,
-thickness/2],
[0, 0, 270],
corner_radius,
wall_height);
wall_height);*/
/* Lower left wall corner */
wall_corner([0 - thickness - pcb_clearance_edge,
/*wall_corner([0 - thickness - pcb_clearance_edge,
0 - thickness - pcb_clearance_edge,
-thickness/2],
[0, 0, 180],
corner_radius,
wall_height);
wall_height);*/
/* Upper left wall corner */
wall_corner([0 - thickness - pcb_clearance_edge,
/*wall_corner([0 - thickness - pcb_clearance_edge,
thickness + pcb_clearance_edge + pcb_length,
-thickness/2],
[0, 0, 90],
corner_radius,
wall_height);
wall_height);*/
/* Upper wall */
side([0 - thickness - pcb_clearance_edge,
pcb_clearance_edge + pcb_length + corner_radius,
-thickness/2],
side([-pcb_clearance_edge,
pcb_clearance_edge + pcb_length,
-thickness/2],
[wall_width, thickness, wall_height]);
/* Right wall */
side([pcb_clearance_edge + pcb_width + corner_radius,
0 - thickness - pcb_clearance_edge,
side([ pcb_clearance_edge + pcb_width,
-pcb_clearance_edge,
-thickness/2],
[thickness, wall_length, wall_height]);
/* Lower wall */
side([0 - thickness - pcb_clearance_edge,
0 - thickness - pcb_clearance_edge - corner_radius,
side([-pcb_clearance_edge,
-pcb_clearance_edge - thickness,
-thickness/2],
[wall_width, thickness, wall_height]);
/* Left wall */
side([0 - thickness - pcb_clearance_edge - corner_radius,
0 - thickness - pcb_clearance_edge,
side([-thickness - pcb_clearance_edge,
-pcb_clearance_edge,
-thickness/2],
[thickness, wall_length, wall_height]);
/* Bottom plate */
side([0 - thickness - pcb_clearance_edge,
0 - thickness - pcb_clearance_edge,
0 - thickness],
side([-pcb_clearance_edge, -pcb_clearance_edge, -thickness],
[bottom_width, bottom_length, thickness]);
/* Screw holes */