1
0
mirror of https://github.com/nophead/NopSCADlib.git synced 2025-08-01 21:20:11 +02:00

Improved S_300_12 PSU.

This commit is contained in:
Martin Budden
2020-02-28 03:05:45 +00:00
parent 0c17620adb
commit 0e8e387d35
2 changed files with 87 additions and 22 deletions

View File

@@ -259,13 +259,15 @@ module psu(type) { //! Draw a power supply
square(16, center = true); square(16, center = true);
} }
// earth strap
tab_w = w / 2 + cutout[2].x; tab_w = w / 2 + cutout[2].x;
// if the cutout is too wide, then don't draw earth strap, pillar and screw
if (tab_w - bt > 0) {
// earth strap
color("silver") color("silver")
translate([-l / 2, w / 2 - tab_w, z]) translate([-l / 2, w / 2 - tab_w, z])
cube([left, tab_w - bt, lt]); cube([left, tab_w - bt, lt]);
// Earth pilar and screw // Earth pillar and screw
earth_inset = 4.5; earth_inset = 4.5;
earth_d = 5; earth_d = 5;
translate([-l / 2 + earth_inset, w / 2 - tab_w / 2]) { translate([-l / 2 + earth_inset, w / 2 - tab_w / 2]) {
@@ -277,6 +279,7 @@ module psu(type) { //! Draw a power supply
spring_washer(M3_washer) spring_washer(M3_washer)
screw(M3_pan_screw, 8); screw(M3_pan_screw, 8);
} }
}
// terminal block // terminal block
tb = terminals[2]; tb = terminals[2];

View File

@@ -83,13 +83,74 @@ KY240W =
// This PSU, and ones very like it, are sold by LulzBot, and various sellers on eBay. // This PSU, and ones very like it, are sold by LulzBot, and various sellers on eBay.
// The screw layout specified here uses the inner set of screw-mounts on the PSU, which are M4. // The screw layout specified here uses the inner set of screw-mounts on the PSU, which are M4.
// The outer set don't appear to be M3, even though the datasheet claims they are. // The outer set don't appear to be M3, even though the datasheet claims they are.
S_300_12 = S_300_12 = [
["S_300_12", "S-300-12", 215, 115, 50, M4_cap_screw, M4_clearance_radius, false, 0, 0, [], "S_300_12",
[ [[[ 215 / 2 - 32.5, 115 / 2 - 82.5], "S-300-12",// part name
[ 215 / 2 - 32.5, 115 / 2 - 32.5], 215, 115, 50,// length, width, height
[ 215 / 2 - 182.5, 115 / 2 - 82.5], M4_cap_screw, M4_clearance_radius,// screw type and clearance
[ 215 / 2 - 182.5, 115 / 2 - 32.5]]] false,// true if ATX style
13,// terminals bay depth
0,// heatsink bay depth
[// terminals
9,// count
18,// y offset
st_terminals
], ],
// faces
[
[// f_bottom, bottom
[// holes
[215/2 - 32.5, 115/2 - 82.5], [215/2 - 32.5, 115/2 - 32.5], [215/2 - 182.5, 115/2 - 82.5], [215/2 - 182.5, 115/2 - 32.5]
],
1.5,// thickness
[],// cutouts
false,// grill
[],[],[]// fan, iec, rocker
],
[// f_top, top
[],// holes
0.5,// thickness
[],// coutouts
false,// grill
[215/2 - 47.5, 115/2 - 37.5, fan50x15]
],
[// f_left, front (terminals) after rotation
[],// holes
0.5,// thickness
[// cutouts
[
[-56, -25], [-56, -17],
[-60, -17], [-60, 0],
[115/2, 0], [115/2, -25]
]
],
false,// grill
],
[// f_right, back after rotation
[], // holes
1.5,// thickness
[],// cutouts
false,// grill
],
[// f_front, right after rotation
[// holes, offset from center
[215/2 - 32.5,-15], [215/2 - 182.5,-15],
[215/2 - 32.5, 10], [215/2 - 182.5, 10]
],
1.5,// thickness
[],// cutouts
false,// grill
],
[// f_back, left after rotation
[// holes, offset from center
[215/2 - 32.5, 15], [215/2 - 182.5, 15]
],
1.5,// thickness
[],// cutouts
false,// grill
],
],
// accessories to add to BOM
[] []
]; ];
@@ -102,3 +163,4 @@ External =
psus = [PD_150_12, S_250_48, ATX500, KY240W, S_300_12]; psus = [PD_150_12, S_250_48, ATX500, KY240W, S_300_12];
use <psu.scad> use <psu.scad>