Tevo Tarantula Filament Runout Sensor Enclosure

by stylesuxx, published

Tevo Tarantula Filament Runout Sensor Enclosure by stylesuxx Nov 23, 2017


Design Tools


Liked By

View All

Give a Shout Out

If you print this Thing and display it in public proudly give attribution by printing and displaying this tag.

Print Thing Tag

Thing Statistics

4761Views 462Downloads Found in 3D Printer Accessories


I designed this to be used with the spare sensor that comes with the Tevo Tarantula kit. You can either use small screws (M2) to attach the switch, or as I do here, simply use 1.75mm filament to attach the switch to the enclosure. Screw the enclosure together with 3 M3 x 12mm screws and nuts. I used some short pieces of PTFE tubing on the ends of the enclosure, but this is by no means necessary.

Print the filament_runout_enclosure.stl twice. After printing you may want to sand the pieces down, so the fit together nice and flush.

I used the Z+ Port, therefore you need to set FIL_RUNOUT_PIN in pins_RAMPS.h to 19:

#define FIL_RUNOUT_PIN          19

In Configuration.h search for the FILAMENT_RUNOUT_SENSOR define and comment it out. If you want to use the default pinout, also invert the logic of the sensor and disable the internal pullup:

  #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.

More information about the Marlin configuration can be found here.

OpenSCAD file is attached and may be customized via Customizer in case you want to adapt it for a different switch, or your tolerances.

Print Settings


TEVO Tarantula










Printed with my TEVO Tarantula 3D printer - great printer for a low price!

More from 3D Printer Accessories

view more

All Apps

Customizer is the easiest way to take great 3D printable designs and make them your own. Make your OpenSCAD designs infinitely more valuable by empowering the community to customize them.

App Info Launch App
Customizer Thing App

Auto-magically prepare your 3D models for 3D printing. A cloud based 3D models Preparing and Healing solution for 3D Printing, MakePrintable provides features for model repairing, wall thickness...

App Info Launch App

Kiri:Moto is an integrated cloud-based slicer and tool-path generator for 3D Printing, CAM / CNC and Laser cutting. *** 3D printing mode provides model slicing and GCode output using built-in...

App Info Launch App
KiriMoto Thing App

With 3D Slash, you can edit 3d models like a stonecutter. A unique interface: as fun as a building game! The perfect tool for non-designers and children to create in 3D.

App Info Launch App

Quickly Scale, Mirror or Cut your 3D Models

App Info Launch App

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.