Please visit http://OpenSCAD.DIY3DTech.com for more information on this and many other projects! As in this episode we will be looking at a Thingiverse Customizer we designed print power supply covers!
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 |
/* Open SCAD Name.: General_PSU_Cover_v2.scad * Copyright (c)..: 2016 www.DIY3DTech.com * * Creation Date..: * Description....: PSU end covers * * Rev 1: Base design: drcharlesbell@gmail.com * Rev 2: Modifcations by http://www.DIY3DTech.com * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. */ // Parts: // Inlet Male Power Socket with Fuse Switch 10A 250V 3 Pin IEC320 C14 // http://amzn.to/2aMR5ve // // 10pcs Terminal Binding Post Power Amplifier Dual 2-way Banana Plug Jack // http://amzn.to/2biVSaq /*------------------Customizer View-------------------*/ // preview[view:north, tilt:top] /*---------------------Parameters---------------------*/ // height of the PSU (add for plastic expansion) height = 50.9; // width of the PSU (add for plastic expansion) width = 111; // depth for power-side cover (leave room for switch) power_side_depth = 80; //[1:1:100] // depth for blank-side cover blank_side_depth = 27.2; //[1:1:100] // length of power block PWR_Block_len = 47.7; // height of power block PWR_Block_height = 27.6; // 0 = Round Opening 1 = Single Banna Jack 2 = Double Banna Jack DC_Type = 2; //[0:Single Hole, 1:One Banna Jack Pair, 2:Two Banna Jack Pair] // Outlet hole for DC power cord DC_Type = 0 DC_power_diameter = 8.0; //[1:1:10] /*-----------------------Execute----------------------*/ translate ([0,(height/2)+9,0]) power_side(); translate ([0,-(height/2),0]) blank_side(); /*-----------------------Modules----------------------*/ module power_side() { difference() { //first order differance to add power block support union() {//start first union //create main unit difference() { union() {//start union second union cube([width+4,height+4,power_side_depth]); //create feet translate([5,(height-1)+5,0]) rotate([0,0,180]) foot(); translate([width-1,(height-1)+5,0]) rotate([0,0,180]) foot(); } //end second union //start subtraction of difference translate([2,2,2]) cube([width,height,power_side_depth]); // start if tree if(DC_Type==0) translate([((((width/2)/2)-(19/2)+11.5))+(width/2),(height/2),-1]) rotate([0,0,0]) cylinder(6,DC_power_diameter/2,DC_power_diameter/2); else if(DC_Type==1) translate([((((width/2)/2)-(19/2)+11.5))+(width/2),(height/2),-1]) rotate([0,0,0]) dual_banna_jack(); else if(DC_Type==2) {translate([((((width/2)/2)-(19/2)+11.5))+(width/2),((height/4)+(11.5/2)),-1]) rotate([0,0,0]) dual_banna_jack(); translate([((((width/2)/2)-(19/2)+11.5))+(width/2),(height/2)+(height/4),-1]) rotate([0,0,0]) dual_banna_jack();} // end if tree } //end second difference //create inter-support for power block to keep from moving translate([(30-((PWR_Block_len+6)/2)),((PWR_Block_height-6)/2)-4,0]) cube([PWR_Block_len+6,PWR_Block_height+6,17]); } //end first union // power block cutout from support as well as primary box translate([(30-(PWR_Block_len/2)),(PWR_Block_height/2)-4,-1]) cube([PWR_Block_len,PWR_Block_height,22]); } //end first difference }//end module power_side module blank_side() { difference() { union() {//start union cube([width+4,height+4,blank_side_depth]); //create feet translate([5,0,0]) rotate([0,0,0]) foot(); translate([width-1,0,0]) rotate([0,0,0]) foot(); } //end union //start subtraction of difference //create center opening translate([2,2,2]) cube([width,height,blank_side_depth]); //remove extra plastic from cover by making a hole 80% of the opening› translate([(((width+4)/2)-((width*0.8)/2)),((height+4)/2)-((height*0.8)/2),-1]) cube([(width*0.8),(height*0.8),blank_side_depth]); }//end difference }//end blank_side module module foot() { //create tabed foot difference() { union() {//start union translate([0,0,0]) rotate([0,0,0]) cylinder(5,10/2,10/2,$fn=60); } //end union //start subtraction of difference translate([-5,0,-2.5]) rotate([0,0,0]) cube([10,10,10]); } //end difference }//end foot module dual_banna_jack() { //create tabed foot difference() { union() {//start union translate([-9.5,0,0]) rotate([0,0,0]) cylinder(10,11.5/2,11.5/2,$fn=60); translate([9.5,0,0]) rotate([0,0,0]) cylinder(10,11.5/2,11.5/2,$fn=60); } //end union //start any subtraction of difference below if needed }//end difference }//end foot /*----------------------End Code----------------------*/ |
If your looking for looking 3D Printer, Laser Cutter and CNC Swag (T-Shirts, Hats, Mugs, etc), please support the channel by visiting our online shop at: http://swag.DIY3DTech.com
Also subscribe to our parent YouTube Channel DIY3DTech.com YouTube Channel for 3D Printing, Laser Manufacturing and CNC Machining: http://YouTube.DIY3DTech.com
More Ideas!
OpenSCAD – Designing a Compression Cover!
OpenSCAD – Designing a Pressure Fit Endcap!
Open SCAD – Complex Flange Designer!