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_3DRAG.h 4.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162
  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 <http://www.gnu.org/licenses/>.
  20. *
  21. */
  22. #pragma once
  23. /**
  24. * 3DRAG (and K8200 / K8400) Arduino Mega with RAMPS v1.4 pin assignments
  25. */
  26. #ifndef BOARD_INFO_NAME
  27. #define BOARD_INFO_NAME "3Drag"
  28. #endif
  29. #ifndef DEFAULT_MACHINE_NAME
  30. #define DEFAULT_MACHINE_NAME BOARD_INFO_NAME
  31. #endif
  32. #ifndef DEFAULT_SOURCE_CODE_URL
  33. #define DEFAULT_SOURCE_CODE_URL "http://3dprint.elettronicain.it/"
  34. #endif
  35. //
  36. // Heaters / Fans
  37. //
  38. #define RAMPS_D8_PIN 9
  39. #define RAMPS_D9_PIN 8
  40. #define MOSFET_D_PIN 12
  41. #define CASE_LIGHT_PIN -1 // Hardware PWM but one is not available on expansion header
  42. #include "pins_RAMPS.h"
  43. //
  44. // Limit Switches
  45. //
  46. #undef Z_MAX_PIN
  47. //
  48. // Steppers
  49. //
  50. #undef Z_ENABLE_PIN
  51. #define Z_ENABLE_PIN 63
  52. //
  53. // Heaters / Fans
  54. //
  55. #define HEATER_2_PIN 6
  56. //
  57. // Misc. Functions
  58. //
  59. #undef SDSS
  60. #define SDSS 25
  61. #undef SD_DETECT_PIN
  62. #define SD_DETECT_PIN 53
  63. //
  64. // LCD / Controller
  65. //
  66. #if BOTH(ULTRA_LCD, NEWPANEL)
  67. #undef BEEPER_PIN
  68. #undef LCD_PINS_RS
  69. #undef LCD_PINS_ENABLE
  70. #undef LCD_PINS_D4
  71. #undef LCD_PINS_D5
  72. #undef LCD_PINS_D6
  73. #undef LCD_PINS_D7
  74. #define LCD_PINS_RS 27
  75. #define LCD_PINS_ENABLE 29
  76. #define LCD_PINS_D4 37
  77. #define LCD_PINS_D5 35
  78. #define LCD_PINS_D6 33
  79. #define LCD_PINS_D7 31
  80. // Buttons
  81. #undef BTN_EN1
  82. #undef BTN_EN2
  83. #undef BTN_ENC
  84. #define BTN_EN1 16
  85. #define BTN_EN2 17
  86. #define BTN_ENC 23
  87. #else
  88. #define BEEPER_PIN 33
  89. #endif // HAS_SPI_LCD && NEWPANEL
  90. /**
  91. * M3/M4/M5 - Spindle/Laser Control
  92. *
  93. * If you want to control the speed of your spindle then you'll have
  94. * have to sacrifce the Extruder and pull some signals off the Z stepper
  95. * driver socket.
  96. *
  97. * The following assumes:
  98. * - the Z stepper driver socket is empty
  99. * - the extruder driver socket has a driver board plugged into it
  100. * - the Z stepper wires are attached the the extruder connector
  101. *
  102. * If you want to keep the extruder AND don't have a LCD display then
  103. * you can still control the power on/off and spindle direction.
  104. *
  105. * Where to get spindle signals
  106. *
  107. * stepper signal socket name socket name
  108. * -------
  109. * SPINDLE_LASER_ENA_PIN /ENABLE O| |O VMOT
  110. * MS1 O| |O GND
  111. * MS2 O| |O 2B
  112. * MS3 O| |O 2A
  113. * /RESET O| |O 1A
  114. * /SLEEP O| |O 1B
  115. * SPINDLE_LASER_PWM_PIN STEP O| |O VDD
  116. * SPINDLE_DIR_PIN DIR O| |O GND
  117. * -------
  118. *
  119. * Note: Socket names vary from vendor to vendor
  120. */
  121. #undef SPINDLE_LASER_PWM_PIN // Definitions in pins_RAMPS.h are not good with 3DRAG
  122. #undef SPINDLE_LASER_ENA_PIN
  123. #undef SPINDLE_DIR_PIN
  124. #if HAS_CUTTER
  125. #if !EXTRUDERS
  126. #undef E0_DIR_PIN
  127. #undef E0_ENABLE_PIN
  128. #undef E0_STEP_PIN
  129. #undef Z_DIR_PIN
  130. #undef Z_ENABLE_PIN
  131. #undef Z_STEP_PIN
  132. #define Z_DIR_PIN 28
  133. #define Z_ENABLE_PIN 24
  134. #define Z_STEP_PIN 26
  135. #define SPINDLE_LASER_PWM_PIN 46 // Hardware PWM
  136. #define SPINDLE_LASER_ENA_PIN 62 // Pullup!
  137. #define SPINDLE_DIR_PIN 48
  138. #elif !BOTH(ULTRA_LCD, NEWPANEL) // use expansion header if no LCD in use
  139. #define SPINDLE_LASER_ENA_PIN 16 // Pullup or pulldown!
  140. #define SPINDLE_DIR_PIN 17
  141. #endif
  142. #endif