Skip to content

Commit b1e5732

Browse files
committed
Make USB opening wide enough for USB-C Plugs
1 parent c8ba31d commit b1e5732

File tree

1 file changed

+21
-15
lines changed

1 file changed

+21
-15
lines changed

src/LiteCase/LiteCase_bottom.scad

Lines changed: 21 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -118,11 +118,14 @@ module Ultrasonic(i, onlyboards = false, h = 30) {
118118
}
119119

120120
module USB_hole() {
121-
translate(Lite_USB)
122-
rounded_cube(45, 11, 11, 1.5, 1.5, center = true);
121+
translate(Lite_USB) {
122+
translate([0, 0, - 2.25])
123+
rounded_cube(45, 12.5, 8, 0, 0, center = true);
124+
rounded_cube(45, 5, 12.5, 2.5, 0, center = true);
125+
}
123126
}
124127

125-
module Screwbump(size = 6, hole_diameter = 2.8, height = 6, bottom = true, toppart = 2.1) {
128+
module Screwbump(size = 6, hole_diameter = 3.8, height = 6, bottom = true, toppart = 2.1, insert = 4) {
126129
outer_polygon = [[size, 0, 0], [- size, 0, 0], [- size, size, size], [0, 3 * size, size], [size, size, size]];
127130
difference() {
128131
hull() {
@@ -131,8 +134,8 @@ module Screwbump(size = 6, hole_diameter = 2.8, height = 6, bottom = true, toppa
131134
translate([0, 0, height - 1])polyRoundExtrude(outer_polygon, 1, 0, 0);
132135
if (bottom)translate([0, - 0.01, 1.3 * height])rotate([90, 0, 0])cylinder(d = size, h = 0.1);
133136
}
134-
translate([0, size, 0])cylinder(d = hole_diameter, h = height);
135-
translate([0, size, - .01])cylinder(d = hole_diameter + 0.4, h = toppart);
137+
translate([0, size, toppart])cylinder(d = insert, h = height - toppart);
138+
translate([0, size, - .01])cylinder(d = hole_diameter, h = toppart);
136139
}
137140
}
138141

@@ -168,22 +171,25 @@ module LiteElectronics(onlyboards = false) {
168171
difference() {
169172
union() {
170173
translate([- 7, 0, Lite_ESP_position_z + 0.8 + 0.05 - Lite_screwmount_top])rotate([0, 0, 90])
171-
Screwbump(size = 4, hole_diameter = 2.8, height = Lite_screwmount_height, bottom = true, toppart = Lite_screwmount_top);
174+
Screwbump(size = 4, hole_diameter = 3.2, height = Lite_screwmount_height, bottom = true, toppart = Lite_screwmount_top);
172175
translate([lite_w - 7.3, 12, Lite_ESP_position_z + 0.8 + 0.05 - Lite_screwmount_top])rotate([0, 0, - 90])
173-
Screwbump(size = 4, hole_diameter = 2.8, height = Lite_screwmount_height, bottom = true, toppart = Lite_screwmount_top);
176+
Screwbump(size = 4, hole_diameter = 3.2, height = Lite_screwmount_height, bottom = true, toppart = Lite_screwmount_top);
174177
translate([lite_w - 7.3, - 12, Lite_ESP_position_z + 0.8 + 0.05 - Lite_screwmount_top])rotate([0, 0, - 90])
175-
Screwbump(size = 4, hole_diameter = 2.8, height = Lite_screwmount_height, bottom = true, toppart = Lite_screwmount_top);
176-
translate([23.8, - 3.5, - 17.9])rotate([180, 0, 90])StandardMountAdapter(screwholes = false, channels = false, twoholes=false);
178+
Screwbump(size = 4, hole_diameter = 3.2, height = Lite_screwmount_height, bottom = true, toppart = Lite_screwmount_top);
179+
translate([23.8, - 3.5, - 17.9])rotate([180, 0, 90])StandardMountAdapter(screwholes = false, channels = false, twoholes = false);
177180
difference() {
178181
union() {
179182
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]);
183+
difference() {
184+
translate(Lite_USB + [0, 0, - 3.5 - 1.6 + 1]) {
185+
rounded_cube(28, 16.5, 6.5, 0, 1.5, center = true);
186+
187+
difference() {
188+
#rounded_cube(30, 15, 6.5, 0, 1.5, center = true);
189+
translate([8, - 20, - 5])cube([4, 60, 20]);
190+
}
186191
}
192+
translate(Lite_USB + [10, 0, 0])cube([4, 20, 12.5], center = true);
187193
}
188194
}
189195
hull() translate([23.8, - 3.5, - 18])rotate([180, 0, 90])StandardMountAdapter(screwholes = false, channels = false);

0 commit comments

Comments
 (0)