MakerBot Print is our newest print-prepration software, which supports native CAD files and STL assemblies,
allows you to interact with all your printers via the Cloud, and many other exciting new features.

Download Now


Tevo Tarantula Filament Runout Sensor Enclosure

by stylesuxx Nov 23, 2017
Download All Files

Thing Apps Enabled

Please Login to Comment

i have updated to Marlin 2.x.x and filament sensor doent work as it worked at 1.x.x.When starts printing after a while it detects no filament and run M600 .My config



define NUM_RUNOUT_SENSORS 1 // Number of sensors, up to one per extruder. Define a FIL_RUNOUT#_PIN for each.

define FIL_RUNOUT_INVERTING true // set to true to invert the logic of the sensor.

//#define FIL_RUNOUT_PULLUP // Use internal pullup for filament runout pins.
//#define FIL_RUNOUT_PULLDOWN // Use internal pulldown for filament runout pins.
// Set one or more commands to execute on filament runout.
// (After 'M412 H' Marlin will ask the host to handle the process.)


// After a runout is detected, continue printing this length of filament
// before executing the runout script. Useful for a sensor at the end of
// a feed tube. Requires 4 bytes SRAM per sensor, plus 4 bytes overhead.



// Enable this option to use an encoder disc that toggles the runout pin
// as the filament moves. (Be sure to set FILAMENT_RUNOUT_DISTANCE_MM
// large enough to avoid false positives.)



I used the Z+ Port, and FIL_RUNOUT_PIN in pins_RAMPS.h to 19

You may try to uncomment #define FIL_RUNOUT_PULLUP. Chechk sensor state with M119. If it is still triggered, try to invert sensor logic, by changing #define FIL_RUNOUT_INVERTING true to false.

Hey, Thanks for the awesome design!
I have a quick question, What pins are the two wires on the endstop connected to?
I am using a CR10 with a breakout pin 27 board. Is it signal and ground? or 5V and signal?

For some reason I made the changes to both pins_RAMP.h and Configuration.h, but it doesn't seem to recognize whether there is filament in (TRIGGERED) or out (open). It registers in the sensor and I can see it with M119 - so the sensor works. The card just doesn't stop when no filament is present.

Is there something else that needs to be done so that it realizes not to print [pause] when filament is not in the sensor?

I also noticed playing around that in Configuration.h, USE_ZMAX_PLUG is commented out but if I uncomment then it needs Z_MAX_PIN in the pins_RAMP.h to be defined and that seems to be the only way to use M119 to see whether it is triggered or not.

Can anyone help me? Thanks.

what's it for? I do not understand

It pauses the printer when you run out of filament during the print. You have then time to replace it and continue your print from where you left off.

So enter the pause mode, do not stop printing?

Good evening, I tried your two configurations in Marlin but without success: - /. I plugged my end stop on the z + 2 pins on the middle and bottom it does not react and on the middle + up the printer restarts. Can we test to make sure it works without printing?

Which version of the Board do you have? Someone has posted their config for version 1.1 of the board. Anyway, you can use GCode M119 to read the endstop states.

Hello, I have the board mks v1.4 and marlin 1.1.0 RC8. Thank you I will do other tests.

Thank you for sharing, good job. I have not tried yet but I modified and printed so you can Hold the sensor and close the box without any screws and it holds. I meet him in remix.

Cool Idea, thank you for sharing.

Thanks a lot for your work

To make it working well on my TT (board mks 1.1) as described (connected on Z+ endstop) I use the following Setup






define FIL_RUNOUT_INVERTING true // set to true to invert the logic of the sensor.

//#define ENDSTOPPULLUP_FIL_RUNOUT // Uncomment to use internal pullup for filament runout pins if the sensor is defined.



//#define Z_MAX_PIN 19

define FIL_RUNOUT_PIN 19

Interesting, thank you for sharing. What was happening when you used the config I provided?
Just so people know when to use your config... also prefixing the lines here with 4 spaces will format them properly with a code section.

configuration.h : filament runout was not working when "#define Z_MAX_ENDSTOP_INVERTING" was set to false.
pin_ramps.h : I decided to suspend the "#define Z_MAX_PIN" setup as we now use the pin 19 for filament runout.