1 / 3
Nozzle auto-clean (GCODE)
Order a print of this model
We calculate the final price from your selected file. You review and accept it before payment.
Saved on this device.
This model is a mount for a brush which can clean your ender printer nozzle automatically, using klipper's macro.
- Rating
- 5 / 5
- Likes
- 25
- Downloads
- 172
- Makes
- 2
- Views
- 2,450
- Reviews
- 2
Updated at source:
Model information
- Source
- Printables
- Category
- Creality Parts & Upgrades
- License
- Creative Commons — Attribution — Noncommercial
Requirements
Software needed:
- Klipper
- Mainsail / Fluidd / Octoprint / etc
Hardware needed:
- 3d printer (obviously)
- A brass/steel brush (same material as your nozzle recommended)
- Glue (optional)
STEP-BY-STEP INSTRUCTION
- Create a .CFG file in your machine's files and name it however you want,
- Paste the GCODE from the .TXT file into it (you can find it in the files section),
- Modify the code according to your machine,
- In printer.cfg add
[include yourfilename.cfg], - Make sure your nozzle is able to reach the brush by modifying
position_maxinstepper_xsection, in printer.cfg.
GCODE
[gcode_macro CLEAN_NOZZLE]
variable_start_x: 237.5 ;where the nozzle will start
variable_start_y: 18 ;where the bed will start
variable_start_z: 17 ;where the z axi will start
variable_wipe_dist_y: -15 ;how far will the bed move
variable_wipe_qty: 3 ;how many times will it move
variable_wipe_spd: 300 ;wipe speed
variable_raise_distance: 18 ;how much it will be raised
gcode:
{% if "xyz" not in printer.toolhead.homed_axes %}
G28
{% endif %}
G90 ;absolute positioning
;Move nozzle to start position
G1 Z{start_z} F1500
G1 X{start_x} Y{start_y} F6000
;Wipe nozzle
{% for wipes in range(1, (wipe_qty + 1)) %}
;WIPE LEFT
G1 X{start_x + 2} Y{start_y - wipe_dist_y} F{wipe_spd 30}
G1 X{start_x + 2} Y{start_y - wipe_dist_y} F{wipe_spd 30}
G1 X{start_x + 2} Y{start_y - wipe_dist_y} F{wipe_spd 30}
;WIPE RIGHT
G1 X{start_x - 2} Y{start_y + wipe_dist_y} F{wipe_spd 30}
G1 X{start_x - 2} Y{start_y + wipe_dist_y} F{wipe_spd 30}
G1 X{start_x - 2} Y{start_y + wipe_dist_y} F{wipe_spd 30}
{% endfor %}
G1 Z 25 ;raises the z axi
G28 ;homes all axis