-
-
Notifications
You must be signed in to change notification settings - Fork 19.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
end of filament detection #999
Comments
Has any progress been made on this feature? We're looking to repurpose an unused endstop and a roller/limit switch which would trigger an M226 "Gcode Initiated Pause" when open. D1 is a good thought but we're using an Azteeg X3. I'll have to check the mapping. |
I wanted have advice, but I have not had any. |
if you have fixed this then please fork the latest marlin, make the changes you made and submit a pull request |
If you do, please make it multi-extruder compatible |
I see there is now an option to enable a filament runout sensor in configuration.h. Where can I find documentation on this feature? I have such a switch already in use on my printer, set to normally-open, and held closed by the filament, triggering M300 when the filament end opens the switch. |
|
info here: http://www.thingiverse.com/thing:89044 and you can get one here: http://owi.storenvy.com/ |
That's the wrong sensor, Thinkyhead. I'm not talking about a filament width sensor, but an end-of-filament sensor. Configuration.h says it uses RAMPS servo pin 2, but there are options for pullups and inverting which I do not understand. |
you can still use that sensor... if a 3mm filament is below 1mm then you Den tirsdag den 24. marts 2015 skrev AbuMaia notifications@github.com:
|
@boelle |
As mentioned earlier, I don't have a width sensor, I have a filament runout sensor. I just need some additional info on how to set it up in Configuration.h. |
If you have a normal mechanical switch you need a pullup, so the pin can reset. Inverting depends on your switch (normally close/normally open). |
@AbuMaia |
I have my switch connected to pin 57. Is there a pullup resistor associated with that pin? |
@AbuMaia |
Thanks for the help. |
Oops, right, well, same general idea. Find the relevant pin, make sure it's set, enable the option. Etc. |
Most of the functionality required for a filament "end" monitor and alarm are already in Marlin. The existing "filament Change" function (pause/resume) can be used if triggered by a digital pin going low to high. A simple filament end sensor can be made just using a micro switch which normally holds the pin low when filament is present. http://community.robo3d.com/index.php?threads/filament-monitor.3335/page-2#post-42914 The mods below have been tested and work. The end of filament sense pin is 44. Obviously this pin needs to be a config parameter. The boolean FC_Flag also needs to be defined correctly (not just in line as in this mod) The code changes required in the file marlin_main.cpp are :
And in the marlin_main.cpp loop() code
|
I see in the latest dev version this function has been implemented along the same lines using pin 4 |
Sounds like you have it in hand. I can see it will help to make better documentation for this, and for Marlin features generally. Keeping that in mind… |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
I would like to implement a function that would put marlin break at the detection end of the filament.
I would really contributed to this framework and understand how to do it properly.
Where and how can I create a function that triggers a pause if the pin D1 and high state (normally unused pin on the ramps 1.4).
The text was updated successfully, but these errors were encountered: