Add space for the rotary encoder pins
This commit is contained in:
parent
3f5c04d892
commit
7bc858b8a9
1 changed files with 12 additions and 4 deletions
|
@ -5,7 +5,7 @@ use <BOSL/transforms.scad>
|
|||
$fn = $preview ? 30 : 50;
|
||||
|
||||
plate_margin = 5;
|
||||
plate_thickness = 1.5;
|
||||
plate_thickness = 3;
|
||||
|
||||
// Number of key switches
|
||||
keys = 3;
|
||||
|
@ -20,6 +20,8 @@ keyswitch_cutout_width = 14;
|
|||
dial_diameter = 20;
|
||||
dial_base_width = 12.85;
|
||||
dial_base_height = 16.75;
|
||||
dial_pin_width = 6;
|
||||
dial_pin_length = 3;
|
||||
// Space between the dial and the keypad
|
||||
dial_distance = 5;
|
||||
|
||||
|
@ -37,9 +39,15 @@ module support_plate() {
|
|||
translate([plate_margin, plate_margin, -1]) {
|
||||
// Dial cutouts
|
||||
translate([(dial_diameter - dial_base_width) / 2,
|
||||
(dial_diameter - dial_base_height) / 2])
|
||||
cube([dial_base_width, dial_base_height, plate_thickness + 2]);
|
||||
|
||||
(dial_diameter - dial_base_height) / 2]) {
|
||||
union() {
|
||||
cube([dial_base_width, dial_base_height, plate_thickness + 2]);
|
||||
translate([(dial_base_width - dial_pin_width) / 2, - dial_pin_length]) {
|
||||
// Provide a 0.5mm-thick lip to hide the pins
|
||||
cube([dial_pin_width, dial_base_height + dial_pin_length, plate_thickness + 2 - 1.5]);
|
||||
}
|
||||
}
|
||||
}
|
||||
// Key switch cutouts
|
||||
offset_y = dial_diameter <= key_width ? 0 : (dial_diameter - key_width) / 2;
|
||||
translate([dial_diameter + dial_distance, offset_y]) {
|
||||
|
|
Loading…
Reference in a new issue