Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tweaks to Parametric design #17

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,5 @@ The design files from *case* and *watch-faces* are made with [https://blender.or

The design files from *sleek-case* are made with SolidWorks.

The design files from *case-light-round-parametric* are made with OpenSCAD.

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added case-light-round-parametric/1.6mm_base.stl
Binary file not shown.
Binary file not shown.
Binary file added case-light-round-parametric/1.6mm_buttons.stl
Binary file not shown.
Binary file added case-light-round-parametric/1.6mm_mid.stl
Binary file not shown.
Binary file not shown.
Binary file added case-light-round-parametric/1.6mm_top.stl
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,10 @@ base_screw_len_add = 0.4 + 0.3;

base_bat_dia = 35.5;
base_bat_cut_w = 22;
base_bat_cut_h = 3;
base_bat_cut_off = 0.9;
base_bat_cut_h = 3 + 1.5;
base_bat_cut_off = 0.9 - 1.5;

use_printed_strap = false;

base_strap_h = 7.8;
base_strap_d = 5.2 + base_strap_add_l;
Expand All @@ -16,6 +18,14 @@ base_strap_warp = 1;
base_strap_cut = 0.1;
base_strap_off = body_radius;

fstrap_width = 20;
fstrap_dist = fstrap_width + 0.2;
fstrap_hole = 1.1;
fstrap_depth = 1.9;
fstrap_add = 1.5;
fstrap_h = base_strap_h - 2;
fstrap_warp = base_strap_warp - 1;

base_height = base_bottom + base_wall;

module base_bat(h) {
Expand Down Expand Up @@ -50,6 +60,34 @@ module base_strap() {
}
}

module fstrap_piece(w, s) {
translate([-w / 2, 0, 0])
difference() {
hull() {
translate([0, -fstrap_add, 0])
cube([w, 0.1 + fstrap_add, fstrap_h]);

translate([0, base_strap_d - 0.1 - base_strap_cyl / 2, fstrap_h / 2 - 0.05 + fstrap_warp])
rotate([0, 90, 0])
cylinder(d = base_strap_cyl, h = w);
}

translate([-1, base_strap_d - strap_d / 2, fstrap_h / 2 + fstrap_warp])
rotate([0, 90, 0])
cylinder(d = s, h = w + 2);

translate([-0.1, -0.1 - fstrap_add, -base_strap_off + base_height])
cube([w + 0.2, base_strap_cut + 0.1 + fstrap_add, fstrap_h]);
}
}

module fstrap() {
for (i = [-1, 1])
scale([i, 1, 1])
translate([(fstrap_dist + fstrap_depth) / 2, 0, 0])
fstrap_piece(fstrap_depth, fstrap_hole);
}

module base() {
difference() {
union() {
Expand All @@ -58,11 +96,17 @@ module base() {
translate([0, 0, base_bottom])
body(base_wall, false);

for (i = [-1, 1]) {
scale([1, i, 1])
translate([0, body_dia / 2 + base_mount_off, base_strap_off])
base_strap();
}
if (use_printed_strap)
for (i = [-1, 1])
scale([1, i, 1])
translate([0, body_dia / 2 + base_mount_off, base_strap_off])
base_strap();

if (!use_printed_strap)
for (i = [-1, 1])
scale([1, i, 1])
translate([0, body_dia / 2 + base_mount_off, base_strap_off])
fstrap();
}

translate([0, 0, base_bottom - 0.01])
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ mid_button_height = 3.0;
mid_button_depth = 4.0;
mid_button_gap_width = 2.6;
mid_button_gap_wall = 1.6;
mid_button_off = 0.25; //1.3; //pcb_h - 0.3;
mid_button_off = 0;//0.25; //1.3; //pcb_h - 0.3;
mid_button_holder_width = 5.4;
mid_button_holder_depth = 1.4;

Expand All @@ -50,7 +50,7 @@ button_radius = 0.5;
button_wing = 0.5;
button_wing_len = 1.0;

mid_snap_dia = 2;
mid_snap_dia = 2 + 0.2;
mid_snap_off = 2.55;

mid_threshold = 4.0;
Expand Down Expand Up @@ -222,7 +222,13 @@ module mid() {
cylinder(d = mid_snap_dia, h = mid_height - mid_base);
}

//mid();
//#buttons_assembly();
module mid_assembly() {
mid();

color("red")
buttons_assembly();
}

//mid_assembly();
//mid();
//buttons_print();
Original file line number Diff line number Diff line change
@@ -1,23 +1,25 @@
include <common.scad>;

draw_text = false;

face_hole_dia = 33;
body_dia = 43.7;

face_glass_dia = 37.0 + 0.3;
face_glass_height = 0; //1.0 + 0.2;
face_glass_dia = 37.4;
face_glass_height = 1.85;

face_cyl_1_dia = body_dia;
face_cyl_1_height = 0.6;
face_cyl_1_height = 1.0;
face_cyl_2_dia = 39.0;
face_cyl_2_height = 1.5;
face_cyl_2_height = 1.4;

face_mount_base = 0.6;

face_height = face_cyl_1_height + face_cyl_2_height;

text_off = face_cyl_2_dia / 2 - (face_cyl_2_dia - face_hole_dia) / 4 + 1.3;
text_height = face_height - face_glass_height - 0.8;
text_size = 3.8;
text_off = face_cyl_2_dia / 2 - (face_cyl_2_dia - face_hole_dia) / 4 + 0.5;
text_height = face_height - face_glass_height - 0.4;
text_size = 3.0;
text_font = "Droid Sans:style=Bold";

module face_base() {
Expand Down Expand Up @@ -113,6 +115,7 @@ module face() {
translate([0, 0, -1])
cylinder(d = face_glass_dia, h = face_glass_height + 1);

if (draw_text)
translate([0, 0, face_height - text_height]) {
text_rotated("R", button_angle_r);
text_rotated("1", button_angle_1);
Expand All @@ -122,4 +125,4 @@ module face() {
}
}

//face();
//face();