My Marlin configs for Fabrikator Mini and CTC i3 Pro B
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

pins_PRINTRBOARD_G2.h 5.2KB

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