Aller au contenu

GO Print

Branchement du capteur de proximité -LJC18A3 H Z/BX


taratata

Messages recommandés

bonjour à tous

Marlin RCBugFix "Default_version.h"

#define SHORT_BUILD_VERSION "1.1.0-RC5"
#define DETAILED_BUILD_VERSION "1.1.0-RC5 From Archive"
#define STRING_DISTRIBUTION_DATE "2016-04-01 12:00"

j'ai brancher la capteur de proximité LJC18A3 H Z/BX comme ceci

Le fil jaune est brancher sur le PIN Signale min-Z Ramps1.4

1.jpg

J'ai bien une tension de 6.64v aux bornes (Jaune/Noir à droite de l'image) sans détection

MesureVolt_NODetect.JPG

J'ai bien une tension de 0v aux bornes (Jaune/Noir à droite de l'image) avec détection (tournvis métal)

MesureVolt_WithDetect.JPG

J'en déduis qu'il est toujours alimenté en position de non détection.

Si j'ai bien compris, le capteur de proximité remplace le EndStop mécanique Z.

Sous Repetier-Host,

M119 donne  bien "Open" sur les 3 axes lorsqu'ils sont situés sur un point de l'axe

M119 donne  bien "Triggered" sur l'axe Z lorsqu'ils lorsqu'il est en mode de détection

Voici comment j'ai configuré

Editer Configuration.h

Définir la configuration physique de l'état du contacteur mécanique de fin de course
[NC]=False ou [NO]=True
const bool Z_MIN_ENDSTOP_INVERTING = true;

Permet de dépasser la valeur de la variable Z_HOME_POS
#define min_software_endstops false

Active le mode Auto Bed Leveling
#define AUTO_BED_LEVELING_FEATURE
#define FIX_MOUNTED_PROBE

Activer l'utilisation de la grille
#define AUTO_BED_LEVELING_GRID

    #define LEFT_PROBE_BED_POSITION 15
    #define RIGHT_PROBE_BED_POSITION 170
    #define FRONT_PROBE_BED_POSITION 20
    #define BACK_PROBE_BED_POSITION 170

Détermine la distance entre la tête d'impression et le capteur de proximité
#define X_PROBE_OFFSET_FROM_EXTRUDER 10
#define Y_PROBE_OFFSET_FROM_EXTRUDER 10
#define Z_PROBE_OFFSET_FROM_EXTRUDER 0

Enregistrer la nouvelle configuration 
Mettre à jour le firmware

Tracer les deux diagonales du plateau pour obtenir son centre. 
Lancer Repetier-Host
Positionner la tête d'impression au centre du plateau X,Y
Descendre finement la buse sur une feuille 80g/m2 (s'il reste encore espace et que l'axe est en bout de course, alors modifier la sensibilité du capteur de proximité).

Exécuter  G92 X0 Y0 Z0
Placer l'extruder sur le centre du plateau Axe X
Placer l'extruder sur le centre du plateau Axe Y
Descendre en Z jusqu'à que le LED s'allume
 

X=58.00       Y=-7.0      Z=-0.23
Déconnecter Repetier-Host

Editer Configuration.h
Détermine la distance entre la tête d'impression et le capteur de proximité
#define X_PROBE_OFFSET_FROM_EXTRUDER -58
#define Y_PROBE_OFFSET_FROM_EXTRUDER -7
#define Z_PROBE_OFFSET_FROM_EXTRUDER 0.23

Enregistrer la nouvelle configuration 
Mettre à jour le firmware

Lancer Repetier-Host
Slic3r  Introduire la commande de mise ne position absolue
Onglet "Trancheur\Configuration\Printer Settings\Custom G-Code\Start G-code"
G28 ; Home all axis
G29 ; Auto leveling
 
puis enregistrer

Une fois sous Repetier-Host en mode "Essais à vide" ou pas, la commande G29 renvoie echo:Home X/Y before Z (rien ne bouge)

Si je fais Home Z, l'axe descend est force.

auriez-vous une idée svp... merci

 

 

 

Modifié (le) par taratata
Lien vers le commentaire
Partager sur d’autres sites

je te mets un bout de mon marlin si ca peut aider.

Révélation

#define min_software_endstops true // If true, axis won't move to coordinates less than HOME_POS.
#define max_software_endstops true  // If true, axis won't move to coordinates greater than the defined lengths below.

// Travel limits after homing
#define X_MAX_POS         220
#define X_MIN_POS         -5
#define Y_MAX_POS         220
#define Y_MIN_POS         -5
#define Z_MAX_POS         230
#define Z_MIN_POS        0

#define X_MAX_LENGTH     (X_MAX_POS - X_MIN_POS)
#define Y_MAX_LENGTH     (Y_MAX_POS - Y_MIN_POS)
#define Z_MAX_LENGTH     (Z_MAX_POS - Z_MIN_POS)
//============================= Bed Auto Leveling ===========================

#define ENABLE_AUTO_BED_LEVELING // Delete the comment to enable (remove // at the start of the line)

#ifdef ENABLE_AUTO_BED_LEVELING

// There are 2 different ways to pick the X and Y locations to probe:

//  - "grid" mode
//    Probe every point in a rectangular grid
//    You must specify the rectangle, and the density of sample points
//    This mode is preferred because there are more measurements.
//    It used to be called ACCURATE_BED_LEVELING but "grid" is more descriptive

//  - "3-point" mode
//    Probe 3 arbitrary points on the bed (that aren't colinear)
//    You must specify the X & Y coordinates of all 3 points

  #define AUTO_BED_LEVELING_GRID
  // with AUTO_BED_LEVELING_GRID, the bed is sampled in a
  // AUTO_BED_LEVELING_GRID_POINTSxAUTO_BED_LEVELING_GRID_POINTS grid
  // and least squares solution is calculated
  // Note: this feature occupies 10'206 byte
  #ifdef AUTO_BED_LEVELING_GRID
    // set the rectangle in which to probe
    #define LEFT_PROBE_BED_POSITION     30
    #define RIGHT_PROBE_BED_POSITION     180
    #define BACK_PROBE_BED_POSITION     180
    #define FRONT_PROBE_BED_POSITION     10

     // set the number of grid points per dimension
     // I wouldn't see a reason to go above 3 (=9 probing points on the bed)
    #define AUTO_BED_LEVELING_GRID_POINTS 2
  #else  // not AUTO_BED_LEVELING_GRID
    // with no grid, just probe 3 arbitrary points.  A simple cross-product
    // is used to esimate the plane of the print bed

      #define ABL_PROBE_PT_1_X             20//15
      #define ABL_PROBE_PT_1_Y             160//180
      #define ABL_PROBE_PT_2_X             20//15
      #define ABL_PROBE_PT_2_Y             10//20
      #define ABL_PROBE_PT_3_X             180//170
      #define ABL_PROBE_PT_3_Y             10//20

  #endif // AUTO_BED_LEVELING_GRID


  // these are the offsets to the probe relative to the extruder tip (Hotend - Probe)
  #define X_PROBE_OFFSET_FROM_EXTRUDER         -33//-25
  #define Y_PROBE_OFFSET_FROM_EXTRUDER         -8//-29
  #define Z_PROBE_OFFSET_FROM_EXTRUDER         -1//-12.35

  #define Z_RAISE_BEFORE_HOMING             10       // (in mm) Raise Z before homing (G28) for Probe Clearance.
                                                    // Be sure you have this distance over your Z_MAX_POS in case

  #define XY_TRAVEL_SPEED                     12000         // X and Y axis travel speed between probes, in mm/min

  #define Z_RAISE_BEFORE_PROBING             10    //How much the extruder will be raised before traveling to the first probing point.
  #define Z_RAISE_BETWEEN_PROBINGS             3  //How much the extruder will be raised when traveling from between next probing points


  //If defined, the Probe servo will be turned on only during movement and then turned off to avoid jerk
  //The value is the delay to turn the servo off after powered on - depends on the servo speed; 300ms is good value, but you can try lower it.
  // You MUST HAVE the SERVO_ENDSTOPS defined to use here a value higher than zero otherwise your code will not compile.

//  #define PROBE_SERVO_DEACTIVATION_DELAY 300

//If you have enabled the Bed Auto Leveling and are using the same Z Probe for Z Homing,
//it is highly recommended you let this Z_SAFE_HOMING enabled!!!

  #define Z_SAFE_HOMING   // This feature is meant to avoid Z homing with probe outside the bed area.
                          // When defined, it will:
                          // - Allow Z homing only after X and Y homing AND stepper drivers still enabled
                          // - If stepper drivers timeout, it will need X and Y homing again before Z homing
                          // - Position the probe in a defined XY point before Z Homing when homing all axis (G28)
                          // - Block Z homing only when the probe is outside bed area.
  #ifdef Z_SAFE_HOMING
    #define Z_SAFE_HOMING_X_POINT (X_MAX_POS/2)    // X point for Z homing when homing all axis (G28)
    #define Z_SAFE_HOMING_Y_POINT (Y_MAX_POS/2)    // Y point for Z homing when homing all axis (G28)
  #endif
#endif // ENABLE_AUTO_BED_LEVELING


// The position of the homing switches
//#define MANUAL_HOME_POSITIONS  // If defined, MANUAL_*_HOME_POS below will be used
//#define BED_CENTER_AT_0_0  // If defined, the center of the bed is at (X=0, Y=0)

//Manual homing switch locations:
// For deltabots this means top and center of the Cartesian print volume.
#define MANUAL_X_HOME_POS             0
#define MANUAL_Y_HOME_POS             0
#define MANUAL_Z_HOME_POS             0

 

 

Lien vers le commentaire
Partager sur d’autres sites

je viens vers toi pour te demander ton avis sur se capteur de proximité ? 
tu utilise plateau metal ou vitre ou autre ? (est-ce compatible pour tout ?)

car je pense en installer un, mais j'hésite sur lequel prendre.

Lien vers le commentaire
Partager sur d’autres sites

mis à part qu'il est volumineux (18mm de diamètre), il fonctionne très bien avec du métal et verre aussi.

actuellement je suis sur du métal et envisage de mettre du verre une fois la configuration au petit oignons finie.

Lien vers le commentaire
Partager sur d’autres sites

  • 2 weeks later...

désolé du retard et merci des renseignement.

je viens de voir que je me suis tromper de capteur.

J'ai pris un inductif au lieux du capacatif. Et vu que j'ai un miroir de 2mm, je pense bien que je suis à commander le bon :$

Lien vers le commentaire
Partager sur d’autres sites

  • 8 months later...
Le 12/04/2016 at 12:54, taratata a dit :

Métal uniquement  - PL-05N NPN - LJ12A3-4-Z _AY

Métal & Verre  - LJC18A3-H-Z _BX - NPN NO

perso apres avoir ecumé le forum reprap depuis des jours les capteurs capacitifs et inductifs ne sont vraiment pas precis et adapté!!

les meilleurs sont ces derniers

http://www.ebay.com/itm/Aus3D-IR-Z-Probe-E3D-Compatible-RepRap-3D-Printer-Bed-Levelling-Sensor-/231726084825?hash=item35f3f372d9:g:HLMAAOSwZSFXJEyh

 

http://aus3d.com.au/electrical/endstops/ir-z-probe

 

ou celui la

http://www.filafarm.de/products/bltouch#

 

c est les deux meilleurs solutions en terme de precision et surtout d efficacité sans etre affecté par la temperature avoisinante 

le premier a l avantage d etre leger,tres precis, et full opensource donc adapatable sur toutes les cartes meme les 32bits..mais necessite si on utilise un plateau en verre de mettre du papier noir.on ne peut pas utiliser un plateau en alu par contre

 

le deuxième marche sur toutes les surfaces mais n est pas opensource donc fonctionne pas sur des 32bits ..c est un solenoide donc ultra precis egalement mais comme toute mecanique il faut faire plus attention..j ai pris de ce fait le premier car il y a aucune contrainte hormis de pas utiliser un plateau en alu

  • Merci ! 1
Lien vers le commentaire
Partager sur d’autres sites

Créer un compte ou se connecter pour commenter

Vous devez être membre afin de pouvoir déposer un commentaire

Créer un compte

Créez un compte sur notre communauté. C’est facile !

Créer un nouveau compte

Se connecter

Vous avez déjà un compte ? Connectez-vous ici.

Connectez-vous maintenant
×
×
  • Créer...