Software Open Access

symbiolab/Vitaprint_calibration: Vitaprint calibration v1.0

bostjanvihar; Luka Banovic


JSON Export

{
  "files": [
    {
      "links": {
        "self": "https://zenodo.org/api/files/d375274b-01ec-4c82-ac67-a93934006356/symbiolab/Vitaprint_calibration-vita_cal_v1.0.zip"
      }, 
      "checksum": "md5:5a204b17f53e9de36a72c84bdfeb7961", 
      "bucket": "d375274b-01ec-4c82-ac67-a93934006356", 
      "key": "symbiolab/Vitaprint_calibration-vita_cal_v1.0.zip", 
      "type": "zip", 
      "size": 21098
    }
  ], 
  "owners": [
    32630
  ], 
  "doi": "10.5281/zenodo.841394", 
  "stats": {
    "version_unique_downloads": 10.0, 
    "unique_views": 64.0, 
    "views": 65.0, 
    "version_views": 65.0, 
    "unique_downloads": 10.0, 
    "version_unique_views": 64.0, 
    "volume": 232078.0, 
    "version_downloads": 11.0, 
    "downloads": 11.0, 
    "version_volume": 232078.0
  }, 
  "links": {
    "doi": "https://doi.org/10.5281/zenodo.841394", 
    "conceptdoi": "https://doi.org/10.5281/zenodo.841393", 
    "bucket": "https://zenodo.org/api/files/d375274b-01ec-4c82-ac67-a93934006356", 
    "conceptbadge": "https://zenodo.org/badge/doi/10.5281/zenodo.841393.svg", 
    "html": "https://zenodo.org/record/841394", 
    "latest_html": "https://zenodo.org/record/841394", 
    "badge": "https://zenodo.org/badge/doi/10.5281/zenodo.841394.svg", 
    "latest": "https://zenodo.org/api/records/841394"
  }, 
  "conceptdoi": "10.5281/zenodo.841393", 
  "created": "2017-08-11T04:49:33.114775+00:00", 
  "updated": "2020-01-25T07:21:19.096555+00:00", 
  "conceptrecid": "841393", 
  "revision": 5, 
  "id": 841394, 
  "metadata": {
    "access_right_category": "success", 
    "doi": "10.5281/zenodo.841394", 
    "description": "General calibration of the Vitaprint extruder\nIntroduction\n<p>Being tansferrable, the Vitaprint extruder is capable of printing structures, sliced by various free and open software, such as Slic3r or Cura. To allow this, however, certain settings need to be adjusted.</p>\nTable of Contents\n<ul>\n<li><a href=\"#CALC\">Basic extrusion calculation</a></li>\n<li><a href=\"#DRAWING\">Extrusion adjustment by drawing</a><ul>\n<li><a href=\"#intro\">Introduction</a></li>\n<li><a href=\"#mat\">Materials</a></li>\n<li><a href=\"#proc\">Procedure</a></li>\n</ul>\n</li>\n</ul>\nBasic extrusion calculation &lt;a id=\"CALC\"&gt;&lt;/a&gt;\n<p>The first approximation of extrusion settings can be calculated theoretically, based on some simple assumptions. Due to its mechanical, piston driven nature, extrusion can be precisely controlled by motorized displacement of the piston (rotation vs thread, both of which is specified) and depends on the difference between the inner diameters of the syringe r&lt;sub&gt;s&lt;/sub&gt; and the nozzle r&lt;sub&gt;n&lt;/sub&gt;. If we assume non-elastic behavior and laminar flow, the displaced volume in the syringe should equal the extruded volume through the nozzle. If the printed stroke takes the cross-sectional shape of the nozzle, the length of the printed path can be calculated as follows:</p>\n<p>&lt;img src=\"http://latex.codecogs.com/gif.latex?E%20%3D%20%5Cfrac%7Br_n%5E2%7D%7Br_s%5E2%7D%5Ccdot%20l_%7Bpath%7D\" alt=\"table\"&gt;</p>\n<p>Where E equals the extrusion value (= displacement of the piston) and l&lt;sub&gt;path&lt;/sub&gt; the length of the printed filament. This is useful for determining the amount of extrusion for custom designed geometries. When using slicing software Cura, the calculation differs somewhat, as certain parameters are calculated differently. We have determined an experimental nozzle width and correction factor for the use of a 5ml syringe with a G21 needle (inner diameter 0.4mm). The calculation can be found in the accompanied xls file titled \"vitaprint_cura_filament_calc\".</p>\nExtrusion adjustment by drawing &lt;a id=\"DRAWING\"&gt;&lt;/a&gt;\nIntroduction &lt;a id=\"intro\"&gt;&lt;/a&gt;\n<p>Certain simplifications in the calculation cause small, yet significant discrepancies between the theoretical and real system. Therefore additional tuning is required. To do this, we developed a simple \"pen and paper\" protocol, to evaluate the characteristics of the printed path. It can be used to adjust extrusion, feedrate, layer height and material polymerization time upon deposition.</p>\n<p></p>\nMaterials &lt;a id=\"mat\"&gt;&lt;/a&gt;\n<ul>\n<li>Basic Vitaprint set-up</li>\n<li>5ml syringe (optional with luer lock)</li>\n<li>blunt-end needle (e.g. G21 with 0.4mm inner diameter)</li>\n<li>printing material (e.g. gelatin-alginate composite, see Vitaprint_methods) with colored dye (e.g. Pelikan 4001 blue ink)</li>\n<li>sheet of thick white paper</li>\n<li>adhesive tape</li>\n</ul>\nProcedure &lt;a id=\"proc\"&gt;&lt;/a&gt;\n<p>A syringe containing the desired material with added coloring is mounted on the extruder.</p>\nStep 1 - Rough calibration of material extrusion, where E determines the position change of the piston in mm.\n<ul>\n<li>RUN \"01_calE1.gcode\"</li>\n<li>EVALUATE created sample (Is it a full line? Is the line thickness even across the length? <em>optional - use stereomicroscope/magnifying glass</em>)</li>\n<li>MODIFY \"01_calE1.gcode\" and repeat</li>\n<li>CHOOSE the best value for E and 4 values for F and modify \"02_calE-F.gcode\"</li>\n</ul>\nStep 2 - Fine calibration F for optimum E+F properties\n<ul>\n<li>RUN \"02_calE-F.gcode\"</li>\n<li>REPEAT \"STEP 2\", choose optimum value for F</li>\n<li>Choose best values for E + F and modify \"03_cal_tdry.gcode\"</li>\n</ul>\nStep 3 - Determining material polymerization time and rough layer height.\n<ul>\n<li>RUN \"03_cal_tdry.gcode\"</li>\n<li>EVALUATE created mesh to evaluate line drying time. The line is well dry when the needle doesn't make a smear while crossing it. Use table to calculate polymerization time. A time unit is calculated from:</li>\n</ul>\n<p></p>\n<p>[1min (60s) for 1mm of covered way]. The double line represents the extrusion step (phase 1), the single line represents the scratching step (phase 2). The numbers show the distance in mm from extrusion to scratch.</p>\n<p>&lt;pre&gt;          --------      --------      --------      --------\n          |      |      |      |      |      |      |      |\n    ||== 230 == 220 == 210 == 200 == 190 == 180 == 170 == 160 ==||\n    ||    |      |      |      |      |      |      |      |    ||\n-- 240 ----      --------      --------      --------      ---- 150 --\n|   ||                                                          ||   |\n|   ||                                                          ||   |\n-- 250 ----                                                ---- 140 --\n    ||    |                                                |    ||\n    ||    |                                                |    ||   \n-- 260 ----                                                ---- 130 --\n|   ||                                                          ||   |\n|   ||                                                          ||   |\n-- 270 ----                                                ---- 120 --\n    ||    |                                                |    ||\n    ||    |                                                |    ||\n-- 280 ----                                                ---- 110 --\n|   ||                                                          ||   |\n|   ||                                                          ||   |\n-- 290 ----                                                ---- 100 --\n    ||    |                                                |    ||\n    ||    |                                                |    ||\n-- 300 ----                                                ---- 90 --\n|   ||                                                          ||   |\n|   ||                                                          ||   |\n-- 310 ---/      --------      --------      --------      ---- 80 --\n    ||   /       |      |      |      |      |      |      |    ||\n    ||  /        |      |      |      |      |      |      |    ||\n  |_00_|   ===== 10 === 20 === 30 === 40 === 50 === 60 === 70 ==||\n           |     |      |      |      |      |      |      |\n           |     |      |      |      |      |      |      |\n           -------      --------      --------      -------- &lt;/pre&gt;</p>\n<ul>\n<li>Calculate layer height (h = \"z\" shift), which is roughly approximated as follows: From evaluation in \"step 2\", measure line width (d), line length (l) equals 50mm, and the extrusion volume (V) is determined as: </li>\n</ul>\n<p> \nWhere r&lt;sub&gt;s&lt;/sub&gt; equals the inner syringe radius (= 6mm). This concludes h = 2.26E/d.</p>\n<ul>\n<li>Move to layerS 2-4 and repeat (runs automatically)</li>\n</ul>\nStep 4 - Fine adjustment of h (the solidification process can alter the basic layer height)\n<ul>\n<li>MODIFY \"04_cal_h.gcode\" using previous parameters and the calculated h from \"STEP 3\", and define 4 new height parameters which use old h +/- 0.005-0.01mm.</li>\n<li>RUN \"04_cal_h.gcode\"</li>\n</ul>\nBacklash calibration PART 1 - Latency Determination\nIntroduction\n<p>When extruding materials with medium to high viscosity it can be observed that when the plunger movement is terminated the material still keeps flowing out of the syringe for some time. This happens due to mechanically elastic components in the system (air bubbles inside the material,  syringe seal, plunger deformation under higher forces etc.).</p>\n<p>The removal of this phenomenon is not very feasible therefore we can compensate it with backlash. Thereby, the plunger not only stops when it's told to but instead it moves slightly backwards such that it pulls some of the material back into the syringe. The idea is to pull enough material back in that the outflow is stopped as soon as possible and yet, care must be taken not to pull the plunger so far back that the air comes into the syringe through the needle.</p>\n<p>&lt;img src=\"https://user-images.githubusercontent.com/14543226/28709089-0618cc52-737f-11e7-99ce-4116df990e8d.png\" alt=\"table\" width=\"400\" height=\"300\"&gt;</p>\n<p>Figure 1: showing the displacement step and the observed outflow as a function of time. System latency is shown in red.</p>\nTable of Contents\n<ul>\n<li><a href=\"#EQUIP\">Equipment</a></li>\n<li><a href=\"#DATA_ACQUISITION\">Data Acquisition</a></li>\n<li><a href=\"#DATA_PROCESSING\">Data Processing</a></li>\n<li><a href=\"#NOTES\">Important Notes and Tips</a></li>\n</ul>\nEquipment &lt;a id=\"EQUIP\"&gt;&lt;/a&gt;\n<ul>\n<li>weighing scale with a serial output to PC</li>\n<li>a PC equipped with:<ul>\n<li>software for RS232 terminal reading. If it came with the weighing scale, use the original software. If not, several appropriate are available online like Termite, PuTTy etc. (<a href=\"https://www.compuphase.com/software_termite.htm\">download Termite here</a>)</li>\n<li>CNC machine and control</li>\n<li>Python 3 environment (Spyder or similar) to run the g-code generator (<a href=\"https://www.python.org/downloads/\">download here</a>)</li>\n</ul>\n</li>\n<li>A glass beaker</li>\n<li>sunflower oil</li>\n</ul>\nData Acquisition &lt;a id=\"DATA_ACQUISITION\"&gt;&lt;/a&gt;\n<p>&lt;b&gt; 1. Connect the serial output of the weighing scale to the computer USB port and get the communication working &lt;/b&gt;</p>\n<ul>\n<li>run the serial read software </li>\n<li>check the data sheet  of the weighing scale for baud rate, data bits, parity etc.)</li>\n<li>make sure all the settings in the software match the values in the data sheet. If they do, the values on the computer terminal monitor should match the one you can read on the weighing scale screen</li>\n<li>if the software enables it, select the option for the data be written into a .txt file </li>\n</ul>\n<p>&lt;b&gt; 2. Generate the testing protocol g-code &lt;/b&gt;</p>\n<ul>\n<li>Download the VITAPRINT_latency_test_protocol.py file from GitHub and open it in the preferred Python environment</li>\n<li>read the instructions in the heading of the file to familiarise yourself with the parameters you can manipulate</li>\n<li>Run the programme. Now, a file named '[TODAYSDATE-your_specified_filename].gcode' should be generated in your working directory.</li>\n<li>Open this file in your CNC control software and see if it is working</li>\n</ul>\n<p>&lt;b&gt; 3. Prepare the apparatus &lt;/b&gt;</p>\n<ul>\n<li>Fill the glass beaker with sunflower oil</li>\n<li>place it onto the weighing scale and press \"Tare\"</li>\n<li>Mount your extruder over the vessel</li>\n<li>mount the syringe, filled with material with needle attached onto the extruder (G21 needle used in our case)</li>\n<li>extrude some material so that it starts flowing out and wait for the outflow to stop</li>\n</ul>\n<p>&lt;b&gt; 4. Start recording the mass &lt;/b&gt;</p>\n<p>&lt;b&gt; 5. Run the g-code in your CNC controller &lt;/b&gt;</p>\n<p>&lt;img src=\"https://user-images.githubusercontent.com/14543226/28709225-bcf81004-737f-11e7-87f6-de00855973e0.png\" alt=\"table\" width=\"600\" height=\"400\"&gt;</p>\n<p>Figure 2: The apparatus for latency measurement</p>\nData Processing &lt;a id=\"DATA_PROCESSING\"&gt;&lt;/a&gt;\nHow does it work?\n<p>It is important to understand the workflow of the data processing. The raw data may contain some high frequency noise usually originating from the building vibration (people walking, door closing etc.). The raw data are therefore first low-pass filtered. Then they are blocked up in cycles (each cycles contains a dataset of mass values associated to one displacement step). Then, an exponential fit of a form f = a<em>exp(-bx) + c</em>exp(-dx) is fitted to each dataset. At the end, a 95% point is found in every dataset and taken as the system latency.</p>\n<p>&lt;img src=\"https://user-images.githubusercontent.com/14543226/28709282-f95c79ea-737f-11e7-98ef-ab8b1ba6b248.png\" alt=\"table\" width=\"600\" height=\"150\"&gt;</p>\n<ul>\n<li>you can see the output signal after every stage in the Appendix below, for easier visualisation.</li>\n</ul>\nProcedure\n<ol>\n<li>Download the file for data processing (VITAPRINT_latency_data_processing.py)</li>\n<li>Copy the .txt file with your acquired data into the same folder as the data processing file.</li>\n<li>Open the VITAPRINT_latency_data_processing.py file in your Python environment and read the head of the file.</li>\n<li><ol>\n<li>Follow the instructions in the code header</li>\n</ol>\n</li>\n<li>Run the code</li>\n<li>the Latency values should appear in your python command prompt as the programme output</li>\n</ol>\nImportant Notes and Tips &lt;a id=\"NOTES\"&gt;&lt;/a&gt;\n<p>In our setup this method proved to be repeatable and robust. However, depending on the hardware it may not be so. It is advisable to repeat this procedure several times to investigate whether you can rely on it.</p>\nAPENDIX &lt;a id=\"APPENDIX\"&gt;&lt;/a&gt;\nVisualisation of the signal outputs\n<p>&lt;img src=\"https://user-images.githubusercontent.com/14543226/28709489-ced8ae0e-7380-11e7-803d-e01f97767026.png\" alt=\"table\" width=\"400\" height=\"300\"&gt;\nFigure 1: raw data</p>\n<p>&lt;img src=\"https://user-images.githubusercontent.com/14543226/28709513-e6787ad0-7380-11e7-9c51-c74d8d045cc0.png\" alt=\"table\" width=\"400\" height=\"300\"&gt;\nFigure 2: Low-pass filtered data</p>\n<p>&lt;img src=\"https://user-images.githubusercontent.com/14543226/28709570-25460d2c-7381-11e7-8b38-caa05d4a9cc6.png\" alt=\"table\" width=\"400\" height=\"300\"&gt;\nFigure 3: Aligned blocks of data</p>\n<p>&lt;img src=\"https://user-images.githubusercontent.com/14543226/28709600-3b892a2e-7381-11e7-80f3-782edbf2f10a.png\" alt=\"table\" width=\"400\" height=\"300\"&gt;\nFigure 4: Exponential fit lines added.</p>", 
    "license": {
      "id": "other-open"
    }, 
    "title": "symbiolab/Vitaprint_calibration: Vitaprint calibration v1.0", 
    "relations": {
      "version": [
        {
          "count": 1, 
          "index": 0, 
          "parent": {
            "pid_type": "recid", 
            "pid_value": "841393"
          }, 
          "is_last": true, 
          "last_child": {
            "pid_type": "recid", 
            "pid_value": "841394"
          }
        }
      ]
    }, 
    "version": "vita_cal_v1.0", 
    "publication_date": "2017-08-11", 
    "creators": [
      {
        "name": "bostjanvihar"
      }, 
      {
        "name": "Luka Banovic"
      }
    ], 
    "access_right": "open", 
    "resource_type": {
      "type": "software", 
      "title": "Software"
    }, 
    "related_identifiers": [
      {
        "scheme": "url", 
        "identifier": "https://github.com/symbiolab/Vitaprint_calibration/tree/vita_cal_v1.0", 
        "relation": "isSupplementTo"
      }, 
      {
        "scheme": "doi", 
        "identifier": "10.5281/zenodo.841393", 
        "relation": "isVersionOf"
      }
    ]
  }
}
65
11
views
downloads
All versions This version
Views 6565
Downloads 1111
Data volume 232.1 kB232.1 kB
Unique views 6464
Unique downloads 1010

Share

Cite as