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 4.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144
  1. /**
  2. * Marlin 3D Printer Firmware
  3. * Copyright (c) 2020 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 <https://www.gnu.org/licenses/>.
  20. *
  21. */
  22. #pragma once
  23. /**
  24. * Dreammaker Overlord v1.1 pin assignments
  25. */
  26. #if HOTENDS > 2 || E_STEPPERS > 2
  27. #error "Overlord supports up to 2 hotends / E steppers."
  28. #endif
  29. #include "env_validate.h"
  30. #define BOARD_INFO_NAME "OVERLORD"
  31. #define DEFAULT_MACHINE_NAME BOARD_INFO_NAME
  32. //
  33. // Limit Switches
  34. //
  35. #define X_STOP_PIN 24
  36. #define Y_STOP_PIN 28
  37. #define Z_MIN_PIN 46
  38. #define Z_MAX_PIN 32
  39. //
  40. // Z Probe (when not Z_MIN_PIN)
  41. //
  42. #ifndef Z_MIN_PROBE_PIN
  43. #define Z_MIN_PROBE_PIN 46 // JP4, Tfeed1
  44. #endif
  45. #ifndef FIL_RUNOUT_PIN
  46. #define FIL_RUNOUT_PIN 44 // JP3, Tfeed2
  47. #endif
  48. //
  49. // Steppers
  50. //
  51. #define X_STEP_PIN 25
  52. #define X_DIR_PIN 23
  53. #define X_ENABLE_PIN 27
  54. #define Y_STEP_PIN 31
  55. #define Y_DIR_PIN 33
  56. #define Y_ENABLE_PIN 29
  57. #define Z_STEP_PIN 37
  58. #define Z_DIR_PIN 39
  59. #define Z_ENABLE_PIN 35
  60. #define E0_STEP_PIN 43
  61. #define E0_DIR_PIN 45
  62. #define E0_ENABLE_PIN 41
  63. #define E1_STEP_PIN 49
  64. #define E1_DIR_PIN 47
  65. #define E1_ENABLE_PIN 48
  66. //
  67. // Temperature Sensors
  68. //
  69. #define TEMP_0_PIN 8 // Analog Input
  70. #define TEMP_1_PIN 9 // Analog Input - Redundant temp sensor
  71. #define TEMP_2_PIN 12 // Analog Input
  72. #define TEMP_3_PIN 14 // Analog Input
  73. #define TEMP_BED_PIN 10 // Analog Input
  74. //
  75. // Heaters / Fans
  76. //
  77. #define HEATER_0_PIN 2
  78. #define HEATER_1_PIN 3
  79. #define HEATER_BED_PIN 4
  80. #define FAN_PIN 7 // material cooling fan
  81. //
  82. // SD Card
  83. //
  84. #define SDSS 53
  85. #define SD_DETECT_PIN 38
  86. //
  87. // Misc. Functions
  88. //
  89. #define LED_PIN 13 // On PCB status led
  90. #define PS_ON_PIN 12 // For stepper/heater/fan power. Active HIGH.
  91. #define POWER_LOSS_PIN 34 // Power check - whether hotends/steppers/fans have power
  92. #if ENABLED(BATTERY_STATUS_AVAILABLE)
  93. #undef BATTERY_STATUS_PIN
  94. #define BATTERY_STATUS_PIN 26 // Status of power loss battery, whether it is charged (low) or charging (high)
  95. #endif
  96. #if ENABLED(INPUT_VOLTAGE_AVAILABLE)
  97. #undef VOLTAGE_DETECTION_PIN
  98. #define VOLTAGE_DETECTION_PIN 11 // Analog Input - ADC Voltage level of main input
  99. #endif
  100. //
  101. // LCD / Controller
  102. //
  103. #if HAS_WIRED_LCD
  104. // OVERLORD OLED pins
  105. #define LCD_PINS_RS 20
  106. #define LCD_PINS_D5 21
  107. #define LCD_PINS_ENABLE 15
  108. #define LCD_PINS_D4 14
  109. #define LCD_PINS_D6 5
  110. #define LCD_PINS_D7 6
  111. #ifndef LCD_RESET_PIN
  112. #define LCD_RESET_PIN 5 // LCD_PINS_D6
  113. #endif
  114. #endif
  115. #if IS_NEWPANEL
  116. #define BTN_ENC 16 // Enter Pin
  117. #define BTN_UP 19 // Button UP Pin
  118. #define BTN_DOWN 17 // Button DOWN Pin
  119. #endif
  120. // Additional connectors/pins on the Overlord V1.X board
  121. #define PCB_VERSION_PIN 22
  122. #define APPROACH_PIN 11 // JP7, Tpd
  123. #define GATE_PIN 36 // Threshold, JP6, Tg