Compare commits
2 Commits
7400dc68a9
...
34b1613778
Author | SHA1 | Date |
---|---|---|
Matt McWilliams | 34b1613778 | |
Matt McWilliams | ae1b4dbbd2 |
|
@ -1,5 +1,12 @@
|
|||
include <../common/common.scad>;
|
||||
|
||||
X = 100;
|
||||
Y = 60;
|
||||
Z = 30;
|
||||
|
||||
USB = -30;
|
||||
L289N = 10;
|
||||
|
||||
module l289N_holes (r = 3/2 - .2, MOD_MOUNT = 0) {
|
||||
$fn = 60;
|
||||
DISTANCE = 36.5 + MOD_MOUNT;
|
||||
|
@ -18,7 +25,7 @@ module l289N_mount () {
|
|||
|
||||
module stand () {
|
||||
cylinder(r1 = 4, r2 = 3, h = H, center = true);
|
||||
cylinder(r = R(3.5), h = H + 5, center = true);
|
||||
cylinder(r = R(2.9), h = H + 5, center = true);
|
||||
}
|
||||
|
||||
translate([0, 0, 0]) stand();
|
||||
|
@ -31,4 +38,66 @@ module l289N_mount () {
|
|||
}
|
||||
}
|
||||
|
||||
l289N_mount();
|
||||
module Arduino_Nano_mount () {
|
||||
X = 18.02;
|
||||
Y = 43.5;
|
||||
Z = 10.5;
|
||||
BOARD_Z = 1.5;
|
||||
difference () {
|
||||
//outer
|
||||
cube([X + 4, Y + 4, Z], center = true);
|
||||
//inner void minus corners
|
||||
difference () {
|
||||
cube([X - 1, Y - 1, Z + 1], center = true);
|
||||
translate([(X / 2) - 1, (Y / 2) - 1, -BOARD_Z]) cylinder(r = (2 / 2), h = Z + 1, center = true, $fn = 20);
|
||||
translate([(-X / 2) + 1, (Y / 2) - 1, -BOARD_Z]) cylinder(r = (2 / 2), h = Z + 1, center = true, $fn = 20);
|
||||
translate([(X / 2) - 1, (-Y / 2) + 1, -BOARD_Z]) cylinder(r = (2 / 2), h = Z + 1, center = true, $fn = 20);
|
||||
translate([(-X / 2) + 1, (-Y / 2) + 1, -BOARD_Z]) cylinder(r = (2 / 2), h = Z + 1, center = true, $fn = 20);
|
||||
}
|
||||
//board void
|
||||
translate([0, 0, (Z / 2) - (BOARD_Z / 2)]) cube([X, Y, BOARD_Z], center = true);
|
||||
//usb void
|
||||
translate([0, Y / 2, (Z / 2) - (6 / 2) + 0.01]) cube([8, 10, 6], center = true);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
module case_bottom () {
|
||||
|
||||
difference () {
|
||||
rounded_cube([X, Y, Z], d = 10, center = true, $fn = 40);
|
||||
translate([0, 0, 3]) rounded_cube([X - 5, Y - 5, Z], d = 7, center = true, $fn = 40);
|
||||
translate([USB, Y / 2, 7]) cube([8, 10, 30], center = true);
|
||||
|
||||
translate([(X / 2) - (13 / 2), -12, 4]) rotate([0, 90, 0]) cylinder(r = R(12), h = 13.5, center = true, $fn = 30);
|
||||
|
||||
translate([L289N + 6, 0, 3]) {
|
||||
rotate([90, 0, 0]) cylinder(r = R(4), h = Y + 1, center = true, $fn = 30);
|
||||
translate([0, 0, Z / 2]) cube([4, Y + 1, Z], center = true);
|
||||
}
|
||||
|
||||
translate([(X / 2), 12, 4]) rotate([0, 90, 0]) cylinder(r = R(5), h = 10, center = true, $fn = 30);
|
||||
}
|
||||
|
||||
|
||||
translate ([-20, 0, 0]) {
|
||||
translate([L289N, -20 + 2, -8]) l289N_mount();
|
||||
translate([-10, 6, -7.1]) Arduino_Nano_mount();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
module case_top () {
|
||||
|
||||
difference () {
|
||||
rounded_cube([X, Y, 3], d = 10, center = true, $fn = 40);
|
||||
translate([-2, 0, 0]) cube([24, 27, 20], center = true);
|
||||
}
|
||||
translate([0, 0, -2.9]) difference () {
|
||||
rounded_cube([X - 5, Y - 5, 3], d = 7, center = true, $fn = 40);
|
||||
rounded_cube([X - 11, Y - 11, 3 + 1], d = 7, center = true, $fn = 40);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
case_top();
|
Loading…
Reference in New Issue