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