MMU2 Extruder Sensor support (#17886)

This commit is contained in:
Bastien R
2020-05-17 21:52:45 +02:00
committed by GitHub
parent df04a427f3
commit 2ec482a102
5 changed files with 289 additions and 74 deletions

View File

@ -3279,7 +3279,7 @@
// This is for Prusa MK3-style extruders. Customize for your hardware.
#define MMU2_FILAMENTCHANGE_EJECT_FEED 80.0
#define MMU2_LOAD_TO_NOZZLE_SEQUENCE \
{ 7.2, 562 }, \
{ 7.2, 1145 }, \
{ 14.4, 871 }, \
{ 36.0, 1393 }, \
{ 14.4, 871 }, \
@ -3299,7 +3299,25 @@
{ -50.0, 2000 }
#endif
// Using a sensor like the MMU2S
/**
* MMU Extruder Sensor
* Add support for Prusa IR Sensor (or other) to detect that filament reach the extruder to make loading filament more reliable
* If your extruder is equipped with a filament sensor located less than 38mm from the gears you can use this feature
* During loading to the extruder, the sensor will stop the loading command when he's triggered and make a last move to load filament to the gears
* If no filament is detected, MMU2 will make more loading attemps, if finally no filament is detected, the printer will enter in runout state
*/
//#define MMU_EXTRUDER_SENSOR
#if ENABLED(MMU_EXTRUDER_SENSOR)
#define MMU_LOADING_ATTEMPTS_NR 5 //max. number of attempts to load filament if first load fail
#endif
/**
* Using a sensor like the MMU2S
* This mode only work if you have a MK3S extruder with sensor sensing the extruder idler mmu2s
* See https://help.prusa3d.com/en/guide/3b-mk3s-mk2-5s-extruder-upgrade_41560, step 11
*/
//#define PRUSA_MMU2_S_MODE
#if ENABLED(PRUSA_MMU2_S_MODE)
#define MMU2_C0_RETRY 5 // Number of retries (total time = timeout*retries)