My Marlin configs for Fabrikator Mini and CTC i3 Pro B
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Configuration.h 5.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134
  1. #ifndef CONFIGURATION_H
  2. #define CONFIGURATION_H
  3. // BASIC SETTINGS: select your board type, thermistor type, axis scaling, and endstop configuration
  4. //// The following define selects which electronics board you have. Please choose the one that matches your setup
  5. // Gen6 = 5,
  6. #define MOTHERBOARD 5
  7. //// Thermistor settings:
  8. // 1 is 100k thermistor
  9. // 2 is 200k thermistor
  10. // 3 is mendel-parts thermistor
  11. #define THERMISTORHEATER 3
  12. //// Calibration variables
  13. // X, Y, Z, E steps per unit - Metric Mendel / Orca with V9 extruder:
  14. float axis_steps_per_unit[] = {40, 40, 3333.92, 67};
  15. // For E steps per unit = 67 for v9 with direct drive (needs finetuning) for other extruders this needs to be changed
  16. // Metric Prusa Mendel with Makergear geared stepper extruder:
  17. //float axis_steps_per_unit[] = {80,80,3200/1.25,1380};
  18. //// Endstop Settings
  19. #define ENDSTOPPULLUPS // Comment this out (using // at the start of the line) to disable the endstop pullup resistors
  20. // The pullups are needed if you directly connect a mechanical endswitch between the signal and ground pins.
  21. const bool ENDSTOPS_INVERTING = false; // set to true to invert the logic of the endstops.
  22. // For optos H21LOB set to true, for Mendel-Parts newer optos TCST2103 set to false
  23. // This determines the communication speed of the printer
  24. #define BAUDRATE 250000
  25. // Comment out (using // at the start of the line) to disable SD support:
  26. //#define SDSUPPORT
  27. //// ADVANCED SETTINGS - to tweak parameters
  28. #include "thermistortables.h"
  29. // For Inverting Stepper Enable Pins (Active Low) use 0, Non Inverting (Active High) use 1
  30. #define X_ENABLE_ON 0
  31. #define Y_ENABLE_ON 0
  32. #define Z_ENABLE_ON 0
  33. #define E_ENABLE_ON 0
  34. // Disables axis when it's not being used.
  35. #define DISABLE_X false
  36. #define DISABLE_Y false
  37. #define DISABLE_Z true
  38. #define DISABLE_E false
  39. // Inverting axis direction
  40. #define INVERT_X_DIR true // for Mendel set to false, for Orca set to true
  41. #define INVERT_Y_DIR false // for Mendel set to true, for Orca set to false
  42. #define INVERT_Z_DIR true // for Mendel set to false, for Orca set to true
  43. #define INVERT_E_DIR true // for direct drive extruder v9 set to true, for geared extruder set to false
  44. //// ENDSTOP SETTINGS:
  45. // Sets direction of endstops when homing; 1=MAX, -1=MIN
  46. #define X_HOME_DIR -1
  47. #define Y_HOME_DIR -1
  48. #define Z_HOME_DIR -1
  49. #define min_software_endstops false //If true, axis won't move to coordinates less than zero.
  50. #define max_software_endstops true //If true, axis won't move to coordinates greater than the defined lengths below.
  51. #define X_MAX_LENGTH 200
  52. #define Y_MAX_LENGTH 200
  53. #define Z_MAX_LENGTH 100
  54. //// MOVEMENT SETTINGS
  55. #define NUM_AXIS 4 // The axis order in all axis related arrays is X, Y, Z, E
  56. float max_feedrate[] = {60000, 60000, 100, 500000}; // set the max speeds
  57. float homing_feedrate[] = {2400, 2400, 80, 0}; // set the homing speeds
  58. bool axis_relative_modes[] = {false, false, false, false};
  59. //// Acceleration settings
  60. // X, Y, Z, E maximum start speed for accelerated moves. E default values are good for skeinforge 40+, for older versions raise them a lot.
  61. float acceleration = 2000; // Normal acceleration mm/s^2
  62. float retract_acceleration = 7000; // Normal acceleration mm/s^2
  63. float max_jerk = 20*60;
  64. long max_acceleration_units_per_sq_second[] = {7000,7000,100,10000}; // X, Y, Z and E max acceleration in mm/s^2 for printing moves or retracts
  65. // Not used long max_travel_acceleration_units_per_sq_second[] = {500,500,50,500}; // X, Y, Z max acceleration in mm/s^2 for travel moves
  66. // The watchdog waits for the watchperiod in milliseconds whenever an M104 or M109 increases the target temperature
  67. // If the temperature has not increased at the end of that period, the target temperature is set to zero. It can be reset with another M104/M109
  68. //#define WATCHPERIOD 5000 //5 seconds
  69. //// The minimal temperature defines the temperature below which the heater will not be enabled
  70. #define MINTEMP 5
  71. // When temperature exceeds max temp, your heater will be switched off.
  72. // This feature exists to protect your hotend from overheating accidentally, but *NOT* from thermistor short/failure!
  73. // You should use MINTEMP for thermistor short/failure protection.
  74. #define MAXTEMP 275
  75. /// PID settings:
  76. // Uncomment the following line to enable PID support.
  77. //#define PIDTEMP
  78. #ifdef PIDTEMP
  79. //#define PID_DEBUG 1 // Sends debug data to the serial port.
  80. //#define PID_OPENLOOP 1 // Puts PID in open loop. M104 sets the output power in %
  81. #define PID_MAX 156 // limits current to nozzle
  82. #define PID_INTEGRAL_DRIVE_MAX 156.0
  83. #define PID_dT 0.16
  84. double Kp = 20.0;
  85. double Ki = 1.5*PID_dT;
  86. double Kd = 80/PID_dT;
  87. #endif // PIDTEMP
  88. // extruder advance constant (s2/mm3)
  89. //
  90. // advance (steps) = STEPS_PER_CUBIC_MM_E * EXTUDER_ADVANCE_K * cubic mm per second ^ 2
  91. //
  92. // hooke's law says: force = k * distance
  93. // bernoulli's priniciple says: v ^ 2 / 2 + g . h + pressure / density = constant
  94. // so: v ^ 2 is proportional to number of steps we advance the extruder
  95. //#define ADVANCE
  96. #ifdef ADVANCE
  97. #define EXTRUDER_ADVANCE_K 0.02
  98. #define D_FILAMENT 1.7
  99. #define STEPS_MM_E 65
  100. #define EXTRUTION_AREA (0.25 * D_FILAMENT * D_FILAMENT * 3.14159)
  101. #define STEPS_PER_CUBIC_MM_E (axis_steps_per_unit[E_AXIS]/ EXTRUTION_AREA)
  102. #endif // ADVANCE
  103. #endif