Advertisement
Guest User

ENDER3 Configure.h

a guest
Sep 10th, 2019
666
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 16.00 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. * EZABL SETUP NOTES:
  7. * If you have EZABL uncomment the mount you are using with the printer.
  8. * If you have a custom/unsupported mount uncomment #define CUSTOM_MOUNT and enter your offsets
  9. * below in the CUSTOM MOUNT section. Refer to the EZABL guide to get your offsets.
  10. *
  11. * STEP 1 *** FOR 8 BIT BOARDS ONLY ***:
  12. * Select the correct board from the tools menu for the printer you are flashing.
  13. * Read the printer title for the model you are flashing, it will show what board to select.
  14. *
  15. * STEP 2:
  16. * Uncomment the printer you want to flash and any options you want to use. The printers are sorted A-Z by brand name.
  17. * Save the file before moving to the next step.
  18. *
  19. * STEP 3:
  20. * Select Auto Build > PIO Build to build the firmware. Copy the Firmware.bin file from the ".pioenvs/CPU FOLDER" to your SD card.
  21. * Put the SD card into the printer with the power OFF. Turn on the printer, it will take a little longer to boot as it is flashing the firmware.
  22. *
  23. * STEP 4:
  24. * Reset your eeprom. You can send M502 then M500 to reset the EEPROM OR on the printer LCD go to
  25. * Control > Reset EEPROM to clear out the EEPROM to defaults.
  26. *
  27. * ERROR NOTES:
  28. * If you get errors flashing READ the message it gives you and double check that you selected
  29. * the correct board from the Tools menu in Arduino. Turn off any AV systems and reboot the computer.
  30. *
  31. * COMMUNITY REQUESTED FEATURES NOTE:
  32. * All features in the community requested features section are provided as-is with no support from TH3D.
  33. */
  34.  
  35. #pragma once
  36.  
  37. #define CONFIGURATION_H_VERSION 020000
  38.  
  39.  
  40. //===========================================================================
  41. //============================ TH3D Configuration ===========================
  42. //===========================================================================
  43.  
  44. // ONLY UNCOMMENT THINGS IN ONE PRINTER SECTION!!! IF YOU HAVE MULTIPLE MACHINES FLASH THEM ONE AT A TIME.
  45.  
  46. //===========================================================================
  47. // ************************* CREALITY PRINTERS *************************
  48. // ************************* EZBOARD SECTION *************************
  49. //===========================================================================
  50.  
  51. //===========================================================================
  52. // Creality CR-10/CR-10S/Ender3/Ender5 Options - CR-10S use the CR-10 option
  53. //===========================================================================
  54. //#define CR10
  55. //#define CR10_MINI
  56. //#define CR10_S4
  57. //#define CR10_S5
  58. #define ENDER3
  59. //#define ENDER5
  60.  
  61. // If you are using our EZOut Sensor connect to the FIL SENSOR header with the RED wire lined up with the "5V" marking by the header.
  62. #define EZOUTV2_ENABLE
  63.  
  64. // If you are using our Stock Creality CR-10S Sensor connect to the FIL SENSOR header with the RED wire lined up with the "5V" marking by the header.
  65. //#define CR10S_STOCKFILAMENTSENSOR
  66.  
  67. // EZABL Probe Mounts
  68. //#define CR10_OEM
  69. //#define CR10_VOLCANO
  70. //#define CR10_V6HEAVYDUTY
  71. //#define CR10_FANG
  72. //#define TM3DAERO
  73. //#define TM3DAERO_EXTENDED
  74. #define PETSFANG //This is the RIGHT mounted version - if using the left mount please use the CUSTOM_PROBE option.
  75. //#define CUSTOM_PROBE
  76.  
  77. // PT100 Thermocouple Support
  78. // Refer to the EZBoard installation documentation for connecting the PT100 to the EZBoard Expansion Header
  79. //#define EZBOARD_PT100
  80.  
  81. // Axis Direction Settings
  82. // If you need to reverse the direction of a motor uncomment the below option for that axis.
  83. // If you need to use this setting please report the printer model you have and what axis was inversed to
  84. // TH3D support by emailing Support@TH3DStudio.com so we can make updates for that machine.
  85. //#define REVERSE_X_MOTOR
  86. //#define REVERSE_Y_MOTOR
  87. //#define REVERSE_Z_MOTOR
  88. //#define REVERSE_E_MOTOR
  89.  
  90. // Dual Z Motor Settings
  91. // When running dual Z motors uncomment the below line. This will increase the Z motor driver current for 2x motors.
  92. //#define DUAL_Z_MOTORS
  93.  
  94. // E Motor Torque Settings
  95. // By default we have StealthChop2 Disabled for the E axis. This is due to the possibility of losing steps
  96. // due to the low torque nature of StealthChop2. If you want to quiet down the E motor you can uncomment the
  97. // below line. However, if you get lost steps and inconsistent extrusion then disable this option.
  98. //#define STEALTHCHOP_E
  99.  
  100. //===========================================================================
  101. // ************************* END PRINTER SECTION *************************
  102. //===========================================================================
  103.  
  104. //===========================================================================
  105. // EZABL Advanced Settings
  106. //===========================================================================
  107.  
  108. // If you want more or less EZABL probe points change the number below (only used if EZABL enabled)
  109. // Default is 3 which gives you 3x3 grid for a total of 9 points. STICK WITH ODD NUMBERS
  110. #define EZABL_POINTS 3
  111.  
  112. // If you want to probe in on the bed more than 15mm change this below.
  113. // Do not use 30mm for the Standard CR-10/s or the S4 as you will be on the bed screws.
  114. // Try 50mm to avoid the binder clips if you use them. Do NOT go under 15mm here.
  115. // You can do down to 10mm on the Wanhao i3 since it cannot print on the entire bed.
  116. // You can do down to 5mm on the Wanhao i3 Mini since it cannot print on the entire bed.
  117. // (only used if EZABL enabled)
  118. #define EZABL_PROBE_EDGE 15
  119.  
  120. // If you have issues with your machine running the faster probe setting disable the #define EZABL_FASTPROBE below.
  121. // DO NOTE: Most machines will work with the fast probe enabled. Use M48 to verify accuracy.
  122. #define EZABL_FASTPROBE
  123.  
  124. // Super fast probing - VERY EXPERIMENTAL AND ONLY TESTED WITH EZABL PRO SENSORS
  125. // Do NOT use with EZABL_FASTPROBE (comment out above) or BL Touch Sensors
  126. //#define EZABL_SUPERFASTPROBE
  127.  
  128. // This will disable the XYE motors during probing. Can be useful if you have stepper motors causing interference issues with the EZABL sensor.
  129. //#define PROBING_MOTORS_OFF
  130.  
  131. // Heaters will stay on during probing - only use if directed to by support. Do not use on AC beds.
  132. //#define HEATERS_ON_DURING_PROBING
  133.  
  134. // Letting the bed heat recover between probes can increase accuracy due to the bed warping during cooling/heating
  135. // Enabling the below option will let the bed get back to temperature during probing but will increase probing times.
  136. //#define WAIT_FOR_BED_HEATER
  137.  
  138. // If you want a more granular control over the babystepping uncomment the below line.
  139. // This will make the adjustment finer than the standard setting.
  140. //#define FINE_BABYSTEPPING
  141.  
  142. // This will extrapolate the implied tilt of the bed outside of the probe area. Do not comment out unless directed by support.
  143. #define EZABL_OUTSIDE_GRID_COMPENSATION
  144.  
  145. // Does your machine make weird noises/vibrations when it is probing the mesh? Enable this to slow down the speed between probe points.
  146. //#define SLOWER_PROBE_MOVES
  147.  
  148. // If you do not want to have the Zoffset combined with babystepping then uncomment the below line.
  149. //#define SEPARATE_BABYSTEPPING_FROM_ZOFFSET
  150.  
  151. //================================================================================
  152. // IF YOU HAVE A CUSTOM PROBE MOUNT OR ONE THAT IS NOT PRE-SUPPORTED UNCOMMENT THE
  153. // CUSTOM_PROBE OPTION IN YOUR PRINTER SECTION AND ENTER YOUR PROBE LOCATION BELOW
  154. //================================================================================
  155. //#if ENABLED(CUSTOM_PROBE)
  156. /**
  157. * Z Probe to nozzle (X,Y) offset, relative to (0, 0).
  158. * X and Y offsets must be whole numbers.
  159. *
  160. * In the following example the X and Y offsets are both positive:
  161. * #define X_PROBE_OFFSET_FROM_EXTRUDER 10
  162. * #define Y_PROBE_OFFSET_FROM_EXTRUDER 10
  163. *
  164. * +-- BACK ---+
  165. * | |
  166. * L | (+) P | R <-- probe (10,10)
  167. * E | | I
  168. * F | (-) N (+) | G <-- nozzle (0,0)
  169. * T | | H
  170. * | (-) | T
  171. * | |
  172. * O-- FRONT --+
  173. * (0,0)
  174. */
  175. #define X_PROBE_OFFSET_FROM_EXTRUDER 10 // X offset: -left +right [of the nozzle]
  176. #define Y_PROBE_OFFSET_FROM_EXTRUDER 10 // Y offset: -front +behind [the nozzle]
  177. #endif
  178.  
  179. //===========================================================================
  180. //******************** EXTRA FEATURES AND TWEAKS ****************************
  181. //===========================================================================
  182.  
  183. // EXTRUDER SETTINGS -------------------------------
  184.  
  185. // 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
  186. //#define CUSTOM_ESTEPS
  187. #define CUSTOM_ESTEPS_VALUE 999
  188.  
  189. // If you are using an TH3D Tough Extruder, Bondtech BMG (set steps below to 415), or E3D Titan Extruder
  190. // uncomment the below line to setup the firmware to the correct steps and direction. Also applicable to Titan/Tough Aero setups.
  191. //#define TITAN_EXTRUDER
  192. #define TITAN_EXTRUDER_STEPS 463
  193.  
  194. // THERMISTOR SETTINGS -----------------------------
  195.  
  196. // If you are using an E3D V6 Hotend with their cartridge thermistor (not glass version) uncomment the below line.
  197. //#define V6_HOTEND
  198.  
  199. // If you are using a Tough Hotend from TH3D or any thermistors TH3D sells for your hotend uncomment the below line.
  200. //#define TH3D_HOTEND_THERMISTOR
  201.  
  202. // If you are using a thermistor TH3D sells for your bed uncomment the below line.
  203. //#define TH3D_BED_THERMISTOR
  204.  
  205. // If you are using a Keenovo with SSR and the Keenovo temperature sensor uncomment the below line.
  206. //#define KEENOVO_TEMPSENSOR
  207.  
  208. // 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
  209. //#define KNOWN_HOTEND_THERMISTOR
  210. //#define KNOWN_HOTEND_THERMISTOR_VALUE X
  211.  
  212. // 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
  213. //#define KNOWN_BED_THERMISTOR
  214. //#define KNOWN_BED_THERMISTOR_VALUE X
  215.  
  216. // If you want to make thermal protection periods less or more adjust below. The number is in seconds.
  217. // If you are getting false thermal runaway then increase the protection time. Do not make it over 300 for either setting.
  218. #define HOTEND_THERMAL_PROTECTION_TIME 60
  219. #define BED_THERMAL_PROTECTION_TIME 180
  220.  
  221. // BED SETTINGS ------------------------------------
  222.  
  223. // 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.
  224. // This will be disabled when using automatic or manual mesh leveling with a 1284p board due to memory limitations.
  225. //#define PIDBED_ENABLE
  226.  
  227. // If you are using an AC bed with a standalone controller (Keenovo) uncomment the below line to disable the heated bed in the firmware
  228. //#define AC_BED
  229.  
  230. // 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.
  231. //#define BED_HIGHTEMP
  232.  
  233. // MISC --------------------------------------------
  234.  
  235. // If you have a 5015 fan that whines when under 100% speed uncomment the below line.
  236. //#define FAN_FIX
  237.  
  238. // Use your own printer name
  239. #define USER_PRINTER_NAME Mikes Toy
  240.  
  241. // If your printer is homing to the endstops hard uncomment this to change the homing speed/divisor to make it less aggressive.
  242. //#define SLOWER_HOMING
  243.  
  244. //===========================================================================
  245. //****************** COMMUNITY REQUESTED FEATURES ***************************
  246. //===========================================================================
  247.  
  248. // HOME OFFSET ADJUSTMENT --------------------------
  249. // If you need to adjust your XY home offsets from defaults then you can uncomment the HOME_ADJUST line below and enter your
  250. // custom XY offsets. This is provided for convenience and is unsupported with included product support.
  251. // How to use - measure (home XY then jog using the LCD 1mm at a time) the X and Y distance the nozzle is off
  252. // the build plate and then put those as NEGATIVE values below, positive values will NOT work (move your endstops to fix a positve offset).
  253. //#define HOME_ADJUST
  254. #define X_HOME_LOCATION -10
  255. #define Y_HOME_LOCATION -10
  256.  
  257. // LINEAR ADVANCE ----------------------------------
  258. // See here on how to use Linear Advance: http://marlinfw.org/docs/features/lin_advance.html
  259. //
  260. //#define LINEAR_ADVANCE
  261. // Change the K Value here or use M900 KX.XX in your starting code (recommended).
  262. #define LINEAR_ADVANCE_K 0
  263. // 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.
  264. // You can still change these via GCode commands.
  265.  
  266. // BL TOUCH ----------------------------------------
  267. // 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,
  268. // 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
  269. // support the people that originally came up with the board you can get our EZOut breakout board here: http://EZOut.TH3DStudio.com
  270. // Sales from our shop allow us to allocate time for community firmware development at no charge to you. <3
  271. //
  272. //#define BLTOUCH
  273. // 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. For EZBoard use P2_04
  274. //#define SERVO0_PIN P2_04
  275. //
  276. // NOTE: On 1284p boards due to space limitations and the large amount of code the BLTouch requires for the LCD Menus
  277. // the Bootscreen and some Control > Motion menus will not be displayed due to space restrictions
  278.  
  279. // MANUAL MESH LEVELING ----------------------------
  280. // If you want to use manual mesh leveling you can enable the below option. This is for generating a MANUAL mesh WITHOUT a probe.
  281. // 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.
  282. // NOTE: If you want to automate the leveling process our EZABL kits do this for you. Check them out here: http://EZABL.TH3DStudio.com
  283. //#define MANUAL_MESH_LEVELING
  284.  
  285. // POWER LOSS RECOVERY -----------------------------
  286. // Continue after Power-Loss feature will store the current state to the SD Card at the start of each layer
  287. // during SD printing. If this is found at bootup it will ask you if you want to resume the print.
  288. //
  289. // NOTE: This feature causes excessive wear on your SD card. This will disable junction jerk, SCurve Acceleration, and Linear Advance due to RAM limitations.
  290. //#define POWER_LOSS_RECOVERY
  291.  
  292. // MOTION SETTINGS ---------------------------------
  293. // 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.
  294. // Due to Anet board restrictions this is always disabled on those machines.
  295. //#define JUNCTION_DEVIATION_DISABLE
  296. //#define S_CURVE_ACCELERATION_DISABLE
  297.  
  298. //================================================================================================
  299. // Language - This is provided for convenience and is unsupported with included product support.
  300. // We only test compile with English language. If you run into space issues disable some features.
  301. //================================================================================================
  302.  
  303. /**
  304. * LCD LANGUAGE
  305. *
  306. * Select the language to display on the LCD. These languages are available:
  307. *
  308. * en, an, bg, ca, cn, cz, cz_utf8, de, el, el-gr, es, eu, fi, fr, fr_utf8, gl,
  309. * hr, it, kana, kana_utf8, nl, pl, pt, pt_utf8, pt-br, pt-br_utf8, ru, sk_utf8,
  310. * tr, uk, zh_CN, zh_TW, test
  311. */
  312.  
  313. #define LCD_LANGUAGE en
  314.  
  315. #include "Configuration_backend.h"
  316.  
  317. #define UNIFIED_VERSION "TH3D U2.R1.7a"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement