You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

112 lines
2.4 KiB

/*
* Copyright 2022 Thomas Buck - thomas@xythobuz.de
* Philipp Schönberger - mail@phschoen.de
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* See <http://www.gnu.org/licenses/>.
*/
$c=0.1;
$fn=60;
$e=0.01;
// #######################
// ## cherry switches ##
// #######################
switch_cutout_width = 14;
switch_dim_x=13.98;
switch_dim_y=13.98;
switch_travel_max = 4;
switch_clamp_height =1.1;
switch_extra_keycap_width = 2.5;
switch_holder_width = switch_cutout_width + switch_extra_keycap_width*2;
switch_holder_height = 4.8;
switch_cutout_side_offset = 1;
switch_cutout_side_width = 3.5;
switch_cutout_side_dept = 1.2;
// #######################
// ## metric screw cuts ##
// #######################
m3_thread_tight=2.7;
m3_thread_lose=2.9;
m2_thread_tight=1.8;
m2_thread_lose=2.2;
m2_head_d=4;
m2_head_h=0.75;
m2_screw_d=2;
// #######################
// ## trackball ##
// #######################
roller_ball_h = 8;
// #######################
// ## amoeba royale ##
// #######################
amoeba_royale_pcb_h = 1.6;
amoeba_royale_pcb_screw_h=5;
// #######################
// ## Raspberry Pi Pico ##
// #######################
pico_w = 21;
pico_l = 51;
pico_d = 1.6; // todo
pico_hole_d = 2.1;
pico_hole_x = 4.8;
pico_hole_y = 2.0;
pico_hole_d_x = 11.4;
pico_hole_d_y = pico_l - 2 * pico_hole_y;
pico_usb_w = 8.0;
pico_usb_h = 3.0; // todo
pico_usb_d = 10.0; // todo
pico_usb_off = 1.3;
pico_h = pico_d + 1; // todo
// ######################
// ### PMW3360 Sensor ###
// ######################
// https://github.com/jfedor2/pmw3360-breakout
sensor_w = 22;
sensor_l = 34;
sensor_pcb_h = 1.6;
sensor_hole_dia = 2.2;
sensor_hole_off_x = 3.0;
sensor_hole_off_y = 3.0;
sensor_hole_dist_x = 16.0;
sensor_hole_dist_y = 24.5;
sensor_cut_w = 8.0 + 0.5;
sensor_cut_h = 17.26;
sensor_cut_off_x = 7.0 - 0.25;
sensor_cut_off_y = 5.27;
sensor_cut_edge_to_pin1 = 2.75;
sensor_edge_to_pin1 = 1.52;
sensor_ball_to_lens_top = 2.4;
sensor_ball_to_chip_bottom = 9.81;
sensor_chip_w = 9.1;
sensor_chip_l = 16.2;
sensor_chip_h = 2.21;
sensor_pin_w = 0.5;
sensor_pin_h = 4.51;
sensor_pin_d = 0.2;
sensor_pin_dist = 10.7;
sensor_pin_off_top = 0.5;
sensor_pin_pitch = 0.89;
sensor_pin1_to_optical_center = 5.66;