My Marlin configs for Fabrikator Mini and CTC i3 Pro B
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

Configuration.h 8.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197
  1. #ifndef __CONFIGURATION_H
  2. #define __CONFIGURATION_H
  3. // This configurtion file contains the basic settings.
  4. // Advanced settings can be found in Configuration_adv.h
  5. // BASIC SETTINGS: select your board type, temperature sensor type, axis scaling, and endstop configuration
  6. // This determines the communication speed of the printer
  7. #define BAUDRATE 250000
  8. //#define BAUDRATE 115200
  9. //// The following define selects which electronics board you have. Please choose the one that matches your setup
  10. // MEGA/RAMPS up to 1.2 = 3,
  11. // RAMPS 1.3 = 33
  12. // Gen6 = 5,
  13. // Sanguinololu 1.2 and above = 62
  14. // Ultimaker = 7,
  15. // Teensylu = 8,
  16. // Gen3+ =9
  17. #define MOTHERBOARD 7
  18. //===========================================================================
  19. //=============================Thermal Settings ============================
  20. //===========================================================================
  21. //// Temperature sensor settings:
  22. // -2 is thermocouple with MAX6675 (only for sensor 0)
  23. // -1 is thermocouple with AD595
  24. // 0 is not used
  25. // 1 is 100k thermistor
  26. // 2 is 200k thermistor
  27. // 3 is mendel-parts thermistor
  28. // 4 is 10k thermistor !! do not use it for a hotend. It gives bad resolution at high temp. !!
  29. // 5 is ParCan supplied 104GT-2 100K
  30. // 6 is EPCOS 100k
  31. // 7 is 100k Honeywell thermistor 135-104LAG-J01
  32. #define TEMP_SENSOR_0 -1
  33. #define TEMP_SENSOR_1 0
  34. #define TEMP_SENSOR_2 0
  35. #define TEMP_SENSOR_BED 0
  36. // Actual temperature must be close to target for this long before M109 returns success
  37. #define TEMP_RESIDENCY_TIME 30 // (seconds)
  38. #define TEMP_HYSTERESIS 3 // (C°) range of +/- temperatures considered "close" to the target one
  39. // The minimal temperature defines the temperature below which the heater will not be enabled It is used
  40. // to check that the wiring to the thermistor is not broken.
  41. // Otherwise this would lead to the heater being powered on all the time.
  42. #define HEATER_0_MINTEMP 5
  43. #define HEATER_1_MINTEMP 5
  44. #define HEATER_2_MINTEMP 5
  45. #define BED_MINTEMP 5
  46. // When temperature exceeds max temp, your heater will be switched off.
  47. // This feature exists to protect your hotend from overheating accidentally, but *NOT* from thermistor short/failure!
  48. // You should use MINTEMP for thermistor short/failure protection.
  49. #define HEATER_0_MAXTEMP 275
  50. #define HEATER_1_MAXTEMP 275
  51. #define HEATER_2_MAXTEMP 275
  52. #define BED_MAXTEMP 150
  53. // PID settings:
  54. // Comment the following line to disable PID and enable bang-bang.
  55. #define PIDTEMP
  56. #define PID_MAX 255 // limits current to nozzle; 255=full current
  57. #ifdef PIDTEMP
  58. //#define PID_DEBUG // Sends debug data to the serial port.
  59. //#define PID_OPENLOOP 1 // Puts PID in open loop. M104 sets the output power in %
  60. #define PID_INTEGRAL_DRIVE_MAX 255 //limit for the integral term
  61. #define K1 0.95 //smoothing factor withing the PID
  62. #define PID_dT 0.128 //sampling period of the PID
  63. // If you are using a preconfigured hotend then you can use one of the value sets by uncommenting it
  64. // Ultimaker
  65. #define DEFAULT_Kp 22.2
  66. #define DEFAULT_Ki (1.25*PID_dT)
  67. #define DEFAULT_Kd (99/PID_dT)
  68. // Makergear
  69. // #define DEFAULT_Kp 7.0
  70. // #define DEFAULT_Ki 0.1
  71. // #define DEFAULT_Kd 12
  72. // Mendel Parts V9 on 12V
  73. // #define DEFAULT_Kp 63.0
  74. // #define DEFAULT_Ki (2.25*PID_dT)
  75. // #define DEFAULT_Kd (440/PID_dT)
  76. #endif // PIDTEMP
  77. //this prevents dangerous Extruder moves, i.e. if the temperature is under the limit
  78. //can be software-disabled for whatever purposes by
  79. #define PREVENT_DANGEROUS_EXTRUDE
  80. #define EXTRUDE_MINTEMP 190
  81. #define EXTRUDE_MAXLENGTH (X_MAX_LENGTH+Y_MAX_LENGTH) //prevent extrusion of very large distances.
  82. //===========================================================================
  83. //=============================Mechanical Settings===========================
  84. //===========================================================================
  85. // Endstop Settings
  86. #define ENDSTOPPULLUPS // Comment this out (using // at the start of the line) to disable the endstop pullup resistors
  87. // The pullups are needed if you directly connect a mechanical endswitch between the signal and ground pins.
  88. const bool X_ENDSTOPS_INVERTING = true; // set to true to invert the logic of the endstops.
  89. const bool Y_ENDSTOPS_INVERTING = true; // set to true to invert the logic of the endstops.
  90. const bool Z_ENDSTOPS_INVERTING = true; // set to true to invert the logic of the endstops.
  91. // For Inverting Stepper Enable Pins (Active Low) use 0, Non Inverting (Active High) use 1
  92. #define X_ENABLE_ON 0
  93. #define Y_ENABLE_ON 0
  94. #define Z_ENABLE_ON 0
  95. #define E_ENABLE_ON 0 // For all extruders
  96. // Disables axis when it's not being used.
  97. #define DISABLE_X false
  98. #define DISABLE_Y false
  99. #define DISABLE_Z false
  100. #define DISABLE_E false // For all extruders
  101. #define INVERT_X_DIR true // for Mendel set to false, for Orca set to true
  102. #define INVERT_Y_DIR false // for Mendel set to true, for Orca set to false
  103. #define INVERT_Z_DIR true // for Mendel set to false, for Orca set to true
  104. #define INVERT_E0_DIR false // for direct drive extruder v9 set to true, for geared extruder set to false
  105. #define INVERT_E1_DIR false // for direct drive extruder v9 set to true, for geared extruder set to false
  106. #define INVERT_E2_DIR false // for direct drive extruder v9 set to true, for geared extruder set to false
  107. // ENDSTOP SETTINGS:
  108. // Sets direction of endstops when homing; 1=MAX, -1=MIN
  109. #define X_HOME_DIR -1
  110. #define Y_HOME_DIR -1
  111. #define Z_HOME_DIR -1
  112. #define min_software_endstops true //If true, axis won't move to coordinates less than zero.
  113. #define max_software_endstops true //If true, axis won't move to coordinates greater than the defined lengths below.
  114. #define X_MAX_LENGTH 205
  115. #define Y_MAX_LENGTH 205
  116. #define Z_MAX_LENGTH 200
  117. //// MOVEMENT SETTINGS
  118. #define NUM_AXIS 4 // The axis order in all axis related arrays is X, Y, Z, E
  119. #define HOMING_FEEDRATE {50*60, 50*60, 4*60, 0} // set the homing speeds (mm/min)
  120. // default settings
  121. #define DEFAULT_AXIS_STEPS_PER_UNIT {78.7402,78.7402,200*8/3,760*1.1} // default steps per unit for ultimaker
  122. #define DEFAULT_MAX_FEEDRATE {500, 500, 5, 45} // (mm/sec)
  123. #define DEFAULT_MAX_ACCELERATION {9000,9000,100,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.
  124. #define DEFAULT_ACCELERATION 3000 // X, Y, Z and E max acceleration in mm/s^2 for printing moves
  125. #define DEFAULT_RETRACT_ACCELERATION 3000 // X, Y, Z and E max acceleration in mm/s^2 for r retracts
  126. //
  127. #define DEFAULT_XYJERK 20.0 // (mm/sec)
  128. #define DEFAULT_ZJERK 0.4 // (mm/sec)
  129. //===========================================================================
  130. //=============================Additional Features===========================
  131. //===========================================================================
  132. // EEPROM
  133. // the microcontroller can store settings in the EEPROM, e.g. max velocity...
  134. // M500 - stores paramters in EEPROM
  135. // M501 - reads parameters from EEPROM (if you need reset them after you changed them temporarily).
  136. // M502 - reverts to the default "factory settings". You still need to store them in EEPROM afterwards if you want to.
  137. //define this to enable eeprom support
  138. //#define EEPROM_SETTINGS
  139. //to disable EEPROM Serial responses and decrease program space by ~1700 byte: comment this out:
  140. // please keep turned on if you can.
  141. //#define EEPROM_CHITCHAT
  142. //LCD and SD support
  143. //#define ULTRA_LCD //general lcd support, also 16x2
  144. #define SDSUPPORT // Enable SD Card Support in Hardware Console
  145. //#define ULTIPANEL
  146. #ifdef ULTIPANEL
  147. //#define NEWPANEL //enable this if you have a click-encoder panel
  148. #define SDSUPPORT
  149. #define ULTRA_LCD
  150. #define LCD_WIDTH 20
  151. #define LCD_HEIGHT 4
  152. #else //no panel but just lcd
  153. #ifdef ULTRA_LCD
  154. #define LCD_WIDTH 16
  155. #define LCD_HEIGHT 2
  156. #endif
  157. #endif
  158. // M240 Triggers a camera by emulating a Canon RC-1 Remote
  159. // Data from: http://www.doc-diy.net/photo/rc-1_hacked/
  160. // #define PHOTOGRAPH_PIN 23
  161. #include "Configuration_adv.h"
  162. #include "thermistortables.h"
  163. #endif //__CONFIGURATION_H