-
Notifications
You must be signed in to change notification settings - Fork 7
/
gregs_wade.scad
938 lines (786 loc) · 28.3 KB
/
gregs_wade.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
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
//http://www.thingiverse.com/thing:20413
// Greg's Wade Extruder.
// It is licensed under the Creative Commons - GNU GPL license.
// 2010 by GregFrost
// Extruder based on prusa git repo.
// http://www.thingiverse.com/thing:6713
include<configuration.scad>
longer_support=5;
// Define the hotend_mounting style you want by specifying hotend_mount=style1+style2 etc.
malcolm_hotend_mount=1;
groovemount=2;
peek_reprapsource_mount=4;
arcol_mount=8;
mendel_parts_v6_mount=16;
grrf_peek_mount=32;
wildseyed_mount=64;
geared_extruder_nozzle=128; // http://reprap.org/wiki/Geared_extruder_nozzle
jhead_mount=256;
reprapfaborg_mount=512; // http://reprap-fab.org hotend with 10mm PEEK insulator
//Set the hotend_mount to the sum of the hotends that you want the extruder to support:
//e.g. wade(hotend_mount=groovemount+peek_reprapsource_mount);
//Set motor- and bolt-elevation for additional clearance when using e.g. 9/47 gears like in http://www.thingiverse.com/thing:11152
elevation=4;
//Set extra gear separation when using slightly bigger non-standard gears like 9/47 herringbone gears
extra_gear_separation=2;
// Nut wrench sizes ISO 4032
m3_wrench = 5.5;
m4_wrench = 7;
module nut_trap(nut_wrench_size, trap_height, vertical=true, clearance=0.2){
cornerdiameter = (((nut_wrench_size)/2) + clearance) / cos(180/6);
rotate([0,vertical*90,0])
cylinder(h = trap_height, r = cornerdiameter, center=true, $fn = 6);
}
// Adjust for deeper groove in hobbed bolt, so that idler is still vertical when tightened
// Values like 0.5 to 1 should work, the more, the closer the idler will move to the bolt
// Sometimes the idler will be slightly angled towards the bolt which causes the idler screws
// to slip off the slots in die idler to the top.. Adjusting this should help:
less_idler_bolt_dist = 0;
////////////////////////////////
// RENDER EXTRUDER //
////////////////////////////////
//wade(hotend_mount=groovemount);
//wade(hotend_mount=reprapfaborg_mount);
wade(hotend_mount=jhead_mount);
//wade(hotend_mount=arcol_mount);
//wade(hotend_mount=grrf_peek_mount);
////////////////////////////////
/**
* Extruder
* @name Extruder
* @assembled
* @using 1 small-gear
* @id extruder
* @using 1 idler
* @using 1 extruder-body
* @using 1 m3nut
* @using 1 m3washer
* @using 1 m3x25
* @step Take idler and insert nut into small nut-trap inside the hinge.
* @step While holding the nut in place, preprare M3x25 bolt with washer and screw it into the hinge just enough to hold the nut.
* @step Now take the extruder body and idler. Place idler on the hinge counterpart and compleately screw the M3x25 bolt. This will create secured hinge.
*
* @using 2 m4nut
* @step Place M4 nuts into their nut traps, secure them with piece of tape. We need them in place, since later they would be harder to access.
*
* @using 3 m3x10
* @using 3 m3washer
* @using 1 NEMA17
* @step Prepare your NEMA17 stepper motor and three M3x10 screws with washers.
* @step Hold motor on place and lightly tighten the screws. We need to adjust motor position later, no need to tighten it hard.
*
* @using 1 large-gear
* @using 1 m8washer
* @using 2 m8nut
* @using 2 bearing-608
* @step Place two skate bearings on ther position, they should snuggly fit in.
* @step Insert prepared large gear into the body with mounted bearings.
* @step Check if the alignment of hobbed part with the filament path. Adjust it accordingly with adding or removing M8 washers.
* @step After adjusting, we need to fix the bolt in. So we place washer at the end of hobbed bolt and with two M8 nuts we will do locknut by tightening them against each other.
* @step Check if large gear turns freely.
*
* @using 2 m3x40
* @using 4 m3washer
* @using 2 extruder-spring
* @step Prepare two M3x40 screws with sandwitch of washer-spring-washer.
* @step Insert two M3 nuts into nut traps on top of drive mechanism. [[extruder/top-nut-traps.png]]
* @step Insert prepared screws into the holes on idler. Close the idler and tighten the screws into the trapped nuts. More you tighten those screws, more pressure will be on fillament.
* @step Your extruder is done. [[extruder/assembled.jpg]]
*/
/**
* Extruder body
* @name Extruder body
* @category Printed
* @id extruder-body
*/
/**
* Extruder idler
* @name Extruder Idler
* @id idler
* @category Printed
* @using 1 bearing-608
* @using 1 idler-m8-piece
* @step Insert piece of M8 rod into bearing.
* @step Insert 608 bearing with rod into printed idler part.
*/
/**
* Small M8 rod
* @name Idler
* @id idler-m8-piece
* @category Rods and Bars
*/
/**
* Spring used for idler on extruder.
* @name Extruder spring
* @id extruder-spring
*/
//#square (100,100,center=true);
translate([-15,45,0])
bearing_washer();
//color([0.5,0.5,1])
//import("gregs-wade-v3.stl");
//translate([-28.5,0,0])
//import("Toms_guided_greg_v2.stl");
//Place for printing
translate([50,-5,16.20+4.8-filament_pinch[0]]) //dec added the parameter that moves the quidler in Z here too to move it back for printing
rotate([0,-90,90])
//Place for assembly.
wadeidler();
translate ([-20,-20,0]) clasp_bar();
//translate ([50,-20,0]) knob ();
//color([0,1,1])
//import ("idler.stl");
//===================================================
// Parameters defining the wade body:
wade_block_height=55+elevation;
wade_block_width=24;
wade_block_depth=28;
block_bevel_r=6;
base_thickness=7;
base_length=70;
base_leadout=25;
nema17_hole_spacing=1.2*25.4;
nema17_width=1.7*25.4;
nema17_support_d=nema17_width-nema17_hole_spacing;
screw_head_recess_diameter=7.2;
screw_head_recess_depth=3;
motor_mount_rotation=25;
motor_mount_translation=[50.5+extra_gear_separation,34+elevation,0];
motor_mount_thickness=10.5;
m8_clearance_hole=8.8;
hole_for_608=22.6;
608_diameter=22;
block_top_right=[wade_block_width,wade_block_height];
//if (printed_in == "reprap")
//layer_thickness=0.25;
//else //if (printed_in == "makerbot")
//layer_thickness=0.3;
filament_diameter=3.0;
filament_feed_hole_d=filament_diameter+0.5; //DEC made parametric
filament_feed_hole_offset=filament_diameter+1.5;
idler_nut_trap_depth=7.3;
idler_nut_thickness=3.7;
gear_separation=7.4444+32.0111+0.25+extra_gear_separation;
function motor_hole(hole)=[motor_mount_translation[0],motor_mount_translation[1]] +
rotated(45+motor_mount_rotation+hole*90)*nema17_hole_spacing/sqrt(2);
// Parameters defining the idler.
filament_pinch=[
motor_mount_translation[0]-gear_separation-filament_feed_hole_offset-filament_diameter/2,
motor_mount_translation[1],
wade_block_depth/2];
idler_axis=filament_pinch-[608_diameter/2,0,0];
idler_fulcrum_offset=608_diameter/2+3.5+m3_diameter/2;
idler_fulcrum=idler_axis-[0+less_idler_bolt_dist,idler_fulcrum_offset,0];
idler_corners_radius=4;
idler_height=12;
idler_608_diameter=608_diameter+2;
idler_608_height=9;
idler_mounting_hole_across=8;
idler_mounting_hole_up=15;
idler_short_side=wade_block_depth-2;
idler_hinge_r=m3_diameter/2+3.5;
idler_hinge_width=6.5;
idler_end_length=(idler_height-2)+5;
idler_mounting_hole_diameter=m4_diameter+0.25;
idler_mounting_hole_elongation=0.9;
idler_long_top=idler_mounting_hole_up+idler_mounting_hole_diameter/2+idler_mounting_hole_elongation+2.5;
idler_long_bottom=idler_fulcrum_offset;
idler_long_side=idler_long_top+idler_long_bottom;
module bearing_washer(){
difference(){
cylinder(r=hole_for_608/2-0.3,h=1);
translate([0,0,-1])
cylinder(r=8,h=3);
}
}
module wade (hotend_mount=0,legacy_mount=true, layer_thickness=0.25){
difference (){
union(){
// The wade block.
cube([wade_block_width,wade_block_height,wade_block_depth]);
// Filler between wade block and motor mount.
translate([10,motor_mount_translation[1]-hole_for_608/2,0])
cube([wade_block_width+extra_gear_separation,
wade_block_height-motor_mount_translation[1]+hole_for_608/2,
motor_mount_thickness]);
// Connect block to top of motor mount.
linear_extrude(height=motor_mount_thickness)
barbell(block_top_right-[0,5],motor_hole(0),5,nema17_support_d/2,100,60);
//Connect motor mount to base.
linear_extrude(height=motor_mount_thickness)
barbell([base_length-base_leadout,
base_thickness/2],motor_hole(2),base_thickness/2,
nema17_support_d/2,100,60);
// Round the ends of the base
translate([base_length-base_leadout,base_thickness/2,0])
cylinder(r=base_thickness/2,h=wade_block_depth,$fn=20);
translate([-base_leadout,base_thickness/2,0])
cylinder(r=base_thickness/2,h=wade_block_depth,$fn=20);
//Provide the bevel betweeen the base and the wade block.
render()
difference(){
translate([-block_bevel_r,0,0])
cube([block_bevel_r*2+wade_block_width,
base_thickness+block_bevel_r,wade_block_depth]);
translate([-block_bevel_r,block_bevel_r+base_thickness])
cylinder(r=block_bevel_r,h=wade_block_depth,$fn=60);
translate([wade_block_width+block_bevel_r,
block_bevel_r+base_thickness])
cylinder(r=block_bevel_r,h=wade_block_depth,$fn=60);
}
// The idler hinge.
translate(idler_fulcrum){
translate([idler_hinge_r,0,0])
cube([idler_hinge_r*2,idler_hinge_r*2,idler_short_side-2*idler_hinge_width-0.5],
center=true);
rotate(-30){
cylinder(r=idler_hinge_r,
h=idler_short_side-2*idler_hinge_width-0.5,
center=true,$fn=60);
translate([idler_hinge_r,0,0])
cube([idler_hinge_r*2,idler_hinge_r*2,
idler_short_side-2*idler_hinge_width-0.5],
center=true);
}
}
if (layer_thickness > 0){
// The idler hinge support.
translate(idler_fulcrum){
rotate(-15)
translate([-(idler_hinge_r+3)+1,-idler_hinge_r-2,-wade_block_depth/2])
difference(){
translate([-longer_support,0])
cube([idler_hinge_r+3+longer_support,
idler_hinge_r*2+4,
wade_block_depth/2-
idler_short_side/2+
idler_hinge_width+0.25+
layer_thickness]);
translate([idler_hinge_r+2,(idler_hinge_r*2+4)/2,-layer_thickness])
cylinder(r=idler_hinge_r+1,h=10,$fn=50);
}
rotate(-15)
translate([-(idler_hinge_r+3)+1,-idler_hinge_r-2,
-idler_short_side/2+idler_hinge_width+0.25])
cube([idler_hinge_r+3+15,
idler_hinge_r*2+4,
layer_thickness]);
}
}
//The base.
translate([-base_leadout,0,0])
cube([base_length,base_thickness,wade_block_depth]);
motor_mount ();
}
block_holes(legacy_mount=legacy_mount, layer_thickness=layer_thickness);
motor_mount_holes (layer_thickness);
translate([motor_mount_translation[0]-gear_separation-filament_feed_hole_offset,
0,wade_block_depth/2])
rotate([-90,0,0]){
if (in_mask (hotend_mount,malcolm_hotend_mount))
malcolm_hotend_holes ();
if (in_mask (hotend_mount,groovemount))
groovemount_holes ();
if (in_mask (hotend_mount,peek_reprapsource_mount))
peek_reprapsource_holes ();
if (in_mask (hotend_mount,arcol_mount))
arcol_mount_holes ();
if (in_mask (hotend_mount,mendel_parts_v6_mount))
mendel_parts_v6_holes(insulator_d=12.7);
if (in_mask(hotend_mount,grrf_peek_mount))
grrf_peek_mount_holes(layer_thickness);
if (in_mask(hotend_mount,wildseyed_mount))
wildseyed_mount_holes(insulator_d=12.7);
if (in_mask(hotend_mount,geared_extruder_nozzle))
mendel_parts_v6_holes(insulator_d=15);
if (in_mask(hotend_mount,jhead_mount))
wildseyed_mount_holes(insulator_d=16);
if (in_mask(hotend_mount,reprapfaborg_mount))
peek_reprapfaborg_holes();
}
}
}
function in_mask(mask,value)=(mask%(value*2))>(value-1);
//block_holes();
module block_holes(legacy_mount=false, layer_thickness=0.25){
//Round off the top of the block.
translate([0,wade_block_height-block_bevel_r,-1])
render()
difference(){
translate([-1,0,0])
cube([block_bevel_r+1,block_bevel_r+1,wade_block_depth+2]);
translate([block_bevel_r,0,0])
cylinder(r=block_bevel_r,h=wade_block_depth+2,$fn=40);
}
// Round the top front corner.
translate ([-base_leadout-base_thickness/2,-1,wade_block_depth-block_bevel_r])
render()
difference(){
translate([-1,0,0])
cube([block_bevel_r+1,base_thickness+2,block_bevel_r+1]);
rotate([-90,0,0])
translate([block_bevel_r,0,-1])
cylinder(r=block_bevel_r,h=base_thickness+4);
}
// Round the top back corner.
translate ([base_length-base_leadout+base_thickness/2-block_bevel_r,
-1,wade_block_depth-block_bevel_r])
render()
difference(){
translate([0,0,0])
cube([block_bevel_r+1,base_thickness+2,block_bevel_r+1]);
rotate([-90,0,0])
translate([0,0,-1])
cylinder(r=block_bevel_r,h=base_thickness+4);
}
// Round the bottom front corner.
translate ([-base_leadout-base_thickness/2,-1,-2])
render()
difference(){
translate([-1,0,-1])
cube([block_bevel_r+1,base_thickness+2,block_bevel_r+1]);
rotate([-90,0,0])
translate([block_bevel_r,-block_bevel_r,-1])
cylinder(r=block_bevel_r,h=base_thickness+4);
}
// Idler fulcrum hole.
translate(idler_fulcrum+[0,0,0.25-layer_thickness])
cylinder(r=m3_diameter/2,h=idler_short_side-2*idler_hinge_width,center=true,$fn=16);
translate(idler_fulcrum+[0,0,idler_short_side/2-idler_hinge_width-1])
cylinder(r=m3_nut_diameter/2+0.25,h=1,$fn=40);
//Rounded cutout for idler hinge.
render()
translate(idler_fulcrum)
difference(){
cylinder(r=idler_hinge_r+0.5,h=idler_short_side+0.5,center=true,$fn=60);
cylinder(r=idler_hinge_r+1,h=idler_short_side-2*idler_hinge_width-0.5,center=true);
}
translate(motor_mount_translation){
translate([-gear_separation,0,0]){
rotate([0,180,0])
translate([0,0,1])
import("wade-large.stl");
// Open the top to remove overhangs and to provide access to the hobbing.
translate([-wade_block_width+2,0,9.5])
cube([wade_block_width,
wade_block_height-motor_mount_translation[1]+1,
wade_block_depth]);
// Open 30° slot for idler screws to avoid overhang at top corner
translate([-wade_block_width+2,idler_mounting_hole_up-(idler_mounting_hole_diameter/2),wade_block_depth/2-idler_mounting_hole_across-((idler_mounting_hole_diameter*cos(180/6))/2)])
cube([wade_block_width,
wade_block_height-motor_mount_translation[1]+1,
wade_block_depth]);
translate([0,0,-1])
b608(h=9);
translate([0,0,20])
b608(h=9);
translate([-13,0,9.5])
b608(h=wade_block_depth);
translate([0,0,8+layer_thickness])
cylinder(r=m8_clearance_hole/2,h=wade_block_depth-(8+layer_thickness)+2);
translate([0,0,20-2])
cylinder(r=16/2,h=wade_block_depth-(8+layer_thickness)+2);
//DEC add a throat to the filament path for better feeding
translate([-filament_feed_hole_offset,-3.6-filament_diameter,wade_block_depth/2])
rotate([90,0,0])
rotate(360/16){
cylinder (r1=5.5,r2=filament_diameter/2,h=14,center=true);
}
// Filament feed.
translate([-filament_feed_hole_offset,0,wade_block_depth/2])
rotate([90,0,0])
rotate(360/16)
cylinder(r=filament_feed_hole_d/2,h=wade_block_depth*3,center=true,$fn=8);
//Widened opening for hobbed bolt access.
// EDIT jonaskuehling: removed for better stability around tilt screw nut traps
/* translate([2,wade_block_height/2+2,wade_block_depth/2+0.2])
rotate([90,0,0])
rotate(-45)
union(){
cylinder(r=5,h=wade_block_height,center=true,$fn=30);
translate([-5,0,0])
cube([10,10,wade_block_height],center=true);
}
*/
// Mounting holes on the base.
// translate(legacy_mount?[-3.4,0,-1]:[0,0,0])
for (mount=[0:1]){
translate([-filament_feed_hole_offset+25*((mount<1)?1:-1),
-motor_mount_translation[1]-1,wade_block_depth/2])
rotate([-90,0,0])
rotate(360/16)
cylinder(r=m4_diameter/2,h=base_thickness+2,$fn=8);
translate([-filament_feed_hole_offset+25*((mount<1)?1:-1),
-motor_mount_translation[1]+base_thickness/2,
wade_block_depth/2])
rotate([-90,0,0]){
// cylinder(r=m4_nut_diameter/2,h=base_thickness,$fn=6);
translate([0,0,base_thickness/2]) rotate([0,0,30]) nut_trap(m4_wrench,base_thickness,0);}
}
}
}
// Idler mounting holes and nut traps.
for (idle=[-1,1]){
translate([0,
idler_mounting_hole_up+motor_mount_translation[1],
wade_block_depth/2+idler_mounting_hole_across*idle])
rotate([0,90,0]){
rotate([0,0,30]){
// screw holes
translate([0,0,-1])
cylinder(r=idler_mounting_hole_diameter/2,h=wade_block_depth+6,$fn=6);
// nut traps
translate([0,0,wade_block_width-idler_nut_trap_depth+idler_nut_thickness/2])
// cylinder(r=m4_nut_diameter/2,h=idler_nut_thickness,$fn=6);
nut_trap(m4_wrench,idler_nut_thickness);
}
// nut slots
translate([0,10/2,wade_block_width-idler_nut_trap_depth+idler_nut_thickness/2])
cube([m4_wrench+0.4,10,idler_nut_thickness],center=true);
// screw holes 30°
for(tilt=[1:6]){
translate([0,0,(wade_block_width-idler_nut_trap_depth+idler_nut_thickness/2)])
rotate([tilt*5,0,0])
rotate([0,0,30])
translate([0,0,-28])
cylinder(r=idler_mounting_hole_diameter/2,h=wade_block_depth+10,$fn=6);
}
// nut traps 30°
translate([0,0,wade_block_width-idler_nut_trap_depth+idler_nut_thickness/2])
for(tilt_nut=[1:6])
rotate([tilt_nut*5,0,0])
rotate([0,0,30])
// cylinder(r=m4_nut_diameter/2,h=idler_nut_thickness,$fn=6);
nut_trap(m4_wrench,idler_nut_thickness);
}
}
}
module motor_mount(){
linear_extrude(height=motor_mount_thickness){
barbell (motor_hole(0),motor_hole(1),nema17_support_d/2,
nema17_support_d/2,20,160);
barbell (motor_hole(1),motor_hole(2),nema17_support_d/2,
nema17_support_d/2,20,160);
}
}
module motor_mount_holes(layer_thickness=0.25){
radius=4/2;
slot_left=1;
slot_right=2;
{
translate([0,0,screw_head_recess_depth+layer_thickness])
for (hole=[0:2]){
translate([motor_hole(hole)[0]-slot_left,motor_hole(hole)[1],0])
cylinder(h=motor_mount_thickness-screw_head_recess_depth,r=radius,$fn=16);
translate([motor_hole(hole)[0]+slot_right,motor_hole(hole)[1],0])
cylinder(h=motor_mount_thickness-screw_head_recess_depth,r=radius,$fn=16);
translate([motor_hole(hole)[0]-slot_left,motor_hole(hole)[1]-radius,0])
cube([slot_left+slot_right,radius*2,motor_mount_thickness-screw_head_recess_depth]);
}
translate([0,0,-1])
for (hole=[0:2]){
translate([motor_hole(hole)[0]-slot_left,motor_hole(hole)[1],0])
cylinder(h=screw_head_recess_depth+1,
r=screw_head_recess_diameter/2,$fn=16);
translate([motor_hole(hole)[0]+slot_right,motor_hole(hole)[1],0])
cylinder(h=screw_head_recess_depth+1,
r=screw_head_recess_diameter/2,$fn=16);
translate([motor_hole(hole)[0]-slot_left,
motor_hole(hole)[1]-screw_head_recess_diameter/2,0])
cube([slot_left+slot_right,
screw_head_recess_diameter,
screw_head_recess_depth+1]);
}
}
}
module knob () {//DEC
# rotate_extrude (convexity=10) translate ([5.5*2.5,1.5,0]) circle (r=1.5,$fn=16);
difference (){
union (){
translate ([0,0,5.5*1.25+3]) sphere (r=5.5*1.25);
cylinder (r=5.5*1.25,h=5.5*1.25+3);
cylinder (r=5.5*2.5,h=3);
// sphere (r=5.5*2.5);
}
union() {
cylinder (r=5.5/2+0.25,h=3.25);
cylinder (r=2,h=20);
// translate ([0,0,-20]) cylinder (r=5.5*3,h=20);
}
}
}
module clasp_bar(){ //DEC
CBthick=5;
CBlen=2*idler_mounting_hole_across+10;
CBwid=m4_diameter*2.5;
difference(){
translate([0,0,CBthick/2]) {
difference () {
cube ([CBwid,CBlen,CBthick],center=true);
translate ([0,idler_mounting_hole_across,0]) cylinder (r=m4_diameter/2,h=CBthick+1,center=true);
translate ([0,-idler_mounting_hole_across,0]) cylinder (r=m4_diameter/2,h=CBthick+1,center=true);
}
}
nut_trap(m3_wrench,5); //nut trap is centered
cylinder (r=m3_diameter/2,h=CBthick+1);
}
}
module wadeidler(){
//%translate([-9.7,59,14])
//%cube([12,4,5],center=true);
path_notch=filament_diameter*1.175; //DEC
clasp_round=13;
guide_height=12.3;
guide_length=10;
difference(){
union(){
//The idler block.
translate(idler_axis+[-idler_height/2+2,+idler_long_side/2-idler_long_bottom,0]){
difference (){ //DEC round the edge for more clearance and easier use of the clasp
cube([idler_height,idler_long_side,idler_short_side],center=true);
translate ([-1*idler_height/2,idler_long_side/2,0]) cube ([clasp_round,clasp_round,idler_mounting_hole_across*2-m4_diameter], center=true);
}
translate ([-1*idler_height/2+clasp_round/2,idler_long_side/2-clasp_round/2,0]) cylinder (r=clasp_round/2,h=idler_mounting_hole_across*2-m4_diameter, center=true);
//Filament Guide.
translate([guide_height/2+idler_height/2-1,idler_long_side/2-guide_length/2,0])
cube([guide_height+1,guide_length,8],center=true);
}
// The fulcrum Hinge
translate(idler_fulcrum)
rotate([0,0,-30]){
cylinder(h=idler_short_side,r=idler_hinge_r,center=true,$fn=60);
translate([-idler_end_length/2,0,0])
cube([idler_end_length,idler_hinge_r*2,idler_short_side],center=true);
}
}
//Filament Path
translate(idler_axis+[2+guide_height,+idler_long_side-idler_long_bottom-guide_length/2,0])
{ //DEC use path_notch so it parametric with filament diameter
cube([path_notch*2,guide_length+2,path_notch],center=true);
translate([-2*path_notch/2,0,0])
rotate([90,0,0])
cylinder(h=guide_length+4,r=path_notch/2,center=true,$fn=16);
}
//Back of idler. Rueckseite glaetten
translate(idler_axis+[-idler_height/2+2-idler_height,
idler_long_side/2-idler_long_bottom-10,0])
cube([idler_height,idler_long_side,idler_short_side+2],center=true);
//Slot for idler fulcrum mount. Ausbruch Aufhaengung
translate(idler_fulcrum){
cylinder(h=idler_short_side-2*idler_hinge_width,
r=idler_hinge_r+0.5,center=true,$fn=60);
rotate(-30)
translate([0,-idler_hinge_r-0.5,0])
cube([idler_hinge_r*2+1,idler_hinge_r*2+1,
idler_short_side-2*idler_hinge_width],center=true);
}
//Bearing cutout. Kugelleager Aufhaengung
translate(idler_axis){
difference(){
cylinder(h=idler_608_height,r=idler_608_diameter/2,
center=true,$fn=60);
for (i=[0,1])
rotate([180*i,0,0])
translate([0,0,6.9/2])
cylinder(r1=12/2,r2=16/2,h=2);
}
cylinder(h=idler_short_side-6,r=m8_diameter/2-0.25/*Tight*/,
center=true,$fn=20);
}
//Fulcrum hole. Gelenkloch
translate(idler_fulcrum)
rotate(360/12)
cylinder(h=idler_short_side+2,r=m3_diameter/2-0.1,center=true,$fn=8);
//Nut trap for fulcrum screw. Loch fuer Mutter
translate(idler_fulcrum+[0,0,idler_short_side/2-idler_hinge_width-1+1.5])
// rotate(360/16)
// cylinder(h=3,r=m3_nut_diameter/2,$fn=6);
// rotate([0,0,30])
nut_trap(m3_wrench,3);
// DEC hole for swinging bolt clasp
translate(idler_axis+[2-idler_height,0,-8]){
//Screw Holes. Schraubenloecher
translate([-1,idler_mounting_hole_up-1,
idler_mounting_hole_across])
rotate([0,90,0]){
cylinder(r=m3_diameter/2,h=idler_height/3,$fn=16);
}
}
for(idler_screw_hole=[-1,1])
translate(idler_axis+[2-idler_height,0,0]){
//Screw Holes. Schraubenloecher
translate([-1,idler_mounting_hole_up-1,
idler_screw_hole*idler_mounting_hole_across])
rotate([0,90,0]){
cylinder(r=idler_mounting_hole_diameter/2,h=idler_height+2,$fn=16);
translate([0,idler_mounting_hole_elongation+0.8,0])
cylinder(r=idler_mounting_hole_diameter/2,h=idler_height+2,$fn=16);
translate([-idler_mounting_hole_diameter/2,0,0])
cube([idler_mounting_hole_diameter,idler_mounting_hole_elongation+7,
idler_height+2]);
}
// Rounded corners.
render()
translate([idler_height/2,idler_long_top,
idler_screw_hole*(idler_short_side/2)])
difference(){
translate([0,-idler_corners_radius/2+0.5,-idler_screw_hole*(idler_corners_radius/2-0.5)])
cube([idler_height+2,idler_corners_radius+1,idler_corners_radius+1],
center=true);
rotate([0,90,0])
translate([idler_screw_hole*idler_corners_radius,-idler_corners_radius,0])
cylinder(h=idler_height+4,r=idler_corners_radius,center=true,$fn=40);
}
}
}
}
module b608(h=8){
translate([0,0,h/2]) cylinder(r=hole_for_608/2,h=h,center=true,$fn=60);
}
module barbell (x1,x2,r1,r2,r3,r4) {
x3=triangulate (x1,x2,r1+r3,r2+r3);
x4=triangulate (x2,x1,r2+r4,r1+r4);
render()
difference (){
union(){
translate(x1)
circle (r=r1);
translate(x2)
circle(r=r2);
polygon (points=[x1,x3,x2,x4]);
}
translate(x3)
circle(r=r3,$fa=5);
translate(x4)
circle(r=r4,$fa=5);
}
}
function triangulate (point1, point2, length1, length2) =
point1 +
length1*rotated(
atan2(point2[1]-point1[1],point2[0]-point1[0])+
angle(distance(point1,point2),length1,length2));
function distance(point1,point2)=
sqrt((point1[0]-point2[0])*(point1[0]-point2[0])+
(point1[1]-point2[1])*(point1[1]-point2[1]));
function angle(a,b,c) = acos((a*a+b*b-c*c)/(2*a*b));
function rotated(a)=[cos(a),sin(a),0];
//========================================================
// Modules for defining holes for hotend mounts:
// These assume the extruder is verical with the bottom filament exit hole at [0,0,0].
//malcolm_hotend_holes ();
module malcolm_hotend_holes (){
extruder_recess_d=16;
extruder_recess_h=3.5;
// Recess in base
translate([0,0,-1])
cylinder(r=extruder_recess_d/2,h=extruder_recess_h+1);
}
//groovemount_holes ();
module groovemount_holes (){
extruder_recess_d=16;
extruder_recess_h=5.5;
// Recess in base
translate([0,0,-1])
cylinder(r=extruder_recess_d/2,h=extruder_recess_h+1);
}
//peek_reprapsource_holes ();
module peek_reprapsource_holes (){
extruder_recess_d=11;
extruder_recess_h=19;
// Recess in base
translate([0,0,-1])
cylinder(r=extruder_recess_d/2,h=extruder_recess_h+1);
// Mounting holes to affix the extruder into the recess.
translate([0,0,min(extruder_recess_h/2, base_thickness)])
rotate([-90,0,0])
cylinder(r=m4_diameter/2-0.5/* tight */,h=wade_block_depth+2,center=true);
}
//arcol_mount_holes();
module arcol_mount_holes(){
hole_axis_rotation=42.5;
hole_separation=30;
hole_slot_height=4;
for(mount=[-1,1])
translate([hole_separation/2*mount,-7,0]) {
translate([0,0,-1])
cylinder(r=m4_diameter/2,h=base_thickness+2,$fn=8);
translate([0,0,base_thickness/2])
//rotate(hole_axis_rotation){
cylinder(r=m4_nut_diameter/2,h=base_thickness/2+hole_slot_height,$fn=6);
translate([0,-m4_nut_diameter,hole_slot_height/2+base_thickness/2])
cube([m4_nut_diameter,m4_nut_diameter*2,hole_slot_height],center=true);
}
}
//mendel_parts_v6_holes ();
module mendel_parts_v6_holes (insulator_d=12.7) {
extruder_recess_d=insulator_d+0.7;
extruder_recess_h=10;
hole_axis_rotation=42.5;
hole_separation=30;
hole_slot_height=5;
// Recess in base
translate([0,0,-1])
cylinder(r=extruder_recess_d/2,h=extruder_recess_h+1);
for(mount=[-1,1])
rotate([0,0,hole_axis_rotation+90+90*mount])
translate([hole_separation/2,0,0]){
translate([0,0,-1])
cylinder(r=m4_diameter/2,h=base_thickness+2,$fn=8);
translate([0,0,base_thickness/2])
rotate(-hole_axis_rotation+180){
// rotate(30)
cylinder(r=m4_nut_diameter/2,h=base_thickness/2+hole_slot_height,$fn=6);
translate([0,-m4_nut_diameter,hole_slot_height/2+base_thickness/2])
cube([m4_nut_diameter,m4_nut_diameter*2,hole_slot_height],
center=true);
}
}
}
//grrf_peek_mount_holes();
module grrf_peek_mount_holes(layer_thickness=0.25){
extruder_recess_d=16.5;
extruder_recess_h=10;
// Recess in base
translate([0,0,-1])
cylinder(r=extruder_recess_d/2,h=extruder_recess_h+1);
for (hole=[-1,1]){
rotate(90,[1,0,0])
translate([hole*(extruder_recess_d/2-1.5),3+1.5,-wade_block_depth/2-1]){
translate([0,0,3.25+layer_thickness])
cylinder(r=1.5,h=wade_block_depth+2,$fn=10);
translate([0,0,1.75])
nut_trap(m3_wrench, 3);
}
}
}
//wildseyed_mount_holes(insulator_d=16);
module wildseyed_mount_holes(insulator_d=12.7){
extruder_recess_d=insulator_d+0.7;
extruder_recess_h=10;
// Recess in base
translate([0,0,-1])
cylinder(r=extruder_recess_d/2,h=extruder_recess_h+1);
for (hole=[-1,1])
rotate(90,[1,0,0])
translate([hole*(extruder_recess_d/2-1.5),3+1.5,-wade_block_depth/2-1])
cylinder(r=1.5,h=wade_block_depth+2,$fn=10);
}
//PEEK mount holes for reprap-fab.org 10mm dia insulator
module peek_reprapfaborg_holes(){
extruder_recess_d=10.8;
extruder_recess_h=20;
// Recess in base
translate([0,0,-1])
cylinder(r=extruder_recess_d/2,h=extruder_recess_h+1);
// Mounting holes to affix the extruder into the recess.
translate([5,0,min(extruder_recess_h/2, base_thickness-2)])
rotate([-90,0,0]){
// cylinder(r=m3_diameter/2-0.5,/*tight*/,h=wade_block_depth+2,center=true);
polyhole(2.5,wade_block_depth+2);}
translate([-5,0,min(extruder_recess_h/2, base_thickness-2)])
rotate([-90,0,0]){
// cylinder(r=m3_diameter/2-0.5,/*tight*/,h=wade_block_depth+2,center=true);
polyhole(2.5,wade_block_depth+2);}
//cylinder(r=m4_diameter/2-0.5/* tight */,h=wade_block_depth+2,center=true);
}