Added pcb

This commit is contained in:
2025-08-23 19:34:35 +02:00
parent 29ed5e8e9a
commit dabde65968

View File

@@ -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);
@@ -110,25 +129,6 @@ module case(){
// 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;
$magnetRadius = ($magnetWidth / 2) + $clearance/2;
@@ -221,6 +221,27 @@ module case(){
magnets();
}
}
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);
topDampeners();
case();
}
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();