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 4.7KB

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