My Marlin configs for Fabrikator Mini and CTC i3 Pro B
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

pins_3DRAG.h 4.8KB

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