Re: Filament detector with GT2560 board.
Posted: Wed Jul 18, 2018 2:22 pm
Can anyone help me with this, please? 

Here you can share you great ideas about hardware innovation. Here you can enjoy more professional and specialized services, Here is a platform for you to make a difference!
http://forum.geeetech.com/
If you want to add it, the pwm port is needed.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
Code: Select all
#define X_MAX_PIN -1 // Changed to allow allocation for FIL_RUNOUT_PIN - was 24
Code: Select all
#define FIL_RUNOUT_PIN 24 // Changed - added line to re-assign pin 24 for filament sensor
Code: Select all
#define FILAMENT_RUNOUT_SENSOR // Changed - was commented out - enabled for sensor
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.
Code: Select all
#define FIL_RUNOUT_INVERTING true // Changed was false - Switch connected as NC when filament is present and open when its out.
Thanks for your sharing!We want to add it to the FAQ!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....
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%.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...