trackstick testbed
I'm going to print myself a small PLA rectangle with the holes at the same positions and sizes to try out your current design without manufacturing an expensive PCB first. This will also allow me to produce some keycaps with appropriate cutouts for the trackstick rubber dome.
$fn=32;
width=33.6;
height=32.6;
padw=15;
module pad() {
translate([2, padw-7.5, 0]) cylinder(h=4, r=0.851);
translate([7.5,padw-7.5, 0]) cylinder(h=4, r=1.715);
translate([13, padw-7.5, 0]) cylinder(h=4, r=0.851);
translate([7.5,padw-13.4, 0]) cylinder(h=4, r=1.016);
translate([2.5,padw-11.23,0]) cylinder(h=4, r=1.016);
}
module keycap(x, y) {
difference() {
translate([x+padw/2, y+height-padw/2, 6]) import("/home/josch/Downloads/mbk_keycap_1u.stl");
translate([width/2, (height-15.61), 0]) cylinder(h=20, r=4.5);
}
}
difference() {
cube([width,height,2]);
translate([0,0,-1]) {
translate([18.6, height-15, 0]) pad();
translate([9.275, height-15-17.6, 0]) pad();
translate([0, height-15, 0]) pad();
translate([width/2, height-5.61, 0]) cylinder(h=4, r=1.1);
translate([width/2, height-15.61, 0]) cylinder(h=4, r=2);
translate([7.475, height-19.26, 0]) cylinder(h=4, r=1.1);
translate([26.125, height-19.26, 0]) cylinder(h=4, r=1.1);
}
}
#keycap(18.6, 0);
#keycap(9.275, 0-17.6);
#keycap(0, 0);
Edited by Johannes Schauer Marin Rodrigues
