Welcome to mirror list, hosted at ThFree Co, Russian Federation.

powerSupplyHolders.scad - github.com/haydnhuntley/kumu-3d.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 2945241b960e35f236553686a7507478c312a0e1 (plain)
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
// These power supply holders work with 2020 extrusions and typical
// rectangular 300-360 watt power supplies.
//
// This work is licensed under a Creative Commons Attribution-ShareAlike 4.0
// International License.
// Visit:  http://creativecommons.org/licenses/by-sa/4.0/
//
// Haydn Huntley
// haydn.huntley@gmail.com

$fn = 360/12;

include <configuration.scad>;
include <roundedBox.scad>;

// All measurements in mm.
psHoleOffset = extrusionWidth/4;
xBody        = extrusionWidth;
zBody	 	 = 3.5;


module powerSupplyHolder(yBody)
{
	translate([0, 0, zBody/2])
	difference()
	{
		// Make the body.
		translate([0, yBody/2, 0])
		roundedBox([xBody, yBody, zBody], 5, true);

		// Remove a hole for mounting
		m5x8Hole(0, extrusionWidth/2);
	
		// Remove a slot for mounting.
		hull()
		{
			m3x6Hole(0, yBody-extrusionWidth/2);
			m3x6Hole(0, extrusionWidth+psHoleOffset);
		}
	}
}


module m5x8Hole(x, y)
{
	translate([x, y, 0])
	cylinder(r=m5LooseRadius, h=zBody+smidge, center=true);
}


module m3x6Hole(x, y)
{
	translate([x, y, 0])
	cylinder(r=m3LooseRadius, h=zBody+smidge, center=true);
}


// The short ones for the front.
translate([-2.2*extrusionWidth, 1.5 * extrusionWidth, 0])
powerSupplyHolder(2.5 * extrusionWidth);

translate([-1.1 * extrusionWidth, 0, 0])
powerSupplyHolder(2.5 * extrusionWidth);

// The long one for the back.
powerSupplyHolder(110);

translate([-1.1 * extrusionWidth, 3 * extrusionWidth, 0])
powerSupplyHolder(2.5 * extrusionWidth);