Procházet zdrojové kódy

Merge different Orange Pi case versions

Thomas Buck před 6 roky
rodič
revize
cda3ee8772
1 změnil soubory, kde provedl 29 přidání a 27 odebrání
  1. 29
    27
      opi-pc-plus/opi-pc-plus.scad

+ 29
- 27
opi-pc-plus/opi-pc-plus.scad Zobrazit soubor

64
 
64
 
65
 opi_dual_usb_width = 13.2;
65
 opi_dual_usb_width = 13.2;
66
 opi_dual_usb_depth = 17.5;
66
 opi_dual_usb_depth = 17.5;
67
-opi_dual_usb_height = 15.0;
67
+opi_dual_usb_height = 15.8;
68
 opi_dual_usb_off_y = opi_lan_off_y + opi_lan_width + 4.3;
68
 opi_dual_usb_off_y = opi_lan_off_y + opi_lan_width + 4.3;
69
 opi_dual_usb_off_x = -4.1;
69
 opi_dual_usb_off_x = -4.1;
70
 
70
 
108
 corner_helper_size = 20;
108
 corner_helper_size = 20;
109
 corner_helper_height = 0.2;
109
 corner_helper_height = 0.2;
110
 
110
 
111
+cutout_gap = 0.2;
112
+
111
 $fn = 20;
113
 $fn = 20;
112
 
114
 
113
 module orangepi_pc_plus() {
115
 module orangepi_pc_plus() {
205
         cube([outer_wall_size, opi_width + (2 * outer_wall_size), standoff_height + opi_pcb_height]);
207
         cube([outer_wall_size, opi_width + (2 * outer_wall_size), standoff_height + opi_pcb_height]);
206
         
208
         
207
         // sd card cutout
209
         // sd card cutout
208
-        translate([-1, outer_wall_size + opi_sd_off_y, standoff_height - opi_sd_height])
209
-            cube([outer_wall_size + 2, opi_sd_width, opi_sd_height + standoff_height]);
210
+        translate([-1, outer_wall_size + opi_sd_off_y - cutout_gap, standoff_height - opi_sd_height])
211
+            cube([outer_wall_size + 2, opi_sd_width + (2 * cutout_gap), opi_sd_height + standoff_height]);
210
     }
212
     }
211
     
213
     
212
     // front wall
214
     // front wall
288
         cube([opi_length, outer_wall_size, top_standoff_height]);
290
         cube([opi_length, outer_wall_size, top_standoff_height]);
289
         
291
         
290
         // power connector
292
         // power connector
291
-        translate([opi_power_off_x, -1, -1])
292
-            cube([opi_power_width, outer_wall_size + 2, opi_power_height + 1]);
293
+        translate([opi_power_off_x - cutout_gap, -1, -1])
294
+            cube([opi_power_width + (2 * cutout_gap), outer_wall_size + 2, opi_power_height + 1]);
293
         
295
         
294
         // hdmi connector
296
         // hdmi connector
295
-        translate([opi_hdmi_off_x, -1, -1])
296
-            cube([opi_hdmi_width, outer_wall_size + 2, opi_hdmi_height + 1]);
297
+        translate([opi_hdmi_off_x - cutout_gap, -1, -1])
298
+            cube([opi_hdmi_width + (2 * cutout_gap), outer_wall_size + 2, opi_hdmi_height + 1]);
297
         
299
         
298
         // audio connector
300
         // audio connector
299
-        translate([opi_audio_off_x, -1, -1])
300
-            cube([opi_audio_diameter, outer_wall_size + 2, opi_audio_diameter + 1]);
301
+        translate([opi_audio_off_x - cutout_gap, -1, -1])
302
+            cube([opi_audio_diameter + (2 * cutout_gap), outer_wall_size + 2, opi_audio_diameter + 1]);
301
     }
303
     }
302
     
304
     
303
     // back wall
305
     // back wall
305
     difference() {
307
     difference() {
306
         cube([opi_length, outer_wall_size, top_standoff_height]);
308
         cube([opi_length, outer_wall_size, top_standoff_height]);
307
         
309
         
308
-        translate([opi_length - opi_ir_off_x - opi_ir_width, -1, -1])
309
-            cube([opi_ir_width, outer_wall_size + 2, opi_ir_height + 1]);
310
+        translate([opi_length - opi_ir_off_x - opi_ir_width - cutout_gap, -1, -1])
311
+            cube([opi_ir_width + (2 * cutout_gap), outer_wall_size + 2, opi_ir_height + 1]);
310
     }
312
     }
311
     
313
     
312
     // left wall
314
     // left wall
315
         cube([outer_wall_size, opi_width + (2 * outer_wall_size), top_standoff_height]);
317
         cube([outer_wall_size, opi_width + (2 * outer_wall_size), top_standoff_height]);
316
         
318
         
317
         // reset button
319
         // reset button
318
-        translate([-1, outer_wall_size + opi_reset_off_y, -1])
319
-            cube([outer_wall_size + 2, opi_reset_diameter, opi_reset_diameter + opi_reset_off_z + 1]);
320
+        translate([-1, outer_wall_size + opi_reset_off_y - cutout_gap, -1])
321
+            cube([outer_wall_size + 2, opi_reset_diameter + (2 * cutout_gap), opi_reset_diameter + opi_reset_off_z + 1]);
320
         
322
         
321
         // camera connector
323
         // camera connector
322
-        translate([-1, outer_wall_size + opi_cam_off_y, -1])
323
-            cube([outer_wall_size + 2, opi_cam_width, opi_cam_height + 1]);
324
+        translate([-1, outer_wall_size + opi_cam_off_y - cutout_gap, -1])
325
+            cube([outer_wall_size + 2, opi_cam_width + (2 * cutout_gap), opi_cam_height + 1]);
324
         
326
         
325
         // micro usb connector
327
         // micro usb connector
326
-        translate([-1, outer_wall_size + opi_micro_usb_off_y, -1])
327
-            cube([outer_wall_size + 2, opi_micro_usb_width, opi_micro_usb_height + 1]);
328
+        translate([-1, outer_wall_size + opi_micro_usb_off_y - cutout_gap, -1])
329
+            cube([outer_wall_size + 2, opi_micro_usb_width + (2 * cutout_gap), opi_micro_usb_height + 1]);
328
     }
330
     }
329
     
331
     
330
     // right wall
332
     // right wall
333
         cube([outer_wall_size, opi_width + (2 * outer_wall_size), top_standoff_height]);
335
         cube([outer_wall_size, opi_width + (2 * outer_wall_size), top_standoff_height]);
334
         
336
         
335
         // single usb port
337
         // single usb port
336
-        translate([-1, outer_wall_size + opi_width - opi_single_usb_off_y - opi_single_usb_width, -1])
337
-            cube([outer_wall_size + 2, opi_single_usb_width, opi_single_usb_height + 1]);
338
+        translate([-1, outer_wall_size + opi_width - opi_single_usb_off_y - opi_single_usb_width - cutout_gap, -1])
339
+            cube([outer_wall_size + 2, opi_single_usb_width + (2 * cutout_gap), opi_single_usb_height + 1]);
338
         
340
         
339
         // ethernet port
341
         // ethernet port
340
-        translate([-1, outer_wall_size + opi_width - opi_lan_off_y - opi_lan_width, -1])
341
-            cube([outer_wall_size + 2, opi_lan_width, opi_lan_height + 1]);
342
+        translate([-1, outer_wall_size + opi_width - opi_lan_off_y - opi_lan_width - cutout_gap, -1])
343
+            cube([outer_wall_size + 2, opi_lan_width + (2 * cutout_gap), opi_lan_height + 1]);
342
         
344
         
343
         // dual usb ports
345
         // dual usb ports
344
-        translate([-1, outer_wall_size + opi_width - opi_dual_usb_off_y - opi_dual_usb_width, -1])
345
-            cube([outer_wall_size + 2, opi_dual_usb_width, opi_dual_usb_height + 1]);
346
+        translate([-1, outer_wall_size + opi_width - opi_dual_usb_off_y - opi_dual_usb_width - cutout_gap, -1])
347
+            cube([outer_wall_size + 2, opi_dual_usb_width + (2 * cutout_gap), opi_dual_usb_height + 1]);
346
     }
348
     }
347
 }
349
 }
348
 
350
 
355
 
357
 
356
 // ---------------------
358
 // ---------------------
357
 // For looking at it in the OpenSCAD editor:
359
 // For looking at it in the OpenSCAD editor:
358
-/*
360
+
359
 case_whole();
361
 case_whole();
360
 // place orangepi inside case, for visualization
362
 // place orangepi inside case, for visualization
361
 %translate([outer_wall_size, outer_wall_size, bottom_top_size + standoff_height])
363
 %translate([outer_wall_size, outer_wall_size, bottom_top_size + standoff_height])
362
     orangepi_pc_plus();
364
     orangepi_pc_plus();
363
-*/
365
+
364
 // ---------------------
366
 // ---------------------
365
 // For printing:
367
 // For printing:
366
 /*
368
 /*
367
 case_bottom();
369
 case_bottom();
368
-*/
370
+*//*
369
 translate([0, 2 * (opi_width + (2 * outer_wall_size)) + 25, bottom_top_size])
371
 translate([0, 2 * (opi_width + (2 * outer_wall_size)) + 25, bottom_top_size])
370
     rotate([180, 0, 0])
372
     rotate([180, 0, 0])
371
     case_top();
373
     case_top();
372
-
374
+*/
373
 // ---------------------
375
 // ---------------------

Loading…
Zrušit
Uložit