My Marlin configs for Fabrikator Mini and CTC i3 Pro B
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

pins_OVERLORD.h 3.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144
  1. /**
  2. * Marlin 3D Printer Firmware
  3. * Copyright (c) 2019 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
  4. *
  5. * Based on Sprinter and grbl.
  6. * Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm
  7. *
  8. * This program is free software: you can redistribute it and/or modify
  9. * it under the terms of the GNU General Public License as published by
  10. * the Free Software Foundation, either version 3 of the License, or
  11. * (at your option) any later version.
  12. *
  13. * This program is distributed in the hope that it will be useful,
  14. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16. * GNU General Public License for more details.
  17. *
  18. * You should have received a copy of the GNU General Public License
  19. * along with this program. If not, see <http://www.gnu.org/licenses/>.
  20. *
  21. */
  22. #pragma once
  23. /**
  24. * Dreammaker Overlord v1.1 pin assignments
  25. */
  26. #ifndef __AVR_ATmega2560__
  27. #error "Oops! Select 'Arduino/Genuino Mega or Mega 2560' in 'Tools > Board.'"
  28. #elif HOTENDS > 2 || E_STEPPERS > 2
  29. #error "Overlord Controller supports up to 2 hotends / E-steppers. Comment out this line to continue."
  30. #endif
  31. #define BOARD_NAME "OVERLORD"
  32. #define DEFAULT_MACHINE_NAME BOARD_NAME
  33. //
  34. // Limit Switches
  35. //
  36. #define X_STOP_PIN 24
  37. #define Y_STOP_PIN 28
  38. #define Z_MIN_PIN 46
  39. #define Z_MAX_PIN 32
  40. //
  41. // Z Probe (when not Z_MIN_PIN)
  42. //
  43. #ifndef Z_MIN_PROBE_PIN
  44. #define Z_MIN_PROBE_PIN 46 // JP4, Tfeed1
  45. #endif
  46. #if ENABLED(FILAMENT_RUNOUT_SENSOR)
  47. #define FIL_RUNOUT_PIN 44 // JP3, Tfeed2
  48. #endif
  49. //
  50. // Steppers
  51. //
  52. #define X_STEP_PIN 25
  53. #define X_DIR_PIN 23
  54. #define X_ENABLE_PIN 27
  55. #define Y_STEP_PIN 31
  56. #define Y_DIR_PIN 33
  57. #define Y_ENABLE_PIN 29
  58. #define Z_STEP_PIN 37
  59. #define Z_DIR_PIN 39
  60. #define Z_ENABLE_PIN 35
  61. #define E0_STEP_PIN 43
  62. #define E0_DIR_PIN 45
  63. #define E0_ENABLE_PIN 41
  64. #define E1_STEP_PIN 49
  65. #define E1_DIR_PIN 47
  66. #define E1_ENABLE_PIN 48
  67. //
  68. // Temperature Sensors
  69. //
  70. #define TEMP_0_PIN 8 // Analog Input
  71. #define TEMP_1_PIN 9 // Analog Input - Redundant temp sensor
  72. #define TEMP_2_PIN 12 // Analog Input
  73. #define TEMP_3_PIN 14 // Analog Input
  74. #define TEMP_BED_PIN 10 // Analog Input
  75. //
  76. // Heaters / Fans
  77. //
  78. #define HEATER_0_PIN 2
  79. #define HEATER_1_PIN 3
  80. #define HEATER_BED_PIN 4
  81. #define FAN_PIN 7 // material cooling fan
  82. //
  83. // SD Card
  84. //
  85. #define SDSS 53
  86. #define SD_DETECT_PIN 38
  87. //
  88. // Misc. Functions
  89. //
  90. #define LED_PIN 13 // On PCB status led
  91. #define PS_ON_PIN 12 // For stepper/heater/fan power. Active HIGH.
  92. #define POWER_LOSS_PIN 34 // Power check - whether hotends/steppers/fans have power
  93. #if ENABLED(BATTERY_STATUS_AVAILABLE)
  94. #undef BATTERY_STATUS_PIN
  95. #define BATTERY_STATUS_PIN 26 // Status of power loss battery, whether it is charged (low) or charging (high)
  96. #endif
  97. #if ENABLED(INPUT_VOLTAGE_AVAILABLE)
  98. #undef VOLTAGE_DETECTION_PIN
  99. #define VOLTAGE_DETECTION_PIN 11 // Analog Input - ADC Voltage level of main input
  100. #endif
  101. //
  102. // LCD / Controller
  103. //
  104. #if HAS_GRAPHICAL_LCD
  105. // OVERLORD OLED pins
  106. #define LCD_PINS_RS 20
  107. #define LCD_PINS_D5 21
  108. #define LCD_PINS_ENABLE 15
  109. #define LCD_PINS_D4 14
  110. #define LCD_PINS_D6 5
  111. #define LCD_PINS_D7 6
  112. #ifndef LCD_RESET_PIN
  113. #define LCD_RESET_PIN 5 // LCD_PINS_D6
  114. #endif
  115. #endif
  116. #if ENABLED(NEWPANEL)
  117. #define BTN_ENC 16 // Enter Pin
  118. #define BTN_UP 19 // Button UP Pin
  119. #define BTN_DWN 17 // Button DOWN Pin
  120. #endif
  121. // Additional connectors/pins on the Overlord V1.X board
  122. #define PCB_VERSION_PIN 22
  123. #define APPROACH_PIN 11 // JP7, Tpd
  124. #define GATE_PIN 36 // Threshold, JP6, Tg