Advertisement
Boelle

Untitled

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