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.4KB

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