3 key_interface_size = 18;
4 key_interface_corner_r = 5;
5 key_interface_thickness = 1.484;
7 housing_inner_h = 8; // Chosen to let board fit inside
13 extra_flare = wiring_l;
25 module pico_hole(d, x, y) {
26 translate([x, y, -slop/2])
27 cylinder(h=slop, d = d);
30 module pico_w(hole_d = 2.1) {
31 // Dimensions from measuring and/or
32 // https://datasheets.raspberrypi.com/picow/pico-w-datasheet.pdf
33 board_l = pico_board_l;
34 board_w = pico_board_w;
38 hole_x2 = board_l - 2.0;
39 hole_y_spacing = 11.4;
40 hole_y = (board_w - hole_y_spacing)/2;
44 cube([board_l, board_w, board_h]);
46 pico_hole(hole_d, hole_x1, hole_y);
47 pico_hole(hole_d, hole_x2, hole_y);
48 pico_hole(hole_d, hole_x1, hole_y + hole_y_spacing);
49 pico_hole(hole_d, hole_x2, hole_y + hole_y_spacing);
54 total_h = pico_total_h;
59 translate([board_l - total_l, (board_w-usb_w)/2, total_h-usb_h])
60 cube([usb_l, usb_w, usb_h]);
68 translate([button_x, button_y, epsilon])
69 cube([button_l, button_w, button_h]);
76 translate([wifi_x, (board_w-wifi_w)/2, epsilon])
77 cube([wifi_l, wifi_w, wifi_h]);
81 translate([pico_board_l + wiring_l, 0, 0])
87 module key_interface_shape(thick = key_interface_thickness, outline = thickness) {
88 inner = key_interface_size - 2*key_interface_corner_r;
91 square([inner, inner], center=true);
92 circle(r=key_interface_corner_r + outline);
96 module key_interface() {
99 key_interface_shape();
101 translate([0, 0, 6 - epsilon])
102 cherry_switch_void(tolerance=0.05);
106 module housing_shape(outline = thickness) {
107 inner_squish = housing_inner_h / housing_inner_w;
108 housing_w = housing_inner_w + 2 * outline;
109 housing_h = housing_inner_h + 2 * outline;
110 squish = housing_h / housing_w;
113 circle(d = housing_w);
116 module housing(length = pico_board_l - extra_flare) {
119 linear_extrude(length)
126 module flare_shape(outline, extra_len) {
129 key_interface_shape(epsilon + extra_len, outline);
130 translate([pico_board_l-extra_flare, 0, 0])
132 translate([-extra_len, 0, 0])
135 linear_extrude(epsilon+extra_len)
136 housing_shape(outline);
142 flare_shape(thickness, 0);
143 flare_shape(0, epsilon);
147 module tattlekey_case() {
155 translate([0, -pico_board_w/2, -1])