Summary
Overview:
I designed a Bracket to hold a filament run-out sensor i bought off ebay.
When the filament runs out, in this order it will:
- Pause the print
- retract filament to stop oozing,
- move the head away to allow filament change
- resume back where it initially stopped.
- It slips over the Extruder, and also has a cable holder integrated.
- The design allows it so you can use a small amount of PTFE tube to make it easier for the filament to guide into the extruder motor.
- Sensor Light up green when there is filament detected
-Sensor:
AliExpress: https://goo.gl/FutpoC
-Connectors for Raspberry pi:
http://r.ebay.com/9g8yce
-RaspberryPi running Octoprint
Setup Steps:
- print out Filament Sensor and Lid
- Install Sensor inside housing (will be a tight fit)
- Wire up Sensor to Raspberry Pi. ( follow tutorial if stuck https://youtu.be/j7JfQXTf16U)
- Install "Filament Sensor Reloaded" plugin on Octopi
Stock Firmware:
- Set Pin: 7
- Debounce Time: 400ms
Switch type: Normally Open
-Board Pin Mode: Board Mode
Pause Print When Out of Fliament : (Tick)Now Edit Pause and Resume GCode (refer to photos below)
Firmware 1.10+
(Currently seems firmware is ignoring M600 L0, so please follow stock firmware setup if you manage to figure out how to stop m600 retracting the filament. please let me know in the comments)
- Set Pin: 7
- Debounce Time: 400ms
- Switch type: Normally Open
-Board Pin Mode: Board Mode
-Out of Filament GCODE: M600 E-5 L0 X10 Y10 Z5
Pause Print When Out of Fliament : (No Tick)
updates:
(D,M,Y)
14/08/2017: Edited G-code pause function as the steppers were disabling after 60 seconds of the filament running out which led to printer loosing its coordinates. Now should stay on for 6 hours
14/08/2017: Better Lid design and better model design with smaller extruder cover hole, there should be no printing issues now.
27/08/2017: Added a dust cover for the extruder opening
up-coming:
- updated Gcode
- better lid design
- fixed model hollow slicing issues
- Printing without supports
Print Settings
Printer:
Creality Cr-10
Rafts:
No
Supports:
Yes
Resolution:
0.2
Infill:
10% - 20%
Notes:
Supports settings:
Support pillar resolution: 2.5mm
Max overhang angle: 65 Degrees.
PRINT:
Make sure theres no supports generated inside the Holes, unless your comfortable
clearing the holes
The Lid is required to keep the filament and the switch in the right position
Octoprint Pause / Resume Settings

Octoprint Pause / Resume Settings (credit: https://gist.github.com/foosel/1c09e269b1c0bb7a471c20eef50c8d3e)
After Print job is paused:
{% if pause_position.x is not none %}
; relative XYZE
G91
M83
; retract filament, move Z slightly upwards
G1 E-10 F6750
G1 Z+5
; absolute XYZE
M82
G90
; move to a safe rest position, adjust as necessary
G1 X0 Y0
M18 S21600
{% endif %}
Before print job is resumed:
{% if pause_position.x is not none %}
; relative extruder
M83
; prime nozzle
G1 E-5 F4500
G1 E5 F4500
G1 E10 F4500
; absolute E
M82
; absolute XYZ
G90
; reset E
G92 E{{ pause_position.e }}
; move back to pause position XYZ
G1 X{{ pause_position.x }} Y{{ pause_position.y }} Z{{ pause_position.z }} F4500
; reset to feed rate before pause if available
{% if pause_position.f is not none %}G1 F{{ pause_position.f }}{% endif %}
{% endif %}
Tags
Source du modèle
