3 key_interface_size = 18;
4 key_interface_corner_r = 5;
5 key_interface_thickness = 1.484;
7 // Chosen to let board fit inside
17 extra_flare = wiring_l;
30 module pico_hole(d, x, y) {
31 translate([x, y, -slop/2])
32 cylinder(h=slop, d = d);
35 module pico_board(gap = 0) {
36 translate([-gap, 0, -gap])
37 cube([pico_board_l + 2*gap, pico_board_w, pico_board_h + 2*gap]);
40 module pico_w(hole_d = 2.1) {
41 // Dimensions from measuring and/or
42 // https://datasheets.raspberrypi.com/picow/pico-w-datasheet.pdf
43 board_l = pico_board_l;
44 board_w = pico_board_w;
47 hole_x2 = board_l - 2.0;
48 hole_y_spacing = 11.4;
49 hole_y = (board_w - hole_y_spacing)/2;
55 pico_hole(hole_d, hole_x1, hole_y);
56 pico_hole(hole_d, hole_x2, hole_y);
57 pico_hole(hole_d, hole_x1, hole_y + hole_y_spacing);
58 pico_hole(hole_d, hole_x2, hole_y + hole_y_spacing);
63 total_h = pico_total_h;
68 translate([board_l - total_l, (board_w-usb_w)/2, total_h-usb_h])
69 cube([usb_l, usb_w, usb_h]);
77 translate([button_x, button_y, epsilon])
78 cube([button_l, button_w, button_h]);
85 translate([wifi_x, (board_w-wifi_w)/2, epsilon])
86 cube([wifi_l, wifi_w, wifi_h]);
90 translate([pico_board_l + wiring_l, 0, 0])
96 module key_interface_shape(thick = key_interface_thickness, outline = thickness) {
97 inner = key_interface_size - 2*key_interface_corner_r;
100 square([inner, inner], center=true);
101 circle(r=key_interface_corner_r + outline);
105 module key_interface() {
108 key_interface_shape();
110 translate([0, 0, 6 - epsilon])
111 cherry_switch_void(tolerance=0.05);
115 module housing_shape(outline = thickness) {
116 housing_w = housing_inner_w + 2 * outline;
117 housing_h = housing_inner_h + 2 * outline;
118 squish = housing_h / (housing_w - housing_flat);
122 circle(d = housing_w - housing_flat);
123 square([housing_flat, epsilon], center=true);
127 module housing(length = pico_board_l - extra_flare) {
130 linear_extrude(length)
137 module flare_shape(outline, extra_len) {
140 key_interface_shape(epsilon + extra_len, outline);
141 translate([pico_board_l-extra_flare, 0, 0])
143 translate([-extra_len, 0, 0])
146 linear_extrude(epsilon+extra_len)
147 housing_shape(outline);
153 flare_shape(thickness, 0);
154 flare_shape(0, epsilon);
159 translate([0, -pico_board_w/2, -pico_board_h])
163 module tattlekey_case() {
172 pico_board(board_gap);
178 render() tattlekey_case();