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

fusePlugHolder.scad - github.com/haydnhuntley/kumu-3d.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: d5002600bd1fca4991767227a1a92cefda66d5ac (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
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
// Fuse/plug holder.
//
// This is my favorite lit switch, it includes the fuse and is the least
// expensive:
//
// http://www.robotdigg.com/product/744/AC-rocker-switch-power-inlet-socket-w/-fuse
//
//
// It also works with this lit switch from Amazon:
//
// http://www.amazon.com/uxcell%C2%AE-IEC320-Inlet-Switch-Socket/dp/B00N41D5Z4
//
// uxcell 2 Pcs IEC320 C14 Inlet Green Lamp Switch Power Socket AC 250V
//
//
// Or this one:
//
// http://www.amazon.com/gp/product/B00ME5YAPK/ref=oh_aui_detailpage_o03_s01
//
// URBEST Inlet Module Plug Fuse Switch Male Power Socket 10A 250V 3 Pin
// IEC320 C14
//
//
// Note: the above two switches do *not* include the fuse!
//
// Here are the fuses:
//
// http://www.amazon.com/PODOY-Qty-Fast-Blow-GMA10A-GMA10/dp/B004HLYUE0
//
// PODOY 5 Qty. GMA 10A Fast-Blow Fuse 10 Amp 250v GMA10A, GMA10


$fn=360/12;

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


// All measurements in mm.
xBody				   = 70;
yBody				   = lowerFrameHeight;
zBody				   =  3;
zTube				   = 30;
xOpening               = 47+2;
yOpening               = 27+1;
mountingHoleSeparation = 40;


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

			translate([0, 0, zTube/2])
			roundedBox([xOpening+3,
						yOpening+3,
						zBody+zTube], 4, true);
		}

		// Remove the center, where the fuse/plug holder slides in.
		translate([0, 0, zTube/2])
		roundedBox([xOpening,
					yOpening,
					zBody+zTube+smidge], 3, true);

		// Remove two holes to use for mounting the fuse/plug holder.
		makeTightHole(0,  mountingHoleSeparation/2);
		makeTightHole(0, -mountingHoleSeparation/2);

		// Remove four M5x8 holes for mounting
		m5x8Slot( xBody/2-extrusionWidth/2,  yBody/2 - extrusionWidth/2);
		m5x8Slot(-xBody/2+extrusionWidth/2,  yBody/2 - extrusionWidth/2);
		m5x8Slot( xBody/2-extrusionWidth/2, -yBody/2 + extrusionWidth/2);
		m5x8Slot(-xBody/2+extrusionWidth/2, -yBody/2 + extrusionWidth/2);
	}
}


module m5x8Slot(x, y)
{
	offset = 1.0;
	hull()
	{
		translate([x, y, 0])
		cylinder(r=m5LooseRadius, h=zBody+smidge, center=true);
		if (y < 0)
			translate([x, y+offset, 0])
			cylinder(r=m5LooseRadius, h=zBody+smidge, center=true);
		if (y > 0)
			translate([x, y-offset, 0])
			cylinder(r=m5LooseRadius, h=zBody+smidge, center=true);
	}
}


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


fusePlugHolder();