Jump to content
Ultimaker Community of 3D Printing Experts

FILAMENT_SENSOR in Tinkergnome

Recommended Posts

Hi everyone,

good evening ;)


I've been printing with my trusty UM2 for a while now, but there's something that i'm missing.


A sensor that pauses my Print and lets me change the Filament, when it runs out.

I want to use a mechanical NC-Endstop-Switch (normally closed) and later on, i might switch to an optical Sensor, depending on how well the mechanical one does.




I don't want to use Octoprint(for now). And Tinkergnome seems to support it.



Part of Pins.h in Tinkergnome 16.08.2:


 #ifndef FILAMENT_SENSOR_PIN#define FILAMENT_SENSOR_PIN         -1  // PC7 = D30; PD7 = D38#endif


Is there some guide on how to connect my switch to the UM2-Board and how to activate it in the Firmware?


At the moment I'm still using the original UM2-Marlin.


Thank you very much. :)





Share this post

Link to post
Share on other sites

Afaik all is explained in detail in this link


Also ofc you will need Tinkergnome firmware to make it work


Thank you for your reply, I've already seen the Topic on the Forum.

The "Instructions" are not that detailed. They are using a sensor called "Tunnel", which does a little bit more than detect outage of Filament. It also detects filament movement, it's connected to J23, which consists of 3 Pins(PC7, +5V, GND).

So can I even connect a mechanical switch without electronics? Do i need an NO-Switch instead of my NC? Do I need something fancy like a Drop-Down-Resistor(like this)

Sadly, i still don't understand how to realise that function.

Edited by Guest
switched switch-types by mistake; and grammar

Share this post

Link to post
Share on other sites

So can I even connect a mechanical switch without electronics? Do i need an NO-Switch instead of my NC?

It depends... :) The firmware feature works quite simple. In normal operation PC7 is either connected to +5V or not connected at all (it uses the Arduino-internal pullup resistor). As soon as PC7 is connected to ground (during printing from sd-card) the print will be paused. That means: your sensor has to connect PC7 with ground to trigger the pause, it doesn't matter how this is done.

  • Like 3

Share this post

Link to post
Share on other sites

@Tinkergnome & Novastorm

Thank you :-D

I see, my NC-switch (that I already have) will do quite nicely.

(since it will be triggered, when filament is present = open)

You helped a lot, I'm going to try it out, as soon as I designed myself a mount for my bearing and switch.

Greetings friedsemicon

Danke ihr Beiden, sehe gerade, dass ihr auch aus Deutschland kommt ;-)
Ihr habt mir echt geholfen
Gruß friedsemicon

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Our picks

    • Ultimaker Cura | a new interface
      We're not only trying to always make Ultimaker Cura better with the usual new features and improvements we build, but we're also trying to make it more pleasant to operate. The interface was the focus for the upcoming release, from which we would already like to present you the first glance. 
        • Like
      • 114 replies
    • "Back To The Future" using Generative Design & Investment Casting
      Designing for light-weight parts is becoming more important, and I’m a firm believer in the need to produce lighter weight, less over-engineered parts for the future. This is for sustainability reasons because we need to be using less raw materials and, in things like transportation, it impacts the energy usage of the product during it’s service life.
        • Like
      • 12 replies

Important Information

Welcome to the Ultimaker Community of 3D printing experts. Visit the following links to read more about our Terms of Use or our Privacy Policy. Thank you!