Laser filament monitor
-
What about using OpenCV? This is similar to the laser sensor, but it would allow to measure the diameter. It would need a decent GPU-based board (like NVidia's ones). Who said overkill?
-
hi David,
would it be an issue if laser versus transparent filaments? i mean even a tiny light can trigger the sensor even if the light is refracted by a clear transparent filament. just a thought. -
I tested with a transparent PETG filament and the laser had no trouble tacking it. Black filament was more of a problem.
-
interesting. so the darker the color there would be a higher inconsistency?
would like to get my hands on one to tinker with. -
Currently i have some spools of black PLA filament which tends to clog. Perfect time for betatesting if you need someone running it under "real user conditions".
-
Apparently pet-g is the hardest filament to detect. So, if you get that one done, you are golden.
I wonder if putting the sensor past the extruded on a bowden setup makes it read better (since now it has tooth marks that might make it easier to see)
-
Yes that occurred to me too. However, the optical sensor would need to be protected from filament dust produced when the hobbed shaft grinds the filament.
-
what about a laser before the reader to etch little lines into the filament?
nvm, youâd need quite the laser to make that workâŠ.
-
Yes that occurred to me too. However, the optical sensor would need to be protected from filament dust produced when the hobbed shaft grinds the filament.
And it wouldn't work after a RDD like the Nimble or Flex3drive so it has to go before them
-
You could create something secondary to create the notches, then clean the filament but that likely just creates other issues and failure modes.
-
Anything new about this apparatus?
Will it be prefered against the old version? and when will we normal (actually maby not so normal) humans be abel to get hold on these things? -
At present the laser sensor is not as reliable as the rotating magnet one. We have some more work to do to see whether we can improve it.
-
Since the laser approach seems to be causing problems the suggestion of using ultrasound may not be as impractical as you think.
It is commonly used for highly accurate non-invasive flow measurement of gasses and liquids which you have to admit are pretty smooth. Sensing is based around doppler effects of minor differences in internal density.
The main advantage if it could be made to work is that it would work through the feed tube - just clamp on and measure.
I donât know how well it would handle highly homogenous filaments but I suspect there would be suffucient internal structure to make it work.
Youâd also have to source a suitable transducer / sensor system.
I donât know if you can get transducers small enough, the pipes in a domestic gas meter are around 25mm so our sensor would need a field of operation 10 times smaller though they may be made for lab equipment.
-
Why do we want/need a filament sensor?
Me personally, to stop the print if the flow of filament stops for any reason, e.g. due to a clocked nozzle.
If the sensor can measure the exact length of filament extruded, that would be totally cool and open the door for dynamically maxing out the feeder speed for any filament. That would be a dream come trueâŠ
But, how about making that a requirement for filament sensor v2?
For starters, detection of that blocked nozzle can probably be accomplished with less fancy measures, and likely cover the immediate needs of most users. How about adding a timer? If no movement is detected within 1-2 seconds of the stepper engaging, then something might be wrong. This should greatly reduce the sensitivity requirement for any type of sensor. Due to the normal pressure between extruder and nozzle, a short period of time should have no significant impact on the ongoing print, as filament will still be flowing.
-
The ultrasound idea from Markdnd is interesting, but isn't it so that ultrasound transducers have problems with linear movement? They detect rotation (not possible in this scenario) and radial movement, but an object passing by in a straight line is not so good.
I might be wrong, but believe that an ultrasound solution would require a mechanism to "wobble" the filament on its way past the transducer. If that is accomplished, then a disc type transducer might work. These are used in many applications, e.g. string music instruments, and are available in diameters down to about 10mm. They are also very thin and cheap.
-
The primary reason I want filament monitors is to detect inadequate filament feeding, whether from partially blocked nozzles, clogged hobbed wheels, tangles or some other cause. I have never yet had filament break, and I generally know if there is enough on a reel for the print at hand.
I designed and built a filament sensor that worked very well on the Zesty Nimble and e3d Chimera equipped cartesian printer I upgraded from RAMPS to Duet. These used multiple tiny (1mm diameter) magnets and hall effect sensors to provide 12 pulses per revolution (about 7mm filament feed). It was fully reliable and detected filament feed issues of all types and worked with PLA, ABS and PETG filament without issue.
Photo shows a dual mount with the right hand sensor installed. The tiny magnets are just visible.
Unfortunately these were not compatible with the Duet and I simply don't have the skills to write the necessary code to do this so am keenly awaiting the Duet version.
(edited to add) Although I never implemented the second sensor, the boards I used are rotary encoders so can detect forwards or backwards movement and could thus measure retracts and normal feed. I'd be very happy to share the designs if anyone wishes to do the software to enable them to work with the Duet.
Richard
-
For me, a filament sensor would be invaluable for those times when, despite my best efforts, the filament jams on its spool and the printer carries on printing without any extrusion totally messing up any chance of recovery. (Even if I spot it quickly).
A simple filament presence sensor wouldnât work - the filament is still there, its just not moving. Stall detection may pick it up but for softer and flexible filaments the extruder will probably just grind on anyway. (Probably literally!)
As for the technology, my knowledge of ultrasonic sensors is limited to say the least but, as I understand it there are two main ways these things operate:
The first measures time of flight between a single pulse and its echo and is typically used in range finding and obstacle detection applications. These are the the type commonly sold for robotics and automation and treat the object being monitored as being stationary (which, if the ping rate is high enough, it effectively is)
The second uses the doppler effect on multiple echoes to detect movement. This is the kind used to measure flow rates of liquids and fluids in pipes and is also used in some alarm sensors. Unlike TOF sensors, the object doesnât need to be precisely aligned with the sensor. (Which is good because in our case the âobjectâ is actually minor differences in internal density in the filament)
At its simplest, an object approaching the sensor increases the observed echo frequency in proportion to its speed. In theory a sensor pointed at a steep angle will pick up reflections from minor deviations in the internal structure of the filament.
I donât think that a wobble mechanism is needed and, in fact, lateral movement probably needs to be minimised. (Though Iâm not familiar with the string instrument application so dansker61 may be making a valid point)
I should point out that this is a massive simplification and omits a lot of the âreal worldâ practicalities. For example signal processing of some sort will probably required to extract usable data from the noise but there are microcontrollers such as the dsPIC series of microcontrollers from Microchip that are specifically designed for digital signal processing and have fourier analysis libraries available for them.
In short itâs an idea, based on a real world application, intended to encourage a bit of experimentation and maybe offer an alternative solution. (I may even dig around in my electronics junk box this weekend myself)
-
If the doppler solution proves impractical I donât know if a contact microphone has been considered.
The arrangement i have in mind is something along the lines of the filament running through a felt pad. A small microphone attached to the pad would pick up the sound produced as the filament moves, once again frequency would be proportional to speed.
A side benefit would be the cleaning of the filament, though unfortunately this would also require periodic pad replacement (though an upstream sacrificial pad could minimise this).
A second microphone may also be necessary for noise cancelling but this is well established technology.
For my application, precision speed measurement is less important than reliable movement detection so even a crude method like this may actually be sufficient.
-
Throwing in my $0.02 to say that I'd also buy a sensor that detected that movement was happening, but wasn't necessarily able to quantify exactly how much. Just last night I had a print fail due to a jam (still don't know whyâŠ), and would certainly love to be able to detect a situation like that.
-
I would also agree, the most important failure modes are:
-
out of filament: spool empty
-
nozzle jam: no movement at all (at least not forward, retracts do not count)
Detecting under-extrusion or skipped steps would be nice, but I there is no real benefit anyway. With the other two cases one can at least pause and continue after fixing the problem. If a super accurate sensor detects under extrusion of 85% - what would one do? automatically bump up the extrusion multiplier? that sounds far too advanced that I would trust it with a 50 hour printâŠ
Just for reference, what does Prusa use the laser filament sensor for? AFAIK they also only cover the two big (and easier to detect) issues.
-