Browse Source

# This is a combination of 2 commits.

# This is the 1st commit message:

MCP4728 consistency & fix ultralcd.cpp

The MCP4728 DAC controls the stepper motor current strenth on the
PRINTRBOARD Rev F and RIGIDBOARD V2 boards.

PR #5792 on 9 FEB 2017 implemented default drive percentages but only on
the RIGIDBOARD V2.

This change moves the default settings to Configuration_adv.h.

Also, ultralcd.cpp won't compile because of a type def conflict.
Changed it to match the one in stepper_dac.cpp

===========================================================

reword stepper curent section for clarity

===========================================================

change name & improve comments

===========================================================

changed name from A4JP to SCOOVO_X9H per PR #6139

# This is the commit message #2:

fix typo
Bob-the-Kuhn 7 years ago
parent
commit
6643d553f6

+ 28
- 11
Marlin/Configuration_adv.h View File

@@ -394,18 +394,35 @@
394 394
 // Microstep setting (Only functional when stepper driver microstep pins are connected to MCU.
395 395
 #define MICROSTEP_MODES {16,16,16,16,16} // [1,2,4,8,16]
396 396
 
397
-// Motor Current setting (Only functional when motor driver current ref pins are connected to a digital trimpot on supported boards)
398
-#define DIGIPOT_MOTOR_CURRENT {135,135,135,135,135} // Values 0-255 (RAMBO 135 = ~0.75A, 185 = ~1A)
399
-
400
-// Motor Current controlled via PWM (Overridable on supported boards with PWM-driven motor driver current)
397
+/**
398
+ *  @section  stepper motor current
399
+ *
400
+ *  Some boards have a means of setting the stepper motor current via firmware.
401
+ *
402
+ *  The power on motor currents are set by:
403
+ *    PWM_MOTOR_CURRENT - used by MINIRAMBO & ULTIMAIN_2
404
+ *                         known compatible chips: A4982
405
+ *    DIGIPOT_MOTOR_CURRENT - used by BQ_ZUM_MEGA_3D, RAMBO & SCOOVO_X9H
406
+ *                         known compatible chips: AD5206
407
+ *    DAC_MOTOR_CURRENT_DEFAULT - used by PRINTRBOARD_REVF & RIGIDBOARD_V2
408
+ *                         known compatible chips: MCP4728
409
+ *    DIGIPOT_I2C_MOTOR_CURRENTS - used by 5DPRINT & AZTEEG_X3_PRO
410
+ *                         known compatible chips: MCP4451
411
+ *
412
+ *  Motor currents can also be set by M907 - M910 and by the LCD.
413
+ *    M907 - applies to all.
414
+ *    M908 - BQ_ZUM_MEGA_3D, RAMBO, PRINTRBOARD_REVF, RIGIDBOARD_V2 & SCOOVO_X9H
415
+ *    M909, M910 & LCD - only PRINTRBOARD_REVF & RIGIDBOARD_V2
416
+ */
401 417
 //#define PWM_MOTOR_CURRENT {1300, 1300, 1250} // Values in milliamps
402
-
403
-// uncomment to enable an I2C based DIGIPOT like on the Azteeg X3 Pro
404
-//#define DIGIPOT_I2C
405
-// Number of channels available for I2C digipot, For Azteeg X3 Pro we have 8
406
-#define DIGIPOT_I2C_NUM_CHANNELS 8
407
-// actual motor currents in Amps, need as many here as DIGIPOT_I2C_NUM_CHANNELS
408
-#define DIGIPOT_I2C_MOTOR_CURRENTS {1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0}
418
+//#define DIGIPOT_MOTOR_CURRENT {135,135,135,135,135} // Values 0-255 (RAMBO 135 = ~0.75A, 185 = ~1A)
419
+//#define DAC_STEPPER_DFLT { 70, 80, 90, 80 } // Default drive percent - X, Y, Z, E axis
420
+
421
+/*  5DPRINT & AZTEEG_X3_PRO */
422
+//#define DIGIPOT_I2C  // uncomment to enable
423
+#define DIGIPOT_I2C_NUM_CHANNELS 8 // 5DPRINT: 4     AZTEEG_X3_PRO: 8
424
+/* actual motor currents in Amps, need as many here as DIGIPOT_I2C_NUM_CHANNELS */
425
+#define DIGIPOT_I2C_MOTOR_CURRENTS {1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0}  //  AZTEEG_X3_PRO
409 426
 
410 427
 //===========================================================================
411 428
 //=============================Additional Features===========================

+ 28
- 11
Marlin/example_configurations/Cartesio/Configuration_adv.h View File

@@ -394,18 +394,35 @@
394 394
 // Microstep setting (Only functional when stepper driver microstep pins are connected to MCU.
395 395
 #define MICROSTEP_MODES {16,16,16,16,16} // [1,2,4,8,16]
396 396
 
397
-// Motor Current setting (Only functional when motor driver current ref pins are connected to a digital trimpot on supported boards)
398
-#define DIGIPOT_MOTOR_CURRENT {135,135,135,135,135} // Values 0-255 (RAMBO 135 = ~0.75A, 185 = ~1A)
399
-
400
-// Motor Current controlled via PWM (Overridable on supported boards with PWM-driven motor driver current)
397
+/**
398
+ *  @section  stepper motor current
399
+ *
400
+ *  Some boards have a means of setting the stepper motor current via firmware.
401
+ *
402
+ *  The power on motor currents are set by:
403
+ *    PWM_MOTOR_CURRENT - used by MINIRAMBO & ULTIMAIN_2
404
+ *                         known compatible chips: A4982
405
+ *    DIGIPOT_MOTOR_CURRENT - used by BQ_ZUM_MEGA_3D, RAMBO & SCOOVO_X9H
406
+ *                         known compatible chips: AD5206
407
+ *    DAC_MOTOR_CURRENT_DEFAULT - used by PRINTRBOARD_REVF & RIGIDBOARD_V2
408
+ *                         known compatible chips: MCP4728
409
+ *    DIGIPOT_I2C_MOTOR_CURRENTS - used by 5DPRINT & AZTEEG_X3_PRO
410
+ *                         known compatible chips: MCP4451
411
+ *
412
+ *  Motor currents can also be set by M907 - M910 and by the LCD.
413
+ *    M907 - applies to all.
414
+ *    M908 - BQ_ZUM_MEGA_3D, RAMBO, PRINTRBOARD_REVF, RIGIDBOARD_V2 & SCOOVO_X9H
415
+ *    M909, M910 & LCD - only PRINTRBOARD_REVF & RIGIDBOARD_V2
416
+ */
401 417
 //#define PWM_MOTOR_CURRENT {1300, 1300, 1250} // Values in milliamps
402
-
403
-// uncomment to enable an I2C based DIGIPOT like on the Azteeg X3 Pro
404
-//#define DIGIPOT_I2C
405
-// Number of channels available for I2C digipot, For Azteeg X3 Pro we have 8
406
-#define DIGIPOT_I2C_NUM_CHANNELS 8
407
-// actual motor currents in Amps, need as many here as DIGIPOT_I2C_NUM_CHANNELS
408
-#define DIGIPOT_I2C_MOTOR_CURRENTS {1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0}
418
+//#define DIGIPOT_MOTOR_CURRENT {135,135,135,135,135} // Values 0-255 (RAMBO 135 = ~0.75A, 185 = ~1A)
419
+//#define DAC_STEPPER_DFLT { 70, 80, 90, 80 } // Default drive percent - X, Y, Z, E axis
420
+
421
+/*  5DPRINT & AZTEEG_X3_PRO */
422
+//#define DIGIPOT_I2C  // uncomment to enable
423
+#define DIGIPOT_I2C_NUM_CHANNELS 8 // 5DPRINT: 4     AZTEEG_X3_PRO: 8
424
+/* actual motor currents in Amps, need as many here as DIGIPOT_I2C_NUM_CHANNELS */
425
+#define DIGIPOT_I2C_MOTOR_CURRENTS {1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0}  //  AZTEEG_X3_PRO
409 426
 
410 427
 //===========================================================================
411 428
 //=============================Additional Features===========================

+ 28
- 11
Marlin/example_configurations/Felix/Configuration_adv.h View File

@@ -394,18 +394,35 @@
394 394
 // Microstep setting (Only functional when stepper driver microstep pins are connected to MCU.
395 395
 #define MICROSTEP_MODES {16,16,16,16,16} // [1,2,4,8,16]
396 396
 
397
-// Motor Current setting (Only functional when motor driver current ref pins are connected to a digital trimpot on supported boards)
398
-#define DIGIPOT_MOTOR_CURRENT {135,135,135,135,135} // Values 0-255 (RAMBO 135 = ~0.75A, 185 = ~1A)
399
-
400
-// Motor Current controlled via PWM (Overridable on supported boards with PWM-driven motor driver current)
397
+/**
398
+ *  @section  stepper motor current
399
+ *
400
+ *  Some boards have a means of setting the stepper motor current via firmware.
401
+ *
402
+ *  The power on motor currents are set by:
403
+ *    PWM_MOTOR_CURRENT - used by MINIRAMBO & ULTIMAIN_2
404
+ *                         known compatible chips: A4982
405
+ *    DIGIPOT_MOTOR_CURRENT - used by BQ_ZUM_MEGA_3D, RAMBO & SCOOVO_X9H
406
+ *                         known compatible chips: AD5206
407
+ *    DAC_MOTOR_CURRENT_DEFAULT - used by PRINTRBOARD_REVF & RIGIDBOARD_V2
408
+ *                         known compatible chips: MCP4728
409
+ *    DIGIPOT_I2C_MOTOR_CURRENTS - used by 5DPRINT & AZTEEG_X3_PRO
410
+ *                         known compatible chips: MCP4451
411
+ *
412
+ *  Motor currents can also be set by M907 - M910 and by the LCD.
413
+ *    M907 - applies to all.
414
+ *    M908 - BQ_ZUM_MEGA_3D, RAMBO, PRINTRBOARD_REVF, RIGIDBOARD_V2 & SCOOVO_X9H
415
+ *    M909, M910 & LCD - only PRINTRBOARD_REVF & RIGIDBOARD_V2
416
+ */
401 417
 //#define PWM_MOTOR_CURRENT {1300, 1300, 1250} // Values in milliamps
402
-
403
-// uncomment to enable an I2C based DIGIPOT like on the Azteeg X3 Pro
404
-//#define DIGIPOT_I2C
405
-// Number of channels available for I2C digipot, For Azteeg X3 Pro we have 8
406
-#define DIGIPOT_I2C_NUM_CHANNELS 8
407
-// actual motor currents in Amps, need as many here as DIGIPOT_I2C_NUM_CHANNELS
408
-#define DIGIPOT_I2C_MOTOR_CURRENTS {1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0}
418
+//#define DIGIPOT_MOTOR_CURRENT {135,135,135,135,135} // Values 0-255 (RAMBO 135 = ~0.75A, 185 = ~1A)
419
+//#define DAC_STEPPER_DFLT { 70, 80, 90, 80 } // Default drive percent - X, Y, Z, E axis
420
+
421
+/*  5DPRINT & AZTEEG_X3_PRO */
422
+//#define DIGIPOT_I2C  // uncomment to enable
423
+#define DIGIPOT_I2C_NUM_CHANNELS 8 // 5DPRINT: 4     AZTEEG_X3_PRO: 8
424
+/* actual motor currents in Amps, need as many here as DIGIPOT_I2C_NUM_CHANNELS */
425
+#define DIGIPOT_I2C_MOTOR_CURRENTS {1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0}  //  AZTEEG_X3_PRO
409 426
 
410 427
 //===========================================================================
411 428
 //=============================Additional Features===========================

+ 28
- 11
Marlin/example_configurations/Hephestos/Configuration_adv.h View File

@@ -394,18 +394,35 @@
394 394
 // Microstep setting (Only functional when stepper driver microstep pins are connected to MCU.
395 395
 #define MICROSTEP_MODES {16,16,16,16,16} // [1,2,4,8,16]
396 396
 
397
-// Motor Current setting (Only functional when motor driver current ref pins are connected to a digital trimpot on supported boards)
398
-#define DIGIPOT_MOTOR_CURRENT {135,135,135,135,135} // Values 0-255 (RAMBO 135 = ~0.75A, 185 = ~1A)
399
-
400
-// Motor Current controlled via PWM (Overridable on supported boards with PWM-driven motor driver current)
397
+/**
398
+ *  @section  stepper motor current
399
+ *
400
+ *  Some boards have a means of setting the stepper motor current via firmware.
401
+ *
402
+ *  The power on motor currents are set by:
403
+ *    PWM_MOTOR_CURRENT - used by MINIRAMBO & ULTIMAIN_2
404
+ *                         known compatible chips: A4982
405
+ *    DIGIPOT_MOTOR_CURRENT - used by BQ_ZUM_MEGA_3D, RAMBO & SCOOVO_X9H
406
+ *                         known compatible chips: AD5206
407
+ *    DAC_MOTOR_CURRENT_DEFAULT - used by PRINTRBOARD_REVF & RIGIDBOARD_V2
408
+ *                         known compatible chips: MCP4728
409
+ *    DIGIPOT_I2C_MOTOR_CURRENTS - used by 5DPRINT & AZTEEG_X3_PRO
410
+ *                         known compatible chips: MCP4451
411
+ *
412
+ *  Motor currents can also be set by M907 - M910 and by the LCD.
413
+ *    M907 - applies to all.
414
+ *    M908 - BQ_ZUM_MEGA_3D, RAMBO, PRINTRBOARD_REVF, RIGIDBOARD_V2 & SCOOVO_X9H
415
+ *    M909, M910 & LCD - only PRINTRBOARD_REVF & RIGIDBOARD_V2
416
+ */
401 417
 //#define PWM_MOTOR_CURRENT {1300, 1300, 1250} // Values in milliamps
402
-
403
-// uncomment to enable an I2C based DIGIPOT like on the Azteeg X3 Pro
404
-//#define DIGIPOT_I2C
405
-// Number of channels available for I2C digipot, For Azteeg X3 Pro we have 8
406
-#define DIGIPOT_I2C_NUM_CHANNELS 8
407
-// actual motor currents in Amps, need as many here as DIGIPOT_I2C_NUM_CHANNELS
408
-#define DIGIPOT_I2C_MOTOR_CURRENTS {1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0}
418
+//#define DIGIPOT_MOTOR_CURRENT {135,135,135,135,135} // Values 0-255 (RAMBO 135 = ~0.75A, 185 = ~1A)
419
+//#define DAC_STEPPER_DFLT { 70, 80, 90, 80 } // Default drive percent - X, Y, Z, E axis
420
+
421
+/*  5DPRINT & AZTEEG_X3_PRO */
422
+//#define DIGIPOT_I2C  // uncomment to enable
423
+#define DIGIPOT_I2C_NUM_CHANNELS 8 // 5DPRINT: 4     AZTEEG_X3_PRO: 8
424
+/* actual motor currents in Amps, need as many here as DIGIPOT_I2C_NUM_CHANNELS */
425
+#define DIGIPOT_I2C_MOTOR_CURRENTS {1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0}  //  AZTEEG_X3_PRO
409 426
 
410 427
 //===========================================================================
411 428
 //=============================Additional Features===========================

+ 27
- 9
Marlin/example_configurations/Hephestos_2/Configuration_adv.h View File

@@ -394,18 +394,36 @@
394 394
 // Microstep setting (Only functional when stepper driver microstep pins are connected to MCU.
395 395
 #define MICROSTEP_MODES {16,16,16,16,16} // [1,2,4,8,16]
396 396
 
397
-// Motor Current setting (Only functional when motor driver current ref pins are connected to a digital trimpot on supported boards)
397
+/**
398
+ *  @section  stepper motor current
399
+ *
400
+ *  Some boards have a means of setting the stepper motor current via firmware.
401
+ *
402
+ *  The power on motor currents are set by:
403
+ *    PWM_MOTOR_CURRENT - used by MINIRAMBO & ULTIMAIN_2
404
+ *                         known compatible chips: A4982
405
+ *    DIGIPOT_MOTOR_CURRENT - used by BQ_ZUM_MEGA_3D, RAMBO & SCOOVO_X9H
406
+ *                         known compatible chips: AD5206
407
+ *    DAC_MOTOR_CURRENT_DEFAULT - used by PRINTRBOARD_REVF & RIGIDBOARD_V2
408
+ *                         known compatible chips: MCP4728
409
+ *    DIGIPOT_I2C_MOTOR_CURRENTS - used by 5DPRINT & AZTEEG_X3_PRO
410
+ *                         known compatible chips: MCP4451
411
+ *
412
+ *  Motor currents can also be set by M907 - M910 and by the LCD.
413
+ *    M907 - applies to all.
414
+ *    M908 - BQ_ZUM_MEGA_3D, RAMBO, PRINTRBOARD_REVF, RIGIDBOARD_V2 & SCOOVO_X9H
415
+ *    M909, M910 & LCD - only PRINTRBOARD_REVF & RIGIDBOARD_V2
416
+ */
417
+//#define PWM_MOTOR_CURRENT {1300, 1300, 1250} // Values in milliamps
398 418
 #define DIGIPOT_MOTOR_CURRENT {150, 170, 180, 190, 180} // Values 0-255 (bq ZUM Mega 3D (default): X = 150 [~1.17A]; Y = 170 [~1.33A]; Z = 180 [~1.41A]; E0 = 190 [~1.49A])
399 419
 
400
-// Motor Current controlled via PWM (Overridable on supported boards with PWM-driven motor driver current)
401
-//#define PWM_MOTOR_CURRENT {1300, 1300, 1250} // Values in milliamps
420
+//#define DAC_STEPPER_DFLT { 70, 80, 90, 80 } // Default drive percent - X, Y, Z, E axis
402 421
 
403
-// uncomment to enable an I2C based DIGIPOT like on the Azteeg X3 Pro
404
-//#define DIGIPOT_I2C
405
-// Number of channels available for I2C digipot, For Azteeg X3 Pro we have 8
406
-#define DIGIPOT_I2C_NUM_CHANNELS 8
407
-// actual motor currents in Amps, need as many here as DIGIPOT_I2C_NUM_CHANNELS
408
-#define DIGIPOT_I2C_MOTOR_CURRENTS {1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0}
422
+/*  5DPRINT & AZTEEG_X3_PRO */
423
+//#define DIGIPOT_I2C  // uncomment to enable
424
+#define DIGIPOT_I2C_NUM_CHANNELS 8 // 5DPRINT: 4     AZTEEG_X3_PRO: 8
425
+/* actual motor currents in Amps, need as many here as DIGIPOT_I2C_NUM_CHANNELS */
426
+#define DIGIPOT_I2C_MOTOR_CURRENTS {1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0}  //  AZTEEG_X3_PRO
409 427
 
410 428
 //===========================================================================
411 429
 //=============================Additional Features===========================

+ 28
- 11
Marlin/example_configurations/K8200/Configuration_adv.h View File

@@ -407,18 +407,35 @@
407 407
 // Microstep setting (Only functional when stepper driver microstep pins are connected to MCU.
408 408
 #define MICROSTEP_MODES {16,16,16,16,16} // [1,2,4,8,16]
409 409
 
410
-// Motor Current setting (Only functional when motor driver current ref pins are connected to a digital trimpot on supported boards)
411
-#define DIGIPOT_MOTOR_CURRENT {135,135,135,135,135} // Values 0-255 (RAMBO 135 = ~0.75A, 185 = ~1A)
412
-
413
-// Motor Current controlled via PWM (Overridable on supported boards with PWM-driven motor driver current)
410
+/**
411
+ *  @section  stepper motor current
412
+ *
413
+ *  Some boards have a means of setting the stepper motor current via firmware.
414
+ *
415
+ *  The power on motor currents are set by:
416
+ *    PWM_MOTOR_CURRENT - used by MINIRAMBO & ULTIMAIN_2
417
+ *                         known compatible chips: A4982
418
+ *    DIGIPOT_MOTOR_CURRENT - used by BQ_ZUM_MEGA_3D, RAMBO & SCOOVO_X9H
419
+ *                         known compatible chips: AD5206
420
+ *    DAC_MOTOR_CURRENT_DEFAULT - used by PRINTRBOARD_REVF & RIGIDBOARD_V2
421
+ *                         known compatible chips: MCP4728
422
+ *    DIGIPOT_I2C_MOTOR_CURRENTS - used by 5DPRINT & AZTEEG_X3_PRO
423
+ *                         known compatible chips: MCP4451
424
+ *
425
+ *  Motor currents can also be set by M907 - M910 and by the LCD.
426
+ *    M907 - applies to all.
427
+ *    M908 - BQ_ZUM_MEGA_3D, RAMBO, PRINTRBOARD_REVF, RIGIDBOARD_V2 & SCOOVO_X9H
428
+ *    M909, M910 & LCD - only PRINTRBOARD_REVF & RIGIDBOARD_V2
429
+ */
414 430
 //#define PWM_MOTOR_CURRENT {1300, 1300, 1250} // Values in milliamps
415
-
416
-// uncomment to enable an I2C based DIGIPOT like on the Azteeg X3 Pro
417
-//#define DIGIPOT_I2C
418
-// Number of channels available for I2C digipot, For Azteeg X3 Pro we have 8
419
-#define DIGIPOT_I2C_NUM_CHANNELS 8
420
-// actual motor currents in Amps, need as many here as DIGIPOT_I2C_NUM_CHANNELS
421
-#define DIGIPOT_I2C_MOTOR_CURRENTS {1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0}
431
+//#define DIGIPOT_MOTOR_CURRENT {135,135,135,135,135} // Values 0-255 (RAMBO 135 = ~0.75A, 185 = ~1A)
432
+//#define DAC_STEPPER_DFLT { 70, 80, 90, 80 } // Default drive percent - X, Y, Z, E axis
433
+
434
+/*  5DPRINT & AZTEEG_X3_PRO */
435
+//#define DIGIPOT_I2C  // uncomment to enable
436
+#define DIGIPOT_I2C_NUM_CHANNELS 8 // 5DPRINT: 4     AZTEEG_X3_PRO: 8
437
+/* actual motor currents in Amps, need as many here as DIGIPOT_I2C_NUM_CHANNELS */
438
+#define DIGIPOT_I2C_MOTOR_CURRENTS {1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0}  //  AZTEEG_X3_PRO
422 439
 
423 440
 //===========================================================================
424 441
 //=============================Additional Features===========================

+ 28
- 11
Marlin/example_configurations/K8400/Configuration_adv.h View File

@@ -394,18 +394,35 @@
394 394
 // Microstep setting (Only functional when stepper driver microstep pins are connected to MCU.
395 395
 #define MICROSTEP_MODES {16,16,16,16,16} // [1,2,4,8,16]
396 396
 
397
-// Motor Current setting (Only functional when motor driver current ref pins are connected to a digital trimpot on supported boards)
398
-#define DIGIPOT_MOTOR_CURRENT {135,135,135,135,135} // Values 0-255 (RAMBO 135 = ~0.75A, 185 = ~1A)
399
-
400
-// Motor Current controlled via PWM (Overridable on supported boards with PWM-driven motor driver current)
397
+/**
398
+ *  @section  stepper motor current
399
+ *
400
+ *  Some boards have a means of setting the stepper motor current via firmware.
401
+ *
402
+ *  The power on motor currents are set by:
403
+ *    PWM_MOTOR_CURRENT - used by MINIRAMBO & ULTIMAIN_2
404
+ *                         known compatible chips: A4982
405
+ *    DIGIPOT_MOTOR_CURRENT - used by BQ_ZUM_MEGA_3D, RAMBO & SCOOVO_X9H
406
+ *                         known compatible chips: AD5206
407
+ *    DAC_MOTOR_CURRENT_DEFAULT - used by PRINTRBOARD_REVF & RIGIDBOARD_V2
408
+ *                         known compatible chips: MCP4728
409
+ *    DIGIPOT_I2C_MOTOR_CURRENTS - used by 5DPRINT & AZTEEG_X3_PRO
410
+ *                         known compatible chips: MCP4451
411
+ *
412
+ *  Motor currents can also be set by M907 - M910 and by the LCD.
413
+ *    M907 - applies to all.
414
+ *    M908 - BQ_ZUM_MEGA_3D, RAMBO, PRINTRBOARD_REVF, RIGIDBOARD_V2 & SCOOVO_X9H
415
+ *    M909, M910 & LCD - only PRINTRBOARD_REVF & RIGIDBOARD_V2
416
+ */
401 417
 //#define PWM_MOTOR_CURRENT {1300, 1300, 1250} // Values in milliamps
402
-
403
-// uncomment to enable an I2C based DIGIPOT like on the Azteeg X3 Pro
404
-//#define DIGIPOT_I2C
405
-// Number of channels available for I2C digipot, For Azteeg X3 Pro we have 8
406
-#define DIGIPOT_I2C_NUM_CHANNELS 8
407
-// actual motor currents in Amps, need as many here as DIGIPOT_I2C_NUM_CHANNELS
408
-#define DIGIPOT_I2C_MOTOR_CURRENTS {1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0}
418
+//#define DIGIPOT_MOTOR_CURRENT {135,135,135,135,135} // Values 0-255 (RAMBO 135 = ~0.75A, 185 = ~1A)
419
+//#define DAC_STEPPER_DFLT { 70, 80, 90, 80 } // Default drive percent - X, Y, Z, E axis
420
+
421
+/*  5DPRINT & AZTEEG_X3_PRO */
422
+//#define DIGIPOT_I2C  // uncomment to enable
423
+#define DIGIPOT_I2C_NUM_CHANNELS 8 // 5DPRINT: 4     AZTEEG_X3_PRO: 8
424
+/* actual motor currents in Amps, need as many here as DIGIPOT_I2C_NUM_CHANNELS */
425
+#define DIGIPOT_I2C_MOTOR_CURRENTS {1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0}  //  AZTEEG_X3_PRO
409 426
 
410 427
 //===========================================================================
411 428
 //=============================Additional Features===========================

+ 28
- 11
Marlin/example_configurations/RigidBot/Configuration_adv.h View File

@@ -394,18 +394,35 @@
394 394
 // Microstep setting (Only functional when stepper driver microstep pins are connected to MCU.
395 395
 #define MICROSTEP_MODES {16,16,16,16,16} // [1,2,4,8,16]
396 396
 
397
-// Motor Current setting (Only functional when motor driver current ref pins are connected to a digital trimpot on supported boards)
398
-#define DIGIPOT_MOTOR_CURRENT {135,135,135,135,135} // Values 0-255 (RAMBO 135 = ~0.75A, 185 = ~1A)
399
-
400
-// Motor Current controlled via PWM (Overridable on supported boards with PWM-driven motor driver current)
397
+/**
398
+ *  @section  stepper motor current
399
+ *
400
+ *  Some boards have a means of setting the stepper motor current via firmware.
401
+ *
402
+ *  The power on motor currents are set by:
403
+ *    PWM_MOTOR_CURRENT - used by MINIRAMBO & ULTIMAIN_2
404
+ *                         known compatible chips: A4982
405
+ *    DIGIPOT_MOTOR_CURRENT - used by BQ_ZUM_MEGA_3D, RAMBO & SCOOVO_X9H
406
+ *                         known compatible chips: AD5206
407
+ *    DAC_MOTOR_CURRENT_DEFAULT - used by PRINTRBOARD_REVF & RIGIDBOARD_V2
408
+ *                         known compatible chips: MCP4728
409
+ *    DIGIPOT_I2C_MOTOR_CURRENTS - used by 5DPRINT & AZTEEG_X3_PRO
410
+ *                         known compatible chips: MCP4451
411
+ *
412
+ *  Motor currents can also be set by M907 - M910 and by the LCD.
413
+ *    M907 - applies to all.
414
+ *    M908 - BQ_ZUM_MEGA_3D, RAMBO, PRINTRBOARD_REVF, RIGIDBOARD_V2 & SCOOVO_X9H
415
+ *    M909, M910 & LCD - only PRINTRBOARD_REVF & RIGIDBOARD_V2
416
+ */
401 417
 //#define PWM_MOTOR_CURRENT {1300, 1300, 1250} // Values in milliamps
402
-
403
-// uncomment to enable an I2C based DIGIPOT like on the Azteeg X3 Pro
404
-//#define DIGIPOT_I2C
405
-// Number of channels available for I2C digipot, For Azteeg X3 Pro we have 8
406
-#define DIGIPOT_I2C_NUM_CHANNELS 8
407
-// actual motor currents in Amps, need as many here as DIGIPOT_I2C_NUM_CHANNELS
408
-#define DIGIPOT_I2C_MOTOR_CURRENTS {1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0}
418
+//#define DIGIPOT_MOTOR_CURRENT {135,135,135,135,135} // Values 0-255 (RAMBO 135 = ~0.75A, 185 = ~1A)
419
+//#define DAC_STEPPER_DFLT { 70, 80, 90, 80 } // Default drive percent - X, Y, Z, E axis
420
+
421
+/*  5DPRINT & AZTEEG_X3_PRO */
422
+//#define DIGIPOT_I2C  // uncomment to enable
423
+#define DIGIPOT_I2C_NUM_CHANNELS 8 // 5DPRINT: 4     AZTEEG_X3_PRO: 8
424
+/* actual motor currents in Amps, need as many here as DIGIPOT_I2C_NUM_CHANNELS */
425
+#define DIGIPOT_I2C_MOTOR_CURRENTS {1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0}  //  AZTEEG_X3_PRO
409 426
 
410 427
 //===========================================================================
411 428
 //=============================Additional Features===========================

+ 28
- 11
Marlin/example_configurations/SCARA/Configuration_adv.h View File

@@ -394,18 +394,35 @@
394 394
 // Microstep setting (Only functional when stepper driver microstep pins are connected to MCU.
395 395
 #define MICROSTEP_MODES {16,16,16,16,16} // [1,2,4,8,16]
396 396
 
397
-// Motor Current setting (Only functional when motor driver current ref pins are connected to a digital trimpot on supported boards)
398
-#define DIGIPOT_MOTOR_CURRENT {135,135,135,135,135} // Values 0-255 (RAMBO 135 = ~0.75A, 185 = ~1A)
399
-
400
-// Motor Current controlled via PWM (Overridable on supported boards with PWM-driven motor driver current)
397
+/**
398
+ *  @section  stepper motor current
399
+ *
400
+ *  Some boards have a means of setting the stepper motor current via firmware.
401
+ *
402
+ *  The power on motor currents are set by:
403
+ *    PWM_MOTOR_CURRENT - used by MINIRAMBO & ULTIMAIN_2
404
+ *                         known compatible chips: A4982
405
+ *    DIGIPOT_MOTOR_CURRENT - used by BQ_ZUM_MEGA_3D, RAMBO & SCOOVO_X9H
406
+ *                         known compatible chips: AD5206
407
+ *    DAC_MOTOR_CURRENT_DEFAULT - used by PRINTRBOARD_REVF & RIGIDBOARD_V2
408
+ *                         known compatible chips: MCP4728
409
+ *    DIGIPOT_I2C_MOTOR_CURRENTS - used by 5DPRINT & AZTEEG_X3_PRO
410
+ *                         known compatible chips: MCP4451
411
+ *
412
+ *  Motor currents can also be set by M907 - M910 and by the LCD.
413
+ *    M907 - applies to all.
414
+ *    M908 - BQ_ZUM_MEGA_3D, RAMBO, PRINTRBOARD_REVF, RIGIDBOARD_V2 & SCOOVO_X9H
415
+ *    M909, M910 & LCD - only PRINTRBOARD_REVF & RIGIDBOARD_V2
416
+ */
401 417
 //#define PWM_MOTOR_CURRENT {1300, 1300, 1250} // Values in milliamps
402
-
403
-// uncomment to enable an I2C based DIGIPOT like on the Azteeg X3 Pro
404
-//#define DIGIPOT_I2C
405
-// Number of channels available for I2C digipot, For Azteeg X3 Pro we have 8
406
-#define DIGIPOT_I2C_NUM_CHANNELS 8
407
-// actual motor currents in Amps, need as many here as DIGIPOT_I2C_NUM_CHANNELS
408
-#define DIGIPOT_I2C_MOTOR_CURRENTS {1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0}
418
+//#define DIGIPOT_MOTOR_CURRENT {135,135,135,135,135} // Values 0-255 (RAMBO 135 = ~0.75A, 185 = ~1A)
419
+//#define DAC_STEPPER_DFLT { 70, 80, 90, 80 } // Default drive percent - X, Y, Z, E axis
420
+
421
+/*  5DPRINT & AZTEEG_X3_PRO */
422
+//#define DIGIPOT_I2C  // uncomment to enable
423
+#define DIGIPOT_I2C_NUM_CHANNELS 8 // 5DPRINT: 4     AZTEEG_X3_PRO: 8
424
+/* actual motor currents in Amps, need as many here as DIGIPOT_I2C_NUM_CHANNELS */
425
+#define DIGIPOT_I2C_MOTOR_CURRENTS {1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0}  //  AZTEEG_X3_PRO
409 426
 
410 427
 //===========================================================================
411 428
 //=============================Additional Features===========================

+ 28
- 11
Marlin/example_configurations/TAZ4/Configuration_adv.h View File

@@ -402,18 +402,35 @@
402 402
 // Microstep setting (Only functional when stepper driver microstep pins are connected to MCU.
403 403
 #define MICROSTEP_MODES {16,16,4,16,16} // [1,2,4,8,16]
404 404
 
405
-// Motor Current setting (Only functional when motor driver current ref pins are connected to a digital trimpot on supported boards)
406
-#define DIGIPOT_MOTOR_CURRENT {175,175,240,135,135} // Values 0-255 (RAMBO 135 = ~0.75A, 185 = ~1A)
407
-
408
-// Motor Current controlled via PWM (Overridable on supported boards with PWM-driven motor driver current)
405
+/**
406
+ *  @section  stepper motor current
407
+ *
408
+ *  Some boards have a means of setting the stepper motor current via firmware.
409
+ *
410
+ *  The power on motor currents are set by:
411
+ *    PWM_MOTOR_CURRENT - used by MINIRAMBO & ULTIMAIN_2
412
+ *                         known compatible chips: A4982
413
+ *    DIGIPOT_MOTOR_CURRENT - used by BQ_ZUM_MEGA_3D, RAMBO & SCOOVO_X9H
414
+ *                         known compatible chips: AD5206
415
+ *    DAC_MOTOR_CURRENT_DEFAULT - used by PRINTRBOARD_REVF & RIGIDBOARD_V2
416
+ *                         known compatible chips: MCP4728
417
+ *    DIGIPOT_I2C_MOTOR_CURRENTS - used by 5DPRINT & AZTEEG_X3_PRO
418
+ *                         known compatible chips: MCP4451
419
+ *
420
+ *  Motor currents can also be set by M907 - M910 and by the LCD.
421
+ *    M907 - applies to all.
422
+ *    M908 - BQ_ZUM_MEGA_3D, RAMBO, PRINTRBOARD_REVF, RIGIDBOARD_V2 & SCOOVO_X9H
423
+ *    M909, M910 & LCD - only PRINTRBOARD_REVF & RIGIDBOARD_V2
424
+ */
409 425
 //#define PWM_MOTOR_CURRENT {1300, 1300, 1250} // Values in milliamps
410
-
411
-// uncomment to enable an I2C based DIGIPOT like on the Azteeg X3 Pro
412
-//#define DIGIPOT_I2C
413
-// Number of channels available for I2C digipot, For Azteeg X3 Pro we have 8
414
-#define DIGIPOT_I2C_NUM_CHANNELS 8
415
-// actual motor currents in Amps, need as many here as DIGIPOT_I2C_NUM_CHANNELS
416
-#define DIGIPOT_I2C_MOTOR_CURRENTS {1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0}
426
+//#define DIGIPOT_MOTOR_CURRENT {135,135,135,135,135} // Values 0-255 (RAMBO 135 = ~0.75A, 185 = ~1A)
427
+//#define DAC_STEPPER_DFLT { 70, 80, 90, 80 } // Default drive percent - X, Y, Z, E axis
428
+
429
+/*  5DPRINT & AZTEEG_X3_PRO */
430
+//#define DIGIPOT_I2C  // uncomment to enable
431
+#define DIGIPOT_I2C_NUM_CHANNELS 8 // 5DPRINT: 4     AZTEEG_X3_PRO: 8
432
+/* actual motor currents in Amps, need as many here as DIGIPOT_I2C_NUM_CHANNELS */
433
+#define DIGIPOT_I2C_MOTOR_CURRENTS {1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0}  //  AZTEEG_X3_PRO
417 434
 
418 435
 //===========================================================================
419 436
 //=============================Additional Features===========================

+ 28
- 11
Marlin/example_configurations/WITBOX/Configuration_adv.h View File

@@ -394,18 +394,35 @@
394 394
 // Microstep setting (Only functional when stepper driver microstep pins are connected to MCU.
395 395
 #define MICROSTEP_MODES {16,16,16,16,16} // [1,2,4,8,16]
396 396
 
397
-// Motor Current setting (Only functional when motor driver current ref pins are connected to a digital trimpot on supported boards)
398
-#define DIGIPOT_MOTOR_CURRENT {135,135,135,135,135} // Values 0-255 (RAMBO 135 = ~0.75A, 185 = ~1A)
399
-
400
-// Motor Current controlled via PWM (Overridable on supported boards with PWM-driven motor driver current)
397
+/**
398
+ *  @section  stepper motor current
399
+ *
400
+ *  Some boards have a means of setting the stepper motor current via firmware.
401
+ *
402
+ *  The power on motor currents are set by:
403
+ *    PWM_MOTOR_CURRENT - used by MINIRAMBO & ULTIMAIN_2
404
+ *                         known compatible chips: A4982
405
+ *    DIGIPOT_MOTOR_CURRENT - used by BQ_ZUM_MEGA_3D, RAMBO & SCOOVO_X9H
406
+ *                         known compatible chips: AD5206
407
+ *    DAC_MOTOR_CURRENT_DEFAULT - used by PRINTRBOARD_REVF & RIGIDBOARD_V2
408
+ *                         known compatible chips: MCP4728
409
+ *    DIGIPOT_I2C_MOTOR_CURRENTS - used by 5DPRINT & AZTEEG_X3_PRO
410
+ *                         known compatible chips: MCP4451
411
+ *
412
+ *  Motor currents can also be set by M907 - M910 and by the LCD.
413
+ *    M907 - applies to all.
414
+ *    M908 - BQ_ZUM_MEGA_3D, RAMBO, PRINTRBOARD_REVF, RIGIDBOARD_V2 & SCOOVO_X9H
415
+ *    M909, M910 & LCD - only PRINTRBOARD_REVF & RIGIDBOARD_V2
416
+ */
401 417
 //#define PWM_MOTOR_CURRENT {1300, 1300, 1250} // Values in milliamps
402
-
403
-// uncomment to enable an I2C based DIGIPOT like on the Azteeg X3 Pro
404
-//#define DIGIPOT_I2C
405
-// Number of channels available for I2C digipot, For Azteeg X3 Pro we have 8
406
-#define DIGIPOT_I2C_NUM_CHANNELS 8
407
-// actual motor currents in Amps, need as many here as DIGIPOT_I2C_NUM_CHANNELS
408
-#define DIGIPOT_I2C_MOTOR_CURRENTS {1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0}
418
+//#define DIGIPOT_MOTOR_CURRENT {135,135,135,135,135} // Values 0-255 (RAMBO 135 = ~0.75A, 185 = ~1A)
419
+//#define DAC_STEPPER_DFLT { 70, 80, 90, 80 } // Default drive percent - X, Y, Z, E axis
420
+
421
+/*  5DPRINT & AZTEEG_X3_PRO */
422
+//#define DIGIPOT_I2C  // uncomment to enable
423
+#define DIGIPOT_I2C_NUM_CHANNELS 8 // 5DPRINT: 4     AZTEEG_X3_PRO: 8
424
+/* actual motor currents in Amps, need as many here as DIGIPOT_I2C_NUM_CHANNELS */
425
+#define DIGIPOT_I2C_MOTOR_CURRENTS {1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0}  //  AZTEEG_X3_PRO
409 426
 
410 427
 //===========================================================================
411 428
 //=============================Additional Features===========================

+ 28
- 11
Marlin/example_configurations/delta/flsun_kossel_mini/Configuration_adv.h View File

@@ -396,18 +396,35 @@
396 396
 // Microstep setting (Only functional when stepper driver microstep pins are connected to MCU.
397 397
 #define MICROSTEP_MODES {16,16,16,16,16} // [1,2,4,8,16]
398 398
 
399
-// Motor Current setting (Only functional when motor driver current ref pins are connected to a digital trimpot on supported boards)
400
-#define DIGIPOT_MOTOR_CURRENT {135,135,135,135,135} // Values 0-255 (RAMBO 135 = ~0.75A, 185 = ~1A)
401
-
402
-// Motor Current controlled via PWM (Overridable on supported boards with PWM-driven motor driver current)
399
+/**
400
+ *  @section  stepper motor current
401
+ *
402
+ *  Some boards have a means of setting the stepper motor current via firmware.
403
+ *
404
+ *  The power on motor currents are set by:
405
+ *    PWM_MOTOR_CURRENT - used by MINIRAMBO & ULTIMAIN_2
406
+ *                         known compatible chips: A4982
407
+ *    DIGIPOT_MOTOR_CURRENT - used by BQ_ZUM_MEGA_3D, RAMBO & SCOOVO_X9H
408
+ *                         known compatible chips: AD5206
409
+ *    DAC_MOTOR_CURRENT_DEFAULT - used by PRINTRBOARD_REVF & RIGIDBOARD_V2
410
+ *                         known compatible chips: MCP4728
411
+ *    DIGIPOT_I2C_MOTOR_CURRENTS - used by 5DPRINT & AZTEEG_X3_PRO
412
+ *                         known compatible chips: MCP4451
413
+ *
414
+ *  Motor currents can also be set by M907 - M910 and by the LCD.
415
+ *    M907 - applies to all.
416
+ *    M908 - BQ_ZUM_MEGA_3D, RAMBO, PRINTRBOARD_REVF, RIGIDBOARD_V2 & SCOOVO_X9H
417
+ *    M909, M910 & LCD - only PRINTRBOARD_REVF & RIGIDBOARD_V2
418
+ */
403 419
 //#define PWM_MOTOR_CURRENT {1300, 1300, 1250} // Values in milliamps
404
-
405
-// uncomment to enable an I2C based DIGIPOT like on the Azteeg X3 Pro
406
-//#define DIGIPOT_I2C
407
-// Number of channels available for I2C digipot, For Azteeg X3 Pro we have 8
408
-#define DIGIPOT_I2C_NUM_CHANNELS 8
409
-// actual motor currents in Amps, need as many here as DIGIPOT_I2C_NUM_CHANNELS
410
-#define DIGIPOT_I2C_MOTOR_CURRENTS {1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0}
420
+//#define DIGIPOT_MOTOR_CURRENT {135,135,135,135,135} // Values 0-255 (RAMBO 135 = ~0.75A, 185 = ~1A)
421
+//#define DAC_STEPPER_DFLT { 70, 80, 90, 80 } // Default drive percent - X, Y, Z, E axis
422
+
423
+/*  5DPRINT & AZTEEG_X3_PRO */
424
+//#define DIGIPOT_I2C  // uncomment to enable
425
+#define DIGIPOT_I2C_NUM_CHANNELS 8 // 5DPRINT: 4     AZTEEG_X3_PRO: 8
426
+/* actual motor currents in Amps, need as many here as DIGIPOT_I2C_NUM_CHANNELS */
427
+#define DIGIPOT_I2C_MOTOR_CURRENTS {1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0}  //  AZTEEG_X3_PRO
411 428
 
412 429
 //===========================================================================
413 430
 //=============================Additional Features===========================

+ 28
- 11
Marlin/example_configurations/delta/generic/Configuration_adv.h View File

@@ -396,18 +396,35 @@
396 396
 // Microstep setting (Only functional when stepper driver microstep pins are connected to MCU.
397 397
 #define MICROSTEP_MODES {16,16,16,16,16} // [1,2,4,8,16]
398 398
 
399
-// Motor Current setting (Only functional when motor driver current ref pins are connected to a digital trimpot on supported boards)
400
-#define DIGIPOT_MOTOR_CURRENT {135,135,135,135,135} // Values 0-255 (RAMBO 135 = ~0.75A, 185 = ~1A)
401
-
402
-// Motor Current controlled via PWM (Overridable on supported boards with PWM-driven motor driver current)
399
+/**
400
+ *  @section  stepper motor current
401
+ *
402
+ *  Some boards have a means of setting the stepper motor current via firmware.
403
+ *
404
+ *  The power on motor currents are set by:
405
+ *    PWM_MOTOR_CURRENT - used by MINIRAMBO & ULTIMAIN_2
406
+ *                         known compatible chips: A4982
407
+ *    DIGIPOT_MOTOR_CURRENT - used by BQ_ZUM_MEGA_3D, RAMBO & SCOOVO_X9H
408
+ *                         known compatible chips: AD5206
409
+ *    DAC_MOTOR_CURRENT_DEFAULT - used by PRINTRBOARD_REVF & RIGIDBOARD_V2
410
+ *                         known compatible chips: MCP4728
411
+ *    DIGIPOT_I2C_MOTOR_CURRENTS - used by 5DPRINT & AZTEEG_X3_PRO
412
+ *                         known compatible chips: MCP4451
413
+ *
414
+ *  Motor currents can also be set by M907 - M910 and by the LCD.
415
+ *    M907 - applies to all.
416
+ *    M908 - BQ_ZUM_MEGA_3D, RAMBO, PRINTRBOARD_REVF, RIGIDBOARD_V2 & SCOOVO_X9H
417
+ *    M909, M910 & LCD - only PRINTRBOARD_REVF & RIGIDBOARD_V2
418
+ */
403 419
 //#define PWM_MOTOR_CURRENT {1300, 1300, 1250} // Values in milliamps
404
-
405
-// uncomment to enable an I2C based DIGIPOT like on the Azteeg X3 Pro
406
-//#define DIGIPOT_I2C
407
-// Number of channels available for I2C digipot, For Azteeg X3 Pro we have 8
408
-#define DIGIPOT_I2C_NUM_CHANNELS 8
409
-// actual motor currents in Amps, need as many here as DIGIPOT_I2C_NUM_CHANNELS
410
-#define DIGIPOT_I2C_MOTOR_CURRENTS {1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0}
420
+//#define DIGIPOT_MOTOR_CURRENT {135,135,135,135,135} // Values 0-255 (RAMBO 135 = ~0.75A, 185 = ~1A)
421
+//#define DAC_STEPPER_DFLT { 70, 80, 90, 80 } // Default drive percent - X, Y, Z, E axis
422
+
423
+/*  5DPRINT & AZTEEG_X3_PRO */
424
+//#define DIGIPOT_I2C  // uncomment to enable
425
+#define DIGIPOT_I2C_NUM_CHANNELS 8 // 5DPRINT: 4     AZTEEG_X3_PRO: 8
426
+/* actual motor currents in Amps, need as many here as DIGIPOT_I2C_NUM_CHANNELS */
427
+#define DIGIPOT_I2C_MOTOR_CURRENTS {1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0}  //  AZTEEG_X3_PRO
411 428
 
412 429
 //===========================================================================
413 430
 //=============================Additional Features===========================

+ 28
- 11
Marlin/example_configurations/delta/kossel_mini/Configuration_adv.h View File

@@ -396,18 +396,35 @@
396 396
 // Microstep setting (Only functional when stepper driver microstep pins are connected to MCU.
397 397
 #define MICROSTEP_MODES {16,16,16,16,16} // [1,2,4,8,16]
398 398
 
399
-// Motor Current setting (Only functional when motor driver current ref pins are connected to a digital trimpot on supported boards)
400
-#define DIGIPOT_MOTOR_CURRENT {135,135,135,135,135} // Values 0-255 (RAMBO 135 = ~0.75A, 185 = ~1A)
401
-
402
-// Motor Current controlled via PWM (Overridable on supported boards with PWM-driven motor driver current)
399
+/**
400
+ *  @section  stepper motor current
401
+ *
402
+ *  Some boards have a means of setting the stepper motor current via firmware.
403
+ *
404
+ *  The power on motor currents are set by:
405
+ *    PWM_MOTOR_CURRENT - used by MINIRAMBO & ULTIMAIN_2
406
+ *                         known compatible chips: A4982
407
+ *    DIGIPOT_MOTOR_CURRENT - used by BQ_ZUM_MEGA_3D, RAMBO & SCOOVO_X9H
408
+ *                         known compatible chips: AD5206
409
+ *    DAC_MOTOR_CURRENT_DEFAULT - used by PRINTRBOARD_REVF & RIGIDBOARD_V2
410
+ *                         known compatible chips: MCP4728
411
+ *    DIGIPOT_I2C_MOTOR_CURRENTS - used by 5DPRINT & AZTEEG_X3_PRO
412
+ *                         known compatible chips: MCP4451
413
+ *
414
+ *  Motor currents can also be set by M907 - M910 and by the LCD.
415
+ *    M907 - applies to all.
416
+ *    M908 - BQ_ZUM_MEGA_3D, RAMBO, PRINTRBOARD_REVF, RIGIDBOARD_V2 & SCOOVO_X9H
417
+ *    M909, M910 & LCD - only PRINTRBOARD_REVF & RIGIDBOARD_V2
418
+ */
403 419
 //#define PWM_MOTOR_CURRENT {1300, 1300, 1250} // Values in milliamps
404
-
405
-// uncomment to enable an I2C based DIGIPOT like on the Azteeg X3 Pro
406
-//#define DIGIPOT_I2C
407
-// Number of channels available for I2C digipot, For Azteeg X3 Pro we have 8
408
-#define DIGIPOT_I2C_NUM_CHANNELS 8
409
-// actual motor currents in Amps, need as many here as DIGIPOT_I2C_NUM_CHANNELS
410
-#define DIGIPOT_I2C_MOTOR_CURRENTS {1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0}
420
+//#define DIGIPOT_MOTOR_CURRENT {135,135,135,135,135} // Values 0-255 (RAMBO 135 = ~0.75A, 185 = ~1A)
421
+//#define DAC_STEPPER_DFLT { 70, 80, 90, 80 } // Default drive percent - X, Y, Z, E axis
422
+
423
+/*  5DPRINT & AZTEEG_X3_PRO */
424
+//#define DIGIPOT_I2C  // uncomment to enable
425
+#define DIGIPOT_I2C_NUM_CHANNELS 8 // 5DPRINT: 4     AZTEEG_X3_PRO: 8
426
+/* actual motor currents in Amps, need as many here as DIGIPOT_I2C_NUM_CHANNELS */
427
+#define DIGIPOT_I2C_MOTOR_CURRENTS {1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0}  //  AZTEEG_X3_PRO
411 428
 
412 429
 //===========================================================================
413 430
 //=============================Additional Features===========================

+ 28
- 11
Marlin/example_configurations/delta/kossel_pro/Configuration_adv.h View File

@@ -401,18 +401,35 @@
401 401
 // Microstep setting (Only functional when stepper driver microstep pins are connected to MCU.
402 402
 #define MICROSTEP_MODES {16,16,16,16,16} // [1,2,4,8,16]
403 403
 
404
-// Motor Current setting (Only functional when motor driver current ref pins are connected to a digital trimpot on supported boards)
405
-#define DIGIPOT_MOTOR_CURRENT {135,135,135,135,135} // Values 0-255 (RAMBO 135 = ~0.75A, 185 = ~1A)
406
-
407
-// Motor Current controlled via PWM (Overridable on supported boards with PWM-driven motor driver current)
404
+/**
405
+ *  @section  stepper motor current
406
+ *
407
+ *  Some boards have a means of setting the stepper motor current via firmware.
408
+ *
409
+ *  The power on motor currents are set by:
410
+ *    PWM_MOTOR_CURRENT - used by MINIRAMBO & ULTIMAIN_2
411
+ *                         known compatible chips: A4982
412
+ *    DIGIPOT_MOTOR_CURRENT - used by BQ_ZUM_MEGA_3D, RAMBO & SCOOVO_X9H
413
+ *                         known compatible chips: AD5206
414
+ *    DAC_MOTOR_CURRENT_DEFAULT - used by PRINTRBOARD_REVF & RIGIDBOARD_V2
415
+ *                         known compatible chips: MCP4728
416
+ *    DIGIPOT_I2C_MOTOR_CURRENTS - used by 5DPRINT & AZTEEG_X3_PRO
417
+ *                         known compatible chips: MCP4451
418
+ *
419
+ *  Motor currents can also be set by M907 - M910 and by the LCD.
420
+ *    M907 - applies to all.
421
+ *    M908 - BQ_ZUM_MEGA_3D, RAMBO, PRINTRBOARD_REVF, RIGIDBOARD_V2 & SCOOVO_X9H
422
+ *    M909, M910 & LCD - only PRINTRBOARD_REVF & RIGIDBOARD_V2
423
+ */
408 424
 //#define PWM_MOTOR_CURRENT {1300, 1300, 1250} // Values in milliamps
409
-
410
-// uncomment to enable an I2C based DIGIPOT like on the Azteeg X3 Pro
411
-//#define DIGIPOT_I2C
412
-// Number of channels available for I2C digipot, For Azteeg X3 Pro we have 8
413
-#define DIGIPOT_I2C_NUM_CHANNELS 8
414
-// actual motor currents in Amps, need as many here as DIGIPOT_I2C_NUM_CHANNELS
415
-#define DIGIPOT_I2C_MOTOR_CURRENTS {1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0}
425
+//#define DIGIPOT_MOTOR_CURRENT {135,135,135,135,135} // Values 0-255 (RAMBO 135 = ~0.75A, 185 = ~1A)
426
+//#define DAC_STEPPER_DFLT { 70, 80, 90, 80 } // Default drive percent - X, Y, Z, E axis
427
+
428
+/*  5DPRINT & AZTEEG_X3_PRO */
429
+//#define DIGIPOT_I2C  // uncomment to enable
430
+#define DIGIPOT_I2C_NUM_CHANNELS 8 // 5DPRINT: 4     AZTEEG_X3_PRO: 8
431
+/* actual motor currents in Amps, need as many here as DIGIPOT_I2C_NUM_CHANNELS */
432
+#define DIGIPOT_I2C_MOTOR_CURRENTS {1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0}  //  AZTEEG_X3_PRO
416 433
 
417 434
 //===========================================================================
418 435
 //=============================Additional Features===========================

+ 28
- 11
Marlin/example_configurations/delta/kossel_xl/Configuration_adv.h View File

@@ -396,18 +396,35 @@
396 396
 // Microstep setting (Only functional when stepper driver microstep pins are connected to MCU.
397 397
 #define MICROSTEP_MODES {16,16,16,16,16} // [1,2,4,8,16]
398 398
 
399
-// Motor Current setting (Only functional when motor driver current ref pins are connected to a digital trimpot on supported boards)
400
-#define DIGIPOT_MOTOR_CURRENT {135,135,135,135,135} // Values 0-255 (RAMBO 135 = ~0.75A, 185 = ~1A)
401
-
402
-// Motor Current controlled via PWM (Overridable on supported boards with PWM-driven motor driver current)
399
+/**
400
+ *  @section  stepper motor current
401
+ *
402
+ *  Some boards have a means of setting the stepper motor current via firmware.
403
+ *
404
+ *  The power on motor currents are set by:
405
+ *    PWM_MOTOR_CURRENT - used by MINIRAMBO & ULTIMAIN_2
406
+ *                         known compatible chips: A4982
407
+ *    DIGIPOT_MOTOR_CURRENT - used by BQ_ZUM_MEGA_3D, RAMBO & SCOOVO_X9H
408
+ *                         known compatible chips: AD5206
409
+ *    DAC_MOTOR_CURRENT_DEFAULT - used by PRINTRBOARD_REVF & RIGIDBOARD_V2
410
+ *                         known compatible chips: MCP4728
411
+ *    DIGIPOT_I2C_MOTOR_CURRENTS - used by 5DPRINT & AZTEEG_X3_PRO
412
+ *                         known compatible chips: MCP4451
413
+ *
414
+ *  Motor currents can also be set by M907 - M910 and by the LCD.
415
+ *    M907 - applies to all.
416
+ *    M908 - BQ_ZUM_MEGA_3D, RAMBO, PRINTRBOARD_REVF, RIGIDBOARD_V2 & SCOOVO_X9H
417
+ *    M909, M910 & LCD - only PRINTRBOARD_REVF & RIGIDBOARD_V2
418
+ */
403 419
 //#define PWM_MOTOR_CURRENT {1300, 1300, 1250} // Values in milliamps
404
-
405
-// uncomment to enable an I2C based DIGIPOT like on the Azteeg X3 Pro
406
-//#define DIGIPOT_I2C
407
-// Number of channels available for I2C digipot, For Azteeg X3 Pro we have 8
408
-#define DIGIPOT_I2C_NUM_CHANNELS 8
409
-// actual motor currents in Amps, need as many here as DIGIPOT_I2C_NUM_CHANNELS
410
-#define DIGIPOT_I2C_MOTOR_CURRENTS {1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0}
420
+//#define DIGIPOT_MOTOR_CURRENT {135,135,135,135,135} // Values 0-255 (RAMBO 135 = ~0.75A, 185 = ~1A)
421
+//#define DAC_STEPPER_DFLT { 70, 80, 90, 80 } // Default drive percent - X, Y, Z, E axis
422
+
423
+/*  5DPRINT & AZTEEG_X3_PRO */
424
+//#define DIGIPOT_I2C  // uncomment to enable
425
+#define DIGIPOT_I2C_NUM_CHANNELS 8 // 5DPRINT: 4     AZTEEG_X3_PRO: 8
426
+/* actual motor currents in Amps, need as many here as DIGIPOT_I2C_NUM_CHANNELS */
427
+#define DIGIPOT_I2C_MOTOR_CURRENTS {1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0}  //  AZTEEG_X3_PRO
411 428
 
412 429
 //===========================================================================
413 430
 //=============================Additional Features===========================

+ 26
- 9
Marlin/example_configurations/makibox/Configuration_adv.h View File

@@ -394,18 +394,35 @@
394 394
 // Microstep setting (Only functional when stepper driver microstep pins are connected to MCU.
395 395
 #define MICROSTEP_MODES {16,16,16,16,16} // [1,2,4,8,16]
396 396
 
397
-// Motor Current setting (Only functional when motor driver current ref pins are connected to a digital trimpot on supported boards)
398
-#define DIGIPOT_MOTOR_CURRENT {135,135,135,135,135} // Values 0-255 (RAMBO 135 = ~0.75A, 185 = ~1A)
399
-
400
-// Motor Current controlled via PWM (Overridable on supported boards with PWM-driven motor driver current)
397
+/**
398
+ *  @section  stepper motor current
399
+ *
400
+ *  Some boards have a means of setting the stepper motor current via firmware.
401
+ *
402
+ *  The power on motor currents are set by:
403
+ *    PWM_MOTOR_CURRENT - used by MINIRAMBO & ULTIMAIN_2
404
+ *                         known compatible chips: A4982
405
+ *    DIGIPOT_MOTOR_CURRENT - used by BQ_ZUM_MEGA_3D, RAMBO & SCOOVO_X9H
406
+ *                         known compatible chips: AD5206
407
+ *    DAC_MOTOR_CURRENT_DEFAULT - used by PRINTRBOARD_REVF & RIGIDBOARD_V2
408
+ *                         known compatible chips: MCP4728
409
+ *    DIGIPOT_I2C_MOTOR_CURRENTS - used by 5DPRINT & AZTEEG_X3_PRO
410
+ *                         known compatible chips: MCP4451
411
+ *
412
+ *  Motor currents can also be set by M907 - M910 and by the LCD.
413
+ *    M907 - applies to all.
414
+ *    M908 - BQ_ZUM_MEGA_3D, RAMBO, PRINTRBOARD_REVF, RIGIDBOARD_V2 & SCOOVO_X9H
415
+ *    M909, M910 & LCD - only PRINTRBOARD_REVF & RIGIDBOARD_V2
416
+ */
401 417
 //#define PWM_MOTOR_CURRENT {1300, 1300, 1250} // Values in milliamps
418
+//#define DIGIPOT_MOTOR_CURRENT {135,135,135,135,135} // Values 0-255 (RAMBO 135 = ~0.75A, 185 = ~1A)
419
+//#define DAC_STEPPER_DFLT { 70, 80, 90, 80 } // Default drive percent - X, Y, Z, E axis
402 420
 
403
-// uncomment to enable an I2C based DIGIPOT like on the Azteeg X3 Pro
404
-//#define DIGIPOT_I2C
405
-// Number of channels available for I2C digipot, For Azteeg X3 Pro we have 8
406
-#define DIGIPOT_I2C_NUM_CHANNELS 4
421
+/*  5DPRINT & AZTEEG_X3_PRO */
422
+//#define DIGIPOT_I2C  // uncomment to enable
423
+#define DIGIPOT_I2C_NUM_CHANNELS 4 // 5DPRINT: 4     AZTEEG_X3_PRO: 8
407 424
 // actual motor currents in Amps, need as many here as DIGIPOT_I2C_NUM_CHANNELS
408
-#define DIGIPOT_I2C_MOTOR_CURRENTS { 1.7, 1.7, 1.7, 1.7 }
425
+#define DIGIPOT_I2C_MOTOR_CURRENTS { 1.7, 1.7, 1.7, 1.7 }  // 5DPRINT
409 426
 
410 427
 //===========================================================================
411 428
 //=============================Additional Features===========================

+ 28
- 11
Marlin/example_configurations/tvrrug/Round2/Configuration_adv.h View File

@@ -394,18 +394,35 @@
394 394
 // Microstep setting (Only functional when stepper driver microstep pins are connected to MCU.
395 395
 #define MICROSTEP_MODES {16,16,16,16,16} // [1,2,4,8,16]
396 396
 
397
-// Motor Current setting (Only functional when motor driver current ref pins are connected to a digital trimpot on supported boards)
398
-#define DIGIPOT_MOTOR_CURRENT {135,135,135,135,135} // Values 0-255 (RAMBO 135 = ~0.75A, 185 = ~1A)
399
-
400
-// Motor Current controlled via PWM (Overridable on supported boards with PWM-driven motor driver current)
397
+/**
398
+ *  @section  stepper motor current
399
+ *
400
+ *  Some boards have a means of setting the stepper motor current via firmware.
401
+ *
402
+ *  The power on motor currents are set by:
403
+ *    PWM_MOTOR_CURRENT - used by MINIRAMBO & ULTIMAIN_2
404
+ *                         known compatible chips: A4982
405
+ *    DIGIPOT_MOTOR_CURRENT - used by BQ_ZUM_MEGA_3D, RAMBO & SCOOVO_X9H
406
+ *                         known compatible chips: AD5206
407
+ *    DAC_MOTOR_CURRENT_DEFAULT - used by PRINTRBOARD_REVF & RIGIDBOARD_V2
408
+ *                         known compatible chips: MCP4728
409
+ *    DIGIPOT_I2C_MOTOR_CURRENTS - used by 5DPRINT & AZTEEG_X3_PRO
410
+ *                         known compatible chips: MCP4451
411
+ *
412
+ *  Motor currents can also be set by M907 - M910 and by the LCD.
413
+ *    M907 - applies to all.
414
+ *    M908 - BQ_ZUM_MEGA_3D, RAMBO, PRINTRBOARD_REVF, RIGIDBOARD_V2 & SCOOVO_X9H
415
+ *    M909, M910 & LCD - only PRINTRBOARD_REVF & RIGIDBOARD_V2
416
+ */
401 417
 //#define PWM_MOTOR_CURRENT {1300, 1300, 1250} // Values in milliamps
402
-
403
-// uncomment to enable an I2C based DIGIPOT like on the Azteeg X3 Pro
404
-//#define DIGIPOT_I2C
405
-// Number of channels available for I2C digipot, For Azteeg X3 Pro we have 8
406
-#define DIGIPOT_I2C_NUM_CHANNELS 8
407
-// actual motor currents in Amps, need as many here as DIGIPOT_I2C_NUM_CHANNELS
408
-#define DIGIPOT_I2C_MOTOR_CURRENTS {1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0}
418
+//#define DIGIPOT_MOTOR_CURRENT {135,135,135,135,135} // Values 0-255 (RAMBO 135 = ~0.75A, 185 = ~1A)
419
+//#define DAC_STEPPER_DFLT { 70, 80, 90, 80 } // Default drive percent - X, Y, Z, E axis
420
+
421
+/*  5DPRINT & AZTEEG_X3_PRO */
422
+//#define DIGIPOT_I2C  // uncomment to enable
423
+#define DIGIPOT_I2C_NUM_CHANNELS 8 // 5DPRINT: 4     AZTEEG_X3_PRO: 8
424
+/* actual motor currents in Amps, need as many here as DIGIPOT_I2C_NUM_CHANNELS */
425
+#define DIGIPOT_I2C_MOTOR_CURRENTS {1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0}  //  AZTEEG_X3_PRO
409 426
 
410 427
 //===========================================================================
411 428
 //=============================Additional Features===========================

+ 0
- 1
Marlin/pins_RIGIDBOARD_V2.h View File

@@ -44,4 +44,3 @@
44 44
 #define DAC_STEPPER_GAIN     1 // value of 1 here sets gain of 2
45 45
 #define DAC_DISABLE_PIN     42 // set low to enable DAC
46 46
 #define DAC_OR_ADDRESS    0x01
47
-#define DAC_STEPPER_DFLT { 70, 80, 90, 80 } // Default values for drive strength percent

+ 1
- 1
Marlin/stepper_dac.cpp View File

@@ -49,7 +49,7 @@
49 49
 
50 50
   bool dac_present = false;
51 51
   const uint8_t dac_order[NUM_AXIS] = DAC_STEPPER_ORDER;
52
-  uint16_t dac_channel_pct[XYZE] = DAC_STEPPER_DFLT;
52
+  uint16_t dac_channel_pct[XYZE] = DAC_MOTOR_CURRENT_DEFAULT;
53 53
 
54 54
   int dac_init() {
55 55
     #if PIN_EXISTS(DAC_DISABLE)

+ 1
- 1
Marlin/ultralcd.cpp View File

@@ -81,7 +81,7 @@ uint16_t max_display_update_time = 0;
81 81
 
82 82
 #if ENABLED(DAC_STEPPER_CURRENT)
83 83
   #include "stepper_dac.h" //was dac_mcp4728.h MarlinMain uses stepper dac for the m-codes
84
-  uint16_t driverPercent[XYZE];
84
+  int16_t driverPercent[XYZE];
85 85
 #endif
86 86
 
87 87
 #if ENABLED(ULTIPANEL)

Loading…
Cancel
Save