forked from josefprusa/RepRapCalculator
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRepRapCalculator.html
More file actions
838 lines (723 loc) · 25.1 KB
/
RepRapCalculator.html
File metadata and controls
838 lines (723 loc) · 25.1 KB
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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<!-- The following are automatically inserted by servee -->
<script type='text/javascript' src='jquery-1.5.min.js' ></script>
<script src="thermistor.js"></script>
<script src="temptable.js"></script>
<title>RepRapCalculator</title>
<meta charset="utf-8" />
<style>
body{
background-color:#FFFFFF;
background: -moz-linear-gradient(top, #DBDBDB, #FFFFFF);
background: -webkit-gradient(linear, left top, left bottom, from(#DBDBDB), to(#FFFFFF));
font-family: Arial, Helvetica, sans-serif;
color:#344753;
}
a,a:hover,a:visited{
color:#344753;
}
a:hover{
text-decoration: none;
}
#content {
width: 600px ;
margin-left: auto ;
margin-right: auto ;
padding: 10px;
padding-top: 1px;
}
.calculation{
padding: 18px;
background-color:#E0E478;
background: -moz-linear-gradient(top, #E0E478, #C6D646);
background: -webkit-gradient(linear, left top, left bottom, from(#E0E478), to(#C6D646));
}
#mainCalculation{
border-bottom-right-radius: 8px;
border-bottom-left-radius: 8px;
-moz-border-bottom-right-radius: 8px;
-moz-border-bottom-left-radius: 8px;
margin-bottom:25px;
}
.calculationHeader{
padding: 18px;
padding-bottom: 12px;
padding-top: 12px;
background-color:#394D54;
background: -moz-linear-gradient(top, #394D54, #19272D);
background: -webkit-gradient(linear, left top, left bottom, from(#394D54), to(#19272D));
border-top-right-radius: 8px;
border-top-left-radius: 8px;
-moz-border-top-right-radius: 8px;
-moz-border-top-left-radius: 8px;
color:#DAE36C;
}
.calculationAnswer{
padding: 18px;
padding-bottom: 12px;
padding-top: 12px;
background-color:#394D54;
background: -moz-linear-gradient(top, #394D54, #19272D);
background: -webkit-gradient(linear, left top, left bottom, from(#394D54), to(#19272D));
border-bottom-right-radius: 8px;
border-bottom-left-radius: 8px;
-moz-border-bottom-right-radius: 8px;
-moz-border-bottom-left-radius: 8px;
color:#DAE36C;
margin-bottom:18px;
}
.notification{
background-color:#A13F29;
background: -moz-linear-gradient(top, #B8472C, #A13F29);
background: -webkit-gradient(linear, left top, left bottom, from(#B8472C), to(#A13F29));
color:#F3E4C0;
padding:18px;
padding-top:11px;
padding-bottom:11px;
}
.notification p{
margin:0px;
}
.notification a,.notification a:hover,.notification a:visited{
color:#F3E4C0;
}
.rounded{
border-radius: 8px;
-moz-border-radius: 8px;
margin-bottom: 18px;
}
.noround{
border-radius: 0px;
-moz-border-radius: 0px;
margin-bottom: 0px;
}
hr {
border-color: #394D54;
border-style: solid;
border-width: 1px 0 0;
clear: both;
margin-bottom:18px;
}
h1{
font-size: 3em;
display: block;
text-align:center;
}
h2{
display:none;
border-bottom: 2px solid black;
}
h3{
margin:0px;
padding:0px;
font-size: 1.5em;
}
ul{
padding-left: 25px;
}
li ul{
margin-bottom: 8px;
}
.smallInput{
width: 30px;
}
#footer{
text-align:center;
font-size:0.7em;
}
</style>
</head>
<body>
<div id="content">
<div class="calculationHeader">
<h1>RepRap Calculator v2</h1>
</div>
<div class="notification">
<p>
Proudly brought to you by <a href="http://josefprusa.cz">Josef Prusa</a>. It took some time though, please consider donation.</p><center><form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_s-xclick">
<input type="hidden" name="hosted_button_id" value="X7JHHWXV86QWJ">
<input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_donate_SM.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">
<img alt="" border="0" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1">
</form></center>
</div>
<div class="calculation" id="mainCalculation">
<p>
Useful set of calculators for RepRap users.
</p>
<ul>
<li>
<a href="#Printing">Printing</a>
<ul>
<li><a href="#PrintSetup">Optimal print settings</a></li>
</ul>
</li>
<li>
<a href="#MotorStuff">Firmware settings</a>
<ul>
<li><a href="#MotorStuffSPML">Steps per mm - leadscrew</a></li>
<li><a href="#MotorStuffSPMB">Steps per mm - belt</a></li>
<li><a href="#ExtrusionSF40">Slic3r,SFACT, SF40+ volumetric calibration</a></li>
<li><a href="#TempLookup">Thermistor lookup table generator</a></li>
<li><a href="#MotorStuffPrecise">Tweaking calibration</a></li>
</ul>
</li>
<li>
<a href="#Convertors">Handy utilities</a>
<ul>
<li><a href="#ConvertorsMMToF">mm/s to gcode feedrate</a></li>
<li><a href="#ConvertorsFToMM">gcode feedrate to mm/s</a></li>
<li><a href="#ExtrusionLC">Flow rate multiplier for layer height change</a></li>
</ul>
</li>
</ul>
</div>
<div class="notification rounded">
<p>Change the values and answer appears instantly. Please <strong>hit Enter</strong> when modifying text fields to submit your value.
</p>
</div>
<a name="Printing" />
<h2>Printing</h2>
<a name="PrintSetup" />
<div class="calculationHeader">
<h3>Optimal print settings</h3>
</div>
<div class="calculation">
This should provide you some solid starting settings. It basically uses all rules I use for my prints. As bonus it shows you some estimates what to expect (maximum overhang angle, ...). For starters just choose your nozzle diameter. In second stage you can tweak the predicted settings. When some of them are not usable, warning will pop up.
<p>
Nozzle diameter
<select id="PrintSetupNozzle" class="PrintSetup1">
<option value="0.5">0.5mm</option>
<option value="0.35">0.35mm</option>
<option value="0.4">0.4mm</option>
<option value="0.25">0.25mm</option>
<option value="0.75">0.75mm</option>
<option value="0.150">0.15mm</option>
<option value="1.0">1.00mm</option>
</select>
</p>
</div>
<div class="calculationAnswer noround">
Predicted free extrusion diameter = <input type="text" id="PrintSetupPredDiaAnswer" class="smallInput" /> mm<br />
Suggested layer height = <input type="text" id="PrintSetupSugLHDAnswer" class="smallInput" /> mm<br />
</div>
<div class="calculation">
<p>
Free extrusion diameter
<input type="text" id="PrintSetupDia" class="PrintSetup2 smallInput" value="0.58" /> mm
</p>
<p>
Layer height
<input type="text" id="PrintSetupLH" class="PrintSetup2 smallInput" value="0.3" /> mm
</p>
<p>
<strong>W</strong>idth <strong>O</strong>ver <strong>H</strong>eight
<input type="text" id="PrintSetupWOH" class="PrintSetup2 smallInput" value="2.2" />
</p>
<ul>
<li>Multiplier, gives you line width after multiplying layer height.
<li>Affects print detail.
<li>Affects maximal overhang angle possible.
<li>WOH smaller than 2.0 produces weak parts.
<li>WOH bigger than 3 decreases the detail of printed part, because of thick line.
</ul>
</div>
<div class="notification" id="smallWOH"><p><strong>Warning!</strong> WOH is under 2.0, that will cause your parts to be weak and easy to break.</p></div>
<div class="notification" id="tooLittle"><p><strong>Warning!</strong> You'll have troubles printing infill because your extruded line cross section area is smaller than minimal extrusion cross section area for stable extrusion. Try bigger layer height or bigger WOH. If you need to use this, set up 100% infill. Ideally get a smaller nozzle for this job ;-)</p></div>
<div class="notification" id="tooMuch"><p><strong>Warning!</strong> You will be extruding too much from your nozzle. It will make the unsupported line (infill) soggy and cause many other problems. Try smaller layer height or smaller WOH.</p></div>
<div class="calculationAnswer">
Free extrusion cross section area = <input type="text" id="PrintSetupFreeExt" class="smallInput"/> mm^2<br/>
Minimal extrusion cross section area for stable extrusion = <input type="text" id="PrintSetupMinExt" class="smallInput"/> mm^2<br/>
Line width = <input type="text" id="PrintSetupLW"class="smallInput" /> mm<br/>
Extruded line cross section area = <input type="text" id="PrintSetupExtLine" class="smallInput" /> mm^2<br/>
Suggested bridge flow-rate multiplier = <input type="text" id="PrintSetupBridge" class="smallInput"/><br/>
Predicted smallest feature printable in XY = <input type="text" id="PrintSetupSmallest" class="smallInput" /> mm<br/>
Predicted maximim overhang angle = <input type="text" id="PrintSetupAngle" class="smallInput" /> °<br/>
</div>
<script type="text/javascript">
function roundNumber(num, dec) {
var result = Math.round(num*Math.pow(10,dec))/Math.pow(10,dec);
return result;
}
function PrintSetup1(){
suggest = new Array(0,1,2);
suggest[50] = 0.3;
suggest[25] = 0.15;
suggest[35] = 0.2;
suggest[75] = 0.4;
suggest[40] = 0.25;
suggest[100] = 0.5;
suggest[15] = 0.1;
var predictedFreeExt, suggestedLH;
predictedFreeExt = parseFloat($("#PrintSetupNozzle").val())+0.08;
suggestedLH = suggest[parseInt( parseFloat( $("#PrintSetupNozzle").val() ) *100)];
$("#PrintSetupPredDiaAnswer").val(predictedFreeExt);
$("#PrintSetupSugLHDAnswer").val(suggestedLH);
$("#PrintSetupDia").val(predictedFreeExt);
$("#PrintSetupLH").val(suggestedLH);
PrintSetup2();
}
$(".PrintSetup1").change(function () {
PrintSetup1();
});
PrintSetup1();
function PrintSetup2(){
var extDia, LH, WOH;
extDia = parseFloat($("#PrintSetupDia").val());
LH = parseFloat($("#PrintSetupLH").val());
WOH = parseFloat($("#PrintSetupWOH").val());
var freeExt;
freeExt = (extDia/2)*(extDia/2)*Math.PI;
$("#PrintSetupFreeExt").val(roundNumber(freeExt,2));
var minExt;
minExt = freeExt*0.5;
$("#PrintSetupMinExt").val(roundNumber(minExt,2));
var lineWidth;
lineWidth = LH*WOH;
$("#PrintSetupLW").val(lineWidth);
var extLine;
extLine = lineWidth * LH;
$("#PrintSetupExtLine").val(extLine);
if(extLine>=freeExt){
$("#tooMuch").show();
}else{
$("#tooMuch").hide();
}
if(minExt>=extLine){
$("#tooLittle").show();
}else{
$("#tooLittle").hide();
}
if(2.0>WOH){
$("#smallWOH").show();
}else{
$("#smallWOH").hide();
}
var bridgeMult;
bridgeMult = (freeExt*0.7)/extLine;
$("#PrintSetupBridge").val(roundNumber(bridgeMult,2));
var smallest;
smallest = lineWidth/2;
$("#PrintSetupSmallest").val(roundNumber(smallest,1));
var angle,angleHelp;
angleHelp = Math.sqrt((lineWidth/2)*(lineWidth/2)+LH*LH);
angleHelp = Math.asin((lineWidth/2)/angleHelp);
angle = angleHelp * (180/Math.PI);
$("#PrintSetupAngle").val(roundNumber(angle,1));
}
$(".PrintSetup2").change(function () {
PrintSetup2();
});
PrintSetup2();
</script>
<hr width="30%" />
<a name="MotorStuff" />
<h2>Firmware settings</h2>
<a name="MotorStuffSPML" />
<div class="calculationHeader">
<h3>Steps per mm - leadscrew</h3></div>
<div class="calculation">
The result is theoreticaly right, but you might still need to calibrate your machine to get finest detail. This is good start tho.
<p>
Motor step angle
<select id="StepPerMMLeadscrewStepSize" class="MotorStuffSPML">
<option value="1.8">1.8°</option>
<option value="0.9">0.9°</option>
<option value="7.5">7.5°</option>
</select>
</p>
<p>
Driver microstepping
<select id="StepPerMMLeadscrewMicroStepping" class="MotorStuffSPML">
<option value="1">1 - full step</option>
<option value="2">1/2 - half step</option>
<option value="4">1/4 - quater step</option>
<option value="8">1/8 - uStep (mostly Gen6)</option>
<option value="16" selected>1/16 - uStep (mostly Pololu)</option>
</select>
</p>
<p>
Leadscrew pitch
<select id="StepPerMMLeadscrewType" class="MotorStuffSPML">
<option value="1.25">M8 - metric (1.25mm per rotation)</option>
<option value="1">M6 - metric (1mm per rotation)</option>
<option value="1.41111">5/16"-18 imperial coarse (1.41111mm per rotation)</option>
<option value="1.5875">1/4"-16 Acme (1.5875mm per rotation)</option>
</select>
</p>
<p>
Gear ratio
<input type="text" id="StepPerMMLeadscrewPulleyMotor" value="1" size="3" class="MotorStuffSPML" /> :
<input type="text" id="StepPerMMLeadscrewPulleyLeadscrew" value="1" size="3" class="MotorStuffSPML" /> <br />(Motor pulley teeth count : Leadscrew pulley teeth count)
(1:1 for direct drive - Prusa)
</p>
<p>
For example:
<b>2560 = (((360/1.8) * (1/(1/16)))/1.25h)*(1 / 1)</b>
</p>
</div>
<div class="notification"><p>Set it in configuration.h in your firmware.</p></div>
<div class="calculationAnswer">
Steps per mm value is
<input type="text" name="StepPerMMLeadscrewAnswer" id="StepPerMMLeadscrewAnswer" /><br />
</div>
<script type="text/javascript">
function MotorStuffSPML(){
var StepSize, Microstepping, LeadscrewPitch, MotorPulley, LeadscrewPulley;
StepSize = parseFloat($("#StepPerMMLeadscrewStepSize").val());
Microstepping = parseInt($("#StepPerMMLeadscrewMicroStepping").val());
LeadscrewPitch = parseFloat($("#StepPerMMLeadscrewType").val());
MotorPulley = parseInt($("#StepPerMMLeadscrewPulleyMotor").val());
LeadscrewPulley = parseInt($("#StepPerMMLeadscrewPulleyLeadscrew").val());
var StepsPerMM;
StepsPerMM = (((360/StepSize)*Microstepping)/LeadscrewPitch)*(LeadscrewPulley/MotorPulley);
$("#StepPerMMLeadscrewAnswer").val(StepsPerMM);
}
$(".MotorStuffSPML").change(function () {
MotorStuffSPML();
});
MotorStuffSPML();
</script>
<hr width="30%" />
<a name="MotorStuffSPMB" />
<div class="calculationHeader">
<h3>Steps per mm - belt</h3> </div>
<div class="calculation">
The result is theoreticaly right, but you might still need to calibrate your machine to get finest detail. This is good start tho.
<p>
Motor step angle
<select id="StepPerMMBeltStepSize" class="MotorStuffSPMB">
<option value="1.8">1.8°</option>
<option value="0.9">0.9°</option>
<option value="7.5">7.5°</option>
</select>
</p>
<p>
Driver microstepping
<select id="StepPerMMBeltMicroStepping" class="MotorStuffSPMB">
<option value="1">1 - full step</option>
<option value="2">1/2 - half step</option>
<option value="4">1/4 - quater step</option>
<option value="8">1/8 - uStep (mostly Gen6)</option>
<option value="16" selected>1/16 - uStep (mostly Pololu)</option>
</select>
</p>
<p>
Belt pitch
<select id="StepPerMMBeltPitch" class="MotorStuffSPMB">
<option value="2.0">2mm Pitch (GT2 mainly)</option>
<option value="2.03">MXL belt (2.03mm)</option>
<option value="2.5">T2.5 (2.5mm)</option>
<option value="3">3mm Pitch (GT2, HTD)</option>
<option value="5">5mm Pitch (T5, GT2, HTD)</option>
<option value="5.08">0.2" XL belt (5.08mm)</option>
</select>
</p>
<p>
Tooth count
<input type="text" id="StepPerMMBeltToothCount" value="8" class="MotorStuffSPMB" />
</p>
<p>
<b>Steps per mm = ((360°/Motor step size°) * (1/Driver microstepping))/(Belt pitch * Tooth count)</b><br />
For example:<br />
<b>80 = ((360°/1.8°) * (1/(1/16)))/(5 * 8)</b>
</p></div>
<div class="notification"><p>Set it in configuration.h in your firmware.</p></div>
<div class="calculationAnswer">
Steps per mm value =
<input type="text" name="StepPerMMBeltAnswer" id="StepPerMMBeltAnswer" /><br />
</div>
<script type="text/javascript">
function MotorStuffSPMB(){
var StepSize, Microstepping, BeltPitch, ToothCount;
StepSize = parseFloat($("#StepPerMMBeltStepSize").val());
Microstepping = parseInt($("#StepPerMMBeltMicroStepping").val());
BeltPitch = parseFloat($("#StepPerMMBeltPitch").val());
ToothCount = parseInt($("#StepPerMMBeltToothCount").val());
var StepsPerMM;
StepsPerMM = ((360/StepSize)*Microstepping)/(BeltPitch*ToothCount);
$("#StepPerMMBeltAnswer").val(StepsPerMM);
}
$(".MotorStuffSPMB").change(function () {
MotorStuffSPMB();
});
MotorStuffSPMB();
</script><hr width="30%" />
<a name="ExtrusionSF40" />
<div class="calculationHeader">
<h3>Slic3r,SFACT, SF40+ volumetric calibration</h3>
</div>
<div class="calculation">
Article will be published on josefprusa.cz.
<p>
Extrude button clicked times
<input type="text" id="ExtrusionSF40Clicked" class="ExtrusionSF40" value="39" />
</p>
<p>
Extruded length per click in host
<input type="text" id="ExtrusionSF40ExtrudedLenght" class="ExtrusionSF40" value="15" />
</p>
<p>
Actual e_steps_per_mm
<input type="text" id="ExtrusionSF40Stepspermm" class="ExtrusionSF40" value="50" /> (50 is same as in the linked article)
</p>
<p>
Marked length on filament in mm
<input type="text" id="ExtrusionSF40MarkedLenght" class="ExtrusionSF40" value="30" /> (30 is same as in the linked article)
</p>
<p>
<b>Volumetric e_step_per_mm = ( Extrude button clicked times * Extruded length per click in host * Actual e_steps_per_mm ) / Marked length on filament in mm
</b>
</p>
</div>
<div class="calculationAnswer">Volumetric e_step_per_mm = <input type="text" id="ExtrusionSF40Answer" />
</div>
<script type="text/javascript">
function ExtrusionSF40(){
var ExtrusionSF40Clicked, ExtrusionSF40ExtrudedLenght, ExtrusionSF40Stepspermm, ExtrusionSF40MarkedLenght;
ExtrusionSF40Clicked = parseFloat($("#ExtrusionSF40Clicked").val());
ExtrusionSF40ExtrudedLenght = parseFloat($("#ExtrusionSF40ExtrudedLenght").val());
ExtrusionSF40Stepspermm = parseFloat($("#ExtrusionSF40Stepspermm").val());
ExtrusionSF40MarkedLenght = parseFloat($("#ExtrusionSF40MarkedLenght").val());
var Volumetricsteps;
Volumetricsteps = (ExtrusionSF40Clicked*ExtrusionSF40ExtrudedLenght*ExtrusionSF40Stepspermm)/ExtrusionSF40MarkedLenght;
$("#ExtrusionSF40Answer").val(Volumetricsteps);
}
$(".ExtrusionSF40").change(function () {
ExtrusionSF40();
});
ExtrusionSF40();
</script>
<hr width="30%" />
<a name="TempLookup" />
<div class="calculationHeader">
<h3>Thermistor lookup table generator</h3>
</div>
<div class="calculation">
Kindly done by <a href="http://nathan7.eu">nathan7</a>. This script allows you to create lookup table for thermistors for use on Arduino based electronics. Take the data from the thermistor datasheet. If you don't have a clue what datasheet is, ask someone on IRC to generate the lookup table for you.
<p>
r0
<input type="text" id="TempLookupr0" class="TempLookup" value="100000" />
</p>
<p>
t0
<input type="text" id="TempLookupt0" class="TempLookup" value="25" />
</p>
<p>
Beta
<input type="text" id="TempLookupBeta" class="TempLookup" value="4066" />
</p>
<p>
r1
<input type="text" id="TempLookupr1" class="TempLookup" value="0" />
</p>
<p>
r2
<input type="text" id="TempLookupr2" class="TempLookup" value="4700" />
</p>
<p>
Number of samples
<select id="TempLookupSamples" class="TempLookup">
<option value="20">20</option>
<option value="30">30</option>
<option value="50">50</option>
<option value="100">100</option>
</select>
</p>
</div>
<div class="calculationAnswer">
Thermistor lookup table
<textarea id="TempLookupAnswer" style="width:95%;height:200px;">
</textarea>
</div>
<script type="text/javascript">
function TempLookup(){
arg=[];
arg.push(parseInt($("#TempLookupr0").val()));
arg.push(parseInt($("#TempLookupt0").val()));
arg.push(parseInt($("#TempLookupBeta").val()));
arg.push(parseInt($("#TempLookupr1").val()));
arg.push(parseInt($("#TempLookupr2").val()));
arg.push(parseInt($("#TempLookupSamples").val()));
$('#TempLookupAnswer').val(createTemperatureLookup(arg));
}
$(".TempLookup").change(function () {
TempLookup();
});
TempLookup();
</script>
<hr width="30%" /> <a name="MotorStuffPrecise" />
<div class="calculationHeader">
<h3>Tweaking calibration</h3>
</div>
<div class="calculation">
If you move axis in sw for 10mm (demanded length) and actual machine moves for only 8mm, you need to do this calibration. This will calculate new steps per mm value for the axis we calibrate.
<p>
Demanded move length in mm
<input type="text" id="MotorStuffPreciseD" class="MotorStuffPrecise" value="100" />
</p>
<p>
Actual move length in mm
<input type="text" id="MotorStuffPreciseA" class="MotorStuffPrecise" value="95" />
</p>
<p>
Actual steps per mm
<input type="text" id="MotorStuffPreciseSteps" class="MotorStuffPrecise" value="20" />
</p>
<p>
<b>New steps per mm = (Demanded move length in mm / Actual move length in mm) * Actual steps per mm</b>
</p>
</div>
<div class="calculationAnswer">
New steps per mm value is <input type="text" id="MotorStuffPreciseAnswer" />
</div>
<script type="text/javascript">
function MotorStuffPrecise(){
var MotorStuffPreciseD, MotorStuffPreciseA, MotorStuffPreciseSteps;
MotorStuffPreciseD = parseFloat($("#MotorStuffPreciseD").val());
MotorStuffPreciseA = parseFloat($("#MotorStuffPreciseA").val());
MotorStuffPreciseSteps = parseFloat($("#MotorStuffPreciseSteps").val());
var NewSteps;
NewSteps = (MotorStuffPreciseD/MotorStuffPreciseA)*MotorStuffPreciseSteps;
$("#MotorStuffPreciseAnswer").val(NewSteps);
}
$(".MotorStuffPrecise").change(function () {
MotorStuffPrecise();
});
MotorStuffPrecise();
</script>
<hr width="30%" />
<a name="Convertors" />
<h2>Convertors</h2>
<a name="ConvertorsMMToF" />
<div class="calculationHeader">
<h3>mm/s to gcode feedrate</h3></div>
<div class="calculation">
The standard feedrate as used within gcode is in millimeters per minute. For example:<br />
<br />
<code>G1 X90.6 Y13.8 E22.4 <b>F3000</b></code><br />
<br />
gives a feedrate of 3000 millimeters per minute.
The calculator below will convert the millimeters per second speed used in Skeinforge to the feedrate used in gcode.
<p>
mm/s
<input type="text" id="ConvertorsMMToFmms" value="50" />
</p>
<p>
<b>Feedrate = (mm/s)*60</b>
</p>
</div>
<div class="calculationAnswer">
Feedrate =
<input type="text" name="ConvertorsMMToFAnswer" id="ConvertorsMMToFAnswer" />
</div>
<script type="text/javascript">
function ConvertorsMMToF(){
var mms;
mms = parseFloat($("#ConvertorsMMToFmms").val());
var Feedrate;
Feedrate = mms*60;
$("#ConvertorsMMToFAnswer").val(Feedrate);
}
$("#ConvertorsMMToFmms").change(function () {
ConvertorsMMToF();
});
ConvertorsMMToF();
</script>
<hr width="30%" />
<a name="ConvertorsFToMM" />
<div class="calculationHeader">
<h3>gcode feedrate to mm/s</h3></div>
<div class="calculation">
The standard feedrate as used within gcode is in millimeters per minute. For example:<br />
<br />
<code>G1 X90.6 Y13.8 E22.4 <b>F3000</b></code><br />
<br />
gives a feedrate of 3000 millimeters per minute.
The calculator below will convert the feedrate used in gcode to the millimeters per second speed used in Skeinforge.
<p>
Feedrate
<input type="text" id="ConvertorsFToMMFeedrate" value="3000" />
</p>
<p>
<b>mm/s = Feedrate/60</b>
</p>
</div>
<div class="calculationAnswer">
Speed =
<input type="text" id="ConvertorsFToMMAnswer" /> mm/s
</div>
<script type="text/javascript">
function ConvertorsFToMM(){
var Feedrate;
Feedrate = parseFloat($("#ConvertorsFToMMFeedrate").val());
var mms;
mms = Feedrate/60;
$("#ConvertorsFToMMAnswer").val(mms);
}
$("#ConvertorsFToMMFeedrate").change(function () {
ConvertorsFToMM();
});
ConvertorsFToMM();
</script>
<hr width="30%" />
<a name="Extrusion" />
<h2>Extrusion</h2>
<a name="ExtrusionLC" />
<div class="calculationHeader">
<h3>Flow rate multiplier for layer height change</h3>
</div>
<div class="notification"><p><strong>WARNING!</strong> For non volumetric printing only (ancient history). If you use Slic3r, don't use this. Slic3r does it for you automatically.</p></div>
<div class="calculation">
I assume the the slice of the extruded filament has rectangular shape, that means that your solid layer is solid layer.
<br />
This will still only guesstimate what your end flow should be.
<br />
Take this multiplier and multiply with it your flow you have now (RPMs, E_steps_per_mm or the flow in skeinforge)
<p>
Actual layer height in mm
<input type="text" id="ExtrusionLCAH" class="ExtrusionLC" value="0.5" />
</p>
<p>
New layer height in mm
<input type="text" id="ExtrusionLCNH" class="ExtrusionLC" value="0.3" />
</p>
<p>
<b>Flow multiplier = New layer height in mm / Actual layer height in mm</b>
</p>
</div>
<div class="calculationAnswer">
Flow multiplier =
<input type="text" name="ExtrusionLCAnswer" id="ExtrusionLCAnswer" />
</div>
<script type="text/javascript">
function ExtrusionLC(){
var ExtrusionLCAH, ExtrusionLCWOH, ExtrusionLCNH;
ExtrusionLCAH = parseFloat($("#ExtrusionLCAH").val());
ExtrusionLCNH = parseFloat($("#ExtrusionLCNH").val());
var FlowRateMultiplier;
FlowRateMultiplier = (ExtrusionLCNH)/(ExtrusionLCAH);
$("#ExtrusionLCAnswer").val(FlowRateMultiplier);
}
$(".ExtrusionLC").change(function () {
ExtrusionLC();
});
ExtrusionLC();
</script>
<br/>
<div id="footer">Developed and maintained by Josef Prusa. Thanks MaxBots and nathan7 for some additions. <br/>Using <a href="http://jquery.com/">jQuery</a></div>
</div>
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-192499-17']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
</body>
</html>