maocypher / Octoprint-Smart-Filament-Sensor

OctoPrint plugin that lets integrate Smart Filament Sensors like BigTreeTechs SmartFilamentSensor directly to RaspberryPi GPIO pins.
GNU General Public License v3.0
13 stars 20 forks source link

Sensor activates at beginning of the print #58

Open timgrahame opened 2 years ago

timgrahame commented 2 years ago

Hi all,

I have a problem where the the smart sensor is activating right after the initial purge before the print. I believe this is an issue reported on the main direct print github as well. The sensor sees a purge as lack of movement and then activates.

Is there anyway to resolve this? I have it set to distance right now, but I found that because of the length of time to begin a print (heat bed, carry out levelling, heat hotend), that it would fire if I had it on time.

I have an Ender 3 with the filament sensor mounted just before my extruder.

Feature Request: Is it possible to add an 'activate sensor after X time'? This would resolve the sensor giving false alerts during the purge.

codethrower commented 2 years ago

I am getting the same issue. Has anyone solved this?

Royrdan commented 2 years ago

Not 100% sure for your situation but I had the filament push forward before a print started which set the STOP off at the start. My filament is run through the sensor then the extruder with a gap. When the print finishes it retracts about 50mm which buffers between the sensor and extruder. It uses a G1 command which starts the sensing but also obviously doesnt pull through the sensor until it reaches the 50mm. I dont think it uses any timeout if your using distance detection. I THINK I fixed it by running a G92 gcode after extruding the filament which from reading the code I THINK it resets the distance sensor. Seems to be working so far.