Skip to content

Commit c8ba31d

Browse files
committed
current version of obs lite.
1 parent 2f2e5e1 commit c8ba31d

File tree

3 files changed

+29
-15
lines changed

3 files changed

+29
-15
lines changed

src/LiteCase/LiteCase_bottom.scad

Lines changed: 23 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ Lite_ESP_dimensions = [53, 29, 4.8];
3737

3838
Lite_USB_position_x = 55;
3939
Lite_USB_position_y = 0;
40-
Lite_USB_position_z = - 15;
40+
Lite_USB_position_z = - 14.5;
4141

4242
Lite_screwmount_top = 4;
4343
Lite_screwmount_bottom = 6;
@@ -47,11 +47,16 @@ Lite_USB = [Lite_USB_position_x, Lite_USB_position_y, Lite_USB_position_z];
4747

4848
Lite_ESP_position = [Lite_ESP_position_x, Lite_ESP_position_y, Lite_ESP_position_z];
4949

50-
sensor_x = - Lite_transducer_position[2]+.5;
50+
sensor_x = - Lite_transducer_position[2] + .5;
5151
sensor_y = Lite_transducer_position[0];
5252

5353
function angle_three_points_2d(pa, pb, pc) = asin(cross(pb - pa, pb - pc) / (norm(pb - pa) * norm(pb - pc)));
5454

55+
module rounded_cube(x, y, z, r, r2, center = true) {
56+
t = center ? - [x / 2, y / 2, z / 2]: [0, 0, 0];
57+
translate(t)polyRoundExtrude([[0, 0, max(r, r2)], [0, y, max(r, r2)], [x, y, max(r, r2)], [x, 0, max(r, r2)]], z, r, r2);
58+
}
59+
5560
module SidePolygon() {
5661
corners = [
5762
[square_x, - lite_w / 2, 9],
@@ -64,15 +69,14 @@ module SidePolygon() {
6469
translate([sensor_x, sensor_y])polygon(polyRound(corners, fn = 150));
6570
}
6671

67-
6872
module MidPolygon() {
6973
corners = [[square_x, - lite_w / 2, 5], [- boardcorner_x, - boardcorner_y, 5], [- boardcorner_x, boardcorner_y, 5], [square_x, lite_w / 2, 5], [lite_l, lite_w / 2, 5], [lite_l, -
7074
lite_w / 2, 5]];
7175
translate([sensor_x, sensor_y]) polygon(polyRound(corners));
7276
}
7377

7478
module LidCutter() {
75-
translate([30, 0, Lite_ESP_position_z + 0.8])cube([90, 60, 0.1], center = true);
79+
translate([40, 0, Lite_ESP_position_z + 0.8])cube([120, 90, 0.1], center = true);
7680
}
7781

7882
module Box() {
@@ -114,7 +118,8 @@ module Ultrasonic(i, onlyboards = false, h = 30) {
114118
}
115119

116120
module USB_hole() {
117-
translate(Lite_USB)cube([20, 12, 10], center = true);
121+
translate(Lite_USB)
122+
rounded_cube(45, 11, 11, 1.5, 1.5, center = true);
118123
}
119124

120125
module Screwbump(size = 6, hole_diameter = 2.8, height = 6, bottom = true, toppart = 2.1) {
@@ -168,9 +173,19 @@ difference() {
168173
Screwbump(size = 4, hole_diameter = 2.8, height = Lite_screwmount_height, bottom = true, toppart = Lite_screwmount_top);
169174
translate([lite_w - 7.3, - 12, Lite_ESP_position_z + 0.8 + 0.05 - Lite_screwmount_top])rotate([0, 0, - 90])
170175
Screwbump(size = 4, hole_diameter = 2.8, height = Lite_screwmount_height, bottom = true, toppart = Lite_screwmount_top);
171-
translate([23.8, - 3.5, - 17.9])rotate([180, 0, 90])StandardMountAdapter(screwholes = false, channels = false);
176+
translate([23.8, - 3.5, - 17.9])rotate([180, 0, 90])StandardMountAdapter(screwholes = false, channels = false, twoholes=false);
172177
difference() {
173-
rotate([90, 90, 0])Box();
178+
union() {
179+
rotate([90, 90, 0])Box();
180+
translate(Lite_USB + [0, 0, - 3.5 - 1.6 + 1]) {
181+
rounded_cube(28, 10, 6.5, 0, 1.5, center = true);
182+
183+
difference() {
184+
rounded_cube(30, 15, 6.5, 0, 1.5, center = true);
185+
#translate([8, - 20, - 5])cube([4, 60, 20]);
186+
}
187+
}
188+
}
174189
hull() translate([23.8, - 3.5, - 18])rotate([180, 0, 90])StandardMountAdapter(screwholes = false, channels = false);
175190

176191
}
@@ -179,4 +194,4 @@ difference() {
179194
LidCutter();
180195
}
181196

182-
if ($preview) translate([80,0,0])LiteElectronics();
197+
if ($preview) translate([80, 0, 0])LiteElectronics();

src/LiteCase/Sensor_spacer.scad renamed to src/LiteCase/LiteSensorSpacer.scad

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,4 @@ difference(){
77
#translate([-1,1.8,6.7])cube([40,1.4,10]);
88
#translate([-1,2+16-1.2,6.7])cube([40,1.4,10]);
99
#translate([0,1.8+(16-1-1.4)/2-2,-3])cube([22,6,5]);
10-
1110
}

src/Mounting/StandardMountAdapter.scad

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ module StandardMountAdapterScrewHoles(head_depth=6, depth=100) {
3030
children();
3131
}
3232

33-
module StandardMountAdapterBody() {
33+
module StandardMountAdapterBody(twoholes=true) {
3434
module _half_base_shape(width=StandardMountAdapter_width) {
3535
union () {
3636
// base
@@ -52,29 +52,29 @@ module StandardMountAdapterBody() {
5252
}
5353
}
5454

55-
module _body_half() {
55+
module _body_half(hole=true) {
5656
difference() {
5757
_half_base_shape();
5858

5959
// locking pin hole
60-
translate([0, StandardMountAdapter_length/2, StandardMountAdapter_thickness])
60+
if (hole) translate([0, StandardMountAdapter_length/2, StandardMountAdapter_thickness])
6161
rotate([-90, 0, 0])
6262
LockingPinHole();
6363
}
6464
}
6565

6666

6767
union () {
68-
_body_half();
68+
_body_half(hole=twoholes);
6969

7070
rotate([0, 0, 180])
7171
_body_half();
7272
}
7373
}
7474

75-
module StandardMountAdapter(channels=true, screwholes=true) {
75+
module StandardMountAdapter(channels=true, screwholes=true, twoholes=true) {
7676
difference() {
77-
StandardMountAdapterBody();
77+
StandardMountAdapterBody(twoholes=twoholes);
7878

7979
if(screwholes)translate([0, 0, StandardMountAdapter_thickness])
8080
StandardMountAdapterScrewHoles()

0 commit comments

Comments
 (0)