Welcome! Log In Create A New Profile

Advanced

geeetech i3 pro c marlin 1.1.8 "Filament out" configuration

Posted by softfoot 
geeetech i3 pro c marlin 1.1.8 "Filament out" configuration
February 01, 2020 12:47PM
Hi, I am trying to setup a filament out sensor on my Geetech i3 pro C running Marlin 1.1.8.

I believe I have made all the required config changes but M119 only displays X/Y/Z_MIN status and not X_MAX status (the printer repurposes the X_MAX connector for Filament Out.

Oh gurus - what am I missing ??

Having got the printer setup for 1.1.8 I am a bit loath to move to 2.0.x just yet.

Has anyone else succeeded in this ?? Any hints welcome.

TIA
Dave
Re: geeetech i3 pro c marlin 1.1.8 "Filament out" configuration
February 01, 2020 02:15PM
I have configured a filament out for Marlin.
I have a ramps 1.4 compatible controller, below in the pins_ramps.h I changed pin 4 to 2 as shown in the code

// define digital pin 4 for the filament runout sensor. Use the RAMPS 1.4 digital input 4 on the servos connector
// #define FIL_RUNOUT_PIN      4
// define X_MAX_PIN 2 for the filament runout sensor. 
#define FIL_RUNOUT_PIN      2

then I enabled the filament out in configuration.h

#define FILAMENT_RUNOUT_SENSOR
#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.
  //#define FIL_RUNOUT_PULLDOWN      // Use internal pulldown for filament runout pins.

  // Set one or more commands to run on filament runout.
  //  - Always applies to SD-card printing.
  //  - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set.
  #define FILAMENT_RUNOUT_SCRIPT "M600"

  // With this option, if filament runs out during host-based printing, Marlin 
  // will send "//action:" to the host and let the
  // host handle filament change. If left undefined the FILAMENT_RUNOUT_SCRIPT
  // will be used on filament runout for both host-based and SD-card printing.
  //
  // The host must be able to respond to the //action: command set here.
  //
  //#define ACTION_ON_FILAMENT_RUNOUT "pause: filament_runout"

  // After a runout is detected, continue printing this length of filament
  // before executing the runout script. Useful for a sensor at the end of
  // a feed tube. Requires 4 bytes SRAM per sensor, plus 4 bytes overhead.
  //#define FILAMENT_RUNOUT_DISTANCE_MM 25

  #ifdef FILAMENT_RUNOUT_DISTANCE_MM
    // Enable this option to use an encoder disc that toggles the runout pin
    // as the filament moves. (Be sure to set FILAMENT_RUNOUT_DISTANCE_MM
    // large enough to avoid false positives.)
    //#define FILAMENT_MOTION_SENSOR
  #endif
#endif


Computer Programmer / Electronics Technician
Re: geeetech i3 pro c marlin 1.1.8 "Filament out" configuration
February 02, 2020 07:54AM
That is for Marlin 1.1.9 or 2.0.x -- NUM_RUNOUT_SENSORS only exists in 2.0 -- I am using 1.1.8

All of the other changes are in but make no difference.

Is it known to work for 1.1.8 ???? or am I flogging a dead horse ??!

Dave

Edited 2 time(s). Last edit at 02/02/2020 08:06AM by softfoot.
Re: geeetech i3 pro c marlin 1.1.8 "Filament out" configuration
February 02, 2020 09:30AM
I started with a really old version Marlin 1.1.x dated 16 Mar 2016 from Chip Luck these settings have changed very little in the 3 going on 4 years I have used Marlin.

Have updated each version of the firmware with almost the exact same settings as I had from Chip Luck's Marlin dated 16 Mar 2016.
The only changes I have made are with adding Bilinear Bed Leveling

#define JUNCTION_DEVIATION
#define S_CURVE_ACCELERATION

Other than these small changes the firmware configuration is the same. Label names may have been changed the firmware configuration is the same.

Edited 3 time(s). Last edit at 02/02/2020 09:33AM by Roberts_Clif.


Computer Programmer / Electronics Technician
Re: geeetech i3 pro c marlin 1.1.8 "Filament out" configuration
February 02, 2020 01:04PM
I can only think it is some other difference in the printer specific config ... any chance you could email me your "configuration.h" file ???
Regards
Dave
Re: geeetech i3 pro c marlin 1.1.8 "Filament out" configuration
February 02, 2020 02:52PM
I could post My configuration.h file though I do not have a Geeetech i3 Pro.

I have a Hictop 3DP11/12 (Prusa i3 compatible) 3D Printer with a Arduino Mega 2560 Ramps 1.4 compatible controller card.


Computer Programmer / Electronics Technician
Re: geeetech i3 pro c marlin 1.1.8 "Filament out" configuration
February 02, 2020 03:31PM
Thats fine - nd ,ay give me a clue.
Dave
Re: geeetech i3 pro c marlin 1.1.8 "Filament out" configuration
February 02, 2020 09:29PM
OK Here you go this is the last 4 Versions of firmware that I configured for My 3DP11/12 Hictop (Prusa i3 compatible) 3D Printers.
These have been setup for a Filament Runout Sensor on X-Max end-stop, a Omron TL-W3MC2 Proximity Sensor.
Changes have been made In the following files.

pins_ramps.h
Configuration.h
Configuration.adv.h

These are configured for
#define MOTHERBOARD BOARD_RAMPS_14_EFB
which I later deturmined was a MKS Mother board and changed to 
#define MOTHERBOARD BOARD_MKS_GEN_13

Downloads on Google Drive

Edited 3 time(s). Last edit at 02/02/2020 09:32PM by Roberts_Clif.


Computer Programmer / Electronics Technician
Re: geeetech i3 pro c marlin 1.1.8 "Filament out" configuration
February 03, 2020 11:23AM
Thank you for the help - your configs were invaluable.

I notice you didnt bother with 1.1.8 ;-)

Under 1.1.8 there were a number of problems including a missing function call and a problem with the ordering of include files which didnt pass on the enabling of the "fillament out" sensor.

It all seems to be working as it should now. It's all a bit of a bodge so a move to 1.1.9 is probably a good idea, and 2.0.x even better.

Again, many thanks for the help.
Dave.
Re: geeetech i3 pro c marlin 1.1.8 "Filament out" configuration
February 03, 2020 01:24PM
I never used Marlin 1.1.8 the versions listed are the Only versions of Marlin that were up and running on any of my 3D Printers.
Have configured every Marlin 1.1.x firmware though, they were never uploaded to or tested on a Ramps compatible controller.

If I remember correctly was told it was not worth my time and had too many bugs. Anyway is does not matter as am 3D Printing my best on Marlin 2.0.x alpha.
One of these days will upload Marlin 2.0 stable release, have all Marlin 2 versions configured still on the first Marlin 2 alpha it runs great no reason to upgrade.


Computer Programmer / Electronics Technician
Re: geeetech i3 pro c marlin 1.1.8 "Filament out" configuration
February 03, 2020 02:27PM
Unfortunately Geetech churned out a version of 1.1.8 with various fixes in it for my machine and at the time I gor the printer it was the only fw that you could build reliably - that's why I amy loath to go to 1.1.9 ... I'll try 2.0x when I feel brave ;-)
Dave
Re: geeetech i3 pro c marlin 1.1.8 "Filament out" configuration
February 03, 2020 06:01PM
Well then here is my Settings for Marlin 1.1.8

Configuration.h
Configuration_adv.h
pins_RAMPS.h

Marlin1.1.8.zip

You can see I missed changing #define MOSFET_D_PIN -1 in pins_RAMPS.h

#define MOSFET_D_PIN 7

missed changing #define MOTHERBOARD BOARD_RAMPS_14_EFB in configuration.h

#define MOTHERBOARD BOARD_MKS_GEN_13

To be compatible with my controllers.

Note:: I have 5 Stepper motor controllers X, Y, Z, E0, E1,

Edited 3 time(s). Last edit at 02/03/2020 06:14PM by Roberts_Clif.


Computer Programmer / Electronics Technician
Re: geeetech i3 pro c marlin 1.1.8 "Filament out" configuration
February 04, 2020 04:40AM
Many thanks
Dave
Re: geeetech i3 pro c marlin 1.1.8 "Filament out" configuration
February 04, 2020 09:29AM
You are welcome,

I hope it helps you.


Computer Programmer / Electronics Technician
Sorry, only registered users may post in this forum.

Click here to login