Added pcb
This commit is contained in:
@@ -29,6 +29,25 @@ $dampenerHeight = 1;
|
||||
|
||||
$pcbDampenerOffset = $pcbHeight + $dampenerHeight;
|
||||
|
||||
points = [
|
||||
[0,0],
|
||||
[0, $switchDistance * $rows],
|
||||
[$switchDistance * 2, $switchDistance * $rows],
|
||||
[$switchDistance * 2, $switchDistance * $rows + $fingerStep],
|
||||
[$switchDistance * 3, $switchDistance * $rows + $fingerStep],
|
||||
[$switchDistance * 3, $switchDistance * $rows],
|
||||
[$switchDistance * 4, $switchDistance * $rows],
|
||||
[$switchDistance * 4, $switchDistance * $rows - $fingerStep],
|
||||
[$switchDistance * 6, $switchDistance * $rows - $fingerStep],
|
||||
[$switchDistance * 6, 0 - $fingerStep],
|
||||
[$switchDistance * 4, 0 - $fingerStep],
|
||||
[$switchDistance * 4, 0],
|
||||
[$switchDistance * 3, 0],
|
||||
[$switchDistance * 3, 0 + $fingerStep],
|
||||
[$switchDistance * 2, 0 + $fingerStep],
|
||||
[$switchDistance * 2, 0],
|
||||
];
|
||||
|
||||
|
||||
module pin(){
|
||||
cylinder(h=$holes, r=1, center=false);
|
||||
@@ -109,25 +128,6 @@ module case(){
|
||||
// Then adjust the shim, aux and pico.
|
||||
// Last add magnets, don't forget the clearance.
|
||||
$baseHeight = 6.3;
|
||||
|
||||
points = [
|
||||
[0,0],
|
||||
[0, $switchDistance * $rows],
|
||||
[$switchDistance * 2, $switchDistance * $rows],
|
||||
[$switchDistance * 2, $switchDistance * $rows + $fingerStep],
|
||||
[$switchDistance * 3, $switchDistance * $rows + $fingerStep],
|
||||
[$switchDistance * 3, $switchDistance * $rows],
|
||||
[$switchDistance * 4, $switchDistance * $rows],
|
||||
[$switchDistance * 4, $switchDistance * $rows - $fingerStep],
|
||||
[$switchDistance * 6, $switchDistance * $rows - $fingerStep],
|
||||
[$switchDistance * 6, 0 - $fingerStep],
|
||||
[$switchDistance * 4, 0 - $fingerStep],
|
||||
[$switchDistance * 4, 0],
|
||||
[$switchDistance * 3, 0],
|
||||
[$switchDistance * 3, 0 + $fingerStep],
|
||||
[$switchDistance * 2, 0 + $fingerStep],
|
||||
[$switchDistance * 2, 0],
|
||||
];
|
||||
|
||||
module magnets(){
|
||||
$magnetWidth = 4;
|
||||
@@ -221,6 +221,27 @@ module case(){
|
||||
magnets();
|
||||
}
|
||||
}
|
||||
|
||||
topDampeners();
|
||||
case();
|
||||
module pcb() {
|
||||
jackBody = [15,6.15,5.3];
|
||||
module jack() {
|
||||
translate([0,jackBody.y/2, jackBody.z/2])
|
||||
rotate([0,90])
|
||||
cylinder(r=2, h=2.2);
|
||||
translate([2.2,0,0])
|
||||
cube(jackBody);
|
||||
|
||||
}
|
||||
translate([0,0,$dampenerHeight]) {
|
||||
linear_extrude($pcbHeight)
|
||||
polygon(points);
|
||||
translate(points[1] + [0, -12.3 - jackBody.y])
|
||||
translate([0,0,-jackBody.z])
|
||||
jack();
|
||||
}
|
||||
}
|
||||
color("#008800")
|
||||
%pcb();
|
||||
color("#333333")
|
||||
%topDampeners();
|
||||
color("#880000")
|
||||
case();
|
||||
|
||||
Reference in New Issue
Block a user