This tool allows you to utilize your 3D printer's enclosure as a filament dryer, making it easy to dry your filament before use. With this generator, you can set the desired temperature and time, and choose whether to use the bed heater, chamber heater or both to dry your filament. This ensures you have the best quality filament for your next print and eliminates the need for additional equipment. It's an easy and efficient way to improve your 3D printing process and achieve better print results.
See the samples/
folder for a few premade scripts:
Filename | Time | Temp |
---|---|---|
ABS_Filament-Dryer.gcode | 5h | 70 C |
NYLON_Filament-Dryer.gcode | 6h | 75 C |
PLA_Filament-Dryer.gcode | 4h | 50 C |
TPU_Filament-Dryer.gcode | 4h | 45 C |
- Python >= 3.6
pip install git+https://github.com/kForth/Filament-Dryer-Script-Generator.git
Generate a file named "FilamentDryer-PLA.gcode" which dries for 240 minutes (4 hours) at 50 C:
filament_dryer_script_generator FilamentDryer-PLA.gcode 240 50 --bed --chamber
usage: filament_dryer_script_generator [-h] [--bed] [--chamber] filename time temperature Generates a gcode file to set your 3D printer's bed or enclosure temperature to a fixed temperature for a set amount of time in order to dry spools of filament. positional arguments: filename (str) output filename time (int) drying time, in minutes temperature (int) drying temperature, in degrees Celsius options: -h, --help show this help message and exit --bed use the bed heater for drying --chamber use the chamber heater for drying
The generator will create a file that looks something like this:
; generated by [Filament Dryer Gcode Script Generator](https://github.com/kforth/Filament-Dryer-GCode-Scripts) ; Copyright 2022 Kestin Goforth ; version: 0.2.2, date: 2022-08-16 13:25:15 ; temp: 70 deg C; time: 300 mins; use_bed: True; use_chamber: True M117 Heating M300 S60 P100 ; Chirp M140 S70; Set target bed temperature M141 S70; Set target chamber temperature M190 S70; Wait for target bed temperature M191 S70; Wait for target chamber temperfature M300 S60 P100 ; Chirp M300 S60 P125 ; Chirp M73 P0 R300 M117 Drying: 300 mins Remaining G4 S60 G4 S60 G4 S60 G4 S60 G4 S60 M73 P1 R295 M117 Drying: 295 mins Remaining ... G4 S60 G4 S60 G4 S60 G4 S60 G4 S60 M73 P98 R5 M117 Drying: 5 mins Remaining G4 S60 M73 P98 R4 M117 Drying: 4 mins Remaining G4 S60 M73 P99 R3 M117 Drying: 3 mins Remaining G4 S60 M73 P99 R2 M117 Drying: 2 mins Remaining G4 S60 M73 P99 R1 M117 Drying: 1 mins Remaining G4 S60 M73 P100 R0 M300 S60 P100 ; Chirp M300 S60 P125 ; Chirp M300 S60 P150 ; Chirp M140 S0; Set target bed temperature M141 S0; Set target chamber temperature M117 Drying Done
Using this tool and the files generated by it is done so at your own risk. It is important to remember that leaving any equipment unattended and operational can be dangerous, especially if it gets hot. To minimize risks, it is important to ensure that the thermal runaway protection features of your printer are functioning correctly. The author of this script and the files generated by it takes no responsibility for any damage to anyone or anything as a result of using the script or the files generated by it. Use caution and exercise proper safety protocols when using this tool.
Copyright (C) 2022 Kestin Goforth.
This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.