Skip to content

Commit

Permalink
feat(case): RJ45 cover
Browse files Browse the repository at this point in the history
  • Loading branch information
azzamsa committed Dec 3, 2024
1 parent ab93407 commit 5b5dcda
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 2 deletions.
22 changes: 22 additions & 0 deletions case/cheapino-top-left.scad
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,25 @@ mcu_cutout();
mounting_hole_inserts();

}

translate([0,0,9.1])
rotate([0,180,0])
// RJ45 socket cover
color("purple") {
difference() {
// x = front/back, y = left/right
// -2 is thickness of the back cover
// -10.6 is the initial size of left/right
// 4.1 is the intial value of the PCB
translate([29.2 + (-2), -10.6 - 2, 4.1])
// +2 is for top cover
linear_extrude(rj45_height + 2)
// width = front/back, height = left/right
// Add thickness of 4. 2 left 2 right.
square([30 - 7, 16.6 + 4]);
// repeat the difference() for initial rj45
translate([29.2, -10.6, 4.1])
linear_extrude(rj45_height)
square([30, 16.6]);
}
}
20 changes: 20 additions & 0 deletions case/cheapino-top-right.scad
Original file line number Diff line number Diff line change
Expand Up @@ -55,4 +55,24 @@ mirror() {

mounting_hole_inserts();
}

// RJ45 socket cover
color("purple") {
difference() {
// x = front/back, y = left/right
// -2 is thickness of the back cover
// -9.7 is the initial size of left/right
// 4.1 is the intial value of the PCB
translate([29.2 + (-2), -9.33 - 2, 4.1])
// +2 is for top cover
linear_extrude(rj45_height + 2)
// width = front/back, height = left/right
// Add thickness of 4. 2 left 2 right.
square([30 - 7, 16.6 + 4]);
// repeat the difference() for initial rj45
translate([29.2, -9.33, 4.1])
linear_extrude(rj45_height)
square([30, 16.6]);
}
}
}
3 changes: 1 addition & 2 deletions case/modules.scad
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
pcb_thickness = 1.6;
bottom_plate_thickness = 2.5;
top_of_pcb = bottom_plate_thickness + pcb_thickness;

rj45_height = 13;

// bottom plate
module bottom()
Expand Down Expand Up @@ -410,4 +410,3 @@ module mcu_cutout() {
square([10, 20]);
}
}

0 comments on commit 5b5dcda

Please sign in to comment.