My Marlin configs for Fabrikator Mini and CTC i3 Pro B
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

pins_ARCHIM1.h 7.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205
  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. * ARCHIM1 pin assignment
  25. *
  26. * The Archim 1.0 board requires Arduino Archim addons installed.
  27. *
  28. * - Add the following URL to Arduino IDE's Additional Board Manager URLs:
  29. * https://raw.githubusercontent.com/ultimachine/ArduinoAddons/master/package_ultimachine_index.json
  30. *
  31. * - In the Arduino IDE Board Manager search for Archim and install the package.
  32. *
  33. * - Change your target board to "Archim".
  34. *
  35. * Further information on the UltiMachine website...
  36. * https://github.com/ultimachine/Archim/wiki
  37. */
  38. #if NOT_TARGET(__SAM3X8E__)
  39. #error "Oops! Select 'Archim' in 'Tools > Board.'"
  40. #endif
  41. #define BOARD_INFO_NAME "Archim 1.0"
  42. //
  43. // Timers
  44. //
  45. #define MF_TIMER_STEP 3
  46. #define HAL_STEP_TIMER_ISR() void TC3_Handler()
  47. //
  48. // Items marked * have been altered from Archim v1.0
  49. //
  50. //
  51. // Servos
  52. //
  53. #define SERVO0_PIN 20 // D20 PB12 (Header J20 20)
  54. #define SERVO1_PIN 21 // D21 PB13 (Header J20 19)
  55. //
  56. // Limit Switches
  57. //
  58. #define X_MIN_PIN 14 // PD4 MIN ES1
  59. #define X_MAX_PIN 32 // PD10 MAX ES1
  60. #define Y_MIN_PIN 29 // PD6 MIN ES2
  61. #define Y_MAX_PIN 15 // PD5 MAX ES2
  62. #define Z_MIN_PIN 31 // PA7 MIN ES3
  63. #define Z_MAX_PIN 30 // PD9 MAX ES3
  64. //
  65. // Z Probe (when not Z_MIN_PIN)
  66. //
  67. #ifndef Z_MIN_PROBE_PIN
  68. #define Z_MIN_PROBE_PIN 32
  69. #endif
  70. #ifndef FIL_RUNOUT_PIN
  71. #define FIL_RUNOUT_PIN 66 // D66 PB15 (Header J20 15)
  72. #endif
  73. #ifndef FIL_RUNOUT2_PIN
  74. #define FIL_RUNOUT2_PIN 67 // D67 PB16 (Header J20 16)
  75. #endif
  76. //
  77. // Steppers
  78. //
  79. #define X_STEP_PIN 40 // PC8 STEP1 *
  80. #define X_DIR_PIN 59 // PA4 DIR1 *
  81. #define X_ENABLE_PIN 41 // PC9 EN1
  82. #define Y_STEP_PIN 49 // PC14 STEP2 *
  83. #define Y_DIR_PIN 47 // PC16 DIR2 *
  84. #define Y_ENABLE_PIN 48 // PC15 EN2 *
  85. #define Z_STEP_PIN 36 // PC4 STEP Z *
  86. #define Z_DIR_PIN 107 // PB10 DIR Z *
  87. #define Z_ENABLE_PIN 96 // PC10 EN Z -AddOns *
  88. #define E0_STEP_PIN 78 // PB23 STEP3 *
  89. #define E0_DIR_PIN 22 // PB26 DIR3 *
  90. #define E0_ENABLE_PIN 97 // PB24 EN3 -Addons *
  91. #define E1_STEP_PIN 26 // PD1 STEP4 *
  92. #define E1_DIR_PIN 27 // PD2 DIR4 *
  93. #define E1_ENABLE_PIN 28 // PD3 EN4 *
  94. // Microstepping mode pins *
  95. #define X_MS1_PIN 39 // PC7 MOD0E1 - As listed in schematic
  96. #define X_MS2_PIN 38 // PC6 MOD1E1
  97. #define X_MS3_PIN 37 // PC5 MOD2E1
  98. #define Y_MS1_PIN 50 // PC13 MODE0E2
  99. #define Y_MS2_PIN 51 // PC12 MODE1E2
  100. #define Y_MS3_PIN 92 // PC11 MODE2E2 - AddOns
  101. #define Z_MS1_PIN 44 // PC19 MOD0E Z
  102. #define Z_MS2_PIN 45 // PC18 MOD1E Z
  103. #define Z_MS3_PIN 46 // PC17 MOD2E Z
  104. #define E0_MS1_PIN 105 // PB22 MOD0E3 - AddOns
  105. #define E0_MS2_PIN 106 // PC27 MOD1E3 - AddOns
  106. #define E0_MS3_PIN 104 // PC20 MOD2E3 - AddOns
  107. #define E1_MS1_PIN 25 // PD0 MOD0E4
  108. #define E1_MS2_PIN 18 // PA11 MOD1E4
  109. #define E1_MS3_PIN 19 // PA10 MOD2E4
  110. // Motor current PWM pins *
  111. #define MOTOR_CURRENT_PWM_X_PIN 58 // PA6 X-REF TIOB2
  112. #define MOTOR_CURRENT_PWM_Y_PIN 12 // PD8 Y-REF TIOB8
  113. #define MOTOR_CURRENT_PWM_Z_PIN 10 // PC29 Z-REF TIOB7
  114. #define MOTOR_CURRENT_PWM_E0_PIN 3 // PC28 E1-REF TIOA7
  115. #define MOTOR_CURRENT_PWM_E1_PIN 11 // PD7 E2-REF TIOA8
  116. #define MOTOR_CURRENT_PWM_RANGE 2750 // (3.3 Volts * 100000 Ohms) / (100000 Ohms + 20000 Ohms) = 2.75 Volts (max vref)
  117. #define DEFAULT_PWM_MOTOR_CURRENT { 1000, 1000, 1000 } //, 1000, 1000} // X Y Z E0 E1, 1000 = 1000mAh
  118. //
  119. // Temperature Sensors
  120. //
  121. #define TEMP_0_PIN 10 // D10 PB19 THERM AN1 *
  122. #define TEMP_1_PIN 9 // D9 PB18 THERM AN2 *
  123. #define TEMP_2_PIN 8 // D8 PB17 THERM AN4 *
  124. #define TEMP_BED_PIN 11 // D11 PB20 THERM AN3 *
  125. //
  126. // Heaters / Fans
  127. //
  128. #define HEATER_0_PIN 6 // D6 PC24 FET_PWM3
  129. #define HEATER_1_PIN 7 // D7 PC23 FET_PWM4
  130. #define HEATER_2_PIN 8 // D8 PC22 FET_PWM5
  131. #define HEATER_BED_PIN 9 // D9 PC21 BED_PWM
  132. #ifndef FAN_PIN
  133. #define FAN_PIN 4 // D4 PC26 FET_PWM1
  134. #endif
  135. #define FAN1_PIN 5 // D5 PC25 FET_PWM2
  136. //
  137. // Misc. Functions
  138. //
  139. // Internal MicroSD card reader on the PCB
  140. #define INT_SCK_PIN 42 // D42 PA19/MCCK
  141. #define INT_MISO_PIN 43 // D43 PA20/MCCDA
  142. #define INT_MOSI_PIN 73 // D73 PA21/MCDA0
  143. #define INT_SDSS 55 // D55 PA24/MCDA3
  144. // External SD card reader on SC2
  145. #define SD_SCK_PIN 76 // D76 PA27
  146. #define SD_MISO_PIN 74 // D74 PA25
  147. #define SD_MOSI_PIN 75 // D75 PA26
  148. #define SDSS 87 // D87 PA29
  149. // 2MB SPI Flash
  150. #define SPI_FLASH_SS 52 // D52 PB21
  151. //
  152. // LCD / Controller
  153. //
  154. #if HAS_WIRED_LCD
  155. #define BEEPER_PIN 23 // D24 PA15_CTS1
  156. #define LCD_PINS_RS 17 // D17 PA12_RXD1
  157. #define LCD_PINS_ENABLE 24 // D23 PA14_RTS1
  158. #define LCD_PINS_D4 69 // D69 PA0_CANTX0
  159. #define LCD_PINS_D5 54 // D54 PA16_SCK1
  160. #define LCD_PINS_D6 68 // D68 PA1_CANRX0
  161. #define LCD_PINS_D7 34 // D34 PC2_PWML0
  162. #define SD_DETECT_PIN 2 // D2 PB25_TIOA0
  163. #if IS_NEWPANEL
  164. // Buttons on AUX-2
  165. #define BTN_EN1 60 // D60 PA3_TIOB1
  166. #define BTN_EN2 13 // D13 PB27_TIOB0
  167. #define BTN_ENC 16 // D16 PA13_TXD1
  168. #endif // IS_NEWPANEL
  169. #if ENABLED(REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
  170. #define BTN_ENC_EN LCD_PINS_D7 // Detect the presence of the encoder
  171. #endif
  172. #endif // HAS_WIRED_LCD