forked from fieldOfView/Cura-SimpleShapes
-
-
Notifications
You must be signed in to change notification settings - Fork 71
/
Copy pathxy_calibration.scad
66 lines (55 loc) · 1.24 KB
/
xy_calibration.scad
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
//------------------------------------------------------
// XY calibration test
// Simple Calibration X & Y Axis
// 5@xes 15/11/2021
//------------------------------------------------------
$fn=120;
font = "Arial:style=Bold";
// 150mm x 150mm ; 10mm steps
lg_x = 15;
lg_y = 15;
height = 4.8;
height2 = 7.8;
letter_height = 5.2;
letter_size =8;
translate([-70,-70,0]) union() {
Ruler();
translate([5,5,3]) letter("0");
translate([lg_x*10-5,5,0]) letter("X");
translate([5,lg_x*10-5,0]) letter("Y");
}
module Ruler() {
minkowski()
{
union() {
// X
for (i = [0 : 2 : lg_x-1]) {
translate([10*i+1,1,0])
cube([8,8,height]);
}
for (i = [0 : 2 : lg_x-2]) {
translate([10*(i+1)+1,5,0])
cube([8,4,height2]);
}
//Y
for (j = [0 : 2 : lg_y-1]) {
translate([1,10*j+1,0])
cube([8,8,height]);
}
for (j = [0 : 2 : lg_y-2]) {
translate([5,10*(j+1)+1,0])
cube([4,8,height2]);
}
translate([1,1,0]) cube([8,8,height2]);
translate([1,5,0]) cube([lg_x*10-2,4,height]);
translate([5,1,0]) cube([4, lg_y*10-2,height]);
}
cylinder(r=1,h=0.1);
}
}
module letter(Txt) {
color("Red")
linear_extrude(height = letter_height) {
text(Txt, size = letter_size, font = font, halign = "center", valign = "center");
}
}