Welcome! Log In Create A New Profile

Advanced

problema con tmc2130, mkduo 4.3.3. e sensorless homing

Posted by giuseppecalasso 
problema con tmc2130, mkduo 4.3.3. e sensorless homing
January 13, 2018 04:37AM
buongiorno,
non riesco a far funzionare il sensorless_homing riscontrando il seguente problema:
-facendo l'azzeramento i motori si muovono a malapena di qualche millimetro
-il problema si presenta anche con X_HOMING_SENSITIVITY impostato a 50

la parte del firmware è configurata così:
#if ENABLED(HAVE_TMC2130)

  // CHOOSE YOUR MOTORS HERE, THIS IS MANDATORY
  #define X_IS_TMC2130                                                                                
  //#define X2_IS_TMC2130
  #define Y_IS_TMC2130                                                                                
  //#define Y2_IS_TMC2130
  #define Z_IS_TMC2130                                                                               
  //#define Z2_IS_TMC2130
  #define E0_IS_TMC2130                                                                               
  //#define E1_IS_TMC2130
  //#define E2_IS_TMC2130
  //#define E3_IS_TMC2130
  //#define E4_IS_TMC2130
  //#define E5_IS_TMC2130

  /**
   * Stepper driver settings
   */

  #define R_SENSE           0.11  // R_sense resistor for SilentStepStick2130
  #define HOLD_MULTIPLIER    0.2  // Scales down the holding current from run current               
  #define INTERPOLATE       true  // Interpolate X/Y/Z_MICROSTEPS to 256

  #define X_CURRENT          800  // rms current in mA. Multiply by 1.41 for peak current.
  #define X_MICROSTEPS        16  // 0..256

  #define Y_CURRENT          800
  #define Y_MICROSTEPS        16

  #define Z_CURRENT          800
  #define Z_MICROSTEPS        16

  //#define X2_CURRENT         800                                                                                                                               
  //#define X2_MICROSTEPS       16                                                                   

  //#define Y2_CURRENT         800                                                                 
  //#define Y2_MICROSTEPS       16                                                                 

  //#define Z2_CURRENT         800                                                                   
  //#define Z2_MICROSTEPS       16                                                                   

  #define E0_CURRENT         800
  #define E0_MICROSTEPS       16

  //#define E1_CURRENT         800                                                                   
  //#define E1_MICROSTEPS       16                                                                   

  //#define E2_CURRENT         800                                                                   
  //#define E2_MICROSTEPS       16                                                                   

  //#define E3_CURRENT         800                                                                  
  //#define E3_MICROSTEPS       16                                                                   

  //#define E4_CURRENT         800                                                                   
  //#define E4_MICROSTEPS       16                                                                  

  //#define E5_CURRENT         800                                                                  
  //#define E5_MICROSTEPS       16                                                                   

  /**
   * Use Trinamic's ultra quiet stepping mode.
   * When disabled, MK4duo will use spreadCycle stepping mode.
   */
  #define STEALTHCHOP                                                                             

  /**
   * Monitor Trinamic TMC2130 drivers for error conditions,
   * like overtemperature and short to ground.
   * In the case of overtemperature MK4duo can decrease the driver current until error condition clears.
   * Other detected conditions can be used to stop the current print.
   * Relevant g-codes:
   * M906 - Set or get motor current in milliamps using axis codes X, Y, Z, E. Report values if no axis codes given.
   * M911 - Report stepper driver overtemperature pre-warn condition.
   * M912 - Clear stepper driver overtemperature pre-warn condition flag.
   * M922 S0/1 - Report driver parameters (Requires TMC_DEBUG)
   */
  //#define MONITOR_DRIVER_STATUS

  #if ENABLED(MONITOR_DRIVER_STATUS)
    #define CURRENT_STEP_DOWN     50  // [mA]
    #define REPORT_CURRENT_CHANGE
    #define STOP_ON_ERROR
  #endif

  /**
   * The driver will switch to spreadCycle when stepper speed is over HYBRID_THRESHOLD.
   * This mode allows for faster movements at the expense of higher noise levels.
   * STEALTHCHOP needs to be enabled.
   * M913 X/Y/Z/E to live tune the setting
   */
  #define HYBRID_THRESHOLD                                                                                    

  #define X_HYBRID_THRESHOLD     100  // [mm/s]
  #define X2_HYBRID_THRESHOLD    100
  #define Y_HYBRID_THRESHOLD     100
  #define Y2_HYBRID_THRESHOLD    100
  #define Z_HYBRID_THRESHOLD       3
  #define Z2_HYBRID_THRESHOLD      3
  #define E0_HYBRID_THRESHOLD     30
  #define E1_HYBRID_THRESHOLD     30
  #define E2_HYBRID_THRESHOLD     30
  #define E3_HYBRID_THRESHOLD     30
  #define E4_HYBRID_THRESHOLD     30

  /**
   * Use stallGuard2 to sense an obstacle and trigger an endstop.
   * You need to place a wire from the driver's DIAG1 pin to the X/Y endstop pin.
   * If used along with STEALTHCHOP, the movement will be louder when homing. This is normal.
   *
   * X/Y_HOMING_SENSITIVITY is used for tuning the trigger sensitivity.
   * Higher values make the system LESS sensitive.
   * Lower value make the system MORE sensitive.
   * Too low values can lead to false positives, while too high values will collide the axis without triggering.
   * It is advised to set X/Y_HOME_BUMP_MM to 0.
   * M914 X/Y to live tune the setting
   */
  #define SENSORLESS_HOMING                                                                                  

  #if ENABLED(SENSORLESS_HOMING)
    #define X_HOMING_SENSITIVITY  50
    #define Y_HOMING_SENSITIVITY  50
    #define X_HOME_BUMP_MM 0                                                                                 
    #define Y_HOME_BUMP_MM 0                                                                                  
  #endif

  /**
   * Enable M922 debugging command for TMC stepper drivers.
   * M922 S0/1 will enable continous reporting.
   */
  //#define TMC_DEBUG

  /**
   * You can set your own advanced settings by filling in predefined functions.
   * A list of available functions can be found on the library github page
   * [github.com]
   *
   * Example:
   * #define TMC_ADV() { \
   *   stepperX.diag0_temp_prewarn(1); \
   *   stepperY.interpolate(0); \
   * }
   */
  #define  TMC_ADV() {  }

#endif // ENABLED(HAVE_TMC2130)


Uso i driver della watterott
Secondo voi quale potrebbe essere la causa? Firmware, elettronico o io grinning smiley

Edited 3 time(s). Last edit at 01/13/2018 06:26PM by giuseppecalasso.
Attachments:
open | download - photo_2018-01-13_10-32-25.jpg (42.6 KB)
open | download - photo_2018-01-13_10-32-17.jpg (52.3 KB)
Re: problema con tmc2130, mkduo 4.3.3. e sensorless homing
January 13, 2018 04:42AM
Con i classici switch l'azzeramento funziona correttamente
Re: problema con tmc2130, mkduo 4.3.3. e sensorless homing
January 13, 2018 08:32AM
fatta una prova con Marlin classico e l'asse si sposta fino in fondo
ho provato a confrontare i file .cpp tra mk4duo e merlin trovando delle differenze tra i segenti file per ciò che riguarda il sensorless_homig:

Marlin
Configuration_store.cpp
Marlin_main.cpp

Mk4duo
eeprom.cpp
cartesian_mechanism.cpp
tmc.cpp

(da ignorante in materia) potrebbe essere qualcuna di queste differenza a dare problemi???

Edited 1 time(s). Last edit at 01/13/2018 08:34AM by giuseppecalasso.
Re: problema con tmc2130, mkduo 4.3.3. e sensorless homing
January 13, 2018 01:05PM
Troppe ce ne sono di differenze...
Domanda ma il resto va, nel senso li vedi con la porta spi e puoi gestirli? Hai configurato per la tua scheda i CS per ogni driver?


COMPRA ITALIANO - sostieni le nostre aziende - sostieni la nostra gente - sostieni il tuo popolo - sosterrai te stesso.
Alberto C. felice possessore di una Kossel K2
My Blog - My Thingiverse
Re: problema con tmc2130, mkduo 4.3.3. e sensorless homing
January 13, 2018 06:24PM
buonasera mago,
uso una ramps 1.4
i cs sono configurati nel modo seguente:
csx 53
csy 49
csz 40
cse0 42

sulla z che usa uno switch meccanico funziona bene
quando ho fatto la prova con gli switch anche su x ed y stealthchop e hybrid treshold funzionano
se chiamo m503 dal riepilogo riesco a vedere come sono impostate le correnti

Edited 2 time(s). Last edit at 01/13/2018 06:38PM by giuseppecalasso.
Re: problema con tmc2130, mkduo 4.3.3. e sensorless homing
January 14, 2018 03:07AM
Ok, ma che vuol dire hai provato con gli switch, intendi gli endstop?
Io purtroppo non li ho mai visti in funzione se non nei video, ma non credo che gli endstop cambino qualcosa, nel senso sono loro stessi che si fermano quando sentono il motore sforzare, o no??


COMPRA ITALIANO - sostieni le nostre aziende - sostieni la nostra gente - sostieni il tuo popolo - sosterrai te stesso.
Alberto C. felice possessore di una Kossel K2
My Blog - My Thingiverse
Re: problema con tmc2130, mkduo 4.3.3. e sensorless homing
January 14, 2018 03:55AM
si esatto dovrebbero funzionare in questo modo
per switch intendo gli endstop grinning smiley
ho notato anche un altra cosa, il comando M914 aveva valore uguale a zero; quello non dovrebbe essere uguale al valore di sensibilità impostato nel firmware una volta caricato?
usando M502 ed M500 non cambiava nulla, anche mettendo un valore diverso da 0, memorizza il nuovo valore ma l'asse si sposta sempre di pochi millimetri

Edited 2 time(s). Last edit at 01/14/2018 04:01AM by giuseppecalasso.
Re: problema con tmc2130, mkduo 4.3.3. e sensorless homing
January 14, 2018 04:20AM
Hai ragione allo start non prendo i valori settati e li metto in eeprom.. Aggiusto subito...


EDIT. Fixato puoi riscaricare e controllare grazie!!

Edited 1 time(s). Last edit at 01/14/2018 04:26AM by MagoKimbra.


COMPRA ITALIANO - sostieni le nostre aziende - sostieni la nostra gente - sostieni il tuo popolo - sosterrai te stesso.
Alberto C. felice possessore di una Kossel K2
My Blog - My Thingiverse
Re: problema con tmc2130, mkduo 4.3.3. e sensorless homing
January 14, 2018 06:46AM
grazie thumbs upsmiling smiley
funziona!!!!

Il valore del comando M914 accetta solo valori interi, si potrebbe mettere anche la prima cifra decimale?

Edited 1 time(s). Last edit at 01/14/2018 06:47AM by giuseppecalasso.
Re: problema con tmc2130, mkduo 4.3.3. e sensorless homing
January 14, 2018 06:47AM
Mi faresti un video con l'homing fatto con i driver..


COMPRA ITALIANO - sostieni le nostre aziende - sostieni la nostra gente - sostieni il tuo popolo - sosterrai te stesso.
Alberto C. felice possessore di una Kossel K2
My Blog - My Thingiverse
Re: problema con tmc2130, mkduo 4.3.3. e sensorless homing
January 14, 2018 06:48AM
si certo grinning smiley

video prova sensorless_homing

Edited 1 time(s). Last edit at 01/14/2018 07:27AM by giuseppecalasso.
Re: problema con tmc2130, mkduo 4.3.3. e sensorless homing
January 14, 2018 09:17AM
posso usare il comando M206 per dire al firmware che una volta dopo essere arrivato a fine corsa deve allontanare l'estrusore da tale punto di tot. mm e considerare questo come zero macchina?

Edited 1 time(s). Last edit at 01/14/2018 09:18AM by giuseppecalasso.
Re: problema con tmc2130, mkduo 4.3.3. e sensorless homing
January 14, 2018 09:44AM
Si ma devi attivare il workspace offset..


COMPRA ITALIANO - sostieni le nostre aziende - sostieni la nostra gente - sostieni il tuo popolo - sosterrai te stesso.
Alberto C. felice possessore di una Kossel K2
My Blog - My Thingiverse
Re: problema con tmc2130, mkduo 4.3.3. e sensorless homing
January 14, 2018 12:08PM
perfetto, grazie per l'aiuto smiling smiley
Re: problema con tmc2130, mkduo 4.3.3. e sensorless homing
January 14, 2018 12:11PM
ad M914 si potrebbero far accettare anche valori con la prima cifra decimale?
Re: problema con tmc2130, mkduo 4.3.3. e sensorless homing
January 14, 2018 12:14PM
Cioè 9,4 per esempio?


COMPRA ITALIANO - sostieni le nostre aziende - sostieni la nostra gente - sostieni il tuo popolo - sosterrai te stesso.
Alberto C. felice possessore di una Kossel K2
My Blog - My Thingiverse
Re: problema con tmc2130, mkduo 4.3.3. e sensorless homing
January 14, 2018 12:30PM
si esatto
Re: problema con tmc2130, mkduo 4.3.3. e sensorless homing
January 14, 2018 12:45PM
No perché la libreria prevede un valore da 0 a 255 come se fosse da 0 a 100%..


COMPRA ITALIANO - sostieni le nostre aziende - sostieni la nostra gente - sostieni il tuo popolo - sosterrai te stesso.
Alberto C. felice possessore di una Kossel K2
My Blog - My Thingiverse
Re: problema con tmc2130, mkduo 4.3.3. e sensorless homing
January 14, 2018 01:02PM
Perfetto ho capito
Re: problema con tmc2130, mkduo 4.3.3. e sensorless homing
January 16, 2018 10:04AM
buongiorno,
ho fatto prove più approfondite ed ho notato i seguenti problemi:
-con il comando 206 settando per esempio x -23 una volta premuto enter il comando mi ritorna M206 X-43 Y... Z... un pò strano, non dovrebbe essere sempre M206 X-23 ......?
- l'asse X una volta arrivato a fine corsa facendolo muovere sfasa completamente i movimenti, esempio : G0 X10 ma si sposta di 40mm
Re: problema con tmc2130, mkduo 4.3.3. e sensorless homing
January 16, 2018 03:36PM
M206 aggiunge un home offset di quanto dichiarato quindi se hai un home offset di 0 e fai M206 X-23 va a -23, ma se in precedenza avevi già dato un M206 X-20 o altri valori si vanno a sommare...
Inoltre è normale che quando hai un home offset negativo e dai il comando G0 X10, visto che deve andare in posizione 10, si muoverà di più di 10 in funzione dell'offest


COMPRA ITALIANO - sostieni le nostre aziende - sostieni la nostra gente - sostieni il tuo popolo - sosterrai te stesso.
Alberto C. felice possessore di una Kossel K2
My Blog - My Thingiverse
Re: problema con tmc2130, mkduo 4.3.3. e sensorless homing
January 16, 2018 06:09PM
Ok grazie smiling smiley
Sorry, only registered users may post in this forum.

Click here to login