Advertisement
Guest User

Untitled

a guest
Apr 21st, 2019
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 38.92 KB | None | 0 0
  1. /**
  2. * ************** How to use this firmware - READ THIS, yes actually read this. *********************************
  3. *
  4. * Uncomment means removing the 2 // in front of #define.
  5. *
  6. * FLASHING NOTES:
  7. * ALL slicers (Simplify3D, Cura, Slic3r, etc) or anything else that connects to the COM port must be CLOSED for the firmware to be flash.
  8. * If anything is connected to the COM port when flashing it will fail, typically "access denied" is listed in the error section of the Arduino IDE.
  9. * You MUST use the Included Arduino IDE to flash the firmware if on Windows and if you are on a Mac or Linux follow the guide in our knowledgebase to setup your IDE to work with the firmware.
  10. *
  11. * EZABL SETUP NOTES:
  12. * If you have EZABL uncomment the mount you are using with the printer.
  13. * If you have a custom/unsupported mount uncomment #define CUSTOM_MOUNT and enter your offsets
  14. * below in the CUSTOM MOUNT section. Refer to the EZABL guide to get your offsets.
  15. *
  16. * STEP 1:
  17. * Select the correct board from the tools menu for the printer you are flashing.
  18. * Read the printer title for the model you are flashing, it will show what board to select.
  19. *
  20. * STEP 2:
  21. * Uncomment the printer you want to flash. The printers are sorted A-Z by brand name.
  22. * If you are using the CR-10S DUAL board with the Ender 3 then read the specific section below on how to do this.
  23. *
  24. * STEP 3:
  25. * Select the COM port your printer is on from the Tools menu. If you do not see the COM port try
  26. * downloading the latest drivers from the manufacturer or TH3D site on our knowledgebase.
  27. *
  28. * STEP 4:
  29. * Verify you have the correct board selected, printer model uncommented, and if you are using EZOUT and/or EZABL
  30. * the lines you need to use them are also uncommented.
  31. *
  32. * STEP 5:
  33. * Once you have your settings verified click the arrow in the upper left to upload to the board.
  34. *
  35. * STEP 6:
  36. * Reset your eeprom. You can send M502 then M500 to reset the EEPROM OR on the printer LCD go to
  37. * Control > Reset EEPROM to clear out the EEPROM to defaults.
  38. *
  39. * BOOTLOADER FLASHING NOTES:
  40. * For flashing your bootloader with an Uno make sure to select Arduino as ISP for the programmer
  41. *
  42. * There are other features in the TH3D Extras section so look there for V6 Hotend,
  43. * Bootscreen settings, Titan Extruder and more. You only need to edit this file.
  44. *
  45. * ERROR NOTES:
  46. * If you get errors flashing READ the message it gives you and double check that you selected
  47. * the correct board from the Tools menu in Arduino. Turn off any AV systems and reboot the computer.
  48. *
  49. * COMMUNITY REQUESTED FEATURES NOTE:
  50. * All features in the community requested features section are provided as-is with no support from TH3D.
  51. */
  52.  
  53. #ifndef CONFIGURATION_H
  54. #define CONFIGURATION_H
  55. #define CONFIGURATION_H_VERSION 010109
  56.  
  57. //===========================================================================
  58. //============================ TH3D Configuration ===========================
  59. //===========================================================================
  60.  
  61. // ONLY UNCOMMENT THINGS IN ONE PRINTER SECTION!!! IF YOU HAVE MULTIPLE MACHINES FLASH THEM ONE AT A TIME.
  62.  
  63. //===========================================================================
  64. // ************************* TH3D PRINTERS *************************
  65. //===========================================================================
  66.  
  67. //===========================================================================
  68. // TH3D Alpha EZ300 Options - Select Arduino Mega 2560 from Tools > Board
  69. //===========================================================================
  70. //#define TH3D_EZ300
  71.  
  72. // EZABL Probe Mounts
  73. //#define EZ300_OEM_MOUNT
  74.  
  75. // The Alpha X Carriage is 100% compatible with the Creality printer mounts.
  76. //#define CR10_OEM
  77. //#define CR10_VOLCANO
  78. //#define CR10_V6HEAVYDUTY
  79. //#define CR10_FANG
  80. //#define TM3DAERO
  81. //#define TM3DAERO_EXTENDED
  82. //#define PETSFANG //This is the RIGHT mounted version - if using the left mount please use the CUSTOM_PROBE option.
  83. //#define CUSTOM_PROBE
  84.  
  85. //===========================================================================
  86. // ************************* ADIMLab PRINTERS *************************
  87. //===========================================================================
  88.  
  89. //===========================================================================
  90. // ADIMLab Gantry i3 Plus Options - Select Arduino Mega 2560 from Tools > Board
  91. //===========================================================================
  92. //#define ADIM_GANTRY_I3_PLUS
  93.  
  94. // EZABL Probe Mounts
  95. //#define ADIM_I3P_OEM
  96. //#define CUSTOM_PROBE
  97.  
  98. //===========================================================================
  99. // ************************* AIBECY PRINTERS *************************
  100. //===========================================================================
  101.  
  102. //===========================================================================
  103. // Aibecy DY-H9 Options - Select Arduino Mega 2560 from Tools > Board
  104. //===========================================================================
  105. //#define DY_H9
  106.  
  107. // EZABL Probe Mounts
  108. //#define CUSTOM_PROBE
  109.  
  110. //===========================================================================
  111. // ************************* ALFAWISE PRINTERS *************************
  112. //===========================================================================
  113.  
  114. //===========================================================================
  115. // Alfawise U10 Options - Select 'Arduino Mega 2560' from Tools > Board
  116. //===========================================================================
  117. //#define ALFAWISE_U10
  118.  
  119. // EZABL Probe Mounts
  120. //#define ALFAWISEU10_OEM
  121. //#define ALFAWISEU10_PETSFANG
  122. //#define CUSTOM_PROBE
  123.  
  124. //===========================================================================
  125. // ************************* ANET PRINTERS *************************
  126. //===========================================================================
  127.  
  128. //===========================================================================
  129. // ANET Printers Options - Select 'ANET V1.0' from Tools > Board
  130. //===========================================================================
  131. // Uncomment the ANET Model you are using
  132. //#define ANET_A2 //** please see option below to choose bed size for the A2 only!!
  133. //#define ANET_A6
  134. //#define ANET_A8
  135. //#define ANET_E10
  136. //#define ANET_E12
  137.  
  138. // Choose bed size for A2 only
  139. // IGNORE THESE OPTIONS FOR MACHINES OTHER THAN THE A2
  140. //#define A2_SMALL_BED //(220x220)
  141. //#define A2_LARGE_BED //(220x270)
  142.  
  143. // Choose which type of LCD you have (Select One option)
  144. //#define ANET_LCD12864 //This is the larger LCD with the rotary controller found on most ANET machines
  145. //#define ANET_LCD2004 //This is the LCD with the 5 button keypad usually found on A8 and some A2 machines
  146.  
  147. // EZABL Probe Mounts - Bootscreen will be disabled when enabling EZABL on the Anet Boards due to space issues
  148. //#define ANET_OEM
  149. //#define CUSTOM_PROBE
  150.  
  151. //===========================================================================
  152. // ************************* CREALITY PRINTERS *************************
  153. //===========================================================================
  154.  
  155. //===========================================================================
  156. // Creality CR-10 Options - Select 'Sanguino 1284P' from Tools > Board
  157. //===========================================================================
  158. //#define CR10
  159. //#define CR10_MINI
  160. //#define CR10_S4
  161. //#define CR10_S5
  162.  
  163. // If you are using our EZOut V1/V2 (connects to LCD header) filament sensor kit please follow the install guide
  164. // and then uncomment the #define EZOUT_ENABLE line below.
  165. // Do NOT ever connect our filament sensor without the supplied adapter board.
  166. //#define EZOUT_ENABLE
  167.  
  168. // EZABL Probe Mounts
  169. //#define CR10_OEM
  170. //#define CR10_VOLCANO
  171. //#define CR10_V6HEAVYDUTY
  172. //#define CR10_FANG
  173. //#define TM3DAERO
  174. //#define TM3DAERO_EXTENDED
  175. //#define PETSFANG //This is the RIGHT mounted version - if using the left mount please use the CUSTOM_PROBE option.
  176. //#define CUSTOM_PROBE
  177.  
  178. //===========================================================================
  179. // Creality CR-10S Options - Select 'Arduino Mega 2560' from Tools > Board
  180. //===========================================================================
  181. //#define CR10S
  182. //#define CR10S_MINI
  183. //#define CR10S_S4
  184. //#define CR10S_S5
  185.  
  186. // This disables the stock CR-10S Filament Sensor
  187. // DO NOT ENABLE THIS IF YOU ARE USING THE EZOUT.
  188. //#define CR10S_NOFILAMENTSENSOR
  189.  
  190. // Use this to use the CR-10 LCD with the CR-10S Board. Rotate the LCD plug 180
  191. // and plug into EXP1. You will have to force it in but it will fit and work.
  192. //#define CR10LCD_CR10S
  193.  
  194. // If you are using our EZOut V1 (connects to LCD header) filament sensor kit please follow the install guide
  195. // and then uncomment the #define EZOUT_ENABLE line below. Do NOT ever connect our filament sensor without the supplied adapter board.
  196. //#define EZOUT_ENABLE
  197.  
  198. // If you are using our EZOut V2 (connects to X+ connector) filament sensor kit please follow the install guide
  199. // and then uncomment the #define EZOUTV2_ENABLE line below. Do NOT ever connect our filament sensor without the supplied adapter board.
  200. //#define EZOUTV2_ENABLE
  201.  
  202. // EZABL Probe Mounts
  203. //#define CR10_OEM
  204. //#define CR10_VOLCANO
  205. //#define CR10_V6HEAVYDUTY
  206. //#define TM3DAERO
  207. //#define TM3DAERO_EXTENDED
  208. //#define PETSFANG //This is the RIGHT mounted version - if using the left mount please use the CUSTOM_PROBE option.
  209. //#define CUSTOM_PROBE
  210.  
  211. // Touch LCD Setting - Enable this if you have the touch LCD are are getting a "paused for user" message in the terminal window.
  212. //#define TOUCH_LCD_FIX
  213.  
  214. // Dual Extruder Board Options - The below options are for use with the TH3D CR-10S Board with dual extruder support.
  215.  
  216. // If you are using a single hotend with the 2 into 1 adapter OR mixing nozzle uncomment the below line
  217. //#define DUAL_EXTRUDER_SINGLE_HOTEND
  218.  
  219. // If you are using a dual hotend with dual nozzles uncomment the below line
  220. //#define DUAL_HOTEND_DUAL_NOZZLES
  221.  
  222. // If you are using a 2nd EZOut V2 (connects to Y+ connector) filament sensor kit please follow the install guide
  223. // and then uncomment the #define EZOUTV2_DUAL_ENABLE line below. Do NOT ever connect our filament sensor without the supplied adapter board.
  224. //#define EZOUTV2_DUAL_ENABLE
  225.  
  226. //===========================================================================
  227. // Creality CR-20 Options - Select 'Arduino Mega 2560' from Tools > Board
  228. //===========================================================================
  229. //#define CR20
  230.  
  231. // If you are using our EZOut V2 (connects to X+ connector) filament sensor kit please follow the install guide
  232. // and then uncomment the #define EZOUTV2_ENABLE line below. Do NOT ever connect our filament sensor without the supplied adapter board.
  233. //#define EZOUTV2_ENABLE
  234.  
  235. // EZABL Probe Mounts (CR-20 uses the same mounts as CR-10)
  236. //#define CR10_OEM
  237. //#define CR10_VOLCANO
  238. //#define CR10_V6HEAVYDUTY
  239. //#define TM3DAERO
  240. //#define TM3DAERO_EXTENDED
  241. //#define PETSFANG //This is the RIGHT mounted version - if using the left mount please use the CUSTOM_PROBE option.
  242. //#define CUSTOM_PROBE
  243.  
  244. // Dual Extruder Board Options - The below options are for use with the TH3D CR-10S Board with dual extruder support.
  245.  
  246. // If you are using a single hotend with the 2 into 1 adapter OR mixing nozzle uncomment the below line
  247. //#define DUAL_EXTRUDER_SINGLE_HOTEND
  248.  
  249. // If you are using a dual hotend with dual nozzles uncomment the below line
  250. //#define DUAL_HOTEND_DUAL_NOZZLES
  251.  
  252. // If you are using a 2nd EZOut V2 (connects to Y+ connector) filament sensor kit please follow the install guide
  253. // and then uncomment the #define EZOUTV2_DUAL_ENABLE line below. Do NOT ever connect our filament sensor without the supplied adapter board.
  254. //#define EZOUTV2_DUAL_ENABLE
  255.  
  256. //===========================================================================
  257. // Creality Ender 2 Options - Select 'Sanguino 1284p' from Tools > Board
  258. //===========================================================================
  259. //#define ENDER2
  260.  
  261. // If you are using our EZOut V2 (connects to the LCD header & connect the 2 pin connector to the "Check" header to the right of the LCD connection) filament sensor kit please follow the install guide
  262. // and then uncomment the #define EZOUTV2_ENABLE line below. Do NOT ever connect our filament sensor without the supplied adapter board.
  263. //#define EZOUTV2_ENABLE
  264.  
  265. // EZABL Probe Mounts (Ender 2 can use the same mounts as CR-10, Ender 2 Specific mounts minimize distance from probe to nozzle for max probing area)
  266. // If you have issues with the non-Ender 2 mounts then please print them off and switch to one of them before contacting support.
  267. // This is because the probeable area on the non-Ender 2 mounts is too small typically to get a good result.
  268. //#define ENDER2_OEM
  269. //#define ENDER2_V6
  270. //#define CR10_OEM
  271. //#define CR10_VOLCANO
  272. //#define CR10_V6HEAVYDUTY
  273. //#define TM3DAERO
  274. //#define TM3DAERO_EXTENDED
  275. //#define PETSFANG //This is the RIGHT mounted version - if using the left mount please use the CUSTOM_PROBE option.
  276. //#define CUSTOM_PROBE
  277.  
  278. //===========================================================================
  279. // Creality Ender 3 Options - Select 'Sanguino 1284p' from Tools > Board
  280. //===========================================================================
  281. #define ENDER3
  282.  
  283. // If you are using our EZOut V1/V2 (connected to LCD header) filament sensor kit please follow the install guide
  284. // and then uncomment the #define EZOUT_ENABLE line below.
  285. // Do NOT ever connect our filament sensor without the supplied adapter board.
  286. //#define EZOUT_ENABLE
  287.  
  288. // EZABL Probe Mounts (Ender 3 uses the same mounts as CR-10)
  289. //#define CR10_OEM
  290. //#define CR10_VOLCANO
  291. //#define CR10_V6HEAVYDUTY
  292. //#define TM3DAERO
  293. //#define TM3DAERO_EXTENDED
  294. #define PETSFANG //This is the RIGHT mounted version - if using the left mount please use the CUSTOM_PROBE option.
  295. //#define CUSTOM_PROBE
  296.  
  297. //=================================================================================================
  298. // README - THE BELOW SETTINGS ARE ONLY FOR USING THE CR-10S DUAL BOARD WITH THE ENDER 3
  299. // DO NOT UNCOMMENT THE ABOVE #define ENDER3 LINE IF USING THE DUAL BOARD
  300. // Select 'Arduino Mega 2560' from Tools > Board - NOT Sanguino
  301. //
  302. // To use the Ender 3 LCD with the CR-10S dual board board connect the LCD cable to EXP1 on the
  303. // CR-10S board but rotate it 180 degrees. The LCD end of the cable goes to EXP3 on the Ender 3 LCD.
  304. // You will have to force it into the EXP1 but it will fit and work.
  305. //
  306. // EZABL and EZOut support are still supported just use the lines above this comment section.
  307. //=================================================================================================
  308. //#define ENDER3_DUALBOARD
  309.  
  310. // Dual Extruder Board Options - The below options are for use with the TH3D CR-10S Board with dual extruder support.
  311.  
  312. // If you are using a single hotend with the 2 into 1 adapter OR mixing nozzle uncomment the below line
  313. //#define DUAL_EXTRUDER_SINGLE_HOTEND
  314.  
  315. // If you are using a dual hotend with dual nozzles uncomment the below line
  316. //#define DUAL_HOTEND_DUAL_NOZZLES
  317.  
  318. // If you are using a 2nd EZOut V2 (connects to Y+ connector) filament sensor kit please follow the install guide
  319. // and then uncomment the #define EZOUTV2_DUAL_ENABLE line below. Do NOT ever connect our filament sensor without the supplied adapter board.
  320. //#define EZOUTV2_DUAL_ENABLE
  321.  
  322. //===========================================================================
  323. // Creality Ender 4 Options - Select 'Arduino Mega 2560' from Tools > Board
  324. //===========================================================================
  325. //#define ENDER4
  326.  
  327. // If you have the filament sensor from Creality uncomment the below line
  328. //#define ENDER4_FIL
  329.  
  330. // If you are using our EZOut V2 (connected to X+ connector) filament sensor kit please follow the install guide
  331. // and then uncomment the #define EZOUT_ENABLE line below.
  332. // Do NOT ever connect our filament sensor without the supplied adapter board.
  333. //#define EZOUTV2_ENABLE
  334.  
  335. // EZABL Probe Mounts
  336. //#define ENDER4_OEM_LEFT
  337. //#define ENDER4_OEM_RIGHT //need to design
  338. //#define CUSTOM_PROBE
  339.  
  340. //===========================================================================
  341. // Creality Ender 5 Options - Select 'Sanguino 1284p' from Tools > Board
  342. //===========================================================================
  343. //#define ENDER5
  344.  
  345. // If you are using our EZOut V1/V2 (connected to LCD header) filament sensor kit please follow the install guide
  346. // and then uncomment the #define EZOUT_ENABLE line below.
  347. // Do NOT ever connect our filament sensor without the supplied adapter board.
  348. //#define EZOUT_ENABLE
  349.  
  350. // EZABL Probe Mounts (Ender 5 uses the same mounts as CR-10)
  351. //#define CR10_OEM
  352. //#define CR10_VOLCANO
  353. //#define CR10_V6HEAVYDUTY
  354. //#define TM3DAERO
  355. //#define TM3DAERO_EXTENDED
  356. //#define PETSFANG //This is the RIGHT mounted version - if using the left mount please use the CUSTOM_PROBE option.
  357. //#define CUSTOM_PROBE
  358.  
  359. //=================================================================================================
  360. // README - THE BELOW SETTINGS ARE ONLY FOR USING THE CR-10S DUAL BOARD WITH THE ENDER 5
  361. // DO NOT UNCOMMENT THE ABOVE #define ENDER5 LINE IF USING THE DUAL BOARD
  362. // Select 'Arduino Mega 2560' from Tools > Board - NOT Sanguino
  363. //
  364. // To use the Ender 5 LCD with the CR-10S dual board board connect the LCD cable to EXP1 on the
  365. // CR-10S board but rotate it 180 degrees. The LCD end of the cable goes to EXP3 on the Ender 5 LCD.
  366. // You will have to force it into the EXP1 but it will fit and work.
  367. //
  368. // EZABL and EZOut support are still supported just use the lines above this comment section.
  369. //=================================================================================================
  370. //#define ENDER5_DUALBOARD
  371.  
  372. // Dual Extruder Board Options - The below options are for use with the TH3D CR-10S Board with dual extruder support.
  373.  
  374. // If you are using a single hotend with the 2 into 1 adapter OR mixing nozzle uncomment the below line
  375. //#define DUAL_EXTRUDER_SINGLE_HOTEND
  376.  
  377. // If you are using a dual hotend with dual nozzles uncomment the below line
  378. //#define DUAL_HOTEND_DUAL_NOZZLES
  379.  
  380. // If you are using a 2nd EZOut V2 (connects to Y+ connector) filament sensor kit please follow the install guide
  381. // and then uncomment the #define EZOUTV2_DUAL_ENABLE line below. Do NOT ever connect our filament sensor without the supplied adapter board.
  382. //#define EZOUTV2_DUAL_ENABLE
  383.  
  384. //===========================================================================
  385. // ************************* FOLGERTECH PRINTERS *************************
  386. //===========================================================================
  387.  
  388. //===========================================================================
  389. // Folgertech FT-5 Options - Select 'Arduino Mega 2560' from Tools > Board
  390. //===========================================================================
  391. //#define FT5
  392.  
  393. // If you are using a 12864 LCD instead of the stock LCD 2004 display uncomment the below line.
  394. //#define FT5_12864LCD
  395.  
  396. // If you are using our EZOut V2 (connects to X+ connector) filament sensor kit please follow the install guide
  397. // and then uncomment the #define EZOUTV2_ENABLE line below.
  398. // Do NOT ever connect our filament sensor without the supplied adapter board.
  399. //#define EZOUTV2_ENABLE
  400.  
  401. // EZABL Probe Mounts
  402. //#define CUSTOM_PROBE
  403.  
  404. //===========================================================================
  405. // ************************* GEEETECH PRINTERS *************************
  406. //===========================================================================
  407.  
  408. //===========================================================================
  409. // Geeetech A10 Options - Select 'Arduino Mega 2560' from Tools > Board
  410. //===========================================================================
  411. // A10 V1 has the 40mm Fan on the left side of the hotend and NO filament sensor
  412. // A10 V2 has a filament sensor and no 40mm fan on the left side of the hotend (support coming soon)
  413. //#define GEEETECH_A10_V1
  414.  
  415. // EZABL Probe Mounts
  416. //#define GEE_A10_V1_OEM
  417. //#define CUSTOM_PROBE
  418.  
  419. //===========================================================================
  420. // ************************* LULZBOT PRINTERS *************************
  421. //===========================================================================
  422.  
  423. //===========================================================================
  424. // Lulzbot TAZ5 Options - Select 'Arduino Mega 2560' from Tools > Board
  425. //===========================================================================
  426. //#define TAZ5
  427.  
  428. // EZABL Probe Mounts
  429. //#define TAZ5_OEM
  430. //#define CUSTOM_PROBE
  431.  
  432. //===========================================================================
  433. // ************************* TEVO PRINTERS *************************
  434. //===========================================================================
  435.  
  436. //===========================================================================
  437. // TEVO Tornado Options - Select 'Arduino Mega 2560' from Tools > Board
  438. //===========================================================================
  439. //#define TORNADO
  440.  
  441. // If you are using our EZOut V2 (connects to X+ connector) filament sensor kit please follow the install guide
  442. // and then uncomment the #define EZOUTV2_ENABLE line below.
  443. // Do NOT ever connect our filament sensor without the supplied adapter board.
  444. //#define EZOUTV2_ENABLE
  445.  
  446. // EZABL Probe Mounts
  447. //#define TORNADO_OEM
  448. //#define TORNADO_VOLCANO
  449. //#define TORNADO_V6HEAVYDUTY
  450. //#define TM3DAERO
  451. //#define TM3DAERO_EXTENDED
  452. //#define PETSFANG //This is the RIGHT mounted version - if using the left mount please use the CUSTOM_PROBE option.
  453. //#define CUSTOM_PROBE
  454.  
  455. // Use Tornado Bootscreen instead of TH3D
  456. //#define TORNADO_BOOT
  457.  
  458. // Slow down the hotend fan and control box fans to reduce noise
  459. //#define TORNADO_QUIET
  460.  
  461. //===========================================================================
  462. // ************************* TRONXY PRINTERS *************************
  463. //===========================================================================
  464.  
  465. //===========================================================================
  466. // TronXY X3S Options - Select 'Sanguino 1284p' from Tools > Board
  467. //===========================================================================
  468. //#define TRONXY_X3S
  469.  
  470. // EZABL Probe Mounts
  471. //#define CUSTOM_PROBE
  472.  
  473. //===========================================================================
  474. // TronXY X5S Options - Select 'Sanguino 1284p' from Tools > Board
  475. //===========================================================================
  476. //#define TRONXY_X5S
  477.  
  478. // EZABL Probe Mounts
  479. //#define CUSTOM_PROBE
  480.  
  481. //===========================================================================
  482. // ************************* WANHAO PRINTERS *************************
  483. //===========================================================================
  484.  
  485. //===========================================================================
  486. // Wanhao i3 Options - Select 'Sanguino 1284p' from Tools > Board
  487. //===========================================================================
  488. //#define WANHAO_I3
  489.  
  490. // If you are using our EZOut V2 (connected to LCD header) filament sensor kit please follow the install guide
  491. // and then uncomment the #define EZOUTV2_ENABLE line below.
  492. // Do NOT ever connect our filament sensor without the supplied adapter board.
  493. //#define EZOUTV2_ENABLE
  494.  
  495. // If your thermistor temperatures are off please uncomment the 10K option below to fix temps being off
  496. //#define WANHAO_10K_THERMISTOR
  497.  
  498. // EZABL Probe Mounts
  499. //#define WANHAO_I3_OEM
  500. //#define WANHAO_I3_DIIICOOLER
  501. //#define CUSTOM_PROBE
  502.  
  503. //===========================================================================
  504. // Wanhao i3 MINI Options - Select 'Arduino Mega 2560' from Tools > Board
  505. //===========================================================================
  506. //#define WANHAO_I3MINI
  507.  
  508. // EZABL Probe Mounts
  509. //#define WANHAO_I3MINI_OEM
  510. //#define WANHAO_I3MINI_OEM_EZABLMINI
  511. //#define CUSTOM_PROBE
  512.  
  513. //===========================================================================
  514. // Wanhao D6 Options - Select 'Arduino Mega 2560' from Tools > Board
  515. //===========================================================================
  516. //#define WANHAO_D6
  517.  
  518. // If you are using our EZOut V2 (connects to ANALOG/J9 connector) filament sensor kit please follow the install guide
  519. // and then uncomment the #define EZOUTV2_ENABLE line below.
  520. // Do NOT ever connect our filament sensor without the supplied adapter board.
  521. //#define EZOUTV2_ENABLE
  522.  
  523. // EZABL Probe Mounts
  524. //#define WANHAO_D6_OEM
  525. //#define CUSTOM_PROBE
  526.  
  527. //===========================================================================
  528. // *********************** MKS Gen L Based Printer ***********************
  529. // ************* Select 'Arduino Mega 2560' from Tools > Board *************
  530. // **** Please refer to the TH3D MKS Gen L Documentation Guide for Setup ****
  531. // **** Endstop/Motors: changing from 0 to 1 inverts the logic/direction ****
  532. // ********** TH3D MKS Gen L Documentation Coming end of April 2019 *********
  533. //===========================================================================
  534.  
  535. #define MKS_PRINTER
  536.  
  537. // Build Area Size Settings
  538. #define MKS_X_SIZE 235
  539. #define MKS_Y_SIZE 235
  540. #define MKS_Z_SIZE 250
  541.  
  542. // Endstop Logic Settings
  543. #define MKS_X_ENDSTOP 0
  544. #define MKS_Y_ENDSTOP 0
  545. #define MKS_Z_ENDSTOP 0
  546.  
  547. // Steps per MM Settings
  548. #define MKS_X_STEPS 80
  549. #define MKS_Y_STEPS 80
  550. #define MKS_Z_STEPS 400
  551. #define MKS_E0_STEPS 95
  552. #define MKS_E1_STEPS 95
  553.  
  554. // Motor Direction Settings
  555. #define MKS_X_DIRECTION 0
  556. #define MKS_Y_DIRECTION 0
  557. #define MKS_Z_DIRECTION 0
  558. #define MKS_E0_DIRECTION 0
  559. #define MKS_E1_DIRECTION 0
  560.  
  561. // Stepper Driver Settings
  562. #define MKS_X_DRIVER TMC2208_STANDALONE
  563. #define MKS_Y_DRIVER TMC2208_STANDALONE
  564. #define MKS_Z_DRIVER A4988
  565. #define MKS_E0_DRIVER A4988
  566. #define MKS_E1_DRIVER A4988
  567.  
  568. // Thermistor Settings (uses standard Marlin Thermistor numbers)
  569. #define MKS_E_THERMISTOR 1
  570. #define MKS_BED_THERMISTOR 1
  571.  
  572. // EZOut V2 Filament Sensor Settings
  573. //#define MKS_EZOUT_V2_X_PLUS
  574. //#define MKS_EZOUT_V2_Y_PLUS
  575.  
  576. // EZABL & ABL Probe Settings
  577. // If you are using a pre-supported mount that is available already then uncomment it above in that printer section.
  578. // For example if you are using CR-10 with the OEM mount then scroll up and uncomment the #define CR10_OEM line like you would normally.
  579. // If you are using a probe mount that is not supported then use the CUSTOM_PROBE option and enter in your probe offsets below.
  580. //#define CUSTOM_PROBE
  581.  
  582. // If you are using a single hotend with the 2 into 1 adapter OR mixing nozzle uncomment the below line
  583. //#define DUAL_EXTRUDER_SINGLE_HOTEND
  584.  
  585. // If you are using a dual hotend with dual nozzles uncomment the below line
  586. //#define DUAL_HOTEND_DUAL_NOZZLES
  587.  
  588. // While recommend the 12864 LCD we carry as it has a SD slot you can use a CR-10/Ender 3/Ender 5 LCD connected to EXP1 (rotate 180 degrees instead of aligning the pin)
  589. // Uncomment the below line to use the single cable Creality (Melzi) LCD instead of a standard 12864 LCD
  590. //#define CR10_STOCKDISPLAY
  591.  
  592. // If your lcd knob moves the wrong direction uncomment the below line to reverse it
  593. //#define MKS_KNOB_REVERSE
  594.  
  595. //===========================================================================
  596. // ************************* END PRINTER SECTION *************************
  597. //===========================================================================
  598.  
  599. //===========================================================================
  600. // EZABL Advanced Settings
  601. //===========================================================================
  602.  
  603. // If you want more or less EZABL probe points change the number below (only used if EZABL enabled)
  604. // Default is 3 which gives you 3x3 grid for a total of 9 points. STICK WITH ODD NUMBERS
  605. #define EZABL_POINTS 3
  606.  
  607. // If you want to probe in on the bed more than 15mm change this below.
  608. // Do not use 30mm for the Standard CR-10/s or the S4 as you will be on the bed screws.
  609. // Try 50mm to avoid the binder clips if you use them. Do NOT go under 15mm here.
  610. // You can do down to 10mm on the Wanhao i3 since it cannot print on the entire bed.
  611. // You can do down to 5mm on the Wanhao i3 Mini since it cannot print on the entire bed.
  612. // (only used if EZABL enabled)
  613. #define EZABL_PROBE_EDGE 15
  614.  
  615. // If you have issues with your machine running the faster probe setting disable the #define EZABL_FASTPROBE below.
  616. // DO NOTE: Most machines will work with the fast probe enabled. Use M48 to verify accuracy.
  617. #define EZABL_FASTPROBE
  618.  
  619. // This will disable the XYE motors during probing. Can be useful if you have stepper motors causing interference issues with the EZABL sensor.
  620. //#define PROBING_MOTORS_OFF
  621.  
  622. // Heaters will stay on during probing - only use if directed to by support. Do not use on AC beds.
  623. //#define HEATERS_ON_DURING_PROBING
  624.  
  625. // If you want a more granular control over the babystepping uncomment the below line.
  626. // This will make the adjustment finer than the standard setting.
  627. //#define FINE_BABYSTEPPING
  628.  
  629. // This will extrapolate the implied tilt of the bed outside of the probe area. Do not comment out unless directed by support.
  630. #define EZABL_OUTSIDE_GRID_COMPENSATION
  631.  
  632. // Does your machine make weird noises/vibrations when it is probing the mesh? Enable this to slow down the speed between probe points.
  633. //#define SLOWER_PROBE_MOVES
  634.  
  635. //================================================================================
  636. // IF YOU HAVE A CUSTOM PROBE MOUNT OR ONE THAT IS NOT PRE-SUPPORTED UNCOMMENT THE
  637. // CUSTOM_PROBE OPTION IN YOUR PRINTER SECTION AND ENTER YOUR PROBE LOCATION BELOW
  638. //================================================================================
  639. #if ENABLED(CUSTOM_PROBE)
  640. /**
  641. * Z Probe to nozzle (X,Y) offset, relative to (0, 0).
  642. * X and Y offsets must be whole numbers.
  643. *
  644. * In the following example the X and Y offsets are both positive:
  645. * #define X_PROBE_OFFSET_FROM_EXTRUDER 10
  646. * #define Y_PROBE_OFFSET_FROM_EXTRUDER 10
  647. *
  648. * +-- BACK ---+
  649. * | |
  650. * L | (+) P | R <-- probe (10,10)
  651. * E | | I
  652. * F | (-) N (+) | G <-- nozzle (0,0)
  653. * T | | H
  654. * | (-) | T
  655. * | |
  656. * O-- FRONT --+
  657. * (0,0)
  658. */
  659. #define X_PROBE_OFFSET_FROM_EXTRUDER 10 // X offset: -left +right [of the nozzle]
  660. #define Y_PROBE_OFFSET_FROM_EXTRUDER 10 // Y offset: -front +behind [the nozzle]
  661. #endif
  662.  
  663. //===========================================================================
  664. //******************** EXTRA FEATURES AND TWEAKS ****************************
  665. //===========================================================================
  666.  
  667. // TH3D RGB LED STRIP ------------------------------
  668. // If you are using the TH3D RGB strip connect to the Z+ endstop connection, power supply connection, and uncomment the below line
  669. //#define TH3D_RGB_STRIP
  670. // If you cut the strip shorter please count the LEDs that are left, uncomment the line below, and change the number below to how many LEDs you have.
  671. #define TH3D_RGB_STRIP_LED_COUNT 20
  672.  
  673. // EXTRUDER SETTINGS -------------------------------
  674.  
  675. // If you want to change the Esteps for your printer you can uncomment the below line and set CUSTOM_ESTEPS_VALUE to what you want - USE WHOLE NUMBERS ONLY
  676. //#define CUSTOM_ESTEPS
  677. #define CUSTOM_ESTEPS_VALUE 999
  678.  
  679. // If you are using an TH3D Tough Extruder, Bondtech BMG (set steps below to 415), or E3D Titan Extruder
  680. // uncomment the below line to setup the firmware to the correct steps and direction. Also applicable to Titan/Tough Aero setups.
  681. //#define TITAN_EXTRUDER
  682. #define TITAN_EXTRUDER_STEPS 463
  683.  
  684. // DUAL HOTEND SETTINGS ----------------------------
  685.  
  686. // This is the distance between each nozzle tip when using a dual hotend like the TH3D Tough Dual Hotend or the E3D Chimera or Dual hotends.
  687. // This setting only applies to printers using a dual extruder board.
  688. #define DUAL_HOTEND_X_DISTANCE 18.0
  689.  
  690. // THERMISTOR SETTINGS -----------------------------
  691.  
  692. // If you are using an E3D V6 Hotend with their cartridge thermistor (not glass version) uncomment the below line.
  693. //#define V6_HOTEND
  694.  
  695. // If you are using a Tough Hotend from TH3D or any thermistors TH3D sells for your hotend uncomment the below line.
  696. //#define TH3D_HOTEND_THERMISTOR
  697.  
  698. // If you are using a thermistor TH3D sells for your bed uncomment the below line.
  699. //#define TH3D_BED_THERMISTOR
  700.  
  701. // If you are using a Keenovo with SSR and the Keenovo temperature sensor uncomment the below line.
  702. //#define KEENOVO_TEMPSENSOR
  703.  
  704. // If you are using a known hotend thermistor value uncomment the below 2 lines and enter the thermistor number replacing the X after the #define KNOWN_HOTEND_THERMISTOR_VALUE
  705. //#define KNOWN_HOTEND_THERMISTOR
  706. //#define KNOWN_HOTEND_THERMISTOR_VALUE X
  707.  
  708. // If you are using a known bed thermistor value uncomment the below 2 lines and enter the thermistor number replacing the X after the #define KNOWN_BED_THERMISTOR_VALUE
  709. //#define KNOWN_BED_THERMISTOR
  710. //#define KNOWN_BED_THERMISTOR_VALUE X
  711.  
  712. // BED SETTINGS ------------------------------------
  713.  
  714. // If you want PID tuning on your bed you can enable the below line. But PID on a bed is not typically needed. By default BED PID is disabled.
  715. // This will be disabled when using automatic or manual mesh leveling with a 1284p board due to memory limitations.
  716. //#define PIDBED_ENABLE
  717.  
  718. // If you are using an AC bed with a standalone controller (Keenovo) uncomment the below line to disable the heated bed in the firmware
  719. //#define AC_BED
  720.  
  721. // Stock bed max is 120C for this firmware. Enable this to allow temps up to 150C. Your bed must support this temp for it to achieve the higher temperatures.
  722. //#define BED_HIGHTEMP
  723.  
  724. // MISC --------------------------------------------
  725.  
  726. // If you have a 5015 fan that whines when under 100% speed uncomment the below line.
  727. //#define FAN_FIX
  728.  
  729. // Use your own printer name
  730. //#define USER_PRINTER_NAME "Ender 3 ABL"
  731.  
  732. // If your printer is homing to the endstops hard uncomment this to change the homing speed/divisor to make it less aggressive.
  733. //#define SLOWER_HOMING
  734.  
  735. // BOOT SCREEN OPTIONS -----------------------------
  736.  
  737. // Use TinyMachines Bootscreen instead of TH3D
  738. //#define TM3D_BOOT
  739.  
  740. // Use Ender Bootscreeen instead of TH3D
  741. //#define ENDER_BOOT
  742.  
  743. // Disable Bootscreen completely
  744. //#define DISABLE_BOOT
  745.  
  746. //===========================================================================
  747. //****************** COMMUNITY REQUESTED FEATURES ***************************
  748. //===========================================================================
  749.  
  750. // HOME OFFSET ADJUSTMENT --------------------------
  751. // If you need to adjust your XY home offsets from defaults then you can uncomment the HOME_ADJUST line below and enter your
  752. // custom XY offsets. This is provided for convenience and is unsupported with included product support.
  753. // How to use - measure (home XY then jog using the LCD 1mm at a time) the X and Y distance the nozzle is off
  754. // the build plate and then put those as NEGATIVE values below, positive values will NOT work (move your endstops to fix a positve offset).
  755. //#define HOME_ADJUST
  756. #define X_HOME_LOCATION -10
  757. #define Y_HOME_LOCATION -10
  758.  
  759. // LINEAR ADVANCE ----------------------------------
  760. // See here on how to use Linear Advance: http://marlinfw.org/docs/features/lin_advance.html
  761. //
  762. //#define LINEAR_ADVANCE
  763. // Change the K Value here or use M900 KX.XX in your starting code (recommended).
  764. #define LINEAR_ADVANCE_K 0
  765. // NOTE: If using linear advance along with EZABL on a printer with 1284p some Control > Motion menus will not be displayed due to space restrictions.
  766. // You can still change these via GCode commands.
  767.  
  768. // BL TOUCH ----------------------------------------
  769. // If you want to use the BL-Touch install your EZOut Board, uncomment the 2 lines below, uncomment the CUSTOM_PROBE option in your printer section,
  770. // and then enter your probe offsets in the CUSTOM_PROBE section above. The Pin 27 boards on eBay are clones of our original EZOut. If you want to
  771. // support the people that originally came up with the board you can get our EZOut breakout board here: http://EZOut.TH3DStudio.com
  772. // Sales from our shop allow us to allocate time for community firmware development at no charge to you. <3
  773. // If you have a V3 BL Touch also uncomment the BLTOUCH_V3 line to fix issues with the new V3 probe.
  774. //
  775. //#define BLTOUCH
  776. //#define BLTOUCH_V3
  777. // Here is where you set your servo pin. EZOut Servo Pin Numbers: Ender3/5/CR-10 - 27, Ender 2 - 29. For 2560 boards look for the pin you connected the servo wire to and enter below.
  778. //#define SERVO0_PIN 27
  779. //
  780. // NOTE: On 1284p boards due to space limitations and the large amount of code the BLTouch requires for the LCD Menus
  781. // the Bootscreen and some Control > Motion menus will not be displayed due to space restrictions
  782.  
  783. // MANUAL MESH LEVELING ----------------------------
  784. // If you want to use manual mesh leveling you can enable the below option. This is for generating a MANUAL mesh WITHOUT a probe.
  785. // Mesh Bed Leveling Documentation: http://marlinfw.org/docs/gcode/G029-mbl.html If used with a 1284P board the bootscreen will be disabled to save space.
  786. // NOTE: If you want to automate the leveling process our EZABL kits do this for you. Check them out here: http://EZABL.TH3DStudio.com
  787. //#define MANUAL_MESH_LEVELING
  788.  
  789. // POWER LOSS RECOVERY -----------------------------
  790. // Continue after Power-Loss feature will store the current state to the SD Card at the start of each layer
  791. // during SD printing. If this is found at bootup it will ask you if you want to resume the print.
  792. //
  793. // NOTE: This feature causes excessive wear on your SD card. This will disable junction jerk, SCurve Acceleration, and Linear Advance due to RAM limitations.
  794. //#define POWER_LOSS_RECOVERY
  795.  
  796. // MOTION SETTINGS ---------------------------------
  797. // If you do not like the new Junction Deviation (Jerk) and/or S-Curve Acceleration then you can uncomment the below lines to disable each feature.
  798. // Due to Anet board restrictions this is always disabled on those machines.
  799. //#define JUNCTION_DEVIATION_DISABLE
  800. //#define S_CURVE_ACCELERATION_DISABLE
  801.  
  802. //================================================================================================
  803. // Language - This is provided for convenience and is unsupported with included product support.
  804. // We only test compile with English language. If you run into space issues disable some features.
  805. //================================================================================================
  806.  
  807. /**
  808. * LCD LANGUAGE
  809. *
  810. * Select the language to display on the LCD. These languages are available:
  811. *
  812. * en, an, bg, ca, cn, cz, cz_utf8, de, el, el-gr, es, eu, fi, fr, fr_utf8, gl,
  813. * hr, it, kana, kana_utf8, nl, pl, pt, pt_utf8, pt-br, pt-br_utf8, ru, sk_utf8,
  814. * tr, uk, zh_CN, zh_TW, test
  815. */
  816.  
  817. #define LCD_LANGUAGE en
  818.  
  819. #include "Configuration_backend.h"
  820.  
  821. #define UNIFIED_VERSION "TH3D U1.R2.10d"
  822.  
  823. #endif // CONFIGURATION_H
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement