Advertisement
Guest User

OLD Configuration.h

a guest
Apr 14th, 2016
255
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 48.63 KB | None | 0 0
  1. /*
  2. This file is part of Repetier-Firmware.
  3.  
  4. Repetier-Firmware is free software: you can redistribute it and/or modify
  5. it under the terms of the GNU General Public License as published by
  6. the Free Software Foundation, either version 3 of the License, or
  7. (at your option) any later version.
  8.  
  9. Repetier-Firmware is distributed in the hope that it will be useful,
  10. but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. GNU General Public License for more details.
  13.  
  14. You should have received a copy of the GNU General Public License
  15. along with Repetier-Firmware. If not, see <http://www.gnu.org/licenses/>.
  16.  
  17. */
  18.  
  19. #ifndef CONFIGURATION_H
  20. #define CONFIGURATION_H
  21.  
  22. /* Some words on units:
  23.  
  24. From 0.80 onwards the units used are unified for easier configuration, watch out when transfering from older configs!
  25.  
  26. Speed is in mm/s
  27. Acceleration in mm/s^2
  28. Temperature is in degrees celsius
  29.  
  30.  
  31. ##########################################################################################
  32. ## IMPORTANT ##
  33. ##########################################################################################
  34.  
  35. For easy configuration, the default settings enable parameter storage in EEPROM.
  36. This means, after the first upload many variables can only be changed using the special
  37. M commands as described in the documentation. Changing these value sin the configuration.h
  38. has no effect. Parameters overriden by EEPROM settings are calibartion values, extruder
  39. values except thermistor tables and some other parameter likely to change during usage
  40. like advance steps or ops mode.
  41. To override EEPROM settings with config settings, set EEPROM_MODE 0
  42.  
  43. */
  44.  
  45.  
  46. // BASIC SETTINGS: select your board type, thermistor type, axis scaling, and endstop configuration
  47.  
  48. /** Number of extruders. Maximum 2 extruder. */
  49. #define NUM_EXTRUDER 1
  50.  
  51. //// The following define selects which electronics board you have. Please choose the one that matches your setup
  52. // Gen3 PLUS for RepRap Motherboard V1.2 = 21
  53. // MEGA/RAMPS up to 1.2 = 3
  54. // RAMPS 1.3/RAMPS 1.4 = 33
  55. // Azteeg X3 = 34
  56. // Gen6 = 5
  57. // Gen6 deluxe = 51
  58. // Sanguinololu up to 1.1 = 6
  59. // Sanguinololu 1.2 and above = 62
  60. // Melzi board = 63 // Define REPRAPPRO_HUXLEY if you have one for correct HEATER_1_PIN assignment!
  61. // Gen7 1.1 till 1.3.x = 7
  62. // Gen7 1.4.1 and later = 71
  63. // Teensylu (at90usb) = 8 // requires Teensyduino
  64. // Printrboard (at90usb) = 9 // requires Teensyduino
  65. // Foltyn 3D Master = 12
  66. // MegaTronics 1.0 = 70
  67. // ;egatronics 2.0 = 701
  68. // RUMBA = 80 // Get it from reprapdiscount
  69. // Rambo = 301
  70. // Arduino Due = 401 // This is only experimental
  71.  
  72. #define MOTHERBOARD 33
  73.  
  74. #include "pins.h"
  75.  
  76. // Uncomment the following line if oyu are using arduino compatible firmware made for Arduino version earlier then 1.0
  77. // If it is incompatible you will get compiler errors about write functions not beeing compatible!
  78. //#define COMPAT_PRE1
  79.  
  80. /* Define the type of axis movements needed for your printer. The typical case
  81. is a full cartesian system where x, y and z moves are handled by seperate motors.
  82.  
  83. 0 = full cartesian system, xyz have seperate motors.
  84. 1 = z axis + xy H-gantry (x_motor = x+y, y_motor = x-y)
  85. 2 = z axis + xy H-gantry (x_motor = x+y, y_motor = y-x)
  86. 3 = Delta printers (Rostock, Kossel, RostockMax, Cerberus, etc)
  87. Cases 1 and 2 cover all needed xy H gantry systems. If you get results mirrored etc. you can swap motor connections for x and y. If a motor turns in
  88. the wrong direction change INVERT_X_DIR or INVERT_Y_DIR.
  89. */
  90. #define DRIVE_SYSTEM 3
  91.  
  92. // ##########################################################################################
  93. // ## Calibration ##
  94. // ##########################################################################################
  95.  
  96. /** Drive settings for the Delta printers
  97. */
  98. #if DRIVE_SYSTEM==3
  99. // ***************************************************
  100. // *** These parameter are only for Delta printers ***
  101. // ***************************************************
  102.  
  103. /** \brief Delta drive type: 0 - belts and pulleys, 1 - filament drive */
  104. #define DELTA_DRIVE_TYPE 0
  105.  
  106. #if DELTA_DRIVE_TYPE == 0
  107. /** \brief Pitch in mm of drive belt. GT2 = 2mm */
  108. #define BELT_PITCH 2
  109. /** \brief Number of teeth on X, Y and Z tower pulleys */
  110. #define PULLEY_TEETH 36
  111. #define PULLEY_CIRCUMFERENCE (BELT_PITCH * PULLEY_TEETH)
  112. #elif DELTA_DRIVE_TYPE == 1
  113. /** \brief Filament pulley diameter in milimeters */
  114. #define PULLEY_DIAMETER 10
  115. #define PULLEY_CIRCUMFERENCE (PULLEY_DIAMETER * 3.1415927)
  116. #endif
  117.  
  118. /** \brief Steps per rotation of stepper motor */
  119. #define STEPS_PER_ROTATION 200
  120.  
  121. /** \brief Micro stepping rate of X, Y and Y tower stepper drivers */
  122. #define MICRO_STEPS 16
  123.  
  124. /** \brief Number of delta moves in each line. Moves that exceed this figure will be split into multiple lines.
  125. Increasing this figure can use a lot of memory since 7 bytes * size of line buffer * MAX_SELTA_SEGMENTS_PER_LINE
  126. will be allocated for the delta buffer. With defaults 7 * 16 * 30 = 3360 bytes. This leaves ~1K free RAM on an Arduino
  127. Mega. */
  128. #define MAX_DELTA_SEGMENTS_PER_LINE 30
  129.  
  130. // Calculations
  131. #define AXIS_STEPS_PER_MM ((float)(MICRO_STEPS * STEPS_PER_ROTATION) / PULLEY_CIRCUMFERENCE)
  132. #define XAXIS_STEPS_PER_MM AXIS_STEPS_PER_MM
  133. #define YAXIS_STEPS_PER_MM AXIS_STEPS_PER_MM
  134. #define ZAXIS_STEPS_PER_MM AXIS_STEPS_PER_MM
  135. #else
  136. // *******************************************************
  137. // *** These parameter are for all othe rprinter types ***
  138. // *******************************************************
  139.  
  140. /** Drive settings for printers with cartesian drive systems */
  141. /** \brief Number of steps for a 1mm move in x direction.
  142. For xy gantry use 2*belt moved!
  143. Overridden if EEPROM activated. */
  144. #define XAXIS_STEPS_PER_MM 98.425196
  145. /** \brief Number of steps for a 1mm move in y direction.
  146. For xy gantry use 2*belt moved!
  147. Overridden if EEPROM activated.*/
  148. #define YAXIS_STEPS_PER_MM 98.425196
  149. /** \brief Number of steps for a 1mm move in z direction Overridden if EEPROM activated.*/
  150. #define ZAXIS_STEPS_PER_MM 2560
  151. #endif
  152.  
  153. // ##########################################################################################
  154. // ## Extruder configuration ##
  155. // ##########################################################################################
  156.  
  157. // for each extruder, fan will stay on until extruder temperature is below this value
  158. #define EXTRUDER_FAN_COOL_TEMP 50
  159.  
  160. #define EXT0_X_OFFSET 0
  161. #define EXT0_Y_OFFSET 0
  162. // for skeinforge 40 and later, steps to pull the plasic 1 mm inside the extruder, not out. Overridden if EEPROM activated.
  163. #define EXT0_STEPS_PER_MM 496.16 //455.02 //496.16 //518 //385
  164. // What type of sensor is used?
  165. // 1 is 100k thermistor (Epcos B57560G0107F000 - RepRap-Fab.org and many other)
  166. // 2 is 200k thermistor
  167. // 3 is mendel-parts thermistor (EPCOS G550)
  168. // 4 is 10k thermistor
  169. // 8 is ATC Semitec 104GT-2
  170. // 5 is userdefined thermistor table 0
  171. // 6 is userdefined thermistor table 1
  172. // 7 is userdefined thermistor table 2
  173. // 50 is userdefined thermistor table 0 for PTC thermistors
  174. // 51 is userdefined thermistor table 0 for PTC thermistors
  175. // 52 is userdefined thermistor table 0 for PTC thermistors
  176. // 60 is AD8494, AD8495, AD8496 or AD8497 (5mV/°C and 1/4 the price of AD595 but only MSOT_08 package)
  177. // 97 Generic thermistor table 1
  178. // 98 Generic thermistor table 2
  179. // 99 Generic thermistor table 3
  180. // 100 is AD595
  181. // 101 is MAX6675
  182. #define EXT0_TEMPSENSOR_TYPE 8
  183. // Analog input pin for reading temperatures or pin enabling SS for MAX6675
  184. #define EXT0_TEMPSENSOR_PIN TEMP_0_PIN
  185. // WHich pin enables the heater
  186. #define EXT0_HEATER_PIN HEATER_0_PIN
  187. #define EXT0_STEP_PIN E0_STEP_PIN
  188. #define EXT0_DIR_PIN E0_DIR_PIN
  189. // set to false/true for normal / inverse direction
  190. #define EXT0_INVERSE true
  191. #define EXT0_ENABLE_PIN E0_ENABLE_PIN
  192. // For Inverting Stepper Enable Pins (Active Low) use 0, Non Inverting (Active High) use 1
  193. #define EXT0_ENABLE_ON false
  194. // The following speed settings are for skeinforge 40+ where e is the
  195. // length of filament pulled inside the heater. For repsnap or older
  196. // skeinforge use hiher values.
  197. // Overridden if EEPROM activated.
  198. #define EXT0_MAX_FEEDRATE 60 //30
  199. // Feedrate from halted extruder in mm/s
  200. // Overridden if EEPROM activated.
  201. #define EXT0_MAX_START_FEEDRATE 10
  202. // Acceleration in mm/s^2
  203. // Overridden if EEPROM activated.
  204. #define EXT0_MAX_ACCELERATION 4000
  205. /** Type of heat manager for this extruder.
  206. - 0 = Simply switch on/off if temperature is reached. Works always.
  207. - 1 = PID Temperature control. Is better but needs good PID values. Defaults are a good start for most extruder.
  208. Overridden if EEPROM activated.
  209. */
  210. #define EXT0_HEAT_MANAGER 1
  211. /** Wait x seconds, after reaching target temperature. Only used for M109. Overridden if EEPROM activated. */
  212. #define EXT0_WATCHPERIOD 1
  213.  
  214. /** \brief The maximum value, I-gain can contribute to the output.
  215.  
  216. A good value is slightly higher then the output needed for your temperature.
  217. Values for starts:
  218. 130 => PLA for temperatures from 170-180°C
  219. 180 => ABS for temperatures around 240°C
  220.  
  221. The precise values may differ for different nozzle/resistor combination.
  222. Overridden if EEPROM activated.
  223. */
  224. #define EXT0_PID_INTEGRAL_DRIVE_MAX 140
  225. /** \brief lower value for integral part
  226.  
  227. The I state should converge to the exact heater output needed for the target temperature.
  228. To prevent a long deviation from the target zone, this value limits the lower value.
  229. A good start is 30 lower then the optimal value. You need to leave room for cooling.
  230. Overridden if EEPROM activated.
  231. */
  232. #define EXT0_PID_INTEGRAL_DRIVE_MIN 60
  233. /** P-gain. Overridden if EEPROM activated. */
  234. #define EXT0_PID_P 24
  235. /** I-gain. Overridden if EEPROM activated.
  236. */
  237. #define EXT0_PID_I 0.88
  238. /** Dgain. Overridden if EEPROM activated.*/
  239. #define EXT0_PID_D 80
  240. // maximum time the heater is can be switched on. Max = 255. Overridden if EEPROM activated.
  241. #define EXT0_PID_MAX 255
  242. /** \brief Faktor for the advance algorithm. 0 disables the algorithm. Overridden if EEPROM activated.
  243. K is the factor for the quadratic term, which is normally disabled in newer versions. If you want to use
  244. the quadratic factor make sure ENABLE_QUADRATIC_ADVANCE is defined.
  245. L is the linear factor and seems to be working better then the quadratic dependency.
  246. */
  247. #define EXT0_ADVANCE_K 0.0f
  248. #define EXT0_ADVANCE_L 0.0f
  249.  
  250. /** \brief Temperature to retract filament when extruder is heating up. Overridden if EEPROM activated.
  251. */
  252. #define EXT0_WAIT_RETRACT_TEMP 150
  253. /** \brief Units (mm/inches) to retract filament when extruder is heating up. Overridden if EEPROM activated. Set
  254. to 0 to disable.
  255. */
  256. #define EXT0_WAIT_RETRACT_UNITS 0
  257.  
  258. /** You can run any gcode command son extruder deselect/select. Seperate multiple commands with a new line \n.
  259. That way you can execute some mechanical components needed for extruder selection or retract filament or whatever you need.
  260. The codes are only executed for multiple extruder when changing the extruder. */
  261. #define EXT0_SELECT_COMMANDS "M120 S5 P5\nM117 Extruder 1"
  262. #define EXT0_DESELECT_COMMANDS ""
  263. /** The extruder cooler is a fan to cool the extruder when it is heating. If you turn the etxruder on, the fan goes on. */
  264. #define EXT0_EXTRUDER_COOLER_PIN -1
  265. /** PWM speed for the cooler fan. 0=off 255=full speed */
  266. #define EXT0_EXTRUDER_COOLER_SPEED 255
  267.  
  268.  
  269. // =========================== Configuration for second extruder ========================
  270. #define EXT1_X_OFFSET 10
  271. #define EXT1_Y_OFFSET 0
  272. // for skeinforge 40 and later, steps to pull the plasic 1 mm inside the extruder, not out. Overridden if EEPROM activated.
  273. #define EXT1_STEPS_PER_MM 373
  274. // What type of sensor is used?
  275. // 1 is 100k thermistor (Epcos B57560G0107F000 - RepRap-Fab.org and many other)
  276. // 2 is 200k thermistor
  277. // 3 is mendel-parts thermistor (EPCOS G550)
  278. // 4 is 10k thermistor
  279. // 5 is userdefined thermistor table 0
  280. // 6 is userdefined thermistor table 1
  281. // 7 is userdefined thermistor table 2
  282. // 8 is ATC Semitec 104GT-2
  283. // 50 is userdefined thermistor table 0 for PTC thermistors
  284. // 51 is userdefined thermistor table 0 for PTC thermistors
  285. // 52 is userdefined thermistor table 0 for PTC thermistors
  286. // 60 is AD8494, AD8495, AD8496 or AD8497 (5mV/°C and 1/4 the price of AD595 but only MSOT_08 package)
  287. // 97 Generic thermistor table 1
  288. // 98 Generic thermistor table 2
  289. // 99 Generic thermistor table 3
  290. // 100 is AD595
  291. // 101 is MAX6675
  292. #define EXT1_TEMPSENSOR_TYPE 97
  293. // Analog input pin for reading temperatures or pin enabling SS for MAX6675
  294. #define EXT1_TEMPSENSOR_PIN TEMP_2_PIN
  295. // WHich pin enables the heater
  296. #define EXT1_HEATER_PIN HEATER_2_PIN
  297. #define EXT1_STEP_PIN E1_STEP_PIN
  298. #define EXT1_DIR_PIN E1_DIR_PIN
  299. // set to 0/1 for normal / inverse direction
  300. #define EXT1_INVERSE false
  301. #define EXT1_ENABLE_PIN E1_ENABLE_PIN
  302. // For Inverting Stepper Enable Pins (Active Low) use 0, Non Inverting (Active High) use 1
  303. #define EXT1_ENABLE_ON false
  304. // The following speed settings are for skeinforge 40+ where e is the
  305. // length of filament pulled inside the heater. For repsnap or older
  306. // skeinforge use eiher values.
  307. // Overridden if EEPROM activated.
  308. #define EXT1_MAX_FEEDRATE 25
  309. // Feedrate from halted extruder in mm/s
  310. // Overridden if EEPROM activated.
  311. #define EXT1_MAX_START_FEEDRATE 12
  312. // Acceleration in mm/s^2
  313. // Overridden if EEPROM activated.
  314. #define EXT1_MAX_ACCELERATION 10000
  315. /** Type of heat manager for this extruder.
  316. - 0 = Simply switch on/off if temperature is reached. Works always.
  317. - 1 = PID Temperature control. Is better but needs good PID values. Defaults are a good start for most extruder.
  318. Overridden if EEPROM activated.
  319. */
  320. #define EXT1_HEAT_MANAGER 1
  321. /** Wait x seconds, after reaching target temperature. Only used for M109. Overridden if EEPROM activated. */
  322. #define EXT1_WATCHPERIOD 1
  323.  
  324. /** \brief The maximum value, I-gain can contribute to the output.
  325.  
  326. A good value is slightly higher then the output needed for your temperature.
  327. Values for starts:
  328. 130 => PLA for temperatures from 170-180°C
  329. 180 => ABS for temperatures around 240°C
  330.  
  331. The precise values may differ for different nozzle/resistor combination.
  332. Overridden if EEPROM activated.
  333. */
  334. #define EXT1_PID_INTEGRAL_DRIVE_MAX 130
  335. /** \brief lower value for integral part
  336.  
  337. The I state should converge to the exact heater output needed for the target temperature.
  338. To prevent a long deviation from the target zone, this value limits the lower value.
  339. A good start is 30 lower then the optimal value. You need to leave room for cooling.
  340. Overridden if EEPROM activated.
  341. */
  342. #define EXT1_PID_INTEGRAL_DRIVE_MIN 60
  343. /** P-gain. Overridden if EEPROM activated. */
  344. #define EXT1_PID_P 24
  345. /** I-gain. Overridden if EEPROM activated.
  346. */
  347. #define EXT1_PID_I 0.88
  348. /** Dgain. Overridden if EEPROM activated.*/
  349. #define EXT1_PID_D 200
  350. // maximum time the heater is can be switched on. Max = 255. Overridden if EEPROM activated.
  351. #define EXT1_PID_MAX 255
  352. /** \brief Faktor for the advance algorithm. 0 disables the algorithm. Overridden if EEPROM activated.
  353. K is the factor for the quadratic term, which is normally disabled in newer versions. If you want to use
  354. the quadratic factor make sure ENABLE_QUADRATIC_ADVANCE is defined.
  355. L is the linear factor and seems to be working better then the quadratic dependency.
  356. */
  357. #define EXT1_ADVANCE_K 0.0f
  358. #define EXT1_ADVANCE_L 0.0f
  359.  
  360. #define EXT1_WAIT_RETRACT_TEMP 150
  361. #define EXT1_WAIT_RETRACT_UNITS 40
  362. #define EXT1_SELECT_COMMANDS "M120 S5 P15\nM117 Extruder 2"
  363. #define EXT1_DESELECT_COMMANDS ""
  364. /** The extruder cooler is a fan to cool the extruder when it is heating. If you turn the etxruder on, the fan goes on. */
  365. #define EXT1_EXTRUDER_COOLER_PIN -1
  366. /** PWM speed for the cooler fan. 0=off 255=full speed */
  367. #define EXT1_EXTRUDER_COOLER_SPEED 255
  368.  
  369. /** If enabled you can select the distance your filament gets retracted during a
  370. M140 command, after a given temperature is reached. */
  371. #define RETRACT_DURING_HEATUP true
  372.  
  373. /** PID control only works target temperature +/- PID_CONTROL_RANGE.
  374. If you get much overshoot at the first temperature set, because the heater is going full power to long, you
  375. need to increase this value. For one 6.8 Ohm heater 10 is ok. With two 6.8 Ohm heater use 15.
  376. */
  377. #define PID_CONTROL_RANGE 15
  378.  
  379. /** Skip wait, if the extruder temperature is already within x degrees. Only fixed numbers, 0 = off */
  380. #define SKIP_M109_IF_WITHIN 2
  381.  
  382. /** \brief Set PID scaling
  383.  
  384. PID values assume a usable range from 0-255. This can be further limited to EXT0_PID_MAX by to methods.
  385. Set the value to 0: Normal computation, just clip output to EXT0_PID_MAX if computed value is too high.
  386. Set value to 1: Scale PID by EXT0_PID_MAX/256 and then clip to EXT0_PID_MAX.
  387. If your EXT0_PID_MAX is low, you should prefer the second method.
  388. */
  389. #define SCALE_PID_TO_MAX 0
  390.  
  391. /** Temperature range for target temperature to hold in M109 command. 5 means +/-5°C
  392.  
  393. Uncomment define to use force the temperature into the range for given watchperiod.
  394. */
  395. //#define TEMP_HYSTERESIS 5
  396.  
  397. /** Userdefined thermistor table
  398.  
  399. There are many different thermistors, which can be combined with different resistors. This result
  400. in unpredictable number of tables. As a resolution, the user can define one table here, that can
  401. be used as type 5 for thermister type in extruder/heated bed definition. Make sure, the number of entries
  402. matches the value in NUM_TEMPS_USERTHERMISTOR0. If you span definition over multiple lines, make sure to end
  403. each line, except the last, with a backslash. The table format is {{adc1,temp1},{adc2,temp2}...} with
  404. increasing adc values. For more informations, read
  405. http://hydraraptor.blogspot.com/2007/10/measuring-temperature-easy-way.html
  406.  
  407. If you have a sprinter temperature table, you have to multiply the first value with 4 and the second with 8.
  408. This firmware works with increased precision, so the value reads go from 0 to 4095 and the temperature is
  409. temperature*8.
  410.  
  411. If you have a PTC thermistor instead of a NTC thermistor, keep the adc values increasing and use themistor types 50-52 instead of 5-7!
  412. */
  413. /** Number of entries in the user thermistortable 0. Set to 0 to disable it. */
  414. #define NUM_TEMPS_USERTHERMISTOR0 28
  415. #define USER_THERMISTORTABLE0 {\
  416. {1*4,864*8},{21*4,300*8},{25*4,290*8},{29*4,280*8},{33*4,270*8},{39*4,260*8},{46*4,250*8},{54*4,240*8},{64*4,230*8},{75*4,220*8},\
  417. {90*4,210*8},{107*4,200*8},{128*4,190*8},{154*4,180*8},{184*4,170*8},{221*4,160*8},{265*4,150*8},{316*4,140*8},{375*4,130*8},\
  418. {441*4,120*8},{513*4,110*8},{588*4,100*8},{734*4,80*8},{856*4,60*8},{938*4,40*8},{986*4,20*8},{1008*4,0*8},{1018*4,-20*8} }
  419.  
  420. /** Number of entries in the user thermistortable 1. Set to 0 to disable it. */
  421. #define NUM_TEMPS_USERTHERMISTOR1 0
  422. #define USER_THERMISTORTABLE1 {}
  423. /** Number of entries in the user thermistortable 2. Set to 0 to disable it. */
  424. #define NUM_TEMPS_USERTHERMISTOR2 0
  425. #define USER_THERMISTORTABLE2 {}
  426.  
  427. /** If defined, creates a thermistortable at startup.
  428.  
  429. If you dont feel like computing the table on your own, you can use this generic method. It is
  430. a simple approximation which may be not as accurate as a good table computed from the reference
  431. values in the datasheet. You can increase precision if you use a temperature/resistance for
  432. R0/T0, which is near your operating temperature. This will reduce precision for lower temperatures,
  433. which are not realy important. The resistors must fit the following schematic:
  434. @code
  435. VREF ---- R2 ---+--- Termistor ---+-- GND
  436. | |
  437. +------ R1 -------+
  438. | |
  439. +---- Capacitor --+
  440. |
  441. V measured
  442. @endcode
  443.  
  444. If you don't have R1, set it to 0.
  445. The capacitor is for reducing noise from long thermistor cable. If you don't have have one, it's OK.
  446.  
  447. If you don't need the generic table, uncomment the following define.
  448. */
  449. #define USE_GENERIC_THERMISTORTABLE_1
  450.  
  451. /* Some examples for different thermistors:
  452.  
  453. EPCOS B57560G104+ : R0 = 100000 T0 = 25 Beta = 4036
  454. EPCOS 100K Thermistor (B57560G1104F) : R0 = 100000 T0 = 25 Beta = 4092
  455. ATC Semitec 104GT-2 : R0 = 100000 T0 = 25 Beta = 4267
  456. Honeywell 100K Thermistor (135-104LAG-J01) : R0 = 100000 T0 = 25 Beta = 3974
  457.  
  458. */
  459.  
  460. /** Reference resistance */
  461. #define GENERIC_THERM1_R0 100000
  462. /** Temperature at reference resistance */
  463. #define GENERIC_THERM1_T0 25
  464. /** Beta value of thermistor
  465.  
  466. You can use the beta from the datasheet or compute it yourself. See
  467. http://reprap.org/wiki/MeasuringThermistorBeta
  468. for more details.
  469. */
  470. #define GENERIC_THERM1_BETA 3950
  471. /** Start temperature for generated thermistor table */
  472. #define GENERIC_THERM1_MIN_TEMP -20
  473. /** End Temperature for generated thermistor table */
  474. #define GENERIC_THERM1_MAX_TEMP 300
  475. #define GENERIC_THERM1_R1 0
  476. #define GENERIC_THERM1_R2 4700
  477.  
  478. // The same for table 2 and 3 if needed
  479.  
  480. //#define USE_GENERIC_THERMISTORTABLE_2
  481. #define GENERIC_THERM2_R0 1042.7
  482. #define GENERIC_THERM2_T0 170
  483. #define GENERIC_THERM2_BETA 4036
  484. #define GENERIC_THERM2_MIN_TEMP -20
  485. #define GENERIC_THERM2_MAX_TEMP 300
  486. #define GENERIC_THERM2_R1 0
  487. #define GENERIC_THERM2_R2 4700
  488.  
  489. //#define USE_GENERIC_THERMISTORTABLE_3
  490. #define GENERIC_THERM3_R0 1042.7
  491. #define GENERIC_THERM3_T0 170
  492. #define GENERIC_THERM3_BETA 4036
  493. #define GENERIC_THERM3_MIN_TEMP -20
  494. #define GENERIC_THERM3_MAX_TEMP 300
  495. #define GENERIC_THERM3_R1 0
  496. #define GENERIC_THERM3_R2 4700
  497.  
  498. /** Supply voltage to ADC, can be changed be setting ANALOG_REF below to different value. */
  499. #define GENERIC_THERM_VREF 5
  500. /** Number of entries in generated table. One entry takes 4 bytes. Higher number of entries increase computation time too.
  501. Value is used for all generic tables created. */
  502. #define GENERIC_THERM_NUM_ENTRIES 33
  503.  
  504. // uncomment the following line for MAX6675 support.
  505. //#define SUPPORT_MAX6675
  506.  
  507. // ############# Heated bed configuration ########################
  508.  
  509. /** \brief Set true if you have a heated bed conected to your board, false if not */
  510. #define HAVE_HEATED_BED false
  511.  
  512. #define HEATED_BED_MAX_TEMP 115
  513. /** Skip M190 wait, if heated bed is already within x degrees. Fixed numbers only, 0 = off. */
  514. #define SKIP_M190_IF_WITHIN 3
  515.  
  516. // Select type of your heated bed. It's the same as for EXT0_TEMPSENSOR_TYPE
  517. // set to 0 if you don't have a heated bed
  518. #define HEATED_BED_SENSOR_TYPE 1
  519. /** Analog pin of analog sensor to read temperature of heated bed. */
  520. #define HEATED_BED_SENSOR_PIN TEMP_1_PIN
  521. /** \brief Pin to enable heater for bed. */
  522. #define HEATED_BED_HEATER_PIN HEATER_1_PIN
  523. // How often the temperature of the heated bed is set (msec)
  524. #define HEATED_BED_SET_INTERVAL 5000
  525.  
  526. /**
  527. Heat manager for heated bed:
  528. 0 = Bang Bang, fast update
  529. 1 = PID controlled
  530. 2 = Bang Bang, limited check every HEATED_BED_SET_INTERVAL. Use this with relais driven beds to save life
  531. */
  532. #define HEATED_BED_HEAT_MANAGER 1
  533. /** \brief The maximum value, I-gain can contribute to the output.
  534. The precise values may differ for different nozzle/resistor combination.
  535. Overridden if EEPROM activated.
  536. */
  537. #define HEATED_BED_PID_INTEGRAL_DRIVE_MAX 255
  538. /** \brief lower value for integral part
  539.  
  540. The I state should converge to the exact heater output needed for the target temperature.
  541. To prevent a long deviation from the target zone, this value limits the lower value.
  542. A good start is 30 lower then the optimal value. You need to leave room for cooling.
  543. Overridden if EEPROM activated.
  544. */
  545. #define HEATED_BED_PID_INTEGRAL_DRIVE_MIN 80
  546. /** P-gain. Overridden if EEPROM activated. */
  547. #define HEATED_BED_PID_PGAIN 196
  548. /** I-gain Overridden if EEPROM activated.*/
  549. #define HEATED_BED_PID_IGAIN 33.02
  550. /** Dgain. Overridden if EEPROM activated.*/
  551. #define HEATED_BED_PID_DGAIN 290
  552. // maximum time the heater is can be switched on. Max = 255. Overridden if EEPROM activated.
  553. #define HEATED_BED_PID_MAX 255
  554.  
  555. /** Include PID control for all heaters. */
  556. #define TEMP_PID true
  557.  
  558. //// Experimental watchdog and minimal temp
  559. // The watchdog waits for the watchperiod in milliseconds whenever an M104 or M109 increases the target temperature
  560. // 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
  561. //#define WATCHPERIOD 5000 //5 seconds
  562.  
  563. //// The minimal temperature defines the temperature below which the heater will not be enabled
  564. #define MINTEMP 5
  565.  
  566. //// Experimental max temp
  567. // When temperature exceeds max temp, your heater will be switched off.
  568. // This feature exists to protect your hotend from overheating accidentally, but *NOT* from thermistor short/failure!
  569. // You should use MINTEMP for thermistor short/failure protection.
  570. #define MAXTEMP 260
  571.  
  572. /** Extreme values to detect defect thermistors. */
  573. #define MIN_DEFECT_TEMPERATURE -10
  574. #define MAX_DEFECT_TEMPERATURE 300
  575.  
  576. /** \brief Used reference, normally ANALOG_REF_AVCC or ANALOG_REF_AREF for experts ANALOG_REF_INT_2_56 = 2.56V and ANALOG_REF_INT_1_1=1.1V inernaly generated */
  577. #define ANALOG_REF ANALOG_REF_AVCC
  578.  
  579.  
  580. // ##########################################################################################
  581. // ## Endstop configuration ##
  582. // ##########################################################################################
  583.  
  584. /* By default all endstops are pulled up to high. You need a pullup if you
  585. use a mechanical endstop connected with gnd. Set value to false for no pullup
  586. on this endstop.
  587. */
  588. #define ENDSTOP_PULLUP_X_MIN false
  589. #define ENDSTOP_PULLUP_Y_MIN false
  590. #define ENDSTOP_PULLUP_Z_MIN false
  591. #define ENDSTOP_PULLUP_X_MAX true
  592. #define ENDSTOP_PULLUP_Y_MAX true
  593. #define ENDSTOP_PULLUP_Z_MAX true
  594.  
  595. //set to true to invert the logic of the endstops
  596. #define ENDSTOP_X_MIN_INVERTING true
  597. #define ENDSTOP_Y_MIN_INVERTING true
  598. #define ENDSTOP_Z_MIN_INVERTING true
  599. #define ENDSTOP_X_MAX_INVERTING false
  600. #define ENDSTOP_Y_MAX_INVERTING false
  601. #define ENDSTOP_Z_MAX_INVERTING false
  602.  
  603. // Set the values true where you have a hardware endstop. The Pin numbe ris taken from pins.h.
  604.  
  605. #define MIN_HARDWARE_ENDSTOP_X false
  606. #define MIN_HARDWARE_ENDSTOP_Y false
  607. #define MIN_HARDWARE_ENDSTOP_Z false
  608. #define MAX_HARDWARE_ENDSTOP_X true
  609. #define MAX_HARDWARE_ENDSTOP_Y true
  610. #define MAX_HARDWARE_ENDSTOP_Z true
  611.  
  612. //If your axes are only moving in one direction, make sure the endstops are connected properly.
  613. //If your axes move in one direction ONLY when the endstops are triggered, set ENDSTOPS_INVERTING to true here
  614.  
  615.  
  616.  
  617. //// ADVANCED SETTINGS - to tweak parameters
  618.  
  619. // For Inverting Stepper Enable Pins (Active Low) use 0, Non Inverting (Active High) use 1
  620. #define X_ENABLE_ON 0
  621. #define Y_ENABLE_ON 0
  622. #define Z_ENABLE_ON 0
  623.  
  624. // Disables axis when it's not being used.
  625. #define DISABLE_X false
  626. #define DISABLE_Y false
  627. #define DISABLE_Z false
  628. #define DISABLE_E false
  629.  
  630. // Inverting axis direction
  631. #define INVERT_X_DIR false
  632. #define INVERT_Y_DIR false
  633. #define INVERT_Z_DIR false
  634.  
  635. //// ENDSTOP SETTINGS:
  636. // Sets direction of endstops when homing; 1=MAX, -1=MIN
  637. #define X_HOME_DIR 1
  638. #define Y_HOME_DIR 1
  639. #define Z_HOME_DIR 1
  640.  
  641. // Delta robot radius endstop
  642. #define max_software_endstop_r true
  643.  
  644. //If true, axis won't move to coordinates less than zero.
  645. #define min_software_endstop_x false
  646. #define min_software_endstop_y false
  647. #define min_software_endstop_z false
  648.  
  649. //If true, axis won't move to coordinates greater than the defined lengths below.
  650. #define max_software_endstop_x true
  651. #define max_software_endstop_y true
  652. #define max_software_endstop_z true
  653.  
  654. // If during homing the endstop is reached, ho many mm should the printer move back for the second try
  655. #define ENDSTOP_X_BACK_MOVE 5
  656. #define ENDSTOP_Y_BACK_MOVE 5
  657. #define ENDSTOP_Z_BACK_MOVE 2
  658.  
  659. // For higher precision you can reduce the speed for the second test on the endstop
  660. // during homing operation. The homing speed is divided by the value. 1 = same speed, 2 = half speed
  661. #define ENDSTOP_X_RETEST_REDUCTION_FACTOR 2
  662. #define ENDSTOP_Y_RETEST_REDUCTION_FACTOR 2
  663. #define ENDSTOP_Z_RETEST_REDUCTION_FACTOR 2
  664.  
  665. // When you have several endstops in one circuit you need to disable it after homing by moving a
  666. // small amount back. This is also the case with H-belt systems.
  667. #define ENDSTOP_X_BACK_ON_HOME 1
  668. #define ENDSTOP_Y_BACK_ON_HOME 14
  669. #define ENDSTOP_Z_BACK_ON_HOME 0
  670.  
  671. // You can disable endstop checking for print moves. This is needed, if you get sometimes
  672. // false signals from your endstops. If your endstops don't give false signals, you
  673. // can set it on for safety.
  674. #define ALWAYS_CHECK_ENDSTOPS false
  675.  
  676. // maximum positions in mm - only fixed numbers!
  677. // For delta robot Z_MAX_LENGTH is maximum travel of the towers and should be set to the distance between the hotend
  678. // and the platform when the printer is at its home position.
  679. // If EEPROM is enabled these values will be overidden with the values in the EEPROM
  680. #define X_MAX_LENGTH 175
  681. #define Y_MAX_LENGTH 175
  682. #define Z_MAX_LENGTH 156
  683.  
  684. // Coordinates for the minimum axis. Can also be negative if you want to have the bed start at 0 and the printer can go to the left side
  685. // of the bed. Maximum coordinate is given by adding the above X_MAX_LENGTH values.
  686. #define X_MIN_POS 0
  687. #define Y_MIN_POS 0
  688. #define Z_MIN_POS 0
  689.  
  690. // ##########################################################################################
  691. // ## Movement settings ##
  692. // ##########################################################################################
  693.  
  694. // Microstep setting (Only functional when stepper driver microstep pins are connected to MCU. Currently only works for RAMBO boards
  695. #define MICROSTEP_MODES {8,8,8,8,8} // [1,2,4,8,16]
  696.  
  697. // Motor Current setting (Only functional when motor driver current ref pins are connected to a digital trimpot on supported boards)
  698. //#define MOTOR_CURRENT {135,135,135,135,135} // Values 0-255 (RAMBO 135 = ~0.75A, 185 = ~1A)
  699. //#define MOTOR_CURRENT {35713,35713,35713,35713,35713} // Values 0-65535 (3D Master 35713 = ~1A)
  700.  
  701. // Delta settings
  702. #if DRIVE_SYSTEM==3
  703. /** \brief Delta rod length
  704. */
  705. #define DELTA_DIAGONAL_ROD 185 //184. // mm (186 Actual)
  706.  
  707. /** \brief Number of segments to generate for delta conversions per second of move
  708. */
  709. #define DELTA_SEGMENTS_PER_SECOND_PRINT 200 // Move accurate setting for print moves
  710. #define DELTA_SEGMENTS_PER_SECOND_MOVE 70 // Less accurate setting for other moves
  711.  
  712. /** \brief Horizontal offset of the universal joints on the end effector (moving platform).
  713. */
  714. #define END_EFFECTOR_HORIZONTAL_OFFSET 32.6
  715.  
  716. /** \brief Horizontal offset of the universal joints on the vertical carriages.
  717. */
  718. #define CARRIAGE_HORIZONTAL_OFFSET 21.05//21.48//22 (+ = Cup || - = Bow)
  719.  
  720. /** \brief Printer radius in mm, measured from the center of the print area to the vertical smooth rod.
  721. */
  722. #define PRINTER_RADIUS 139.5 //
  723. /** \brief Horizontal distance bridged by the diagonal push rod when the end effector is in the center. It is pretty close to 50% of the push rod length (250 mm).
  724. */
  725. #define DELTA_RADIUS (PRINTER_RADIUS-END_EFFECTOR_HORIZONTAL_OFFSET-CARRIAGE_HORIZONTAL_OFFSET)
  726.  
  727. /** \brief Enable counter to count steps for Z max calculations
  728. */
  729. #define STEP_COUNTER
  730.  
  731. /** \brief Experimental calibration utility for delta printers
  732. */
  733. #define SOFTWARE_LEVELING
  734.  
  735. #endif
  736.  
  737. /** After x seconds of inactivity, the stepper motors are disabled.
  738. Set to 0 to leave them enabled.
  739. This helps cooling the Stepper motors between two print jobs.
  740. Overridden if EEPROM activated.
  741. */
  742. #define STEPPER_INACTIVE_TIME 120L
  743. /** After x seconds of inactivity, the system will go down as far it can.
  744. It will at least disable all stepper motors and heaters. If the board has
  745. a power pin, it will be disabled, too.
  746. Set value to 0 for disabled.
  747. Overridden if EEPROM activated.
  748. */
  749. #define MAX_INACTIVE_TIME 0L
  750. /** Maximum feedrate, the system allows. Higher feedrates are reduced to these values.
  751. The axis order in all axis related arrays is X, Y, Z
  752. Overridden if EEPROM activated.
  753. */
  754. #define MAX_FEEDRATE_X 200
  755. #define MAX_FEEDRATE_Y 200
  756. #define MAX_FEEDRATE_Z 200
  757.  
  758. /** Speed in mm/min for finding the home position. Overridden if EEPROM activated. */
  759. #define HOMING_FEEDRATE_X 80
  760. #define HOMING_FEEDRATE_Y 80
  761. #define HOMING_FEEDRATE_Z 80
  762.  
  763. /* If you have a backlash in both z-directions, you can use this. For most printer, the bed will be pushed down by it's
  764. own weight, so this is nearly never needed. */
  765. #define ENABLE_BACKLASH_COMPENSATION true
  766. #define Z_BACKLASH 0
  767. #define X_BACKLASH 0
  768. #define Y_BACKLASH 0
  769.  
  770. /** Comment this to disable ramp acceleration */
  771. #define RAMP_ACCELERATION 1
  772.  
  773. /** If your stepper needs a longer high signal then given, you can add a delay here.
  774. The delay is realized as a simple loop wasting time, which is not available for other
  775. computations. So make it as low as possible. For the most common drivers no delay is needed, as the
  776. included delay is already enough.
  777. */
  778. #define STEPPER_HIGH_DELAY 0
  779.  
  780. /** The firmware can only handle 16000Hz interrupt frequency cleanly. If you need higher speeds
  781. a faster solution is needed, and this is to double/quadruple the steps in one interrupt call.
  782. This is like reducing your 1/16th microstepping to 1/8 or 1/4. It is much cheaper then 1 or 3
  783. additional stepper interrupts with all it's overhead. As a result you can go as high as
  784. 40000Hz.
  785. */
  786. #define STEP_DOUBLER_FREQUENCY 12000
  787. /** If you need frequencies off more then 30000 you definitely need to enable this. If you have only 1/8 stepping
  788. enabling this may cause to stall your moves when 20000Hz is reached.
  789. */
  790. #define ALLOW_QUADSTEPPING true
  791. /** If you reach STEP_DOUBLER_FREQUENCY the firmware will do 2 or 4 steps with nearly no delay. That can be too fast
  792. for some printers causing an early stall.
  793.  
  794. */
  795. #define DOUBLE_STEP_DELAY 1 // time in us
  796.  
  797. /** The firmware supports trajectory smoothing. To acieve this, it divides the stepsize by 2, resulting in
  798. the double computation cost. For slow movements this is not an issue, but for really fast moves this is
  799. too much. The value specified here is the number of clock cycles between a step on the driving axis.
  800. If the interval at full speed is below this value, smoothing is disabled for that line.*/
  801. #define MAX_HALFSTEP_INTERVAL 1999
  802.  
  803. //// Acceleration settings
  804.  
  805. /** \brief X, Y, Z max acceleration in mm/s^2 for printing moves or retracts. Make sure your printer can go that high!
  806. Overridden if EEPROM activated.
  807. */
  808. #define MAX_ACCELERATION_UNITS_PER_SQ_SECOND_X 1500
  809. #define MAX_ACCELERATION_UNITS_PER_SQ_SECOND_Y 1500
  810. #define MAX_ACCELERATION_UNITS_PER_SQ_SECOND_Z 1500
  811.  
  812. /** \brief X, Y, Z max acceleration in mm/s^2 for travel moves. Overridden if EEPROM activated.*/
  813. #define MAX_TRAVEL_ACCELERATION_UNITS_PER_SQ_SECOND_X 3000
  814. #define MAX_TRAVEL_ACCELERATION_UNITS_PER_SQ_SECOND_Y 3000
  815. #define MAX_TRAVEL_ACCELERATION_UNITS_PER_SQ_SECOND_Z 3000
  816.  
  817. /** \brief Maximum allowable jerk.
  818.  
  819. Caution: This is no real jerk in a physical meaning.
  820.  
  821. The jerk determines your start speed and the maximum speed at the join of two segments.
  822. It's unit is mm/s. If the printer is standing still, the start speed is jerk/2. At the
  823. join of two segments, the speed difference is limited to the jerk value.
  824.  
  825. Examples:
  826. For all examples jerk is assumed as 40.
  827.  
  828. Segment 1: vx = 50, vy = 0
  829. Segment 2: vx = 0, vy = 50
  830. v_diff = sqrt((50-0)^2+(0-50)^2) = 70.71
  831. v_diff > jerk => vx_1 = vy_2 = jerk/v_diff*vx_1 = 40/70.71*50 = 28.3 mm/s at the join
  832.  
  833. Segment 1: vx = 50, vy = 0
  834. Segment 2: vx = 35.36, vy = 35.36
  835. v_diff = sqrt((50-35.36)^2+(0-35.36)^2) = 38.27 < jerk
  836. Corner can be printed with full speed of 50 mm/s
  837.  
  838. Overridden if EEPROM activated.
  839. */
  840. #define MAX_JERK 20.0
  841. #define MAX_ZJERK 20.0
  842.  
  843. /** \brief Number of moves we can cache in advance.
  844.  
  845. This number of moves can be cached in advance. If you wan't to cache more, increase this. Especially on
  846. many very short moves the cache may go empty. The minimum value is 5.
  847. */
  848. #define MOVE_CACHE_SIZE 16
  849.  
  850. /** \brief Low filled cache size.
  851.  
  852. If the cache contains less then MOVE_CACHE_LOW segments, the time per segment is limited to LOW_TICKS_PER_MOVE clock cycles.
  853. If a move would be shorter, the feedrate will be reduced. This should prevent buffer underflows. Set this to 0 if you
  854. don't care about empty buffers during print.
  855. */
  856. #define MOVE_CACHE_LOW 10
  857. /** \brief Cycles per move, if move cache is low.
  858.  
  859. This value must be high enough, that the buffer has time to fill up. The problem only occurs at the beginning of a print or
  860. if you are printing many very short segments at high speed. Higher delays here allow higher values in PATH_PLANNER_CHECK_SEGMENTS.
  861. */
  862. #define LOW_TICKS_PER_MOVE 250000
  863.  
  864. // ##########################################################################################
  865. // ## Extruder control ##
  866. // ##########################################################################################
  867.  
  868. /** \brief Prescale factor, timer0 runs at.
  869.  
  870. All known arduino boards use 64. This value is needed for the extruder timing. */
  871. #define TIMER0_PRESCALE 64
  872.  
  873. /* \brief Minimum temperature for extruder operation
  874.  
  875. This is a saftey value. If your extruder temperature is below this temperature, no
  876. extruder steps are executed. This is to prevent your extruder to move unless the fiament
  877. is at least molten. After havong some complains that the extruder does not work, I leave
  878. it 0 as default.
  879. */
  880.  
  881. #define MIN_EXTRUDER_TEMP 0
  882. /** \brief Activate ooze prevention system
  883.  
  884. The ooze prevention system tries to prevent ooze, by a fast retract of the filament every time
  885. printing stops. Most slicing software have already an option to do this. Using OPS_MODE=1 will
  886. in fact mimic this. This works good, but can increase printing time. To reduce the additional
  887. waiting time, the OPS has a fast mode, which performs the retraction during the travelling move.
  888. The only reason, your slicer doesn't do it, is because it can't tell. There is simple no
  889. G-Code command telling the firmware to do that.
  890.  
  891. You can always compile including OPS. Then you can disable/enable it anytime you want. To disable it
  892. set USE_OPS 0
  893.  
  894. Caution: Don't enable anti-ooze in your slicer if you are using this.
  895. */
  896. #define USE_OPS 1
  897.  
  898. /** \brief Sets the ops operation mode
  899.  
  900. 0: Off
  901. 1: Classic mode. Stop head, retract move to target, push filament back.
  902. 2: Fast mode. Retract during move, start pushing back the filament during move. For safty, we start
  903. at with a low speed and wait for the push back, before the pintmove starts. Normally there is some
  904. time needed to wait for the filament.
  905.  
  906. Overridden if EEPROM activated.
  907. */
  908. #define OPS_MODE 0
  909.  
  910. /** \brief Minimum distance for retraction.
  911.  
  912. If a travel move is shorter than this distance, no retraction will occur. This is to prevent
  913. retraction with infill, where the angle to the perimeter needs a short stop. Unit is mm.
  914. Overridden if EEPROM activated.
  915. */
  916. #define OPS_MIN_DISTANCE 0.8
  917.  
  918. /** \brief Move printhead only after x% of retract distance have been retracted.
  919.  
  920. Overridden if EEPROM activated.*/
  921. #define OPS_MOVE_AFTER 50.0
  922. /** \brief Retraction distance in mm. If you want to enable OPS only sometimes, compile with
  923. OPS support and set retraction distance to 0. If you set it to e.g. 3 in your eeprom settings it is enabled.
  924. Overridden if EEPROM activated.*/
  925. #define OPS_RETRACT_DISTANCE 1.5
  926.  
  927. /** \brief Backslash produced by extruder reversal
  928.  
  929. If you are using a bowden extruder, you may need some extra distance to push the filament back into the
  930. original place. This is the value you enter here. Unit is mm.
  931. Overridden if EEPROM activated.
  932. */
  933. #define OPS_RETRACT_BACKLASH 0.0
  934.  
  935. /** \brief Enable advance algorithm.
  936.  
  937. Without a correct adjusted advance algorithm, you get blobs at points, where acceleration changes. The
  938. effect increases with speed and acceleration difference. Using the advance method decreases this effect.
  939. For more informations, read the wiki.
  940. */
  941. #define USE_ADVANCE
  942.  
  943. /** \brief enables quadratic component.
  944.  
  945. Uncomment to allow a quadratic advance dependency. Linear is the dominant value, so no real need
  946. to activate the quadratic term. Only adds lots of computations and storage usage. */
  947. //#define ENABLE_QUADRATIC_ADVANCE
  948.  
  949.  
  950. // ##########################################################################################
  951. // ## Communication configuration ##
  952. // ##########################################################################################
  953.  
  954. //// AD595 THERMOCOUPLE SUPPORT UNTESTED... USE WITH CAUTION!!!!
  955.  
  956. /** \brief Communication speed.
  957.  
  958. - 250000 : Fastes with errorrate of 0% with 16 or 32 MHz - update wiring_serial.c in your board files. See boards/readme.txt
  959. - 115200 : Fast, but may produce communication errors on quite regular basis, Error rate -3,5%
  960. - 76800 : Best setting for Arduino with 16 MHz, Error rate 0,2% page 198 AVR1284 Manual. Result: Faster communication then 115200
  961. - 57600 : Should produce nearly no errors, on my gen 6 it's faster than 115200 because there are no errors slowing down the connection
  962. - 38600
  963.  
  964. Overridden if EEPROM activated.
  965. */
  966. //#define BAUDRATE 76800
  967. #define BAUDRATE 115200
  968. //#define BAUDRATE 250000
  969.  
  970. /**
  971. Some boards like Gen7 have a power on pin, to enable the atx power supply. If this is defined,
  972. the power will be turned on without the need to call M80 if initially started.
  973. */
  974. #define ENABLE_POWER_ON_STARTUP
  975.  
  976. /**
  977. If you use an ATX power supply you need the power pin to work non inverting. For some speacial
  978. boards you might need to make it inverting.
  979. */
  980. #define POWER_INVERTING false
  981. /** What shall the printer do, when it receives an M112 emergency stop signal?
  982. 0 = Disable heaters/motors, wait for ever until someone presses reset.
  983. 1 = restart by resetting the AVR controller. The USB connection will not reset if managed by a different chip!
  984. */
  985. #define KILL_METHOD 1
  986.  
  987. /** \brief Cache size for incoming commands.
  988.  
  989. There should be no reason to increase this cache. Commands are nearly immediately send to
  990. execution.
  991. */
  992. #define GCODE_BUFFER_SIZE 2
  993. /** Appends the linenumber after ever ok send, to acknowledge the received command. Uncomment for plain ok ACK if your host has problems with this */
  994. #define ACK_WITH_LINENUMBER
  995. /** Communication errors can swollow part of the ok, which tells the host software to send
  996. the next command. Not receiving it will cause your printer to stop. Sending this string every
  997. second, if our queue is empty should prevent this. Uncomment if you don't wan't this feature. */
  998. #define WAITING_IDENTIFIER "wait"
  999.  
  1000. /** \brief Sets time for echo debug
  1001.  
  1002. You can set M111 1 which enables ECHO of commands send. This define specifies the position,
  1003. when it will be executed. In the original FiveD software, echo is done after receiving the
  1004. command. With checksum you know, how it looks from the sending string. With this define
  1005. uncommented, you will see the last command executed. To be more specific: It is written after
  1006. execution. This helps tracking errors, because there may be 8 or more commands in the queue
  1007. and it is elsewise difficult to know, what your reprap is currently doing.
  1008. */
  1009. #define ECHO_ON_EXECUTE
  1010.  
  1011. /** \brief EEPROM storage mode
  1012.  
  1013. Set the EEPROM_MODE to 0 if you always wan't to use the settings in this configuration file. If not,
  1014. set it to a value not stored in the first EEPROM-byte used. If you later want to overwrite your current
  1015. eeprom settings with configuration defaults, just select an other value. On the first call to epr_init()
  1016. it will detect a mismatch of the first byte and copys default values into EEPROM. If the first byte
  1017. matches, the stored values are used to overwrite the settings.
  1018.  
  1019. IMPORTANT: With mode <>0 some changes in configuration.h are not set any more, as they are
  1020. taken from the EEPROM.
  1021. */
  1022. #define EEPROM_MODE 0
  1023. /** Set to false to disable SD support: */
  1024. #ifndef SDSUPPORT // Some boards have sd support on board. These define the values already in pins.h
  1025. #define SDSUPPORT false
  1026. /** If set to false all files with longer names then 8.3 or having a tilde in the name will be hidden */
  1027. #define SD_ALLOW_LONG_NAMES false
  1028. // Uncomment to enable or changed card detection pin. With card detection the card is mounted on insertion.
  1029. #define SDCARDDETECT -1
  1030. // Change to true if you get a inserted message on removal.
  1031. #define SDCARDDETECTINVERTED false
  1032. #endif
  1033. /** Show extended directory including file length. Don't use this with pronterface! */
  1034. #define SD_EXTENDED_DIR
  1035. // If you want support for G2/G3 arc commands set to true, otherwise false.
  1036. #define ARC_SUPPORT true
  1037.  
  1038. /** You can store the current position with M401 and go back to it with M402.
  1039. This works only if feature is set to true. */
  1040. #define FEATURE_MEMORY_POSITION true
  1041.  
  1042. /** If a checksum is send, all future comamnds must also contain a checksum. Increases reliability especially for binary protocol. */
  1043. #define FEATURE_CHECKSUM_FORCED false
  1044.  
  1045. /** Should support for fan control be compiled in. If you enable this make sure
  1046. the FAN pin is not the same as for your second extruder. RAMPS e.g. has FAN_PIN in 9 which
  1047. is also used for the heater if you have 2 extruders connected. */
  1048. #define FEATURE_FAN_CONTROL true
  1049.  
  1050. /** For displays and keys there are too many permutations to handle them all in once.
  1051. For the most common available combinations you can set the controller type here, so
  1052. you don't need to configure uicong.h at all. Controller settings > 1 disable usage
  1053. of uiconfig.h
  1054.  
  1055. 0 = no display
  1056. 1 = Manual definition of display and keys parameter in uiconfig.h
  1057.  
  1058. The following settings override uiconfig.h!
  1059. 2 = Smartcontroller from reprapdiscount on a RAMPS or RUMBA board
  1060. 3 = Adafruit RGB controller
  1061. 4 = Foltyn 3DMaster with display attached
  1062. 5 = ViKi LCD - Check pin configuration in ui.h for feature controller 5!!! sd card disabled by default!
  1063. */
  1064. #define FEATURE_CONTROLLER 0
  1065.  
  1066. /**
  1067. Select the language to use.
  1068. 0 = english
  1069. 1 = german
  1070. 2 = dutch
  1071. 3 = brazilian portuguese
  1072. 4 = italian
  1073. */
  1074. #define UI_LANGUAGE 1
  1075.  
  1076. // This is line 2 of the status display at startup. Change to your like.
  1077. #define UI_VERSION_STRING2 "Ordbot"
  1078.  
  1079. /** How many ms should a single page be shown, until it is switched to the next one.*/
  1080. #define UI_PAGES_DURATION 4000
  1081.  
  1082. /** Uncomment if you don't want automatic page switching. You can still switch the
  1083. info pages with next/previous button/click-encoder */
  1084. #define UI_DISABLE_AUTO_PAGESWITCH true
  1085.  
  1086. /** Time to return to info menu if x millisconds no key was pressed. Set to 0 to disable it. */
  1087. #define UI_AUTORETURN_TO_MENU_AFTER 30000
  1088.  
  1089. #define FEATURE_UI_KEYS 0
  1090.  
  1091. /* Normally cou want a next/previous actions with every click of your encoder.
  1092. Unfotunately, the encoder have a different count of phase changes between clicks.
  1093. Select an encoder speed from 0 = fastest to 2 = slowest that results in one menu move per click.
  1094. */
  1095. #define UI_ENCODER_SPEED 1
  1096. /** \brief bounce time of keys in milliseconds */
  1097. #define UI_KEY_BOUNCETIME 10
  1098.  
  1099. /** \brief First time in ms until repeat of action. */
  1100. #define UI_KEY_FIRST_REPEAT 500
  1101. /** \brief Reduction of repeat time until next execution. */
  1102. #define UI_KEY_REDUCE_REPEAT 50
  1103. /** \brief Lowest repeat time. */
  1104. #define UI_KEY_MIN_REPEAT 50
  1105.  
  1106. #define FEATURE_BEEPER true
  1107. /**
  1108. Beeper sound definitions for short beeps during key actions
  1109. and longer beeps for important actions.
  1110. Parameter is is delay in microseconds and the secons is the number of repetitions.
  1111. Values must be in range 1..255
  1112. */
  1113. #define BEEPER_SHORT_SEQUENCE 2,2
  1114. #define BEEPER_LONG_SEQUENCE 8,8
  1115.  
  1116. // ###############################################################################
  1117. // ## Values for menu settings ##
  1118. // ###############################################################################
  1119.  
  1120. // Values used for preheat
  1121. #define UI_SET_PRESET_HEATED_BED_TEMP_PLA 60
  1122. #define UI_SET_PRESET_EXTRUDER_TEMP_PLA 180
  1123. #define UI_SET_PRESET_HEATED_BED_TEMP_ABS 110
  1124. #define UI_SET_PRESET_EXTRUDER_TEMP_ABS 240
  1125. // Extreme values
  1126. #define UI_SET_MIN_HEATED_BED_TEMP 55
  1127. #define UI_SET_MAX_HEATED_BED_TEMP 120
  1128. #define UI_SET_MIN_EXTRUDER_TEMP 160
  1129. #define UI_SET_MAX_EXTRUDER_TEMP 270
  1130. #define UI_SET_EXTRUDER_FEEDRATE 2 // mm/sec
  1131. #define UI_SET_EXTRUDER_RETRACT_DISTANCE 3 // mm
  1132.  
  1133. #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement