3 key_interface_size = 18;
4 key_interface_corner_r = 5;
5 key_interface_thickness = 1.484;
7 // Chosen to let board fit inside
18 extra_flare = wiring_l;
31 module pico_hole(d, x, y) {
32 translate([x, y, -slop/2])
33 cylinder(h=slop, d = d);
36 module pico_board(length = pico_board_l, gap = 0) {
37 translate([-gap - length + pico_board_l, 0, -gap])
38 cube([length + 2*gap, pico_board_w, pico_board_h + 2*gap]);
41 module pico_w(hole_d = 2.1) {
42 // Dimensions from measuring and/or
43 // https://datasheets.raspberrypi.com/picow/pico-w-datasheet.pdf
44 board_l = pico_board_l;
45 board_w = pico_board_w;
48 hole_x2 = board_l - 2.0;
49 hole_y_spacing = 11.4;
50 hole_y = (board_w - hole_y_spacing)/2;
56 pico_hole(hole_d, hole_x1, hole_y);
57 pico_hole(hole_d, hole_x2, hole_y);
58 pico_hole(hole_d, hole_x1, hole_y + hole_y_spacing);
59 pico_hole(hole_d, hole_x2, hole_y + hole_y_spacing);
64 total_h = pico_total_h;
69 translate([board_l - total_l, (board_w-usb_w)/2, total_h-usb_h])
70 cube([usb_l, usb_w, usb_h]);
78 translate([button_x, button_y, epsilon])
79 cube([button_l, button_w, button_h]);
86 translate([wifi_x, (board_w-wifi_w)/2, epsilon])
87 cube([wifi_l, wifi_w, wifi_h]);
91 translate([pico_board_l + wiring_l, 0, 0])
97 module key_interface_shape(thick = key_interface_thickness, outline = thickness) {
98 inner = key_interface_size - 2*key_interface_corner_r;
101 square([inner, inner], center=true);
102 circle(r=key_interface_corner_r + outline);
106 module key_interface() {
109 key_interface_shape();
111 translate([0, 0, 6 - epsilon])
112 cherry_switch_void(tolerance=0.05);
116 module housing_shape(outline = thickness) {
117 housing_w = housing_inner_w + 2 * outline;
118 housing_h = housing_inner_h + 2 * outline;
119 squish = housing_h / (housing_w - housing_flat);
123 circle(d = housing_w - housing_flat);
124 square([housing_flat, epsilon], center=true);
129 length = pico_board_l - extra_flare;
130 translate([-housing_extra_l, 0, 0])
133 linear_extrude(length + housing_extra_l)
140 module flare_shape(outline, extra_len) {
143 key_interface_shape(epsilon + extra_len, outline);
144 translate([pico_board_l-extra_flare, 0, 0])
146 translate([-extra_len, 0, 0])
149 linear_extrude(epsilon+extra_len)
150 housing_shape(outline);
156 flare_shape(thickness, 0);
157 flare_shape(0, epsilon);
162 translate([0, -pico_board_w/2, -pico_board_h])
166 module tattlekey_case() {
175 pico_board(slop, board_gap);
181 render() tattlekey_case();