I have the Anet A6 and I was wondering if it is possible to add a filament run-out sensor. I would feel better having something to stop the filament before it runs through and I have to take apart the extruder.

  • $\begingroup$ what firmware do you have on your a6? $\endgroup$
    – profesor79
    Mar 8, 2018 at 10:57

1 Answer 1


With marlin firmware:

source here: filiament sensor config

  #define FIL_RUNOUT_INVERTING false // 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.

With this feature, a mechanical or opto endstop switch is used to check for the presence of filament in the feeder (usually the switch is closed when filament is present). If the filament runs out, Marlin will run the specified GCode script (by default “M600”). RAMPS-based boards use SERVO3_PIN. For other boards you may need to define FIL_RUNOUT_PIN.

and this is a nice piece of hardware: run out sensor

  • $\begingroup$ Gorgeous! i was going to suggest the disastrous panic-stop by having the runout switch kill main power. That pretty much ruins the print in progress. I"m off to see if my driver board has those pins available. $\endgroup$ Mar 8, 2018 at 15:37
  • $\begingroup$ Great! Now I will design the sensor. $\endgroup$ Mar 9, 2018 at 6:34

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .