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

zProbeVolcano.scad - github.com/haydnhuntley/kumu-3d.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 0b0db53cc21e4e88f5fe522011a9f83e45c05051 (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
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
// Z-probe for the Kumu-3D effector with an E3D Volcano-style hotend.
//
// 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/4;

include <configuration.scad>

// All measurements in mm.
attachmentRadius = 19;
height           = 60;


module zProbe()
{
	difference()
	{
		union()
		{
			// Make a circular section.
			difference()
			{
				// Make the outer cylinder
				cylinder(r=attachmentRadius+1.5, h=height);

				// Remove the inside of the cylinder.
				translate([0, 0, -smidge/2])
				cylinder(r=attachmentRadius-1.5, h=height+smidge);

				// Remove the right hand quarter.
				translate([0, 0, -smidge/2])
				rotate([0, 0, -30])
				cube([50, 50, height+smidge]);

				// Remove the left hand quarter.
				translate([0, 0, -smidge/2])
				rotate([0, 0, 120])
				cube([50, 50, height+smidge]);

				// Remove the bottom half.
				translate([-50/2, -50, -smidge/2])
				cube([50, 50, height+smidge]);
			}

			// Add the rounded end caps onto the circular section.
			for (a = [-1, 1])
				rotate([0, 0, a*30])
				translate([0, attachmentRadius, 0])
				{
					cylinder(r=3, h=height);
					
					translate([0, 0, height-20])
					cylinder(r1=3, r2=5, h=20);
				}
		}

		// Make two slightly tapered holes for M3x20 attachment screws.
		for (a = [-1, 1])
			rotate([0, 0, a*30])
			translate([0, attachmentRadius, height-20+smidge/2])
			cylinder(r1=m3Radius-smidge,
					 r2=m3LooseRadius-2*smidge,
					 h=20+smidge);

        if (0)  // Turn off the nut traps.
		// Make two nut traps.
		for (a = [-1, 1])
			rotate([0, 0, a*30])
			translate([0, attachmentRadius, height-3])
			union()
			{
				rotate([0, 0, a*-30])
				translate([0, -5, 0])
				cube([sin(60)*m3LooseNutRadius*2,
				      2*5,
				      m3NutHeight+3*smidge], true);

				cylinder(r=m3LooseNutRadius, 
						 h=m3NutHeight+3*smidge,
						 center=true, $fn=6);

				// Vaulted roof above nut.
				translate([0, 0, -m3NutHeight-smidge])
				cylinder(r1=m3LooseRadius, r2=m3LooseNutRadius,
						 h=m3NutHeight,
						 center=true, $fn=6);
			}

		// Remove an oval in the center.
		translate([0, 10, 0.55*height])
		rotate([-90, 0, 0])
		scale([1, 3.6, 1])
		cylinder(r=6.5, h=20);
		
		// Make space for attaching the switch at the bottom.
		switch();
	}
}


module switch()
{
	xSwitch = 20.0+2;
	ySwitch =  6.5;
	zSwitch = 10.7;
	zOffset = -3;

	// The switch body.
	translate([0, attachmentRadius, 0])
	translate([0, ySwitch/2, zSwitch/2+zOffset])
	cube([xSwitch, ySwitch, zSwitch], center=true);

	// The two M2.5 mounting holes.
	for (x = [-1, 1])
		translate([x*(7.2+2.5)/2, attachmentRadius, zOffset+8])
		rotate([90, 0, 0])
		cylinder(r=2.5/2, h=10, center=true);
}


//%switch();

translate([0, 0, height/2])
rotate([180, 0, 0])
translate([0, -attachmentRadius, -height/2])
zProbe();