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 6.1KB

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