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

Add MCU and RJ45 cover #106

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion case/cheapino-bottom-left.scad
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ step = 0.05;
// 2.5 will leave 0.35 at the thinnest(between hotswap and magsafe).


$fn=50;
$fn = $preview ? 10 : 50;

// Rotate so you dont need to do that in extruder
translate([0,0,2.5])
Expand Down
2 changes: 1 addition & 1 deletion case/cheapino-bottom-right.scad
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ step = 0.05;
// 2.5 will leave 0.35 at the thinnest(between hotswap and magsafe).


$fn=50;
$fn = $preview ? 10 : 50;

// Rotate so you dont need to do that in extruder
translate([0,0,2.5])
Expand Down
82 changes: 82 additions & 0 deletions case/cheapino-top-left-with-cover.scad
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
height = 95.1738;
width = 132.6134;
step = 0.06;
$fn = $preview ? 10 : 50;

height_translation = 0;
include <modules.scad>

difference() {
case();
linear_extrude(4.1) offset(delta=0.45) base();

// For debug: comment out above 3 lines and comment in this
//translate([0,0,4.1])
// board();

translate([0,0,top_of_pcb]) switch_holes();

// Diodes
translate([0, 0, top_of_pcb]) diodes();

// RJ45 socket
color("cyan") {
translate([29.2, -10.6, 4.1])
linear_extrude(10)
square([30, 16.6]);

translate([45, -5.8, 2.5])
linear_extrude(10)
square([15, 7]);
}

mcu_cutout();
// mounting holes
mounting_hole_inserts();

}

// RJ45 socket cover
color("purple") {
difference() {
// x = front/back, y = left/right, z = top/down
// -0.8 is thickness of the back cover
// -10.6 is the initial size of left/right
// 8.1 is the start of the case
translate([29.2 + (-0.8), -10.6 - 2, 8.1])
// width = front/back, depth = left/right, height = top cover
// Add thickness of 4. 2 left 2 right.
// (reset mcu_height) + 2 is for top cover thickness
roundedcube([30 - 8, 16.6 + 4, rj45_height - 2], false, cover_radius, "xmax");

// To craete a hole, repeat the difference() for initial rj45
translate([29.2, -10.6, 8.1])
// 0.5 for tolerance
linear_extrude((rj45_height - 4.1) + 0.5)
square([30, 16.6]);
}
}

// MCU cover
color("green") {
difference() {
// x = left/right, y = front/back
// 8.1 is the start of the case
translate([29.5 - 1, 10.2 - 3, 8.1])
// To set the cube height
// width = left/right, height = front/back
// Add thickness of 3. 2 outer, 1 inner.
// (reset mcu_height) + 2 is for top cover thickness
roundedcube([19.5 + 3, 26 + 3, (mcu_height - 4.1) + 2], false, cover_radius, "xmax");

// To craete a hole, repeat the difference() for initial mcu cutout
translate([29.5, 10.2, 8.1])
linear_extrude(mcu_height - 3.1)
square([19.5, 25]);

// Repeat USB C port opening
translate([34.25, 25.2, 8.1])
linear_extrude(mcu_height - 3.1)
square([10, 20]);
}
}
34 changes: 14 additions & 20 deletions case/cheapino-top-left.scad
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
height = 95.1738;
width = 132.6134;
step = 0.06;
$fn=50;
$fn = $preview ? 10 : 50;

height_translation = 0;
include <modules.scad>

// Rotate so you dont need to do that in extruder
translate([0,0,9.1])
rotate([0,180,0])
difference() {
case();
linear_extrude(4.1) offset(delta=0.45) base();
Expand All @@ -17,27 +14,24 @@ difference() {
//translate([0,0,4.1])
// board();

translate([0,0,top_of_pcb]) switch_holes();
translate([0,0,top_of_pcb]) switch_holes();

// Diodes
translate([0, 0, top_of_pcb]) diodes();
// Diodes
translate([0, 0, top_of_pcb]) diodes();

// RJ45 socket
color("cyan") {
// RJ45 socket
color("cyan") {
translate([29.2, -10.6, 4.1])
linear_extrude(10)
square([30, 16.6]);
linear_extrude(10)
square([30, 16.6]);

translate([45, -5.8, 2.5])
linear_extrude(10)
square([15, 7]);
}
linear_extrude(10)
square([15, 7]);
}

mcu_cutout();
// mounting holes
mounting_hole_inserts();
mcu_cutout();
// mounting holes
mounting_hole_inserts();

}



74 changes: 74 additions & 0 deletions case/cheapino-top-right-with-cover.scad
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
height = 95.1738;
width = 132.6134;
step = 0.06;
$fn = $preview ? 10 : 50;

height_translation = 0;
include <modules.scad>


difference() {
case();
linear_extrude(4.1) offset(delta=0.45) base();

// holes and shape for debug
//translate([0,0,4.1])
// board();

translate([0,0,top_of_pcb]) switch_holes();

// Diodes
translate([0, 0, top_of_pcb]) diodes();

// RJ45 socket
color("cyan") {
translate([29.2, -9.33, 4.1])
linear_extrude(10)
square([30, 16.6]);

translate([45, -4.53, 2.5])
linear_extrude(10)
square([15, 7]);
}

// EC11 encoder
color("pink") {
translate([32.75, 16.5, 4.1])
linear_extrude(10)
square(13);

translate([32.2, 15, 4.1])
linear_extrude(3)
square([14.2, 17.5]);
}

// solder bridge pads needs some space
color("red")
translate([29, -15.53, 4.1])
linear_extrude(2)
square([19.5, 3.5]);


mounting_hole_inserts();
}

// RJ45 socket cover
color("purple") {
difference() {
// x = front/back, y = left/right, z = top/down
// -0.8 is thickness of the back cover
// -9.33 is the initial size of left/right
// 8.1 is the intial value of the PCB
translate([29.2 + (-0.8), -9.33 - 2, 8.1])
// width = front/back, depth = left/right, height = top cover
// Add thickness of 4. 2 left 2 right.
// (reset mcu_height) + 2 is for top cover thickness
roundedcube([30 - 8, 16.6 + 4, (rj45_height - 4.1) + 2], false, cover_radius, "xmax");

// To craete a hole, repeat the difference() for initial rj45
translate([29.2, -9.33, 8.1])
// 0.5 for tolerance
linear_extrude((rj45_height - 4.1) + 0.5)
square([30, 16.6]);
}
}
68 changes: 31 additions & 37 deletions case/cheapino-top-right.scad
Original file line number Diff line number Diff line change
@@ -1,59 +1,53 @@
height = 95.1738;
width = 132.6134;
step = 0.06;
$fn=50;
$fn = $preview ? 10 : 50;

height_translation = 0;
include <modules.scad>


// Rotate so you dont need to do that in extruder
translate([0,0,9.1])
rotate([0,180,0])
mirror() {
difference() {
case();
linear_extrude(4.1) offset(delta=0.45) base();
difference() {
case();
linear_extrude(4.1) offset(delta=0.45) base();

// holes and shape for debug
//translate([0,0,4.1])
// board();
// holes and shape for debug
//translate([0,0,4.1])
// board();

translate([0,0,top_of_pcb]) switch_holes();
translate([0,0,top_of_pcb]) switch_holes();

// Diodes
translate([0, 0, top_of_pcb]) diodes();
// Diodes
translate([0, 0, top_of_pcb]) diodes();

// RJ45 socket
color("cyan") {
translate([29.2, -9.33, 4.1])
linear_extrude(10)
square([30, 16.6]);
// RJ45 socket
color("cyan") {
translate([29.2, -9.33, 4.1])
linear_extrude(10)
square([30, 16.6]);

translate([45, -4.53, 2.5])
linear_extrude(10)
square([15, 7]);
}
translate([45, -4.53, 2.5])
linear_extrude(10)
square([15, 7]);
}

// EC11 encoder
color("pink") {
translate([32.75, 16.5, 4.1])
linear_extrude(10)
square(13);
// EC11 encoder
color("pink") {
translate([32.75, 16.5, 4.1])
linear_extrude(10)
square(13);

translate([32.2, 15, 4.1])
linear_extrude(3)
square([14.2, 17.5]);
}
translate([32.2, 15, 4.1])
linear_extrude(3)
square([14.2, 17.5]);
}

// solder bridge pads needs some space
color("red")
// solder bridge pads needs some space
color("red")
translate([29, -15.53, 4.1])
linear_extrude(2)
square([19.5, 3.5]);


mounting_hole_inserts();
}
mounting_hole_inserts();
}

3 changes: 1 addition & 2 deletions case/cheapino.scad
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
height = 95.1738;
width = 132.6134;
step = 0.05;
$fn=30;
$fn = $preview ? 10 : 30;

height_translation = 0;

Expand Down Expand Up @@ -78,4 +78,3 @@ module base_line(expanded)
base();
}
}

Loading