Page 2 of 3

Re: Filament detector with GT2560 board.

Posted: Wed Jul 18, 2018 2:22 pm
by Blisk
Can anyone help me with this, please? :cry:

Re: Filament detector with GT2560 board.

Posted: Mon Jul 23, 2018 7:51 pm
by Zyrena
Bit of a newbie to the whole 3D printer thing and a have a question regarding this mod. I'm using this board and also using one of those auto-levelling sensors. I see you are taking the 5v from the BL Sensor pin to the filament out detector. Now I'm not all that geared up on the electronics but wondered if it is still going to be safe to draw the 5v with the autoleveller as well as using the filament detector?

Re: Filament detector with GT2560 board.

Posted: Tue Jul 24, 2018 8:49 pm
by Blisk
filament detector is just a regular switch like Xmin or Ymin but with led. It doesn't consume alot of power

Re: Filament detector with GT2560 board.

Posted: Wed Jul 25, 2018 1:43 pm
by Zyrena
Thanks for the reply! Yes I thought this would be the case, but always better to check first when I'm not 100% sure what I'm doing, :)

Re: Filament detector with GT2560 board.

Posted: Mon Nov 26, 2018 10:25 am
by William
Blisk wrote: Tue Jul 24, 2018 8:49 pm filament detector is just a regular switch like Xmin or Ymin but with led. It doesn't consume alot of power
If you want to add it, the pwm port is needed.

Re: Filament detector with GT2560 board.

Posted: Sun Jan 06, 2019 5:21 am
by SmithRC
Hi All...

I'm fairly new to Marlin and the add-ons it offers, So I found myself here via google to setup a simple filament sensor on my GT2560 Rev A i3 Pro B

I started from a virgin version of Marlin and have so far added auto level bed sensor (using an SN04 sensor)
I'm now taking the z-axis micro-switch and making it into the filament sensor.

So... I've not set my motherboard correctly in Marlin (only just realised this) so I've now figured out that I needed to make changes to the Ultimaker_pins file and not the GT2650reva one.

anyway...
I'm running V1.1.8 and have changed the following -

So in the ultimaker_pins file, In the limit switches section...

Code: Select all

#define X_MAX_PIN          -1  // Changed to allow allocation for FIL_RUNOUT_PIN - was 24
and then added the following line at the bottom of that section

Code: Select all

#define FIL_RUNOUT_PIN     24  // Changed - added line to re-assign pin 24 for filament sensor
In the configuration.h
find this line and un-comment it

Code: Select all

#define FILAMENT_RUNOUT_SENSOR  //  Changed - was commented out - enabled for sensor
.

In the Configuration_adv.h
find these lines and un-comment them

Code: Select all

      #define NOZZLE_PARK_FEATURE  // Changed - was commented out - enabled for M600 command
      #define ADVANCED_PAUSE_FEATURE  //  Changed was commented out - enabled to support M600 for filament sensor and filament change.

Complied and uploaded ok.

After checking the status of the filament runout sensor using M119, it showed as triggered and open ok.
But it wouldnt print, it just kept looping the M600 filament change routine.

After a bit of double checking, all I needed to change was to

Code: Select all

#define FIL_RUNOUT_INVERTING true // Changed was false - Switch connected as NC when filament is present and open when its out.

Hope that helps people....

Re: Filament detector with GT2560 board.

Posted: Mon Jan 07, 2019 2:40 pm
by William
SmithRC wrote: Sun Jan 06, 2019 5:21 am Hi All...

I'm fairly new to Marlin and the add-ons it offers, So I found myself here via google to setup a simple filament sensor on my GT2560 Rev A i3 Pro B

I started from a virgin version of Marlin and have so far added auto level bed sensor (using an SN04 sensor)
I'm now taking the z-axis micro-switch and making it into the filament sensor.

So... I've not set my motherboard correctly in Marlin (only just realised this) so I've now figured out that I needed to make changes to the Ultimaker_pins file and not the GT2650reva one.

anyway...
I'm running V1.1.8 and have changed the following -

So in the ultimaker_pins file, In the limit switches section...

#define X_MAX_PIN -1 // Changed to allow allocation for FIL_RUNOUT_PIN - was 24
and then added the following line at the bottom of that section
#define FIL_RUNOUT_PIN 24 // Changed - added line to re-assign pin 24 for filament sensor

In the configuration.h
find this line and un-comment it
#define FILAMENT_RUNOUT_SENSOR // Changed - was commented out - enabled for sensor.

In the Configuration_adv.h
find these lines and un-comment them
#define NOZZLE_PARK_FEATURE // Changed - was commented out - enabled for M600 command
#define ADVANCED_PAUSE_FEATURE // Changed was commented out - enabled to support M600 for filament sensor and filament change.


Complied and uploaded ok.

After checking the status of the filament runout sensor using M119, it showed as triggered and open ok.
But it wouldnt print, it just kept looping the M600 filament change routine.

After a bit of double checking, all I needed to change was to
#define FIL_RUNOUT_INVERTING true // Changed was false - Switch connected as NC when filament is present and open when its out.


Hope that helps people....
Thanks for your sharing!We want to add it to the FAQ!
;)

Re: Filament detector with GT2560 board.

Posted: Thu Feb 07, 2019 4:25 am
by Alexesporte
You open Marlin in the Arduine and appears several abas. It's only going on aba pins.h

Re: Filament detector with GT2560 board.

Posted: Thu Jul 25, 2019 6:31 am
by ThomasWright13
JohnDeere630 wrote: Tue Jun 05, 2018 7:34 am @ Ikn369330,
I'm sorry I didn't see this earlier; did you get this sorted? I had desolder the 2-pin X-max socket on the motherboard, and solder in a 3-pin socket.
https://www.writemyessay24h.net/
I made up a drawing to label the connectors on the board...
Actually, if you had bothered to follow the link to the MD web-site you would have seen that the black and white rates were almost identical, black rate at 18.3% and white rate at 19.4%.

Re: Filament detector with GT2560 board.

Posted: Sat Mar 07, 2020 4:08 am
by Eisbaeeer
Hey guys
Is it also possible to realize a filament jam sensor?
I build a jam filament sensor who gives pulses if filament is running. If the filament is jamming, the pulses stops.
Did anybody realized such thing in firmware?

Greets Eisbaeeer
Filament-jam-sensor.png
Filament-jam-sensor.png (474.07 KiB) Viewed 19490 times