-
Notifications
You must be signed in to change notification settings - Fork 11
/
PELA-strap-mount.scad
203 lines (143 loc) · 8.03 KB
/
PELA-strap-mount.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
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
/*
Parametric PELA Strap Mount
A part for inserting strap straps to attachment PELA parts to other
objects. Other types of strap can also be used. The slots
The current design omits top knobs which would interfere with the
matching "PELA-vive-tracker-mount.scad".
Published at https://PELAblocks.org
By Paul Houghton
Twitter: @mobile_rat
Email: [email protected]
Blog: https://medium.com/@paulhoughton
Creative Commons Attribution-ShareAlike 4.0 International License
https://creativecommons.org/licenses/by-sa/4.0/legalcode
Open source design, Powered By Futurice. Come work with the best.
https://www.futurice.com/
Import this into other design files:
use <PELA-block.scad>
*/
include <style.scad>
include <material.scad>
use <PELA-block.scad>
use <PELA-technic-block.scad>
/* [Render] */
// Show the inside structure [mm]
_cut_line = 0; // [0:1:100]
// Printing material (set to select calibrated knob, socket and axle hole fit)
_material = 0; // [0:PLA, 1:ABS, 2:PET, 3:Biofila Silk, 4:Pro1, 5:NGEN, 6:NGEN FLEX, 7:Bridge Nylon, 8:TPU95, 9:TPU85/NinjaFlex, 10:Polycarbonite]
// Is the printer nozzle >= 0.5mm? If so, some features are enlarged to make printing easier
_large_nozzle = true;
// Select if the top connections should be traditional knobs or technic holes
_style = 0; // [0:Knobs, 1:Technic]
/* [Strap Mount] */
// Model length [blocks]
_l = 4; // [1:1:20]
// Model width [blocks]
_w = 4; // [1:1:20]
// Model height [blocks]
_h = 1; // [1:1:20]
// Fraction of a normal panel height for the center section where a stap holds the block in place
_panel_height_ratio = 1.0; // [0.1:0.1:2.0]
// Add short end holes spaced along the width for techic connectors
_end_holes = 3; // [0:disabled, 1:short air vents, 2:short connectors, 3:full width connectors]
// Add a wrapper around end holes (disable for extra ventilation but loose lock notches)
_end_sheaths = false;
// Presence of top connector knobs
_knobs = true;
// Presence of bottom connector sockets
_sockets = false;
// How tall are top connectors [mm]
_knob_height = 2.9; // [0:disabled, 1.8:traditional, 2.9:PELA 3D print tall]
// Basic unit vertical size of each block
_block_height = 8; // [8:technic, 9.6:traditional knobs]
// Place holes in the corners for mountings screws (0=>no holes, 1=>holes)
_corner_bolt_holes = false;
// Add holes in the top deck to improve airflow and reduce weight
_top_vents = false;
// Size of a hole in the top of each knob. 0 to disable or use for air circulation/aesthetics/drain resin from the cutout, but larger holes change flexture such that knobs may not hold as well
_knob_vent_radius = 0; // [0.0:0.1:3.9]
/* [Hidden] */
// Add full width through holes spaced along the length for techic connectors
_side_holes = 0; // [0:disabled, 1:short air vents, 2:short connectors, 3:full width connectors]
// Add a wrapper around end holes (disable for extra ventilation but loose lock notches)
_side_sheaths = true;
///////////////////////////////
// DISPLAY
///////////////////////////////
strap_mount(material=_material, large_nozzle=_large_nozzle, cut_line=_cut_line, style=_style, l=_l, w=_w, h=_h, panel_height_ratio=_panel_height_ratio, side_holes=_side_holes, end_holes=_end_holes, sockets=_sockets, knobs=_knobs, corner_bolt_holes=_corner_bolt_holes, knob_height=_knob_height, knob_vent_radius=_knob_vent_radius, top_vents=_top_vents, block_height=_block_height, side_sheaths=_side_sheaths, end_sheaths=_end_sheaths);
///////////////////////////////////
// MODULES
///////////////////////////////////
module strap_mount(material, large_nozzle, cut_line=_cut_line, style, l, w, h, panel_height_ratio, side_holes, side_sheaths, end_holes, end_sheaths, sockets, knobs, knob_height, knob_vent_radius, top_vents, corner_bolt_holes, block_height) {
assert(material!=undef);
assert(large_nozzle!=undef);
assert(cut_line!=undef);
assert(style!=undef);
assert(l!=undef);
assert(w!=undef);
assert(h!=undef);
assert(panel_height_ratio!=undef);
assert(side_holes!=undef);
assert(side_sheaths!=undef);
assert(end_holes!=undef);
assert(end_sheaths!=undef);
assert(sockets!=undef);
assert(knobs!=undef);
assert(knob_height!=undef);
assert(knob_vent_radius!=undef);
assert(top_vents!=undef);
assert(corner_bolt_holes!=undef);
assert(block_height!=undef);
difference() {
union() {
difference() {
if (style == 0) {
PELA_technic_block(material=material, large_nozzle=large_nozzle, cut_line=0, l=l, w=w, h=h, side_holes=side_holes, end_holes=end_holes, sockets=sockets, knobs=knobs, knob_height=knob_height, knob_vent_radius=knob_vent_radius, top_vents=top_vents, corner_bolt_holes=corner_bolt_holes, end_sheaths=end_sheaths, block_height=block_height, side_sheaths=side_sheaths);
} else {
intersection() {
PELA_technic_block(material=material, large_nozzle=large_nozzle, cut_line=0, l=l, w=w, h=h, side_holes=0, end_holes=0, sockets=sockets, knobs=false, knob_height=0, knob_vent_radius=knob_vent_radius, top_vents=top_vents, corner_bolt_holes=corner_bolt_holes, end_sheaths=end_sheaths, block_height=block_width(), side_sheaths=side_sheaths);
union() {
side_technic_bar(material=material, large_nozzle=large_nozzle, w=w, h=h, sockets=sockets, corner_bolt_holes=corner_bolt_holes, side_holes=side_holes, top_holes=end_holes, end_sheaths=end_sheaths, side_sheaths=side_sheaths);
translate([block_width(l-1), 0, 0]) {
side_technic_bar(material=material, large_nozzle=large_nozzle, w=w, h=h, sockets=sockets, corner_bolt_holes=corner_bolt_holes, top_holes=end_holes, end_sheaths=end_sheaths, side_holes=side_holes, side_sheaths=side_sheaths);
}
translate([block_width(), 0, 0]) {
skinned_block(material=material, large_nozzle=large_nozzle, l=l-2, w=w, h=h, ridge_width=0, ridge_depth=0, block_height=_block_height, skin=0);
}
}
}
}
slot(material=material, large_nozzle=large_nozzle, l=l, w=w, h=h, block_height=block_height);
}
if (sockets) {
height = max(knob_height + skin, panel_height_ratio*panel_height(block_height=block_height));
ss = side_shell(large_nozzle);
translate([block_width(1)- ss, 0, height]) {
cube([ss, block_width(w), block_height(h, block_height) - height]);
}
translate([block_width(l-1), 0, height]) {
cube([ss, block_width(w), block_height(h, block_height) - height]);
}
}
}
cut_space(material=material, large_nozzle=large_nozzle, l=l, w=w, cut_line=cut_line, h=h, block_height=block_height, knob_height=knob_height, skin=_skin);
}
}
module side_technic_bar(material, large_nozzle, w, h, sockets, corner_bolt_holes, end_sheaths, top_holes, side_holes, side_sheaths) {
translate([0, 0, block_width(h)]) {
rotate([0, 90, 0]) {
PELA_technic_block(material=material, large_nozzle=large_nozzle, cut_line=0, l=h, w=w, h=1, side_holes=side_holes, end_holes=top_holes, sockets=sockets, knobs=false, knob_height=0, knob_vent_radius=0, top_vents=false, corner_bolt_holes=corner_bolt_holes, end_sheaths=end_sheaths, block_height=block_width(), side_sheaths=side_sheaths);
}
}
}
module slot(material, large_nozzle, l, w, h, block_height) {
assert(material!=undef);
assert(large_nozzle!=undef);
assert(l!=undef);
assert(w!=undef);
assert(h!=undef);
assert(block_height!=undef);
translate([block_width(), -0.01, _panel_height_ratio*panel_height(block_height=block_height)]) {
cube([block_width(l-2), block_width(w)+0.02, block_height(h+1, block_height=block_height)]);
}
}