1,4 → 1,5 |
$fn = 100; |
use <./../../../../../Library/Graphics/MLAB_logo.scad> |
|
|
module LCD_frontPanel(){ |
7,11 → 8,11 |
DISPLAY_Z_SHIFT = 2; // mezera, která vznikne mezi "nohou" a spodní hranou PCB |
FOOT_THICK = 7; // síla spodní "nohy" (toho, v cem jsou srouby) |
BHEAD_HEIGHT = 2.5; // vyska hlavicky sroubu |
BHEAD_DIAMETER = 6; // vyska hlavicky sroubu |
BOLT_DIAMETER = 3.2; // vyska hlavicky sroubu |
BHEAD_DIAMETER = 6.6; // prumer hlavicky sroubu |
BOLT_DIAMETER = 3.3; // prumer sroubu |
NUT_HEIGHT = 2.1; // vyska matky |
NUT_DIAMETER = 6; // vyska matky |
CLEAR = 0.1; |
NUT_DIAMETER = 6.3; // prumer matky |
CLEAR = 0.175; |
|
BOX_HEIGHT = 45; |
BOX_WIDTH = 80; |
36,8 → 37,8 |
}*/ |
} |
union(){ |
translate([0, 4 + FOOT_X_SHIFT, +DISPLAY_Z_SHIFT]) cube([72,8,25.3], center=true); |
translate([-5, FOOT_X_SHIFT, 36/2-4+DISPLAY_Z_SHIFT]) cube([41,4,4]); |
translate([0-CLEAR, 4 + FOOT_X_SHIFT-CLEAR, +DISPLAY_Z_SHIFT-CLEAR]) cube([72+2*CLEAR,8+2*CLEAR,25.3+2*CLEAR], center=true); |
translate([-15, FOOT_X_SHIFT, 36/2-4.65+DISPLAY_Z_SHIFT]) cube([51,4.4,4]); |
for (x=[1:WIDTH]){ |
translate([-5.08 + (-WIDTH/2+x)*10.16, -0.8, (-36)/2-FOOT_THICK]) cylinder(12, BOLT_DIAMETER/2, BOLT_DIAMETER/2); |
translate([-5.08 + (-WIDTH/2+x)*10.16, -0.8, (-36)/2-BHEAD_HEIGHT]) cylinder(3+10, BHEAD_DIAMETER/2, BHEAD_DIAMETER/2); |
44,9 → 45,38 |
translate([-5.08 + (-WIDTH/2+x)*10.16, -0.8, (-36)/2-FOOT_THICK]) cylinder(NUT_HEIGHT, NUT_DIAMETER/2, NUT_DIAMETER/2, $fn=6); |
|
} |
//union (){ |
// translate ([0, DISPLAY_Z_SHIFT+6-1, (-36)/2]) |
// rotate ([90,0,180]) |
// scale(v = [0.4, 0.4, 0.2]) |
// MLAB_logo_long(); |
//} |
} |
} |
|
} |
|
module modifier(){ |
WIDTH = 7; // pocet der na zakl desku. Def je 7 |
FOOT_X_SHIFT = 0; // posun v ose X, tzn. vysunutí ven, nebo dovnitř. 0 je v rovine s kratsi hranou zakl. desky ASBASE1115 |
DISPLAY_Z_SHIFT = 2; // mezera, která vznikne mezi "nohou" a spodní hranou PCB |
FOOT_THICK = 7; // síla spodní "nohy" (toho, v cem jsou srouby) |
BHEAD_HEIGHT = 2.5; // vyska hlavicky sroubu |
BHEAD_DIAMETER = 6.6; // prumer hlavicky sroubu |
BOLT_DIAMETER = 3.3; // prumer sroubu |
NUT_HEIGHT = 2.1; // vyska matky |
NUT_DIAMETER = 6.3; // prumer matky |
CLEAR = 0.175; |
|
BOX_HEIGHT = 45; |
BOX_WIDTH = 80; |
BOX_THICKENESS = 1; |
|
LCD_frontPanel(); |
translate([-BOX_WIDTH/2, -FOOT_THICK, -18]) cube([BOX_WIDTH,FOOT_THICK,BOX_HEIGHT-FOOT_THICK]); |
|
|
} |
|
|
LCD_frontPanel(); |
%modifier(); |