This commit is contained in:
Ricardo (XenGi) Band 2023-07-17 10:43:24 +02:00
commit fcfaed2ed1
No known key found for this signature in database
2 changed files with 13 additions and 50 deletions

View file

@ -19,7 +19,7 @@ module plate() {
translate([pcb_width-2*pcb_radius - 20, -pcb_radius, 0]) lug(north_facing=false);
}
// projection(cut=true)
// projection(cut=true)
difference() {
color("gold") plate();
translate([12.7-pcb_radius, 12.7-pcb_radius, 0]) {
@ -57,6 +57,6 @@ difference() {
translate([6*mx, 0, 0]) mx_1x1_cutout();
};
};
// poti
translate([127-pcb_radius, 12.45-pcb_radius, 0]) cylinder(h=plate_thickness+0.1, r=3);
// potentiometer
translate([127-pcb_radius, 12.45-pcb_radius, plate_thickness/2]) cube([13, 13, plate_thickness], center=true);
};

View file

@ -67,7 +67,7 @@ module mx_1x2_cutout() {
side_length = 14;
// central hole
translate([0, 0, pcb_thickness/2]) cube([side_length, side_length, pcb_thickness+0.1], center=true);
translate([0, 0, pcb_thickness/2]) cube([side_length, side_length+2, pcb_thickness+0.1], center=true);
// wings
translate([side_length/2, 2.5+3.5/2, pcb_thickness/2]) cube([2*0.8, 3.5, pcb_thickness+0.1], center=true);
@ -82,15 +82,17 @@ module mx_1x2_cutout() {
translate([-side_length/2+0.25, -side_length/2+0.25, 0]) cylinder(h=pcb_thickness+0.1, r=0.5);
// stabilizers
translate([0, 0, pcb_thickness/2]) translate([-0.5, 11.9, 0]) cube([15, 6.65, pcb_thickness+0.1], center=true);
translate([0, 0, pcb_thickness/2]) translate([-0.5, -11.9, 0]) cube([15, 6.65, pcb_thickness+0.1], center=true);
translate([0, 0, pcb_thickness/2]) {
translate([-0.5, 11.9, 0]) cube([15, 8, pcb_thickness+0.1], center=true);
translate([-0.5, -11.9, 0]) cube([15, 8, pcb_thickness+0.1], center=true);
}
}
module mx_2x1_cutout() {
side_length = 14;
// central hole
translate([0, 0, pcb_thickness/2]) cube([side_length, side_length, pcb_thickness+0.1], center=true);
translate([0, 0, pcb_thickness/2]) cube([side_length+2, side_length, pcb_thickness+0.1], center=true);
// wings
translate([side_length/2, 2.5+3.5/2, pcb_thickness/2]) cube([2*0.8, 3.5, pcb_thickness+0.1], center=true);
@ -105,47 +107,8 @@ module mx_2x1_cutout() {
translate([-side_length/2+0.25, -side_length/2+0.25, 0]) cylinder(h=pcb_thickness+0.1, r=0.5);
// stabilizer holes
translate([0, 0, pcb_thickness/2]) translate([11.9, -0.5, 0]) cube([6.65, 15, pcb_thickness+0.1], center=true);
translate([0, 0, pcb_thickness/2]) translate([-11.9, -0.5, 0]) cube([6.65, 15, pcb_thickness+0.1], center=true);
translate([0, 0, pcb_thickness/2]) {
translate([11.9, -0.5, 0]) cube([8, 15, pcb_thickness+0.1], center=true);
translate([-11.9, -0.5, 0]) cube([8, 15, pcb_thickness+0.1], center=true);
}
}
// TODO: replace with screw in cutouts
/*
linear_extrude(pcb_thickness) polygon(points=[
[-7, 7],
[-5.97, 7],
[-5.97, 17.15/2],
[-6.77, 17.15/2],
[-6.77, 20.8/2],
[-7.97, 20.8/2],
[-7.97, 26.8/2],
[-6.77, 26.8/2],
[-6.77, 30.45/2],
[-0.5, 30.45/2],
[-0.5, 32.2/2],
[2.3, 32.2/2],
[2.3, 30.45/2],
[5.53, 30.45/2],
[5.53, 17.15/2],
[4.73, 17.15/2],
[4.73, 14/2],
[7, 14/2],
[7, -14/2],
[4.73, -14/2],
[4.73, -17.15/2],
[5.53, -17.15/2],
[5.53, -30.45/2],
[2.3, -30.45/2],
[2.3, -32.2/2],
[-0.5, -32.2/2],
[-0.5, -30.45/2],
[-6.77, -30.45/2],
[-6.77, -26.8/2],
[-7.97, -26.8/2],
[-7.97, -20.8/2],
[-6.77, -20.8/2],
[-6.77, -17.15/2],
[-5.97, -17.15/2],
[-5.97, -7],
[-7, -7]
], convexity=1);
*/