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_TRONXY_V3_1_0.h 9.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278
  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. * Arduino Mega for Tronxy X5S-2E, etc.
  24. */
  25. #ifndef __AVR_ATmega2560__
  26. #error "Oops! Select 'Arduino/Genuino Mega or Mega 2560' in 'Tools > Board.'"
  27. #endif
  28. #if HOTENDS > 2 || E_STEPPERS > 2
  29. #error "TRONXY-V3-1.0 supports only 2 hotends/E-steppers. Comment out this line to continue."
  30. #endif
  31. #define BOARD_NAME "TRONXY-V3-1.0"
  32. #include "pins_RAMPS.h"
  33. //
  34. // Servos
  35. //
  36. #undef SERVO1_PIN
  37. #define SERVO1_PIN 12 // 2560 PIN 25/PB6
  38. /**
  39. * @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
  40. *
  41. * ===== AUX-1 connector =====
  42. *
  43. * 2 4 6 8
  44. * #----------------#
  45. * #2 | ° ° ° ° |
  46. * #1 | ° ° ° ° |
  47. * NOTCH #------ ------#
  48. * 1 3 5 7
  49. *
  50. * ###################################
  51. * # Pin | ATMEGA2560 Pin | Arduino #
  52. * ###################################
  53. * # 1 | VCC | + #
  54. * # 2 | VCC | + #
  55. * # 3 | GND | - #
  56. * # 4 | GND | - #
  57. * # 5 | N/C | #
  58. * # 6 | 3 / PE1 (TXD0) | D1 #
  59. * # 7 | N/C | #
  60. * # 8 | 2 / PE0 (RXD0) | D0 #
  61. * ###################################
  62. *
  63. * @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
  64. *
  65. * ===== Limit Switch connectors =====
  66. *
  67. * ############## X+ #################
  68. * X+ # Pin | ATMEGA2560 Pin | Arduino #
  69. * 1 2 3 ###################################
  70. * #- --- -# # 1 | 6 / PE4 (INT4) | D2 #
  71. * | ° ° ° | # 2 | GND | - #
  72. * #-------# # 3 | VCC | + #
  73. * ###################################
  74. *
  75. * ############## X- #################
  76. * X- # Pin | ATMEGA2560 Pin | Arduino #
  77. * 1 2 3 ###################################
  78. * #- --- -# # 1 | 7 / PE5 (INT5) | D3 #
  79. * | ° ° ° | # 2 | GND | - #
  80. * #-------# # 3 | VCC | + #
  81. * ###################################
  82. *
  83. * ############## Y+ #################
  84. * Y+ # Pin | ATMEGA2560 Pin | Arduino #
  85. * 1 2 3 ###################################
  86. * #- --- -# # 1 | 63/PJ0 (PCINT9) | D15 #
  87. * | ° ° ° | # 2 | GND | - #
  88. * #-------# # 3 | VCC | + #
  89. * ###################################
  90. *
  91. * ############## Y- #################
  92. * Y- # Pin | ATMEGA2560 Pin | Arduino #
  93. * 1 2 3 ###################################
  94. * #- --- -# # 1 | 64/PJ1 (PCINT10)| D14 #
  95. * | ° ° ° | # 2 | GND | - #
  96. * #-------# # 3 | VCC | + #
  97. * ###################################
  98. *
  99. * ############## Z+ #################
  100. * Z+ # Pin | ATMEGA2560 Pin | Arduino #
  101. * 1 2 3 ###################################
  102. * #- --- -# # 1 | 45 / PD2 (INT2) | D19 #
  103. * | ° ° ° | # 2 | GND | - #
  104. * #-------# # 3 | VCC | + #
  105. * ###################################
  106. *
  107. * ############## Z- #################
  108. * Z- # Pin | ATMEGA2560 Pin | Arduino #
  109. * 1 2 3 ###################################
  110. * #- --- -# # 1 | 46 / PD3 (INT3) | D18 #
  111. * | ° ° ° | # 2 | GND | - #
  112. * #-------# # 3 | VCC | + #
  113. * ###################################
  114. *
  115. * @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
  116. *
  117. * ===== EXP1/EXP2 connectors =====
  118. *
  119. * (NOTE ORDER) EXP2 EXP1
  120. * 2 4 6 8 10 2 4 6 8 10
  121. * #-------------------# #-------------------#
  122. * #2 | ° ° ° ° ° | #2 | ° ° ° ° ° |
  123. * #1 | ° ° ° ° ° | #1 | ° ° ° ° ° |
  124. * NOTCH #-------- -------# NOTCH #-------- -------#
  125. * 1 3 5 7 9 1 3 5 7 9
  126. *
  127. * ############# EXP1 ################
  128. * # Pin | ATMEGA2560 Pin | Arduino #
  129. * ###################################
  130. * # 1 | 53 / PC0 | D37 #
  131. * # 2 | 55 / PC2 | D35 #
  132. * # 3 | 12 / PH0 (RXD2) | D17 #
  133. * # 4 | 13 / PH1 (TXD2) | D16 #
  134. * # 5 | 77 / PA1 | D23 #
  135. * # 6 | 75 / PA3 | D25 #
  136. * # 7 | 73 / PA5 | D27 #
  137. * # 8 | 71 / PA7 | D29 #
  138. * # 9 | GND | - #
  139. * # 10 | VCC | + #
  140. * ###################################
  141. *
  142. * ############# EXP2 ################
  143. * # Pin | ATMEGA2560 Pin | Arduino #
  144. * ###################################
  145. * # 1 | 22 / PB3 (MISO) | D50 #
  146. * # 2 | 20 / PB1 (SCK) | D52 #
  147. * # 3 | 59 / PC6 | D31 #
  148. * # 4 | N/C | #
  149. * # 5 | 57 / PC4 | D33 #
  150. * # 6 | 21 / PB2 (MOSI) | D51 #
  151. * # 7 | N/C | #
  152. * # 8 | 30 / !RESET | RESET #
  153. * # 9 | GND | - #
  154. * # 10 | 51 / PG0 | D41 #
  155. * ###################################
  156. *
  157. * @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
  158. *
  159. * ===== ICSP connector =====
  160. *
  161. * 2 4 6
  162. * #---------#
  163. * | ° ° ° |
  164. * | ° ° ° |
  165. * #---------#
  166. * 1 3 5
  167. *
  168. * ##################################
  169. * # Pin | ATMEGA2560 Pin | Arduino #
  170. * ##################################
  171. * # 1 | 22 / PB3 (MISO)| 50 #
  172. * # 2 | VCC | + #
  173. * # 3 | 20 / PB1 (SCK) | 52 #
  174. * # 4 | 21 / PB2 (MOSI)| 51 #
  175. * # 5 | 30 / !RESET | RESET #
  176. * # 6 | GND | - #
  177. * ##################################
  178. *
  179. * @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
  180. *
  181. * ===== SERVOS connector =====
  182. *
  183. * 2 4 6
  184. * #---------#
  185. * | ° ° ° |
  186. * | ° ° ° |
  187. * #---------#
  188. * 1 3 5
  189. *
  190. * ##################################
  191. * # Pin | ATMEGA2560 Pin | Arduino #
  192. * ##################################
  193. * # 1 | 25 / PB6 (OC1B)| D12 #
  194. * # 2 | 24 / PB5 (OC1A)| D11 #
  195. * # 3 | GND | - #
  196. * # 4 | GND | - #
  197. * # 5 | VCC | + #
  198. * # 6 | VCC | + #
  199. * ##################################
  200. *
  201. * NOTE: Pins 1 and 2 are the ones closest to the "L" and "PWR" LEDs.
  202. *
  203. * NOTE: Check servo wiring before connecting, for example:
  204. * + Airtronics (non-Z) use: Red = +; Black = -; Black & White, White or Orange = signal.
  205. * + Airtronics-Z use: Red = +; Black = -; Blue = signal.
  206. * + Futaba use: Red = +; Black = -; White = signal.
  207. * + Hitec use: Red = +; Black = -; Yellow = signal.
  208. * + JR use: Red = +; Brown = -; Orange = signal.
  209. *
  210. * NOTE: Test your servo limits:
  211. * Due to effects of component tolerances and/or age, the usable range of S-values for individual servos may be less than the settable 0-255 range. For example:
  212. * 1. One servo may have a fully usable range of M280 P0 S0 through M280 P0 S255.
  213. * 2. A different servo (of the same brand and model) may have a usable range of only M280 P0 S0 through M280 P0 S165 after which you experience binding.
  214. *
  215. * @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
  216. *
  217. * ===== Thermistor connectors =====
  218. *
  219. * (NOTE ORDER) TH2 TH1 TB
  220. * 1 2 1 2 1 2
  221. * #- -# #- -# #- -#
  222. * | ° ° | | ° ° | | ° ° |
  223. * #-----# #-----# #-----#
  224. *
  225. * ############## TB #################
  226. * # Pin | ATMEGA2560 Pin | Arduino #
  227. * ###################################
  228. * # 1 | GND | - #
  229. * # 2 | 83 / PK6 (ADC14)| A14 #
  230. * ###################################
  231. *
  232. * ############## TH1 ################
  233. * # Pin | ATMEGA2560 Pin | Arduino #
  234. * ###################################
  235. * # 1 | GND | - #
  236. * # 2 | 84 / PK5 (ADC13)| A13 #
  237. * ###################################
  238. *
  239. * ############## TH2 ################
  240. * # Pin | ATMEGA2560 Pin | Arduino #
  241. * ###################################
  242. * # 1 | GND | - #
  243. * # 2 | 82 / PK7 (ADC15)| A15 #
  244. * ###################################
  245. *
  246. * @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
  247. *
  248. * ===== XS3 connector =====
  249. *
  250. * 2 4 6
  251. * #---------#
  252. * | ° ° ° |
  253. * | ° ° ° |
  254. * #---------#
  255. * 1 3 5
  256. *
  257. * ##################################
  258. * # Pin | ATMEGA2560 Pin | Arduino #
  259. * ##################################
  260. * # 1 | 85 / ADC12 | A12 #
  261. * # 2 | 86 / ADC11 | A11 #
  262. * # 3 | GND | - #
  263. * # 4 | GND | - #
  264. * # 5 | VCC | + #
  265. * # 6 | VCC | + #
  266. * ##################################
  267. *
  268. * NOTE: Pins 1 and 2 are the ones closest to the "L" and "PWR" LEDs.
  269. *
  270. * @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
  271. */