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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213
  1. #ifndef CONFIGURATION_H
  2. #define CONFIGURATION_H
  3. //#define DEBUG_STEPS
  4. // BASIC SETTINGS: select your board type, thermistor type, axis scaling, and endstop configuration
  5. //// The following define selects which electronics board you have. Please choose the one that matches your setup
  6. // MEGA/RAMPS up to 1.2 = 3,
  7. // RAMPS 1.3 = 33
  8. // Gen6 = 5,
  9. // Sanguinololu 1.2 and above = 62
  10. // Ultimaker = 7,
  11. #define MOTHERBOARD 7
  12. //#define MOTHERBOARD 5
  13. //// Thermistor settings:
  14. // 1 is 100k thermistor
  15. // 2 is 200k thermistor
  16. // 3 is mendel-parts thermistor
  17. // 4 is 10k thermistor
  18. // 5 is ParCan supplied 104GT-2 100K
  19. // 6 is EPCOS 100k
  20. // 7 is 100k Honeywell thermistor 135-104LAG-J01
  21. #define THERMISTORHEATER_1 3
  22. #define THERMISTORHEATER_2 3
  23. #define THERMISTORBED 3
  24. //#define HEATER_1_USES_THERMISTOR
  25. //#define HEATER_2_USES_THERMISTOR
  26. #define HEATER_1_USES_AD595
  27. //#define HEATER_2_USES_AD595
  28. // Select one of these only to define how the bed temp is read.
  29. //#define BED_USES_THERMISTOR
  30. //#define BED_USES_AD595
  31. #define HEATER_CHECK_INTERVAL 50
  32. #define BED_CHECK_INTERVAL 5000
  33. //// Endstop Settings
  34. #define ENDSTOPPULLUPS // Comment this out (using // at the start of the line) to disable the endstop pullup resistors
  35. // The pullups are needed if you directly connect a mechanical endswitch between the signal and ground pins.
  36. const bool ENDSTOPS_INVERTING = true; // set to true to invert the logic of the endstops.
  37. // For optos H21LOB set to true, for Mendel-Parts newer optos TCST2103 set to false
  38. // This determines the communication speed of the printer
  39. //#define BAUDRATE 250000
  40. #define BAUDRATE 115200
  41. //#define BAUDRATE 230400
  42. // Comment out (using // at the start of the line) to disable SD support:
  43. // #define ULTRA_LCD //any lcd
  44. #define LCD_WIDTH 16
  45. #define LCD_HEIGHT 2
  46. //#define ULTIPANEL
  47. #ifdef ULTIPANEL
  48. //#define NEWPANEL //enable this if you have a click-encoder panel
  49. #define SDSUPPORT
  50. #define ULTRA_LCD
  51. #define LCD_WIDTH 20
  52. #define LCD_HEIGHT 4
  53. #endif
  54. //#define SDSUPPORT // Enable SD Card Support in Hardware Console
  55. const int dropsegments=5; //everything with this number of steps will be ignored as move
  56. //// ADVANCED SETTINGS - to tweak parameters
  57. #include "thermistortables.h"
  58. // For Inverting Stepper Enable Pins (Active Low) use 0, Non Inverting (Active High) use 1
  59. #define X_ENABLE_ON 0
  60. #define Y_ENABLE_ON 0
  61. #define Z_ENABLE_ON 0
  62. #define E_ENABLE_ON 0
  63. // Disables axis when it's not being used.
  64. #define DISABLE_X false
  65. #define DISABLE_Y false
  66. #define DISABLE_Z false
  67. #define DISABLE_E false
  68. // Inverting axis direction
  69. #define INVERT_X_DIR true // for Mendel set to false, for Orca set to true
  70. #define INVERT_Y_DIR false // for Mendel set to true, for Orca set to false
  71. #define INVERT_Z_DIR true // for Mendel set to false, for Orca set to true
  72. #define INVERT_E_DIR false // for direct drive extruder v9 set to true, for geared extruder set to false
  73. //// ENDSTOP SETTINGS:
  74. // Sets direction of endstops when homing; 1=MAX, -1=MIN
  75. #define X_HOME_DIR -1
  76. #define Y_HOME_DIR -1
  77. #define Z_HOME_DIR -1
  78. #define min_software_endstops false //If true, axis won't move to coordinates less than zero.
  79. #define max_software_endstops false //If true, axis won't move to coordinates greater than the defined lengths below.
  80. #define X_MAX_LENGTH 210
  81. #define Y_MAX_LENGTH 210
  82. #define Z_MAX_LENGTH 210
  83. //// MOVEMENT SETTINGS
  84. #define NUM_AXIS 4 // The axis order in all axis related arrays is X, Y, Z, E
  85. //note: on bernhards ultimaker 200 200 12 are working well.
  86. #define HOMING_FEEDRATE {50*60, 50*60, 12*60, 0} // set the homing speeds
  87. //the followint checks if an extrusion is existent in the move. if _not_, the speed of the move is set to the maximum speed.
  88. //!!!!!!Use only if you know that your printer works at the maximum declared speeds.
  89. // works around the skeinforge cool-bug. There all moves are slowed to have a minimum layer time. However slow travel moves= ooze
  90. #define TRAVELING_AT_MAXSPEED
  91. #define AXIS_RELATIVE_MODES {false, false, false, false}
  92. #define MAX_STEP_FREQUENCY 40000 // Max step frequency for Ultimaker (5000 pps / half step)
  93. // default settings
  94. #define DEFAULT_AXIS_STEPS_PER_UNIT {79.87220447,79.87220447,200*8/3,14} // default steps per unit for ultimaker
  95. #define DEFAULT_MAX_FEEDRATE {160*60, 160*60, 10*60, 500000}
  96. #define DEFAULT_MAX_ACCELERATION {9000,9000,150,10000} // 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.
  97. #define DEFAULT_ACCELERATION 3000 // X, Y, Z and E max acceleration in mm/s^2 for printing moves
  98. #define DEFAULT_RETRACT_ACCELERATION 7000 // X, Y, Z and E max acceleration in mm/s^2 for r retracts
  99. #define DEFAULT_MINIMUMFEEDRATE 10 // minimum feedrate
  100. #define DEFAULT_MINTRAVELFEEDRATE 10
  101. // minimum time in microseconds that a movement needs to take if the buffer is emptied. Increase this number if you see blobs while printing high speed & high detail. It will slowdown on the detailed stuff.
  102. #define DEFAULT_MINSEGMENTTIME 20000
  103. #define DEFAULT_XYJERK 30.0*60
  104. #define DEFAULT_ZJERK 10.0*60
  105. // The watchdog waits for the watchperiod in milliseconds whenever an M104 or M109 increases the target temperature
  106. //this enables the watchdog interrupt.
  107. #define USE_WATCHDOG
  108. //you cannot reboot on a mega2560 due to a bug in he bootloader. Hence, you have to reset manually, and this is done hereby:
  109. #define RESET_MANUAL
  110. #define WATCHDOG_TIMEOUT 4
  111. // 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
  112. //#define WATCHPERIOD 5000 //5 seconds
  113. //// The minimal temperature defines the temperature below which the heater will not be enabled
  114. #define MINTEMP 5
  115. #define BED_MINTEMP 5
  116. // When temperature exceeds max temp, your heater will be switched off.
  117. // This feature exists to protect your hotend from overheating accidentally, but *NOT* from thermistor short/failure!
  118. // You should use MINTEMP for thermistor short/failure protection.
  119. #define MAXTEMP 275
  120. #define BED_MAXTEMP 150
  121. /// PID settings:
  122. // Uncomment the following line to enable PID support.
  123. //#define SMOOTHING
  124. //#define SMOOTHFACTOR 5.0
  125. //float current_raw_average=0;
  126. #define PIDTEMP
  127. #ifdef PIDTEMP
  128. //#define PID_DEBUG // Sends debug data to the serial port.
  129. //#define PID_OPENLOOP 1 // Puts PID in open loop. M104 sets the output power in %
  130. #define PID_MAX 255 // limits current to nozzle
  131. #define PID_INTEGRAL_DRIVE_MAX 255
  132. #define PID_dT 0.10 // 100ms sample time
  133. #define DEFAULT_Kp 20.0
  134. #define DEFAULT_Ki 1.5*PID_dT
  135. #define DEFAULT_Kd 80/PID_dT
  136. #define DEFAULT_Kc 0
  137. #endif // PIDTEMP
  138. // extruder advance constant (s2/mm3)
  139. //
  140. // advance (steps) = STEPS_PER_CUBIC_MM_E * EXTUDER_ADVANCE_K * cubic mm per second ^ 2
  141. //
  142. // hooke's law says: force = k * distance
  143. // bernoulli's priniciple says: v ^ 2 / 2 + g . h + pressure / density = constant
  144. // so: v ^ 2 is proportional to number of steps we advance the extruder
  145. //#define ADVANCE
  146. #ifdef ADVANCE
  147. #define EXTRUDER_ADVANCE_K .3
  148. #define D_FILAMENT 1.7
  149. #define STEPS_MM_E 65
  150. #define EXTRUTION_AREA (0.25 * D_FILAMENT * D_FILAMENT * 3.14159)
  151. #define STEPS_PER_CUBIC_MM_E (axis_steps_per_unit[E_AXIS]/ EXTRUTION_AREA)
  152. #endif // ADVANCE
  153. #if defined SDSUPPORT
  154. // The number of linear motions that can be in the plan at any give time.
  155. #define BLOCK_BUFFER_SIZE 16 // SD,LCD,Buttons take more memory, block buffer needs to be smaller
  156. #else
  157. #define BLOCK_BUFFER_SIZE 16 // maximize block buffer
  158. #endif
  159. #ifdef SIMPLE_LCD
  160. #define BLOCK_BUFFER_SIZE 16 // A little less buffer for just a simple LCD
  161. #endif
  162. #endif