mirror of
https://github.com/pgrondek/SixInchRack.git
synced 2024-11-29 15:03:03 +00:00
Compare commits
No commits in common. "e0e8e06bfb03c69dea72d1e5fcaebea1ca58981f" and "c2567606a805695a19086096e1a49f70bccea613" have entirely different histories.
e0e8e06bfb
...
c2567606a8
@ -1,89 +0,0 @@
|
|||||||
include<../sixinch_library.scad>
|
|
||||||
|
|
||||||
//
|
|
||||||
|
|
||||||
///////////////////////////////
|
|
||||||
// Raspberry Pi 3 Model B //
|
|
||||||
///////////////////////////////
|
|
||||||
|
|
||||||
print_frontplate_sml = false;
|
|
||||||
print_handle_sml = false;
|
|
||||||
print_cabinet_sml = true;
|
|
||||||
print_lid = false;
|
|
||||||
print_rear = false;
|
|
||||||
|
|
||||||
if(print_frontplate_sml){ // Frontplate //
|
|
||||||
square_hole = [];
|
|
||||||
round_hole = [];
|
|
||||||
round_peg = [];
|
|
||||||
screw_side_front = [];
|
|
||||||
screw_top = [36];
|
|
||||||
screw_bottom_front = [36];
|
|
||||||
units = 3;
|
|
||||||
frontplate(units,square_hole,round_hole,round_peg,screw_side_front,screw_top,screw_bottom_front);
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
if(print_handle_sml){ // Handle //
|
|
||||||
units = 3;
|
|
||||||
lay_flat_for_print = false;
|
|
||||||
handle(units,lay_flat_for_print);
|
|
||||||
}
|
|
||||||
|
|
||||||
if(print_cabinet_sml){ // Cabinet //
|
|
||||||
w=88;
|
|
||||||
h=70;
|
|
||||||
screw_bottom_front = [36];
|
|
||||||
screw_side_front = [];
|
|
||||||
round_peg = [[30,46.3,15,0,10], // Pillar in front of PowerPort 6
|
|
||||||
[81,46.3,15,0,10], // Pillar in front of PowerPort 6
|
|
||||||
[15.2,70,10,0,10], // Pillar to the near right of PowerPort 6
|
|
||||||
[95.8,70,10,0,10], // Pillar to the near left of PowerPort 6
|
|
||||||
[15.2,110,10,0,10], // Pillar to the far right of PowerPort 6
|
|
||||||
[95.8,110,10,0,10], // Pillar to the far left of PowerPort 6
|
|
||||||
[57,120,50,0,4], // Pillar under the PowerPort 6
|
|
||||||
[57,80,50,0,4], // Pillar under the PowerPort 6
|
|
||||||
];
|
|
||||||
depth = 155;
|
|
||||||
units = 2;
|
|
||||||
cabinet(depth,units,screw_bottom_front,round_peg,screw_side_front);
|
|
||||||
}
|
|
||||||
|
|
||||||
if(print_lid){ // Lid //
|
|
||||||
depth = 155;
|
|
||||||
units = 3;
|
|
||||||
screw_front = [36];//mm
|
|
||||||
screw_back = [36];//mm
|
|
||||||
lid(depth,units,screw_front,screw_back);
|
|
||||||
}
|
|
||||||
|
|
||||||
if(print_rear){ // Back plate //
|
|
||||||
usb_padding = 9;
|
|
||||||
square_hole = [[29 ,usb_padding, 6, 14], [29+(1*10) ,usb_padding, 6, 14], [29+(2*10) ,usb_padding, 6, 14], [29+(3*10) ,usb_padding, 6, 14], [29+(4*10) ,usb_padding, 6, 14], [29+(5*10) ,usb_padding, 6, 14]];
|
|
||||||
round_hole = [[6,9,6],[6,5,6],[6,1,6]];
|
|
||||||
screw_top = [36];//mm
|
|
||||||
screw_bottom = [36];//mm
|
|
||||||
screw_side = [];
|
|
||||||
depth = 155;
|
|
||||||
units = 3;
|
|
||||||
back_plate(units,depth,screw_top,screw_bottom,screw_side,square_hole,round_hole);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
@ -1,49 +0,0 @@
|
|||||||
include<../sixinch_library.scad>
|
|
||||||
include<../../Libs/Mesh-lib.scad>
|
|
||||||
|
|
||||||
|
|
||||||
///////////////////////////////
|
|
||||||
// EdgeRouter X //
|
|
||||||
///////////////////////////////
|
|
||||||
|
|
||||||
print_frontplate_sml = true;
|
|
||||||
|
|
||||||
if(print_frontplate_sml){ // Frontplate //
|
|
||||||
square_hole = [];
|
|
||||||
round_hole = [];
|
|
||||||
round_peg = [];
|
|
||||||
screw_side_front = [];
|
|
||||||
screw_top = [36];
|
|
||||||
screw_bottom_front = [36];
|
|
||||||
units = 3;
|
|
||||||
difference() {
|
|
||||||
union() {
|
|
||||||
frontplate(units,square_hole,round_hole,round_peg,screw_side_front,screw_top,screw_bottom_front);
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
translate([25,1.5,0]) {
|
|
||||||
intersection(){
|
|
||||||
translate([-1.5,-1.5,0]){
|
|
||||||
difference() {
|
|
||||||
mesh(17, 6, 3, 3);
|
|
||||||
translate([12.5, 6, 0]){cylinder(50,4.5,4.5);}
|
|
||||||
translate([12.5, 36, 0]){cylinder(50,4.5,4.5);}
|
|
||||||
translate([95.5, 6, 0]){cylinder(50,4.5,4.5);}
|
|
||||||
translate([95.5, 36, 0]){cylinder(50,4.5,4.5);}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
cube([105,38,10]);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
translate([0,0,3]) cube([155,130,10]);
|
|
||||||
}
|
|
||||||
|
|
||||||
rotate([180,0,0])
|
|
||||||
translate([58.5, -28, -3])
|
|
||||||
linear_extrude(5)
|
|
||||||
text("router");
|
|
||||||
}
|
|
@ -1,49 +0,0 @@
|
|||||||
include<../sixinch_library.scad>
|
|
||||||
include<../../Libs/Mesh-lib.scad>
|
|
||||||
|
|
||||||
|
|
||||||
///////////////////////////////
|
|
||||||
// Raspberry Pi 3 Model B //
|
|
||||||
///////////////////////////////
|
|
||||||
|
|
||||||
print_frontplate_sml = true;
|
|
||||||
|
|
||||||
if(print_frontplate_sml){ // Frontplate //
|
|
||||||
square_hole = [];
|
|
||||||
round_hole = [];
|
|
||||||
round_peg = [];
|
|
||||||
screw_side_front = [];
|
|
||||||
screw_top = [36];
|
|
||||||
screw_bottom_front = [36];
|
|
||||||
units = 3;
|
|
||||||
difference() {
|
|
||||||
union() {
|
|
||||||
frontplate(units,square_hole,round_hole,round_peg,screw_side_front,screw_top,screw_bottom_front);
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
translate([25,1.5,0]) {
|
|
||||||
intersection(){
|
|
||||||
translate([-1.5,-1.5,0]){
|
|
||||||
difference() {
|
|
||||||
mesh(17, 6, 3, 3);
|
|
||||||
translate([12.5, 6, 0]){cylinder(50,4.5,4.5);}
|
|
||||||
translate([12.5, 36, 0]){cylinder(50,4.5,4.5);}
|
|
||||||
translate([95.5, 6, 0]){cylinder(50,4.5,4.5);}
|
|
||||||
translate([95.5, 36, 0]){cylinder(50,4.5,4.5);}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
cube([105,38,10]);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
translate([0,0,3]) cube([155,130,10]);
|
|
||||||
}
|
|
||||||
|
|
||||||
rotate([180,0,0])
|
|
||||||
translate([43.5, -25, -3])
|
|
||||||
linear_extrude(5)
|
|
||||||
text("Philips Hue");
|
|
||||||
}
|
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -1,33 +0,0 @@
|
|||||||
include<../sixinch_library.scad>
|
|
||||||
|
|
||||||
|
|
||||||
///////////////////////////////
|
|
||||||
// Raspberry Pi 3 Model B //
|
|
||||||
///////////////////////////////
|
|
||||||
print_cabinet_sml = true;
|
|
||||||
|
|
||||||
if(print_cabinet_sml){ // Cabinet //
|
|
||||||
w=88;
|
|
||||||
h=70;
|
|
||||||
|
|
||||||
pole=2.52;
|
|
||||||
height=8;
|
|
||||||
|
|
||||||
screw_bottom_front = [36];
|
|
||||||
screw_side_front = [];
|
|
||||||
round_peg = [
|
|
||||||
[w,h,6,2.8,4],
|
|
||||||
[w-49,h,6,2.8,4],
|
|
||||||
[w-49,h-58,6,2.8,4],
|
|
||||||
[w,h-58,6,2.8,4],
|
|
||||||
|
|
||||||
[w,h, pole,0,height],
|
|
||||||
[w-49,h, pole,0,height],
|
|
||||||
[w-49,h-58,pole,0,height],
|
|
||||||
[w,h-58, pole,0,height]];
|
|
||||||
depth = 98;
|
|
||||||
units = 2;
|
|
||||||
shift = 0;
|
|
||||||
|
|
||||||
cabinet(depth,units,screw_bottom_front,round_peg,screw_side_front);
|
|
||||||
}
|
|
File diff suppressed because it is too large
Load Diff
Binary file not shown.
Before Width: | Height: | Size: 1.3 MiB |
@ -1,71 +0,0 @@
|
|||||||
include<../sixinch_library.scad>
|
|
||||||
include<../../Libs/Mesh-lib.scad>
|
|
||||||
|
|
||||||
|
|
||||||
///////////////////////////////
|
|
||||||
// SmartThings frontplate //
|
|
||||||
///////////////////////////////
|
|
||||||
|
|
||||||
print_frontplate_sml = 1;
|
|
||||||
|
|
||||||
if(print_frontplate_sml){ // Frontplate //
|
|
||||||
square_hole = [];
|
|
||||||
round_hole = [];
|
|
||||||
round_peg = [];
|
|
||||||
screw_side_front = [];
|
|
||||||
screw_top = [36];
|
|
||||||
screw_bottom_front = [36];
|
|
||||||
units = 3;
|
|
||||||
difference() {
|
|
||||||
union() {
|
|
||||||
frontplate(units,square_hole,round_hole,round_peg,screw_side_front,screw_top,screw_bottom_front);
|
|
||||||
}
|
|
||||||
|
|
||||||
translate([25,1.5,0]) {
|
|
||||||
intersection(){
|
|
||||||
translate([-1.5,-1.5,0]){
|
|
||||||
difference() {
|
|
||||||
mesh(17, 6, 3, 3);
|
|
||||||
translate([12.5, 6, 0]){cylinder(50,4.5,4.5);}
|
|
||||||
translate([12.5, 36, 0]){cylinder(50,4.5,4.5);}
|
|
||||||
translate([95.5, 6, 0]){cylinder(50,4.5,4.5);}
|
|
||||||
translate([95.5, 36, 0]){cylinder(50,4.5,4.5);}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
cube([105,38,10]);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
translate([0,0,3]) cube([155,130,10]);
|
|
||||||
}
|
|
||||||
|
|
||||||
rotate([180,0,0])
|
|
||||||
translate([50.5, -25, -3])
|
|
||||||
linear_extrude(5)
|
|
||||||
text("SmartThings");
|
|
||||||
translate([25,33,3])
|
|
||||||
rotate([180,0,0])
|
|
||||||
scale([0.04, 0.04, 0.08])
|
|
||||||
logo();
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
module logo(){
|
|
||||||
difference() {
|
|
||||||
surface(file = "Logo.png");
|
|
||||||
translate([0,0,-5])
|
|
||||||
cube([600,600,5]);
|
|
||||||
translate([0,0,80])
|
|
||||||
cube([600,600,50]);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
//cube([600,600,0.1]);
|
|
||||||
//difference(){
|
|
||||||
//
|
|
||||||
//surface(file = "Logo.png", center = false);
|
|
||||||
|
|
||||||
//}
|
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -1,115 +0,0 @@
|
|||||||
include<../sixinch_library.scad>
|
|
||||||
|
|
||||||
|
|
||||||
///////////////////////////////
|
|
||||||
// SmartThing Hub v2 //
|
|
||||||
///////////////////////////////
|
|
||||||
|
|
||||||
print_frontplate_sml = false;
|
|
||||||
print_handle_sml = false;
|
|
||||||
print_cabinet_sml = 0;
|
|
||||||
print_lid = 0;
|
|
||||||
print_rear = 1;
|
|
||||||
model = 0;
|
|
||||||
|
|
||||||
units = 3;
|
|
||||||
depth = 140;
|
|
||||||
|
|
||||||
module model() {
|
|
||||||
rotate([-90,0,0]){
|
|
||||||
translate([22, -135, 4])
|
|
||||||
difference(){
|
|
||||||
union(){
|
|
||||||
color([1,1,1]) {
|
|
||||||
fillet = 20;
|
|
||||||
linear_extrude(height = 34)
|
|
||||||
translate([fillet,fillet,0]){
|
|
||||||
offset(r=fillet) {
|
|
||||||
square([110 - 2* fillet, 126 - 2*fillet]);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
color([0.5, 0.5, 0.5])
|
|
||||||
union() {
|
|
||||||
translate([67, -1, 10])
|
|
||||||
cube([15.5, 16, 13]);
|
|
||||||
|
|
||||||
translate([25,-1,15])
|
|
||||||
rotate([270,0,0])
|
|
||||||
cylinder(15.5, 5, 5);
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
if(print_frontplate_sml){ // Frontplate //
|
|
||||||
square_hole = [];
|
|
||||||
round_hole = [];
|
|
||||||
round_peg = [];
|
|
||||||
screw_side_front = [];
|
|
||||||
screw_top = [36];
|
|
||||||
screw_bottom_front = [36];
|
|
||||||
frontplate(units,square_hole,round_hole,round_peg,screw_side_front,screw_top,screw_bottom_front);
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
if(print_handle_sml){ // Handle //
|
|
||||||
lay_flat_for_print = false;
|
|
||||||
handle(units,lay_flat_for_print);
|
|
||||||
}
|
|
||||||
|
|
||||||
if(print_cabinet_sml){ // Cabinet //
|
|
||||||
w=88;
|
|
||||||
h=70;
|
|
||||||
screw_bottom_front = [36];
|
|
||||||
screw_side_front = [];
|
|
||||||
round_peg = [
|
|
||||||
[25, 8, 15, 0, 15], // Pillar in front
|
|
||||||
[85, 8, 15, 0, 15], // Pillar in front
|
|
||||||
|
|
||||||
[5, 80, 10, 0, 15], // Pillar to the near right
|
|
||||||
[5, 120, 10, 0, 15], // Pillar to the far right
|
|
||||||
|
|
||||||
[105, 80, 10, 0, 15], // Pillar to the near left
|
|
||||||
[105, 120, 10, 0, 15], // Pillar to the far left
|
|
||||||
|
|
||||||
[55, 70, 45, 0, 8], // Pillar under the switch
|
|
||||||
|
|
||||||
];
|
|
||||||
difference() {
|
|
||||||
cabinet(depth,units,screw_bottom_front,round_peg,screw_side_front, true);
|
|
||||||
model();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if(print_lid){ // Lid //
|
|
||||||
screw_front = [36];//mm
|
|
||||||
screw_back = [36];//mm
|
|
||||||
remove = true;
|
|
||||||
difference () {
|
|
||||||
lid(depth, units, screw_front, screw_back, true);
|
|
||||||
model();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if(print_rear){ // Back plate //
|
|
||||||
square_hole = [
|
|
||||||
[71.5, 13, 15.5, 13],
|
|
||||||
];
|
|
||||||
round_hole = [
|
|
||||||
[25.5, 19, 10, 13]
|
|
||||||
];
|
|
||||||
screw_top = [36];//mm
|
|
||||||
screw_bottom = [36];//mm
|
|
||||||
screw_side = [];
|
|
||||||
back_plate(units, depth, screw_top, screw_bottom, screw_side, square_hole,round_hole);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
// EdgeRouter X model
|
|
||||||
if(model) {
|
|
||||||
model();
|
|
||||||
}
|
|
@ -155,9 +155,9 @@ module nuttrap(){
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
module cabinet (dp,u,screw_bottom_front,round_peg,screw_side_front, remove_middle=false){
|
module cabinet (dp,u,screw_bottom_front,round_peg,screw_side_front){
|
||||||
difference(){
|
difference(){
|
||||||
box(dp,u,screw_bottom_front,round_peg,screw_side_front, remove_middle);
|
box(dp,u,screw_bottom_front,round_peg,screw_side_front);
|
||||||
|
|
||||||
translate([20,unit/2+3,sixinch-40]){ cylinder(d=gauge_box,h=41);}
|
translate([20,unit/2+3,sixinch-40]){ cylinder(d=gauge_box,h=41);}
|
||||||
translate([20,unit/2+0,sixinch-40]){ cylinder(d=gauge_box,h=41);}
|
translate([20,unit/2+0,sixinch-40]){ cylinder(d=gauge_box,h=41);}
|
||||||
@ -176,7 +176,7 @@ module cabinet (dp,u,screw_bottom_front,round_peg,screw_side_front, remove_middl
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
module box(dp,u,screw_bottom_front,round_peg,screw_side_front, remove_middle){
|
module box(dp,u,screw_bottom_front,round_peg,screw_side_front){
|
||||||
|
|
||||||
/* RaspberryPi3ModelBHifiBerry */
|
/* RaspberryPi3ModelBHifiBerry */
|
||||||
/* difference(){ */
|
/* difference(){ */
|
||||||
@ -218,7 +218,7 @@ module box(dp,u,screw_bottom_front,round_peg,screw_side_front, remove_middle){
|
|||||||
translate([20+gauge_box,unit*u-gauge_box,gauge+dp-10-10]){rotate([0,0,-90]){screwtrap();}}
|
translate([20+gauge_box,unit*u-gauge_box,gauge+dp-10-10]){rotate([0,0,-90]){screwtrap();}}
|
||||||
translate([sixinch-20-gauge_box,unit*u-gauge_box,gauge+10+10]){rotate([180,0,-90]){screwtrap();}}
|
translate([sixinch-20-gauge_box,unit*u-gauge_box,gauge+10+10]){rotate([180,0,-90]){screwtrap();}}
|
||||||
translate([sixinch-20-gauge_box,unit*u-gauge_box,gauge+dp-10-10+10]){rotate([180,0,-90]){screwtrap();}}
|
translate([sixinch-20-gauge_box,unit*u-gauge_box,gauge+dp-10-10+10]){rotate([180,0,-90]){screwtrap();}}
|
||||||
if(dp>90 && !remove_middle){
|
if(dp>90){
|
||||||
translate([sixinch-20-gauge_box,unit*u-gauge_box,gauge+dp/2-5+10]){rotate([180,0,-90]){screwtrap();}}
|
translate([sixinch-20-gauge_box,unit*u-gauge_box,gauge+dp/2-5+10]){rotate([180,0,-90]){screwtrap();}}
|
||||||
translate([20+gauge_box,unit*u-gauge_box,gauge+dp/2-5]){rotate([0,0,-90]){screwtrap();}}
|
translate([20+gauge_box,unit*u-gauge_box,gauge+dp/2-5]){rotate([0,0,-90]){screwtrap();}}
|
||||||
}
|
}
|
||||||
@ -278,7 +278,7 @@ module box(dp,u,screw_bottom_front,round_peg,screw_side_front, remove_middle){
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
module lid(dp,u,screw_front,screw_back, remove_middle=false){
|
module lid(dp,u,screw_front,screw_back){
|
||||||
|
|
||||||
difference(){
|
difference(){
|
||||||
union(){
|
union(){
|
||||||
@ -313,8 +313,8 @@ module lid(dp,u,screw_front,screw_back, remove_middle=false){
|
|||||||
translate([sixinch-20-gauge_box-4,unit*u+0.01 ,gauge+10+10-5]){rotate([90,0,0]){screw();}}
|
translate([sixinch-20-gauge_box-4,unit*u+0.01 ,gauge+10+10-5]){rotate([90,0,0]){screw();}}
|
||||||
translate([sixinch-20-gauge_box-4,unit*u +0.01 ,gauge+dp-10-10+10-5]){rotate([90,0,0]){screw();}}
|
translate([sixinch-20-gauge_box-4,unit*u +0.01 ,gauge+dp-10-10+10-5]){rotate([90,0,0]){screw();}}
|
||||||
if(dp>90){
|
if(dp>90){
|
||||||
if(!remove_middle){
|
|
||||||
translate([sixinch-20-gauge_box-4,unit*u+0.01 ,gauge+dp/2-5+10-5]){rotate([90,0,0]){screw();}}
|
translate([sixinch-20-gauge_box-4,unit*u+0.01 ,gauge+dp/2-5+10-5]){rotate([90,0,0]){screw();}}
|
||||||
|
if(!remove){
|
||||||
translate([20+gauge_box+4,unit*u+0.01 ,gauge+dp/2-5+5]){rotate([90,0,0]){screw();}}
|
translate([20+gauge_box+4,unit*u+0.01 ,gauge+dp/2-5+5]){rotate([90,0,0]){screw();}}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user