bigtreetech / smart-filament-detection-module

259 stars 34 forks source link

Detection Sensor not working on SKR mini e3 Board #1

Open zuverck opened 4 years ago

zuverck commented 4 years ago

Utilized the Marlin build in the SKR mini e3 v1.2 repository to enable the smart filament sensor. I wired up the sensor to the DET0 (PC12) pin on the board, made the changes to enable the feature in the firmware including printing out the debug info to the terminal. The firmware never senses a change on the input line of DET0 to reset the runout counter so after 7mm the printer will halt. I have connected the sensor to a logic analyzer and verified that the sensor is working and toggling the output as filament passes through the rollers. However their is something wrong between the pin input and the getting into the processor as the PC12 pin never changes state in the software.

Can you provide guidance on your test setup utilized for the skr mini e3 v1.2 and which port was the sensor connected to?

wat3000 commented 4 years ago

anyone do it? I try Find 12 and 15 and doesn't work Please comment

blueeagle69 commented 4 years ago

Had a similar Problem on my Cr10 with MKS SGEN L using Z+ endstop pin. the pin has the same pullup, capacitor wiring as the skr 1.3.

My problem was that Marlin does not set the runout distance after flashing the firmware.

M412 echo:Filament runout ON Filament runout distance (mm): 0.00

M412 D7 echo:Filament runout ON Filament runout distance (mm): 7.00

After that the sensor works fine for me

If the runout distance is set in the firmware and flashed it won't get used until you run an M502 to reload factory defaults. Confirmed it the other night. I have the sensor working perfectly connected to the X_Max of my SKR 1.3. Although I had to increase the BTT recommended RUNOUT_DISTANCE_MM from 7mm to 25 in order to stop getting false positives. I'm running a bowden setup with the sensor on top of my BMG clone.

brettvitaz commented 4 years ago

This issue is resolved in Marlin firmware 2.0.6.

I have verified that using PIN 12 now works without further modification of the source code.

GR8YT1 commented 4 years ago

If not mentioned previously, you can uncomment //#define FILAMENT_RUNOUT_SENSOR_DEBUG in RUNOUT.H. The debug information on your console will show you "MOTION DETECTED:0" and "REMAININGMM:#.##" while you're running a print. You just might have to watch very carefully for it as it scrolls by fast.

KiudLyrl commented 3 years ago

Also had to do M412 D7, I have a skr 1.3 and I'm running a marlin bugfix of 2 weeks ago (604d10d3075f6a0b9b40fba85aeee5cb3acefb68)