Filament sensor for Creality CR-10 using Raspberry Pi Octoprint by stevenfayers 3d model
Warning. This content is not moderated and could be offensive.
smoke
3dmdb logo
Thingiverse
Filament sensor for Creality CR-10 using Raspberry Pi Octoprint by stevenfayers

Filament sensor for Creality CR-10 using Raspberry Pi Octoprint by stevenfayers

by Thingiverse
Last crawled date: 3 years, 1 month ago
Filament sensor holder for Creality CR-10 for the type of filament sensor shown.
Requires 2x M3 x 12mm screws + nuts
Update: 2 new STL files:
1) For 3mm wide brass inserts
2) For 4mm wide PTFE (bowden) tube inserts
Raspberry pi connection
Connect to Raspberry Pi GPIO pins.
https://www.element14.com/community/servlet/JiveServlet/previewBody/73950-102-11-339300/pi3_gpio.png
Positive to pin 1
Sensor out to pin 7
Ground to pin 9
Octoprint setup
Install plug-in "Filament Sensor Reloaded"
Set up the plug-in as per the attached image.
In Octoprint Settings > Gcode settings, use the following for
"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 %}
Use the following for "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