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_PRINTRBOARD_G2.h 5.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173
  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. /**
  23. * PRINTRBOARD_G2
  24. */
  25. #ifndef __SAM3X8E__
  26. #error "Oops! Select 'Arduino Due' in 'Tools > Board.'"
  27. #endif
  28. #ifndef BOARD_NAME
  29. #define BOARD_NAME "PRINTRBOARD_G2"
  30. #endif
  31. //
  32. // Servos
  33. //
  34. //#define SERVO0_PIN -1
  35. //#define SERVO1_PIN -1
  36. //
  37. // Limit Switches
  38. //
  39. #define X_MIN_PIN 22 // PB26
  40. #define Y_MAX_PIN 18 // PA11
  41. #define Z_MIN_PIN 19 // PA10
  42. //
  43. // Z Probe (when not Z_MIN_PIN)
  44. //
  45. #ifndef Z_MIN_PROBE_PIN
  46. #define Z_MIN_PROBE_PIN 22
  47. #endif
  48. #ifndef FIL_RUNOUT_PIN
  49. //#define FIL_RUNOUT_PIN 57 // PA22
  50. #endif
  51. #ifndef FIL_RUNOUT2_PIN
  52. //#define FIL_RUNOUT2_PIN 21 // PB13
  53. #endif
  54. //
  55. // LED defines
  56. //
  57. //#define NEOPIXEL_TYPE NEO_GRBW // NEO_GRBW / NEO_GRB - four/three channel driver type (defined in Adafruit_NeoPixel.h)
  58. //#define NEOPIXEL_PIN 20 // LED driving pin on motherboard
  59. //#define NEOPIXEL_PIXELS 3 // Number of LEDs in the strip
  60. //#define SDA0 20 // PB12 NeoPixel pin I2C data
  61. //#define SCL0 21 // PB13 I2C clock
  62. // D0_12 #REF! (INDICATOR_LED)
  63. // B28 JTAG-CLK
  64. // B31 JTAG_TMS /SWD_DIO
  65. //A18 INTERRUPT_OUT
  66. //A12 USART_RX not used
  67. //A13 USART_TX not used
  68. //A14 UART_RTS
  69. //A15 UART_CTS
  70. //PB2 Unassigned
  71. //PB4 to PB9 Unassigned
  72. //#define UART_RX_PIN 0 // PA8 "RX0"
  73. //#define UART_TX_PIN 1 // PA9 "TX0"
  74. //#define UART_RTS_PIN 23 // PA14
  75. //#define UART_CTS_PIN 24 // PA15
  76. //
  77. // Steppers
  78. //
  79. #define Z_STEP_PIN 73 // PA21 MOTOR 1
  80. #define Z_DIR_PIN 75 // PA26
  81. #define Z_ENABLE_PIN 74 // PA25
  82. #define X_STEP_PIN 66 // PB15 MOTOR 2
  83. #define X_DIR_PIN 54 // PA16
  84. #define X_ENABLE_PIN 67 // PB16
  85. #define Y_STEP_PIN 34 // PA29 MOTOR 3
  86. #define Y_DIR_PIN 35 // PB1
  87. #define Y_ENABLE_PIN 36 // PB0
  88. #define E0_STEP_PIN 53 // PB14 MOTOR 4
  89. #define E0_DIR_PIN 78 // PB23
  90. #define E0_ENABLE_PIN 37 // PB22
  91. // Microstepping mode pins
  92. #define Z_MS1_PIN 52 // PB21 MODE0 MOTOR 1
  93. #define Z_MS2_PIN 52 // PB21 MODE1
  94. #define Z_MS3_PIN 65 // PB20 MODE2
  95. #define X_MS1_PIN 43 // PA20 MODE0 MOTOR 2
  96. #define X_MS2_PIN 43 // PA20 MODE1
  97. #define X_MS3_PIN 42 // PA19 MODE2
  98. #define Y_MS1_PIN 77 // PA28 MODE0 MOTOR 3
  99. #define Y_MS2_PIN 77 // PA28 MODE1
  100. #define Y_MS3_PIN 76 // PA27 MODE2
  101. #define E0_MS1_PIN 38 // PB11 MODE0 MOTOR 4
  102. #define E0_MS2_PIN 38 // PB11 MODE1
  103. #define E0_MS3_PIN 39 // PB10 MODE2
  104. // Motor current PWM pins
  105. #define MOTOR_CURRENT_PWM_X_PIN 62 // PB17 MOTOR 1
  106. #define MOTOR_CURRENT_PWM_Z_PIN 63 // PB18 MOTOR 2
  107. #define MOTOR_CURRENT_PWM_Y_PIN 64 // PB19 MOTOR 3
  108. #define MOTOR_CURRENT_PWM_E_PIN 61 // PA2 MOTOR 4
  109. //#define DEFAULT_PWM_MOTOR_CURRENT { 300, 400, 1000} // XY Z E0, 1000 = 1000mAh
  110. //
  111. // Temperature Sensors
  112. //
  113. #define TEMP_0_PIN 2 // digital 56 PA23
  114. #define TEMP_BED_PIN 5 // digital 59 PA4
  115. //
  116. // Heaters / Fans
  117. //
  118. #define HEATER_0_PIN 40 // PA5
  119. #define HEATER_BED_PIN 41 // PB24
  120. #ifndef FAN_PIN
  121. #define FAN_PIN 13 // PB27 Fan1A
  122. #endif
  123. #define FAN1_PIN 58 // PA6 Fan1B
  124. #define FET_SAFETY_PIN 31 // PA7 must be pulsed low every 50 mS or FETs are turned off
  125. #define FET_SAFETY_DELAY 50 // 50 mS delay between pulses
  126. #define FET_SAFETY_INVERTED true // true - negative going pulse of 2 uS
  127. /////////////////////////////////////////////////////////
  128. #define MISO_PIN 68 // set to unused pins for now
  129. #define MOSI_PIN 69 // set to unused pins for now
  130. #define SCK_PIN 70 // set to unused pins for now
  131. #define SDSS 71 // set to unused pins for now
  132. /**
  133. * G2 uses 8 pins that are not available in the DUE environment:
  134. * 34 PA29 - Y_STEP_PIN
  135. * 35 PB1 - Y_DIR_PIN
  136. * 36 PB0 - Y_ENABLE_PIN
  137. * 37 PB22 - E0_ENABLE_PIN
  138. * 38 PB11 - E0_MS1_PIN - normally used by the USB native port
  139. * 39 PB10 - E0_MS3_PIN - normally used by the USB native port
  140. * 40 PA5 - HEATER_0_PIN
  141. * 41 PB24 - HEATER_BED_PIN
  142. *
  143. * None of these are in the arduino_due_x variant so digitalWrite and digitalRead can't be used on them.
  144. *
  145. * They can be accessed via FASTIO functions WRITE, READ, OUT_WRITE, OUTPUT, ...
  146. *
  147. */