Hi,
I need to know what is the length of filament which was extruded by the printer. I am using Arduino Mega with Ramps and the control software is Marlin. The cheapest solution (and for me also the best) is to check it in the Marlin - how many filament has been already consumed (or extruded) by the printer (like counting the revolutions of extruders motor and then calculate the length via diameter).
Another option is to use rotary encoder for that - but this is not the best solution for me because I dont have too many free pins on Ramps board and I would have to modificate extruder - so in the future it would be harder to upgrade the extruder.
I am already using modificated version of Marlin so it is no problem for me to add some lines...
Does anybody know if there is a variable in Marlin which calculates the length of the extruded filament? Or if there is a variable which knows total number of revolutions of extruder stepper motor? And in which file of Marlin the variable is?
Thank you for your answers!
Dan