-
Notifications
You must be signed in to change notification settings - Fork 5
/
hbot-frame.scad
151 lines (124 loc) · 5.35 KB
/
hbot-frame.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
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
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
use <misumi-parts-library.scad>;
use <bed.scad>;
use <XGantry.scad>
use <motor-bracket.scad>
use <x-carriage.scad>
use <y-carriage.scad>
use <sg-spool.scad>
use <idler-corner.scad>
//use <scissor-lift.scad>
use <z-leadscrew-gantry.scad>
extrusion= 20; // extrusion 2020
sides= 500; // side length of cube in mm
sep1= sides/2+extrusion/2; // separation of each side
sep= sides;
height= sides-extrusion/2;
bsep= sides/2;
bsep1= sides/2+extrusion/2;
bheight= sides-30;
module gantry(xpos=0) {
translate([0,0,-2]) Xgantry(xpos);
translate([sep1+10,0,-10]) rotate([0,0,90]) Ycarriage_with_wheels();
translate([-sep1-10,0,-10]) rotate([0,0,-90]) Ycarriage_with_wheels();
}
// bottom
raised= 30;
translate([-sep1,-sep/2,extrusion/2+raised]) hfs2020(sides);
translate([sep1,-sep/2,extrusion/2+raised]) hfs2020(sides);
translate([sep/2,sep1,extrusion/2+raised]) rotate([0,0,90]) hfs2020(sides);
translate([sep/2,-sep1,extrusion/2+raised]) rotate([0,0,90]) hfs2020(sides);
// verticals
translate([-sep1,-sep1,0]) rotate([90,0,0]) hfs2020(sides);
translate([sep1,-sep1,0]) rotate([90,0,0]) hfs2020(sides);
translate([-sep1,sep1,0]) rotate([90,0,0]) hfs2020(sides);
translate([sep1,sep1,0]) rotate([90,0,0]) hfs2020(sides);
// top
translate([-sep1,-sep/2,height-raised]) hfs2020(sides);
translate([sep1,-sep/2,height-raised]) hfs2020(sides);
translate([sep/2,sep1,height-raised]) rotate([0,0,90]) hfs2020(sides);
translate([sep/2,-sep1,height-raised]) rotate([0,0,90]) hfs2020(sides);
// brackets inside bottom corner lr
translate([bsep, -sep1, raised]) rotate([0,180,90]) hblfsn5();
translate([-bsep, -sep1, raised]) rotate([0,180,-90]) hblfsn5();
translate([bsep, sep1, raised]) rotate([0,180,90]) hblfsn5();
translate([-bsep, sep1, raised]) rotate([0,180,-90]) hblfsn5();
// brackets inside bottom corner bf
translate([bsep1, -bsep, raised]) rotate([180,0,180]) hblfsn5();
translate([-bsep1, -bsep, raised]) rotate([180,0,180]) hblfsn5();
translate([bsep1, bsep, raised]) rotate([180,0,0]) hblfsn5();
translate([-bsep1, bsep, raised]) rotate([180,0,0]) hblfsn5();
// brackets bottom corner
translate([bsep, -bsep, extrusion/2+raised]) rotate([0,90,90]) hblfsn5();
translate([-bsep, -bsep, extrusion/2+raised]) rotate([0,90,0]) hblfsn5();
translate([bsep, bsep, extrusion/2+raised]) rotate([0,90,180]) hblfsn5();
translate([-bsep, bsep, extrusion/2+raised]) rotate([0,90,-90]) hblfsn5();
// brackets top corner
translate([bsep, -bsep, height-raised]) rotate([0,90,90]) hblfsn5();
translate([-bsep, -bsep, height-raised]) rotate([0,90,0]) hblfsn5();
translate([bsep, bsep, height-raised]) rotate([0,90,180]) hblfsn5();
translate([-bsep, bsep, height-raised]) rotate([0,90,-90]) hblfsn5();
// brackets inside top corner lr
translate([bsep, -sep1, bheight]) rotate([0,0,90]) hblfsn5();
translate([-bsep, -sep1, bheight]) rotate([0,0,-90]) hblfsn5();
translate([bsep, sep1, bheight]) rotate([0,0,90]) hblfsn5();
translate([-bsep, sep1, bheight]) rotate([0,0,-90]) hblfsn5();
// brackets inside top corner bf
translate([bsep1, -bsep, bheight]) rotate([0,0,0]) hblfsn5();
translate([-bsep1, -bsep, bheight]) rotate([0,0,0]) hblfsn5();
translate([bsep1, bsep, bheight]) rotate([0,0,180]) hblfsn5();
translate([-bsep1, bsep, bheight]) rotate([0,0,180]) hblfsn5();
// Base
//translate([0,0,raised+10/2+20]) color("white") cube([520,520, 10], center= true);
///////////////////// end frame ///////////////////////
// Bed
//bedh= 400; //top
//bedh= 138; // bottom
bedh= 250;
if(0) {
rotate([0, 0, 90]) translate([0,0, raised+10+bedh]) bed_assembly(1,0,0);
//translate([50,50,raised+10]) rotate([0,0,45]) scissor_lift(bedh);
}
// X gantry
if(1) {
rotate([0, 0, 90]) {
translate([0,0,height+extrusion/2-raised]) gantry();
translate([0,-get_xgantry_width()/2-10,height+extrusion/2-raised+30]) Xcarriage_with_wheels();
}
}
// Motors
mh= height-10;
if(1) {
translate([sides/2+extrusion,-sides/2-extrusion,mh+10]) rotate([180,0,0]) motor_bracket(1);
translate([sides/2+extrusion,sides/2+extrusion,mh+10]) rotate([180,0,0]) motor_bracket(0);
translate([sides/2+extrusion+32,sides/2+extrusion-8,mh+10]) spool();
translate([(sides/2+extrusion+32),-sides/2-extrusion+8,mh+10]) spool();
}
ih= height+20;
if(0) {
//corner idlers
translate([-sides/2-extrusion/2,-sides/2-extrusion/2,ih]) rotate([180,0,90]) idler_mount();
translate([sides/2+extrusion/2,-sides/2-extrusion/2,ih]) rotate([180,0,180]) idler_mount();
}
// Z gantry, cantilever
zgantry_length= 500-60;
zgantry_pos= 30;
cantilever1_length= 600; // tan(45)*(sides/2-(zgantry_pos+20+5))+10;
echo(str("cantilever1_length=", cantilever1_length));
ght= raised+10+bedh;
if(1) {
translate([sides/2+60, zgantry_pos, 30]) rotate([90,0,-90]) hfs2040(zgantry_length);
translate([-cantilever1_length/2+50, zgantry_pos-20-10, ght]) rotate([0,0,-90]) hfs2020(cantilever1_length);
//translate([sides/2-cantilever1_length+40, zgantry_pos+35, ght]) rotate([0,90,0]) hbl45ts5();
translate([sides/2+60, zgantry_pos, ght]) rotate([0, 0, -90]) Zcarriage_with_wheels();
translate([230+60, zgantry_pos, 50]) rotate([0, 90, 90]) actuator();
// vslot support gantry
translate([-sides/2-40, 0, 0]) rotate([90,0,-90]) hfs2040(500);
translate([-sides/2, 0, ght]) rotate([0,90,0]) vslot_mini_carriage();
// cross support
translate([0, 10, ght]) rotate([0,0,0]) hfs2020(150);
}
module vslot_mini_carriage() {
translate([-175, -40, 0]) {
color("black") import("VSLOT_Mini_V_Plate.stl");
}
}