Cr-10 Filament Sensor Bracket & Tutorial

by IsaacMDesigns Aug 13, 2017
Download All Files

Thing Apps Enabled

Please Login to Comment

Having issues with the filament cutting into the inlet of the sensor housing. I see on your picture you have a metal collar can I ask where you found that. Thanks

would it be possible to have the CAD File so I can mod it to fit the Ender 3

Will this work for ender3?

Did print it out, but it did not fit, I got the MK8 Alu upgrade, it got a longer arm that make it not fit. Can you make a edit ?


Hi! I've followed the entire process and sensor works fine when filament runs out but when I change the filament and press knob for resume print process hotend comes back to correct position for a second then quickly return to change filament position and extruder retract filament again... substantially I'm in a change filament loop!!! Why this happens??

Hey! Is by any chance this is compatible with a cr-10 mini?


i hope everywere can help me.I have connected everything and set it in Octopi as described in the description. Unfortunately, the switch does not work for me. If I enter the M600 command directly in the terminal this will work. If I enter the command at the plugin filament Reloded nothing happens. Do you have any idea what it might be?

What filament is that in the pics. Very nice!!

I tried to use it in Makerbot MK7 extruder, it fits perfecly but the filament in hole of the MK7 extruder (https://pt.aliexpress.com/item/3D-Printer-Makerbot-MK7-Extruder-Feeder-Device-Kit-Fit-1-75mm-fliamen/32810965001.html?spm=a2g0s.9042311.0.0.Erluem) stays bellow about 11.5mm. If someone here have done a remix to work on MK7 please let me know. Thank you

How to wire the cables from switch (white/black/red) from AliExpress to the Raspberry GPIO (3V3/Ground/GPIO)?

It's already been 2 months so you probably figured it out already. I just assembled mine. For others to reference, for the Lerdge switch from Aliexpress, it's Red - 3V3, Ground - Black, White - Signal.

Also as mentioned by Predator04 previously, the Switch type actually needs to be set to "Normally CLOSED"

Hmm this won't work for the filament sensor that ships with the CR-10S, will it?

Im wondering the same thing...

The CR-10S sensor is too big to fit. Unfortunately, I had to come to this conclusion after printing it. I hope the creator can make an additional version to make it fit. Thanks anyway, would have loved to use it.

Maybe it will work with the sensor from Timothy Hoogland for the CR10?

Comments deleted.

Guys, seriously, has anybody gotten past the amrli nautomatic unload feature when doig the m600? my cr-10 ignores any M600 L0 commands in the setup of the "filament sensor reloaded" and pushes back the filament against the open sensor....

if i cannot stop the system from doing this, then this concept may not work....it´ll be necessary to detach the sensor from teh extruder, so that it can "frely unlaod", vs. pushing into the housing, where it can't go anywhere...

any solutions? looking for the marlin internal settings, maybe there is a fix there upon sending m600.


ps: great modelling here...once i get it to work i´ll be happier...

Here are the settings needed for this to work.
Stock Firmware:

Set Pin: 7
Debounce Time: 400ms
Switch type: Normally CLOSED
-Board Pin Mode: Board Mode
Pause Print When Out of Fliament : (Tick)

is this one compatible with the Flexible Filament Extruder Upgrade for Creality CR-7, CR-10, Afinibot A5, A31 ?


Flexible Filament Extruder Upgrade for Creality CR-7, CR-10, Ender 2, Ender 3
by joshvv

answer to my own question :

yes, it is compatible. :-)

So I installed this. The sensor is currently green. When I start a print it stops and says print complete. Any idea?

Changing monitoring state from 'Operational' to 'Printing'
Send: N0 M110 N0*125
Changing monitoring state from 'Printing' to 'Operational'
Recv: ok
Send: M400
Recv: ok
Send: G90
Recv: ok
Send: M114
Recv: X:0.00Y:0.00Z:0.00E:0.00 Count X: 0.00Y:0.00Z:0.00
Recv: ok
Send: M117 [ ] 0%
Recv: ok
Send: M117 Print Done
Recv: ok
Send: M84
Recv: ok
Send: M104 T0 S0
Recv: ok
Send: M140 S0
Recv: ok
Send: M106 S0
Recv: ok
Send: M117 Print Done
Recv: ok
Send: M105
Recv: ok T:36.7 /0.0 B:27.0 /0.0 T0:36.7 /0.0 @:0 B@:0
Send: M105
Recv: ok T:36.3 /0.0 B:26.9 /0.0 T0:36.3 /0.0 @:0 B@:0
Send: M105
Recv: ok T:36.3 /0.0 B:26.9 /0.0 T0:36.3 /0.0 @:0 B@:0
Send: M105
Recv: ok T:36.0 /0.0 B:26.9 /0.0 T0:36.0 /0.0 @:0 B@:0
Send: M105
Recv: ok T:36.0 /0.0 B:26.9 /0.0 T0:36.0 /0.0 @:0 B@:0
Send: M105
Recv: ok T:35.7 /0.0 B:27.0 /0.0 T0:35.7 /0.0 @:0 B@:0

Tried the M600 code and while it does what it is supposed to, sometimes the ejected filament get stuck exiting the bracket causing a lot of grinding. Not sure the best way to handle this...

i get pin 7 on PI 3 GPIO so i take it other 2 wires normally closed goes to +5v and common goes to ground?

and can i change pin 7 as will be running room temperature plugin that uses pin 7?

Hi mellow, if you look up gpio pins on your octopi you will be able to use any of them. As long as you specify which switch you are using in the plugin 'filament sensor reloaded'.

With respect to the wires I followed the video and wired it as he did. You can change the sensor output wire to any gpio.

Comments deleted.

Hello,I have another question.I printed out sensor bracket in ABS with 2 covers,not realizing the big one was for ols design with open top on extruder,mine has small hole in middle and sensor case is square.The small cover doesn't fit sensor cover.It didn't shrink,I have an enclosure for CR10,It looks like its a mirror image of what it should be.Will be installing in a few days,just wondering about catches on back of cover.

Hi there, depending on the precision of your printer u may need to reem the edges, With my printer the clearances between the covers and the printed pieces were close enough that it was a friction fit.
Like with all 3d printing the variation is too large to account for everyone, so maybe get some sand paper and sand the catches till they friction fit.

Sorry ,I made a mistake,different sensor,your covers.The one I printed is Square ,no cover.

Filament Sensor and Cover (OEM sensor)

I was searching exactly this thing for CR-10 with Octoprint. THANKS FOR SHARING! Great Thing.

Will a stock z end stop on cr 10 fit in this.I'm upgrading to bed level sensor and my current oem sensor will no longer be needed?

It will work, But i cant guarantee it will fit.

Got one small problem. When the filament runs out, the standard script retract the filament out so that you just need to remove it and put the new filament in. When retracting, the filament pushes the lid away and feeds out that way and not back the same way as before. Eh, I hope you understand what I'm trying to explain.. lol. I don't know if changed design could fix that or if I just need to try to remove the automatic retraction part from Marlin M600..

Hi Niklas, iv had this issue too and looked at the Gcode:

m600 L0
Should fix it? maybe.
Thanks :)

Really appreciate this, I also added in the turn off extruder, but I'm wondering if the way I did it is correct or is it risky? I put turning on the hotend first before the prime nozzle. Is that the correct order? here's the code:

{% if pause_position.x is not none %}
; relative XYZE
; retract filament, move Z slightly upwards
G1 E-10 F6750
G1 Z+5
; Turn off Extruder
M104 S0
; Turn off Bed
M140 S0
; absolute XYZE
; move to a safe rest position, adjust as necessary
G1 X0 Y0
M18 S43200
{% endif %}
BEFORE print job is RESUMED:
{% if pause_position.x is not none %}
; relative extruder
; Wait for 65 bed before print
M190 S65
; Wait for 196 extruder before printer
M109 S196
; prime nozzle
G1 E-5 F4500
G1 E5 F4500
G1 E10 F4500
; absolute E
; absolute XYZ
; 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 %}

Thank you very much!

Hi! thank you for the question, I am by no means an expert with G-code, i just read on the forums and find different solutions and add them together.
So i dont think id be the best person to analyse your Gcode :)
If it works well for you ill play around with it.

Alright thanks, I'll test it out sometime in the next few days and let you know! (waiting for wires to arrive before I can try it out).

What is this line you've added?

M18 S21600

It keeps the stepper motors on for 6 hours. So if you run out of filament while you are away/ changing the filament, it will stop the z-axis falling and decalibrating. It was an issue I kept having till I added that code.

Just curious as to why the pause is only 6 hours? I mean, is a longer time period not possible?

Makes sense. I also added M104 S0 ; turn off extruder
This is to stop the filament cooking in the extruder. I then manually set the extruder temp back to the original temp before resuming

Sounds great! might figure out how to do that with Gcode

Can you make for anet a8 pls

Was just about to design this myself as I have the same limit switch. Can't wait to try this

Hello GiantMidgt

I just printed this and ordered the parts needed .
But had forgotten that I changed the extruder for this https://macewen3d.com/collections/upgrades-for-cr-10/products/mk8-extruder-aluminum-drive-feed-for-cr-10-cr-10-s4-and-cr-10-s5

And it almost fits LOL
Only the arm that is spring loaded seems to go further back on thsi then on the original.
Would it be possible to make it fit with this one ??

I dont have the abilities to doit myself as I am a novice 3d printerer


Thanks for this, that looks fantastic.
Here is another link on Aliexpress, overall cheaper because it's free delivery to Vietnam anyways... I expect it's the same for the US.

Cheers :) ill keep the current one up as it has more stock, already ran into 4 links selling out after posting them up.

What is that gold thing in the.... entry hole? ;-)
Could it be bigger to allow a bit of PTFE-tube to avoid the filament eating away on the structure?

I'm not sure what it's called, I had it lying around from other projects. I will update the design to accommodate for PTFE tube entry tonight :)

Great! Thanks!
I need to learn this modelling stuff soon...

Uploaded :) name is pretty self explanatory on the new model

http://r.ebay.com/9iGnAn is out of stock, any other ones I could use?

Hi, Yes i just updated a link to an Aliexpress supplier. This one should not be out of stock :)