Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vinscant: make case wider+taller, add hole for neopixel strip #23

Merged
merged 1 commit into from
Jun 25, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 35 additions & 6 deletions vinscant/3d/case.scad
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@

$fn=50;
enclosure_inner_length = 100;
enclosure_inner_width = 45;
enclosure_inner_depth = 30;
enclosure_inner_width = 55;
enclosure_inner_depth = 45;

enclosure_thickness = 2;

cover_thickness = 2;

part = "both"; // [enclosure:Enclosure, cover:Cover, both:Enclosure and Cover]
part = "enclosure"; // [enclosure:Enclosure, cover:Cover, both:Enclosure and Cover]

print_part();

Expand Down Expand Up @@ -149,20 +149,49 @@ module lid2(in_x, in_y, in_z, shell, top_lip, top_thickness) {
[cxp-5, cym]]);

screws(in_x, in_y, in_z, shell);
hole("lid", 6.5/2, [cxp - 10, 0]);
// hole for 8x1 neopixel array
translate([enclosure_inner_length/2 - 10 - 5, -49/2, 0]) cube([5, 49, 100]);
}
}

module box2(in_x, in_y, in_z, shell, top_lip, top_thickness) {
bottom(in_x, in_y, in_z, shell);

// bottom plate, with 12 holes for magnets
difference() {
union() {
bottom(in_x, in_y, in_z, shell); // 2 mm bottom plate
for(x=[0, 1, 2, 3]) {
for (y=[-1, 0, 1]) {
translate([15*x-30+15/2, 15*y, 1]) {
cylinder(d=8.5+2*2, h=2.6);
}
}
}
}
union() {
for(x=[0, 1, 2, 3]) {
for (y=[-1, 0, 1]) {
translate([15*x-30+15/2, 15*y, 1]) {
cylinder(d=8.5, h=2);
}
}
}
}
}



difference() {
union() {
sides(in_x, in_y, in_z, shell);
lid_top_lip2(in_x, in_y, in_z, shell, top_lip, top_thickness);
}

screws(in_x, in_y, in_z, shell);
// hole for antenna
hole("length_1", 6.5/2, [0, 10]);

// slit for USB cable
offset = [0, enclosure_thickness+4.5/2];
assign (
rotate = [90,0,270],
Expand Down