Jump to content

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


ecologeek

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

      • UltiMaker Cura 5.8 beta released
        Another Cura release has arrived and in this 5.8 beta release, the focus is on improving Z seams, as well as completing support for the full Method series of printers by introducing a profile for the UltiMaker Method.
          • Like
        • 1 reply
      • Introducing the UltiMaker Factor 4
        We are happy to announce the next evolution in the UltiMaker 3D printer lineup: the UltiMaker Factor 4 industrial-grade 3D printer, designed to take manufacturing to new levels of efficiency and reliability. Factor 4 is an end-to-end 3D printing solution for light industrial applications
          • Thanks
          • Like
        • 3 replies
    ×
    ×
    • Create New...