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_DUPLICATOR_I3_PLUS.h 5.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184
  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. * Wanhao Duplicator i3 Plus pin assignments
  25. */
  26. #ifndef __AVR_ATmega2560__
  27. #error "Oops! Select 'Arduino/Genuino Mega or Mega 2560' in 'Tools > Board.'"
  28. #endif
  29. #define BOARD_NAME "Duplicator i3 Plus"
  30. //
  31. // Limit Switches
  32. //
  33. #define X_STOP_PIN 54 // PF0 / A0
  34. #define Y_STOP_PIN 24 // PA2 / AD2
  35. #define Z_MIN_PIN 23 // PA1 / AD1
  36. #define Z_MAX_PIN 25 // PA3 / AD3
  37. #define SERVO0_PIN 40 // PG1 / !RD
  38. //
  39. // Steppers
  40. //
  41. #define X_STEP_PIN 61 // PF7 / A7
  42. #define X_DIR_PIN 62 // PK0 / A8
  43. #define X_ENABLE_PIN 60 // PF6 / A6
  44. #define Y_STEP_PIN 64 // PK2 / A10
  45. #define Y_DIR_PIN 65 // PK3 / A11
  46. #define Y_ENABLE_PIN 63 // PK1 / A9
  47. #define Z_STEP_PIN 67 // PK5 / A13
  48. #define Z_DIR_PIN 69 // PK7 / A15
  49. #define Z_ENABLE_PIN 66 // PK4 / A12
  50. #define Z_MIN_PROBE_PIN 25 // PA3 / AD3
  51. #define E0_STEP_PIN 58 // PF4 / A4
  52. #define E0_DIR_PIN 59 // PF5 / A5
  53. #define E0_ENABLE_PIN 57 // PF3 / A3
  54. //
  55. // Temperature Sensors
  56. //
  57. #define TEMP_0_PIN 1 // PF1 / A1 Analog
  58. #define TEMP_BED_PIN 14 // PK6 / A14 Analog
  59. //
  60. // Heaters / Fans
  61. //
  62. #define HEATER_0_PIN 4 // PG5 / PWM4
  63. #define HEATER_BED_PIN 3 // PE5 / PWM3
  64. #define FAN_PIN 5 // PE3 / PWM5
  65. //
  66. // Misc. Functions
  67. //
  68. #define SDSS 53 // PB0 / SS
  69. #define LED_PIN 13 // PB7 / PWM13
  70. #define MISO_PIN 50 // PB3
  71. #define MOSI_PIN 51 // PB2
  72. #define SCK_PIN 52 // PB1
  73. //
  74. // LCDs and Controllers
  75. //
  76. #if HAS_SPI_LCD
  77. #if ENABLED(ZONESTAR_LCD)
  78. #define LCD_PINS_RS 2
  79. #define LCD_PINS_ENABLE 36
  80. #define LCD_PINS_D4 37
  81. #define LCD_PINS_D5 34
  82. #define LCD_PINS_D6 35
  83. #define LCD_PINS_D7 32
  84. #define ADC_KEYPAD_PIN 12 // Analog
  85. #endif
  86. #endif
  87. /**
  88. * == EXT connector ==
  89. *
  90. * 2 4 6 8 10
  91. * #---------------#
  92. * #2 | ° ° ° ° ° |
  93. * #1 | ° ° ° ° ° |
  94. * #---------------#
  95. * 1 3 5 7 9
  96. *
  97. * ##################################
  98. * # Pin | ATMEGA2560 Pin | Arduino #
  99. * ##################################
  100. * # 1 | 52 / PG1 (!RD) | 40 #
  101. * # 2 | 95 / PF2 (A2) | 2 #
  102. * # 3 | 54 / PC1 (A9) | 36 #
  103. * # 4 | 53 / PC0 (A8) | 37 #
  104. * # 5 | 56 / PC3 (A11) | 34 #
  105. * # 6 | 55 / PC2 (A10) | 35 #
  106. * # 7 | 58 / PC5 (A13) | 32 #
  107. * # 8 | 57 / PC4 (A12) | 33 #
  108. * # 9 | GND | - #
  109. * # 10 | VCC | + #
  110. * ##################################
  111. *
  112. * @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
  113. *
  114. * == Z-probe connector ==
  115. *
  116. * 1 2 3
  117. * #---------#
  118. * | ° ° ° |
  119. * #---------#
  120. *
  121. * ##################################
  122. * # Pin | ATMEGA2560 Pin | Arduino #
  123. * ##################################
  124. * # 1 | 24V or 5V | + #
  125. * # 2 | 75 / PA3 (AD3) | 25 #
  126. * # 3 | GND | - #
  127. * ##################################
  128. *
  129. * @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
  130. *
  131. * == Y-endstop == == Z-endstop == == Bed temperature ==
  132. *
  133. * 1 2 1 2 1 2
  134. * #------# #------# #------#
  135. * | ° ° | | ° ° | | ° ° |
  136. * #------# #------# #------#
  137. *
  138. * ############### Y ################ ############### Z ################ ############## BED ###############
  139. * # Pin | ATMEGA2560 Pin | Arduino # # Pin | ATMEGA2560 Pin | Arduino # # Pin | ATMEGA2560 Pin | Arduino #
  140. * ################################## ################################## ##################################
  141. * # 1 | GND | - # # 1 | GND | - # # 1 | GND | - #
  142. * # 2 | 76 / PA2 (AD2) | 24 # # 2 | 77 / PA1 (AD1) | 23 # # 2 |83 / PK6 (ADC14)| 14 #
  143. * ################################## ################################## ##################################
  144. *
  145. * @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
  146. *
  147. * == SPI connector ==
  148. *
  149. * 5 3 1
  150. * #---------#
  151. * | ° ° ° |
  152. * | ° ° ° |
  153. * #---------#
  154. * 6 4 2
  155. *
  156. * ##################################
  157. * # Pin | ATMEGA2560 Pin | Arduino #
  158. * ##################################
  159. * # 1 | 22 / PB3 (MISO)| 50 #
  160. * # 2 | VCC | + #
  161. * # 3 | 20 / PB1 (SCK) | 52 #
  162. * # 4 | 21 / PB2 (MOSI)| 51 #
  163. * # 5 | 30 / !RESET | RESET #
  164. * # 6 | GND | - #
  165. * ##################################
  166. *
  167. * Pictogram by Ludy https://github.com/Ludy87
  168. * See: https://sebastien.andrivet.com/en/posts/wanhao-duplicator-i3-plus-3d-printer/
  169. */