Closed nvdias0 closed 8 months ago
The stock JGAurora Magic config matches what we have:
#if ENABLED(FILAMENT_RUNOUT_SENSOR)
#define NUM_RUNOUT_SENSORS 1 // Number of sensors, up to one per extruder. Define a FIL_RUNOUT#_PIN for each.
#define FIL_RUNOUT_INVERTING true // set to true to invert the logic of the sensor.
#define FIL_RUNOUT_PULLUP // Use internal pullup for filament runout pins.
(FIL_RUNOUT_INVERTING true
is now FIL_RUNOUT_STATE HIGH
, so they're the same)
If you send M119
via serial/USB, what does the filament:
line say with filament present? What about without filament?
M119
example:
Send: M119
Recv: Reporting endstop status
Recv: x_min: open
Recv: y_min: open
Recv: z_min: open
Recv: filament: TRIGGERED
With filament loaded:
M119 reports x_min: TRIGGERED y_min: TRIGGERED z_min: TRIGGERED filament: open
Used the unload filament option in the menu It unloaded ok. After filament has been unloaded:
M119 reports the same x_min: TRIGGERED y_min: TRIGGERED z_min: TRIGGERED filament: open
If you revert back to the original firmware, what does M119
report? All of the firmware configs/builds I'm finding for the JGAurora Magic match what we have and with your machine showing filament: open
when filament is both present & removed, points to a possible physical switch/wiring issue.
I've just used a multimeter to test the wiring and filament detection switch. I confirm the wiring is working ok up to the mainboard.
Searching in the code, it assumes that FIL_RUNOUT_PIN for these mainboards BOARD_RAMPS_14_EFB is SERVO3_PIN (pin 4).
BUT ... Looking at the mainboard plug, the filament runout pin in the mainboard is X+ / Pin 2 and not SERVO3_PIN (i've seen the same in several youtube tech tutorials in youtube that shows the mainboard)
So I've added : #define FIL_RUNOUT_PIN X_MAX_PIN into configuration.h
And it worked ! M119 reports filament open or tiggered as expected !
I'm using a JGMAKER / JGAURORA MAGIC.
Thanks
@nvdias0 confirmed they pulled a pin switch on us
vs a stock ramps pin of 4
Added to the JGAurora Magic Fixes PR https://github.com/MarlinFirmware/Configurations/pull/980
After updating to 2.1.2.1 from stock firmware, the filament always auto-unload at print start.