Jump to content
Ultimaker Community of 3D Printing Experts

Detecteur de fin de filament sur UMO (filament runout sensor)


Recommended Posts

Posted (edited) · Detecteur de fin de filament sur UMO (filament runout sensor)

Bonjour,

 

Pour mémo et pour ceux que ça pourrait intéresser. Voici la façon dont j'ais configuré un détecteur de filament sur mon Ultimaker Original. Je suis actuellement avec un Marlin 2.0.7.2.

 

Quelque chose comme ça : https://www.thingiverse.com/thing:285504/makes

DSC_0949.thumb.png.e1be6cb4a1bb49f758ae1b309b301628.png

 

Je me suis appuyé sur ce tuto :

 

L'option changement de filament doit être activée (M600), c'est mon cas, je regarde donc dans mon configuration.h :

/**
 * Filament Runout Sensors
 * Mechanical or opto endstops are used to check for the presence of filament.
 *
 * RAMPS-based boards use SERVO3_PIN for the first runout sensor.
 * For other boards you may need to define FIL_RUNOUT_PIN, FIL_RUNOUT2_PIN, etc.
 */
#define FILAMENT_RUNOUT_SENSOR  //VIVIS activation du detecteur de filament
#if ENABLED(FILAMENT_RUNOUT_SENSOR)
  #define FIL_RUNOUT_ENABLED_DEFAULT true // Enable the sensor on startup. Override with M412 followed by M500.
  #define NUM_RUNOUT_SENSORS   1          // Number of sensors, up to one per extruder. Define a FIL_RUNOUT#_PIN for each.
  #define FIL_RUNOUT_STATE     LOW        // Pin state indicating that filament is NOT present.
  #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 execute on filament runout.
  // (After 'M412 H' Marlin will ask the host to handle the process.)
  #define FILAMENT_RUNOUT_SCRIPT "M600"

  // 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

"For other boards you may need to define FIL_RUNOUT_PIN" donc je regarde dans pins/ramps/pins_ultimaker.h (cf vidéo plus haut):

// Servos
//
#define SERVO0_PIN                            11

Alors on tente :

#define FILAMENT_RUNOUT_SENSOR  //VIVIS activation du detecteur de filament
#if ENABLED(FILAMENT_RUNOUT_SENSOR)
  #define FIL_RUNOUT_PIN       11          //VIVIS yolo on se tente de brancher le detecteur sur le pin 11 du EXT3     4
  #define FIL_RUNOUT_ENABLED_DEFAULT true // Enable the sensor on startup. Override with M412 followed by M500.
  #define NUM_RUNOUT_SENSORS   1          // Number of sensors, up to one per extruder. Define a FIL_RUNOUT#_PIN for each.
  #define FIL_RUNOUT_STATE     LOW        // Pin state indicating that filament is NOT present.
  #define FIL_RUNOUT_PULLUP               // Use internal pullup for filament runout pins.
  //#define FIL_RUNOUT_PULLDOWN           // Use internal pulldown for filament runout pins.

 

Je branche deux fils au niveau de l'EXT3 (j'en profite pour souder des connecteurs), un sur GND et l'autre sur le pin 11 CA FONCTIONNE !! Lorsque les fils ne se touchent pas ça imprime, si je les met en contacte ça lance le script M600 (changement de filament). Pour le détecteur préfabriqué acheté sur Aliexpress j'ajoute le +5V.

DSC_0837.thumb.png.29511261851186e6e65021278fc5574e.png

 

J'ai pris un détecteur près fabriqué mais je trouve qu'il y a plus de friction, je vais peut être garder celui que j'ai fait moi même qu'on voit sur la première photo du post..

DSC_0946.thumb.png.a4e457abcb9150264d5e67704f138a7f.png

 

Modif comit sur mon github : https://github.com/Ecoologeek/Marlin-pour-Ultimaker-Original-Custom

Edited by ecologeek
  • Link to post
    Share on other sites
    • ecologeek changed the title to Detecteur de fin de filament sur UMO (filament runout sensor)

    Create an account or sign in to comment

    You need to be a member in order to leave a comment

    Create an account

    Sign up for a new account in our community. It's easy!

    Register a new account

    Sign in

    Already have an account? Sign in here.

    Sign In Now
    • Our picks

      • Startups, apply for the Forward AM Innovation Award!
        Are you a startup using 3D printing? Perhaps you should continue reading... 
         
        Together with BASF we are launching the Forward AM Innovation Award - the very first global contest for startups developing new applications with 3D printing!
         
        Why apply?
        The winning startup will receive €100,000 in goods and services*, along with coaching and marketing exposure from top-notch leaders in the industry.
         

         
        Who can apply?
        Your startup creates products using Additive Manufacturing, is less than 5 years old, and has less than 50 employees. We are looking for 3D printing applications with a strong focus on innovation, sustainability and scalability.
         
        Dental aligners, shoes, tools, automotive parts, music instruments, industrial tooling and molding, medical implants, sports equipment, toys, architecture, fashion, construction... all are welcome to join!
         
        Do you have an innovative, sustainable and scalable idea that leverages the unique possibilities of 3D printing? Then it is time to apply!
        More information can be found here.
         
        Applications close on March 28th, 2021
        * What does "in goods and services" mean?
        The winner will be able to pick any item from the overall product and service portfolio of the sponsors, e.g. printers, materials, consulting, software... Choose whatever you need to accelerate your startup.
         
          • Like
        • 0 replies
      • New here? Register your Ultimaker for free 3D printer onboarding course
        Hi,
         
        Often getting started is the most difficult part of any process. A good start sets you up for success and saves you time and energy that could be spent elsewhere. That is why we have a onboarding course ready for
        Ultimaker S5 Pro Bundle, Ultimaker S5, Ultimaker S3 Ultimaker 2+ Connect.   
        They're ready for you on the Ultimaker Academy platform. All you need to do to gain access is to register your product to gain free access. 
        Ready? Register your product here in just 60 seconds.
          • Like
        • 0 replies
    ×
    ×
    • Create New...