mirror of
https://github.com/teachingtechYT/teachingtechYT.github.io.git
synced 2024-08-30 18:23:26 +00:00
Add intro and delta support
This commit is contained in:
@ -7,6 +7,7 @@ body {
|
||||
|
||||
h1 {
|
||||
margin: 20px 20px;
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
h2 {
|
||||
@ -36,6 +37,16 @@ input {
|
||||
font-size: 1.2em;
|
||||
}
|
||||
|
||||
input[type="checkbox" i] {
|
||||
/* Double-sized Checkboxes */
|
||||
-ms-transform: scale(2); /* IE */
|
||||
-moz-transform: scale(2); /* FF */
|
||||
-webkit-transform: scale(2); /* Safari and Chrome */
|
||||
-o-transform: scale(2); /* Opera */
|
||||
transform: scale(2);
|
||||
margin: 20px;
|
||||
}
|
||||
|
||||
select {
|
||||
font-size: 1.2em;
|
||||
}
|
||||
@ -69,6 +80,27 @@ a {
|
||||
margin: 0 20px 20px 20px;
|
||||
}
|
||||
|
||||
#header {
|
||||
height: 4.0em;
|
||||
}
|
||||
|
||||
#donate {
|
||||
display: inline-block;
|
||||
vertical-align: middle;
|
||||
float: right;
|
||||
padding: 20px;
|
||||
}
|
||||
|
||||
#donate img {
|
||||
display: inline-block;
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
.icon {
|
||||
max-width: 50px;
|
||||
max-height: 50px;
|
||||
}
|
||||
|
||||
#tabs {
|
||||
margin: 20px 0;
|
||||
}
|
||||
|
BIN
img/patreon.png
Normal file
BIN
img/patreon.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 10 KiB |
BIN
img/paypal.png
Normal file
BIN
img/paypal.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 11 KiB |
26
index.html
26
index.html
@ -16,13 +16,12 @@
|
||||
<script src="js/gcodeprocessing.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<h1>Teaching Tech 3D Printer Calibration</h1>
|
||||
<p>This page serves as a companion for the following video: <a href="https://www.youtube.com/watch?v=" target="_blank"></a></p>
|
||||
<p>It aims to make calibrating your 3D printer as easy as possible. If you find it helps you and you would like to say thank you, here is a donation link: <a href="paypal.me/testlawgicau" target="blank">PayPal.me</a></p>
|
||||
<p>Special thanks to my <a href="http://www.patreon.com/teachingtech" target="_blank">Patrons</a> for suggesting this video and helping define the contents.</p>
|
||||
<p>Watch the video and then work through each tab. I have created a custom gcode generator to assist in testing towers. Every attempt has been made to ensure this is safe but ultimately there always is risk in running presliced gcode from the internet. Preview the gcode in your slicer or <a href="http://gcode.ws/" target="_blank">Gcode.ws</a> and <span class="warning">print at your own risk.</span></p>
|
||||
<div id="header">
|
||||
<h1>Teaching Tech 3D Printer Calibration</h1><span id="donate">Useful? Considering supporting me: <a href="https://paypal.me/testlawgicau" target="blank"><img class="icon" src="img/paypal.png" /></a><a href="http://www.patreon.com/teachingtech" target="blank"><img class="icon" src="img/patreon.png" /></a></span>
|
||||
</div>
|
||||
<div id="tabs">
|
||||
<ul>
|
||||
<li><a href="#intro">Introduction</a></li>
|
||||
<li><a href="#frame">Frame Check</a></li>
|
||||
<li><a href="#pid">PID Autotune</a></li>
|
||||
<li><a href="#baseline">Baseline Print</a></li>
|
||||
@ -34,6 +33,14 @@
|
||||
<li><a href="#linadv">Linear Advance</a></li>
|
||||
</ul>
|
||||
|
||||
<div id="intro">
|
||||
<h2>Introduction</h2>
|
||||
<p>This page serves as a companion for the following video: <a href="https://www.youtube.com/watch?v=" target="_blank"></a></p>
|
||||
<p>It aims to make calibrating your 3D printer as easy as possible. If you find it helps you and you would like to say thank you, here is a donation link: <a href="https://paypal.me/testlawgicau" target="blank">PayPal.me</a></p>
|
||||
<p>Special thanks to my <a href="http://www.patreon.com/teachingtech" target="_blank">Patrons</a> for suggesting this video and helping define the contents.</p>
|
||||
<p>Watch the video and then work through each tab. I have created a custom gcode generator to assist in testing towers. Every attempt has been made to ensure this is safe but ultimately there always is risk in running presliced gcode from the internet. Preview the gcode in your slicer or <a href="http://gcode.ws/" target="_blank">Gcode.ws</a> and <span class="warning">print at your own risk.</span></p>
|
||||
</div>
|
||||
|
||||
<div id="frame">
|
||||
<h2>Frame Check</h2>
|
||||
<p>Before we do anything else, we need to ensure there are no underlying problems with the frame. It would be easy to use the techniques elsewhere on this page to try and fix problems that were actually caused by a problem with the physical components, so we will eliminate this first.</p>
|
||||
@ -50,6 +57,8 @@
|
||||
<a href="#" data-featherlight="img/_bed-levelling-guide.jpg"><img class="thumb" src="img/_bed-levelling-guide.jpg" /></a>
|
||||
<h4>PTFE Tube</h4>
|
||||
<p>If your printer has PTFE tube, such as a bowden tube setup for the extruder/hot end, it is essential to make the tube is fully inserted and seated in the coupler. Also ensure the coupler is properly tightened. You may wish to use a small retaining clip on the coupler to prevent the tube working loose: <a href="https://www.thingiverse.com/thing:4268489" target="_blank">Creality PTFE clip by morfidesign</a>.</p>
|
||||
<h4>Nozzle</h4>
|
||||
<p>It is worth heating up te nozzle and pushing some filament through to see if it is exiting the nozzle properly. If the diameter is inconsistent or the extruded plastic shoots to one side, it may indicate a partial blockage in the nozzle that will be a pain in the future.</p>
|
||||
</div>
|
||||
|
||||
<div id="pid">
|
||||
@ -74,9 +83,10 @@
|
||||
<p>The aim of this print is to establish a baseline for comparison with later tests. The form below will create a customised version of the <a href="https://www.thingiverse.com/thing:1278865" target="_blank">XYZ 20mm calibration cube by iDig3Dprinting</a>. It is fast to print and gives a good indication if there is any fundamental problem with the printer.</p>
|
||||
<form name="baselineForm" id="baselineForm" onsubmit="return:false;">
|
||||
<h4>Bed dimensions</h4>
|
||||
<p>Inputting the correct number will attempt to move the print into the centre of the bed.</p>
|
||||
<label>Bed X dimension (mm): <input type="number" name="bedx" value="100" min="100" max="600" step="1"></label>
|
||||
<label>Bed Y dimension (mm): <input type="number" name="bedy" value="100" min="100" max="600" step="2"></label><br />
|
||||
<p>Inputting the correct number will attempt to move the print into the centre of the bed. In the centre button is checked, the bed size is irrelevant. Please check the gcode to ensure it will fit on your bed.</p>
|
||||
<label>0,0 at centre of bed (Delta):<input name="centre" type="checkbox" onchange="toggle(this.checked, '#baselineXY')" value="centre"></label>
|
||||
<span id="baselineXY"><label>Bed X dimension (mm): <input type="number" name="bedx" value="100" min="100" max="600" step="1"></label>
|
||||
<label>Bed Y dimension (mm): <input type="number" name="bedy" value="100" min="100" max="600" step="2"></label><br /></span>
|
||||
<h4>Temperatures</h4>
|
||||
<p>For the hot end and bed respectively, typical PLA temperatures are 200 and 60, PETG 235 and 80, ABS 250 and 100, TPU 230 and 5 (effectively off).</p>
|
||||
<label>Hot end temperature (deg C): <input type="number" name="hotendtemp" value="200" min="160" max="450"></label>
|
||||
|
@ -13,9 +13,18 @@ function downloadFile(filename, contents) {
|
||||
}
|
||||
}
|
||||
|
||||
function toggle(ticked, target){
|
||||
if(ticked == true){
|
||||
$(target).hide();
|
||||
} else {
|
||||
$(target).show();
|
||||
}
|
||||
}
|
||||
|
||||
function processBaseline(){
|
||||
var hotendTemp = document.baselineForm.hotendtemp.value;
|
||||
var bedTemp = document.baselineForm.bedtemp.value;
|
||||
var centre = document.baselineForm.centre.checked;
|
||||
var bedX = Math.round((document.baselineForm.bedx.value-100)/2);
|
||||
var bedY = Math.round((document.baselineForm.bedy.value-100)/2);
|
||||
var retDist = document.baselineForm.retdist.value;
|
||||
@ -35,26 +44,47 @@ function processBaseline(){
|
||||
baseline = baseline.replace(/G1 E-5.0000 F2400/g, "G1 E-"+retDist+" F"+retSpeed);
|
||||
baseline = baseline.replace(/G1 E0.0000 F2400/g, "G1 E0.0000 F"+retSpeed);
|
||||
|
||||
if(bedX > 0){
|
||||
if(centre == true){
|
||||
var baselineArray = baseline.split(/\n/g);
|
||||
var regexp = /X\d+/;
|
||||
baselineArray.forEach(function(index, item){
|
||||
if(baselineArray[item].search(/X/) > -1){
|
||||
var value = parseInt(baselineArray[item].match(/X\d+/)[0].substring(1)) + bedX
|
||||
baselineArray[item] = baselineArray[item].replace(/X\d+/, "X"+String(value));
|
||||
var value = parseInt(baselineArray[item].match(regexp)[0].substring(1)) - 50;
|
||||
baselineArray[item] = baselineArray[item].replace(regexp, "X"+String(value));
|
||||
}
|
||||
});
|
||||
baseline = baselineArray.join("\n");
|
||||
}
|
||||
if(bedY > 0){
|
||||
var baselineArray = baseline.split(/\n/g);
|
||||
var regexp = /Y\d+/;
|
||||
baselineArray.forEach(function(index, item){
|
||||
if(baselineArray[item].search(/Y/) > -1){
|
||||
var value = parseInt(baselineArray[item].match(/Y\d+/)[0].substring(1)) + bedY
|
||||
baselineArray[item] = baselineArray[item].replace(/Y\d+/, "Y"+String(value))
|
||||
var value = parseInt(baselineArray[item].match(regexp)[0].substring(1)) - 50;
|
||||
baselineArray[item] = baselineArray[item].replace(regexp, "Y"+String(value))
|
||||
}
|
||||
});
|
||||
baseline = baselineArray.join("\n");
|
||||
}
|
||||
} else {
|
||||
if(bedX > 0){
|
||||
var baselineArray = baseline.split(/\n/g);
|
||||
var regexp = /X\d+/;
|
||||
baselineArray.forEach(function(index, item){
|
||||
if(baselineArray[item].search(/X/) > -1){
|
||||
var value = parseInt(baselineArray[item].match(regexp)[0].substring(1)) + bedX;
|
||||
baselineArray[item] = baselineArray[item].replace(regexp, "X"+String(value));
|
||||
}
|
||||
});
|
||||
baseline = baselineArray.join("\n");
|
||||
}
|
||||
if(bedY > 0){
|
||||
var baselineArray = baseline.split(/\n/g);
|
||||
var regexp = /Y\d+/;
|
||||
baselineArray.forEach(function(index, item){
|
||||
if(baselineArray[item].search(/Y/) > -1){
|
||||
var value = parseInt(baselineArray[item].match(regexp)[0].substring(1)) + bedY;
|
||||
baselineArray[item] = baselineArray[item].replace(regexp, "Y"+String(value))
|
||||
}
|
||||
});
|
||||
baseline = baselineArray.join("\n");
|
||||
}
|
||||
}
|
||||
downloadFile('baseline.gcode', baseline);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user