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

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