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.h 30KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120
  1. #ifndef PINS_H
  2. #define PINS_H
  3. #if MOTHERBOARD == 99
  4. #define KNOWN_BOARD 1
  5. #define X_STEP_PIN 2
  6. #define X_DIR_PIN 3
  7. #define X_ENABLE_PIN -1
  8. #define X_MIN_PIN -1
  9. #define X_MAX_PIN 16
  10. #define Y_STEP_PIN 5
  11. #define Y_DIR_PIN 6
  12. #define Y_ENABLE_PIN -1
  13. #define Y_MIN_PIN 67
  14. #define Y_MAX_PIN -1
  15. #define Z_STEP_PIN 62
  16. #define Z_DIR_PIN 63
  17. #define Z_ENABLE_PIN -1
  18. #define Z_MIN_PIN 59
  19. #define Z_MAX_PIN -1
  20. #define E0_STEP_PIN 65
  21. #define E0_DIR_PIN 66
  22. #define E0_ENABLE_PIN -1
  23. #define SDPOWER -1
  24. #define SDSS 53
  25. #define LED_PIN -1
  26. #define FAN_PIN -1
  27. #define PS_ON_PIN 9
  28. #define KILL_PIN -1
  29. #define HEATER_0_PIN 13
  30. #define HEATER_1_PIN -1
  31. #define HEATER_2_PIN -1
  32. #define TEMP_0_PIN 6 // MUST USE ANALOG INPUT NUMBERING NOT DIGITAL OUTPUT NUMBERING!!!!!!!!!
  33. #define TEMP_1_PIN -1 // MUST USE ANALOG INPUT NUMBERING NOT DIGITAL OUTPUT NUMBERING!!!!!!!!!
  34. #define TEMP_2_PIN -1 // MUST USE ANALOG INPUT NUMBERING NOT DIGITAL OUTPUT NUMBERING!!!!!!!!!
  35. #define HEATER_BED_PIN 4
  36. #define TEMP_BED_PIN 10
  37. #endif /* 99 */
  38. /****************************************************************************************
  39. * Gen7 v1.1, v1.2, v1.3, v1.4 pin assignment
  40. *
  41. ****************************************************************************************/
  42. #if MOTHERBOARD == 13
  43. #define MOTHERBOARD 11
  44. #define GEN7_VERSION 14 // v1.4
  45. #endif
  46. #if MOTHERBOARD == 12
  47. #define MOTHERBOARD 11
  48. #define GEN7_VERSION 13 // v1.3
  49. #endif
  50. #if MOTHERBOARD == 11
  51. #define KNOWN_BOARD
  52. #if !defined(__AVR_ATmega644P__) && !defined(__AVR_ATmega644__) && !defined(__AVR_ATmega1284P__)
  53. #error Oops! Make sure you have 'Gen7' selected from the 'Tools -> Boards' menu.
  54. #endif
  55. #ifndef GEN7_VERSION
  56. #define GEN7_VERSION 12 // v1.x
  57. #endif
  58. //x axis pins
  59. #define X_STEP_PIN 19
  60. #define X_DIR_PIN 18
  61. #define X_ENABLE_PIN 24
  62. #define X_MIN_PIN 7
  63. #define X_MAX_PIN -1
  64. //y axis pins
  65. #define Y_STEP_PIN 23
  66. #define Y_DIR_PIN 22
  67. #define Y_ENABLE_PIN 24
  68. #define Y_MIN_PIN 5
  69. #define Y_MAX_PIN -1
  70. //z axis pins
  71. #define Z_STEP_PIN 26
  72. #define Z_DIR_PIN 25
  73. #define Z_ENABLE_PIN 24
  74. #define Z_MIN_PIN 1
  75. #define Z_MAX_PIN 0
  76. //extruder pins
  77. #define E0_STEP_PIN 28
  78. #define E0_DIR_PIN 27
  79. #define E0_ENABLE_PIN 24
  80. #define TEMP_0_PIN 1
  81. #define TEMP_1_PIN -1
  82. #define TEMP_2_PIN -1
  83. #define TEMP_BED_PIN 2
  84. #define HEATER_0_PIN 4
  85. #define HEATER_1_PIN -1
  86. #define HEATER_2_PIN -1
  87. #define HEATER_BED_PIN 3
  88. #define SDPOWER -1
  89. #define SDSS -1 // SCL pin of I2C header
  90. #define LED_PIN -1
  91. #if (GEN7_VERSION >= 13)
  92. // Gen7 v1.3 removed the fan pin
  93. #define FAN_PIN -1
  94. #else
  95. #define FAN_PIN 31
  96. #endif
  97. #define PS_ON_PIN 15
  98. #if (GEN7_VERSION < 14)
  99. // Gen 1.3 and earlier supplied thermistor power via PS_ON
  100. // Need to ignore the bad thermistor readings on those units
  101. #define BOGUS_TEMPERATURE_FAILSAFE_OVERRIDE
  102. #endif
  103. //our pin for debugging.
  104. #define DEBUG_PIN 0
  105. //our RS485 pins
  106. #define TX_ENABLE_PIN 12
  107. #define RX_ENABLE_PIN 13
  108. #endif
  109. /*******************************************************************************
  110. *********
  111. * Gen7 Alfons3 pin assignment
  112. *
  113. ********************************************************************************
  114. ********/
  115. /* These Pins are assigned for the modified GEN7 Board from Alfons3 Please review the pins and adjust it for your needs*/
  116. #if MOTHERBOARD == 10
  117. #define KNOWN_BOARD
  118. #if !defined(__AVR_ATmega644P__) && !defined(__AVR_ATmega644__) && !defined(__AVR_ATmega1284P__)
  119. #error Oops! Make sure you have 'Gen7' selected from the 'Tools -> Boards' menu.
  120. #endif
  121. //x axis pins
  122. #define X_STEP_PIN 21 //different from stanard GEN7
  123. #define X_DIR_PIN 20 //different from stanard GEN7
  124. #define X_ENABLE_PIN 24
  125. #define X_MIN_PIN 0
  126. #define X_MAX_PIN -1
  127. //y axis pins
  128. #define Y_STEP_PIN 23
  129. #define Y_DIR_PIN 22
  130. #define Y_ENABLE_PIN 24
  131. #define Y_MIN_PIN 1
  132. #define Y_MAX_PIN -1
  133. //z axis pins
  134. #define Z_STEP_PIN 26
  135. #define Z_DIR_PIN 25
  136. #define Z_ENABLE_PIN 24
  137. #define Z_MIN_PIN 2
  138. #define Z_MAX_PIN -1
  139. //extruder pins
  140. #define E0_STEP_PIN 28
  141. #define E0_DIR_PIN 27
  142. #define E0_ENABLE_PIN 24
  143. #define TEMP_0_PIN 2
  144. #define TEMP_1_PIN -1
  145. #define TEMP_2_PIN -1
  146. #define TEMP_BED_PIN 1 // MUST USE ANALOG INPUT NUMBERING NOT DIGITAL OUTPUT NUMBERING!!!!!!!!! (pin 34 bed)
  147. #define HEATER_0_PIN 4
  148. #define HEATER_1_PIN -1
  149. #define HEATER_2_PIN -1
  150. #define HEATER_BED_PIN 3 // (bed)
  151. #define SDPOWER -1
  152. #define SDSS 31 // SCL pin of I2C header || CS Pin for SD Card support
  153. #define LED_PIN -1
  154. #define FAN_PIN -1
  155. #define PS_ON_PIN 19
  156. //our pin for debugging.
  157. #define DEBUG_PIN -1
  158. //our RS485 pins
  159. //#define TX_ENABLE_PIN 12
  160. //#define RX_ENABLE_PIN 13
  161. #define BEEPER -1
  162. #define SDCARDDETECT -1
  163. #define SUICIDE_PIN -1 //has to be defined; otherwise Power_off doesn't work
  164. //Pins for 4bit LCD Support
  165. #define LCD_PINS_RS 18
  166. #define LCD_PINS_ENABLE 17
  167. #define LCD_PINS_D4 16
  168. #define LCD_PINS_D5 15
  169. #define LCD_PINS_D6 13
  170. #define LCD_PINS_D7 14
  171. //buttons are directly attached
  172. #define BTN_EN1 11
  173. #define BTN_EN2 10
  174. #define BTN_ENC 12 //the click
  175. #define BLEN_C 2
  176. #define BLEN_B 1
  177. #define BLEN_A 0
  178. #define encrot0 0
  179. #define encrot1 2
  180. #define encrot2 3
  181. #define encrot3 1
  182. #endif
  183. /****************************************************************************************
  184. * Arduino Mega pin assignment
  185. *
  186. ****************************************************************************************/
  187. #if MOTHERBOARD == 3 || MOTHERBOARD == 33 || MOTHERBOARD == 34
  188. #define KNOWN_BOARD 1
  189. //////////////////FIX THIS//////////////
  190. #ifndef __AVR_ATmega1280__
  191. #ifndef __AVR_ATmega2560__
  192. #error Oops! Make sure you have 'Arduino Mega' selected from the 'Tools -> Boards' menu.
  193. #endif
  194. #endif
  195. // uncomment one of the following lines for RAMPS v1.3 or v1.0, comment both for v1.2 or 1.1
  196. // #define RAMPS_V_1_3
  197. // #define RAMPS_V_1_0
  198. #if MOTHERBOARD == 33 || MOTHERBOARD == 34
  199. #define X_STEP_PIN 54
  200. #define X_DIR_PIN 55
  201. #define X_ENABLE_PIN 38
  202. #define X_MIN_PIN 3
  203. #define X_MAX_PIN 2 //2 //Max endstops default to disabled "-1", set to commented value to enable.
  204. #define Y_STEP_PIN 60
  205. #define Y_DIR_PIN 61
  206. #define Y_ENABLE_PIN 56
  207. #define Y_MIN_PIN 14
  208. #define Y_MAX_PIN 15 //15
  209. #define Z_STEP_PIN 46
  210. #define Z_DIR_PIN 48
  211. #define Z_ENABLE_PIN 62
  212. #define Z_MIN_PIN 18
  213. #define Z_MAX_PIN 19
  214. #define E0_STEP_PIN 26
  215. #define E0_DIR_PIN 28
  216. #define E0_ENABLE_PIN 24
  217. #define E1_STEP_PIN 36
  218. #define E1_DIR_PIN 34
  219. #define E1_ENABLE_PIN 30
  220. #define SDPOWER -1
  221. #define SDSS 53
  222. #define LED_PIN 13
  223. #if MOTHERBOARD == 33
  224. #define FAN_PIN 9 // (Sprinter config)
  225. #else
  226. #define FAN_PIN 4 // IO pin. Buffer needed
  227. #endif
  228. #define PS_ON_PIN 12
  229. #define KILL_PIN -1
  230. #define HEATER_0_PIN 10 // EXTRUDER 1
  231. #if MOTHERBOARD == 33
  232. #define HEATER_1_PIN -1
  233. #else
  234. #define HEATER_1_PIN 9 // EXTRUDER 2 (FAN On Sprinter)
  235. #endif
  236. #define HEATER_2_PIN -1
  237. #define TEMP_0_PIN 13 // ANALOG NUMBERING
  238. #define TEMP_1_PIN 15 // ANALOG NUMBERING
  239. #define TEMP_2_PIN -1 // ANALOG NUMBERING
  240. #define HEATER_BED_PIN 8 // BED
  241. #define TEMP_BED_PIN 14 // ANALOG NUMBERING
  242. #ifdef ULTRA_LCD
  243. #ifdef NEWPANEL
  244. //arduino pin which triggers an piezzo beeper
  245. #define BEEPER 33 // Beeper on AUX-4
  246. #define LCD_PINS_RS 16
  247. #define LCD_PINS_ENABLE 17
  248. #define LCD_PINS_D4 23
  249. #define LCD_PINS_D5 25
  250. #define LCD_PINS_D6 27
  251. #define LCD_PINS_D7 29
  252. //buttons are directly attached using AUX-2
  253. #define BTN_EN1 37
  254. #define BTN_EN2 35
  255. #define BTN_ENC 31 //the click
  256. #define BLEN_C 2
  257. #define BLEN_B 1
  258. #define BLEN_A 0
  259. #define SDCARDDETECT -1 // Ramps does not use this port
  260. //encoder rotation values
  261. #define encrot0 0
  262. #define encrot1 2
  263. #define encrot2 3
  264. #define encrot3 1
  265. #else //old style panel with shift register
  266. //arduino pin witch triggers an piezzo beeper
  267. #define BEEPER 33 No Beeper added
  268. //buttons are attached to a shift register
  269. // Not wired this yet
  270. //#define SHIFT_CLK 38
  271. //#define SHIFT_LD 42
  272. //#define SHIFT_OUT 40
  273. //#define SHIFT_EN 17
  274. #define LCD_PINS_RS 16
  275. #define LCD_PINS_ENABLE 17
  276. #define LCD_PINS_D4 23
  277. #define LCD_PINS_D5 25
  278. #define LCD_PINS_D6 27
  279. #define LCD_PINS_D7 29
  280. //encoder rotation values
  281. #define encrot0 0
  282. #define encrot1 2
  283. #define encrot2 3
  284. #define encrot3 1
  285. //bits in the shift register that carry the buttons for:
  286. // left up center down right red
  287. #define BL_LE 7
  288. #define BL_UP 6
  289. #define BL_MI 5
  290. #define BL_DW 4
  291. #define BL_RI 3
  292. #define BL_ST 2
  293. #define BLEN_B 1
  294. #define BLEN_A 0
  295. #endif
  296. #endif //ULTRA_LCD
  297. #else // RAMPS_V_1_1 or RAMPS_V_1_2 as default
  298. #define X_STEP_PIN 26
  299. #define X_DIR_PIN 28
  300. #define X_ENABLE_PIN 24
  301. #define X_MIN_PIN 3
  302. #define X_MAX_PIN -1 //2
  303. #define Y_STEP_PIN 38
  304. #define Y_DIR_PIN 40
  305. #define Y_ENABLE_PIN 36
  306. #define Y_MIN_PIN 16
  307. #define Y_MAX_PIN -1 //17
  308. #define Z_STEP_PIN 44
  309. #define Z_DIR_PIN 46
  310. #define Z_ENABLE_PIN 42
  311. #define Z_MIN_PIN 18
  312. #define Z_MAX_PIN -1 //19
  313. #define E0_STEP_PIN 32
  314. #define E0_DIR_PIN 34
  315. #define E0_ENABLE_PIN 30
  316. #define SDPOWER 48
  317. #define SDSS 53
  318. #define LED_PIN 13
  319. #define PS_ON_PIN -1
  320. #define KILL_PIN -1
  321. #ifdef RAMPS_V_1_0 // RAMPS_V_1_0
  322. #define HEATER_0_PIN 12 // RAMPS 1.0
  323. #define HEATER_BED_PIN -1 // RAMPS 1.0
  324. #define FAN_PIN 11 // RAMPS 1.0
  325. #else // RAMPS_V_1_1 or RAMPS_V_1_2
  326. #define HEATER_0_PIN 10 // RAMPS 1.1
  327. #define HEATER_BED_PIN 8 // RAMPS 1.1
  328. #define FAN_PIN 9 // RAMPS 1.1
  329. #endif
  330. #define HEATER_1_PIN -1
  331. #define HEATER_2_PIN -1
  332. #define TEMP_0_PIN 2 // MUST USE ANALOG INPUT NUMBERING NOT DIGITAL OUTPUT NUMBERING!!!!!!!!!
  333. #define TEMP_1_PIN -1
  334. #define TEMP_2_PIN -1
  335. #define TEMP_BED_PIN 1 // MUST USE ANALOG INPUT NUMBERING NOT DIGITAL OUTPUT NUMBERING!!!!!!!!!
  336. #endif
  337. // SPI for Max6675 Thermocouple
  338. #ifndef SDSUPPORT
  339. // these pins are defined in the SD library if building with SD support
  340. #define MAX_SCK_PIN 52
  341. #define MAX_MISO_PIN 50
  342. #define MAX_MOSI_PIN 51
  343. #define MAX6675_SS 53
  344. #else
  345. #define MAX6675_SS 49
  346. #endif
  347. #endif
  348. /****************************************************************************************
  349. * Duemilanove w/ ATMega328P pin assignment
  350. *
  351. ****************************************************************************************/
  352. #if MOTHERBOARD == 4
  353. #define KNOWN_BOARD 1
  354. #ifndef __AVR_ATmega328P__
  355. #error Oops! Make sure you have 'Arduino Duemilanove w/ ATMega328' selected from the 'Tools -> Boards' menu.
  356. #endif
  357. #define X_STEP_PIN 19
  358. #define X_DIR_PIN 18
  359. #define X_ENABLE_PIN -1
  360. #define X_MIN_PIN 17
  361. #define X_MAX_PIN -1
  362. #define Y_STEP_PIN 10
  363. #define Y_DIR_PIN 7
  364. #define Y_ENABLE_PIN -1
  365. #define Y_MIN_PIN 8
  366. #define Y_MAX_PIN -1
  367. #define Z_STEP_PIN 13
  368. #define Z_DIR_PIN 3
  369. #define Z_ENABLE_PIN 2
  370. #define Z_MIN_PIN 4
  371. #define Z_MAX_PIN -1
  372. #define E0_STEP_PIN 11
  373. #define E0_DIR_PIN 12
  374. #define E0_ENABLE_PIN -1
  375. #define SDPOWER -1
  376. #define SDSS -1
  377. #define LED_PIN -1
  378. #define FAN_PIN 5
  379. #define PS_ON_PIN -1
  380. #define KILL_PIN -1
  381. #define HEATER_0_PIN 6
  382. #define HEATER_1_PIN -1
  383. #define HEATER_2_PIN -1
  384. #define TEMP_0_PIN 0 // MUST USE ANALOG INPUT NUMBERING NOT DIGITAL OUTPUT NUMBERING!!!!!!!!!
  385. #define TEMP_1_PIN -1
  386. #define TEMP_2_PIN -1
  387. #define HEATER_BED_PIN -1
  388. #define TEMP_BED_PIN -1
  389. #endif
  390. /****************************************************************************************
  391. * Gen6 pin assignment
  392. *
  393. ****************************************************************************************/
  394. #if MOTHERBOARD == 5 || MOTHERBOARD == 51
  395. #define KNOWN_BOARD 1
  396. #ifndef __AVR_ATmega644P__
  397. #ifndef __AVR_ATmega1284P__
  398. #error Oops! Make sure you have 'Sanguino' selected from the 'Tools -> Boards' menu.
  399. #endif
  400. #endif
  401. //x axis pins
  402. #define X_STEP_PIN 15
  403. #define X_DIR_PIN 18
  404. #define X_ENABLE_PIN 19
  405. #define X_MIN_PIN 20
  406. #define X_MAX_PIN -1
  407. //y axis pins
  408. #define Y_STEP_PIN 23
  409. #define Y_DIR_PIN 22
  410. #define Y_ENABLE_PIN 24
  411. #define Y_MIN_PIN 25
  412. #define Y_MAX_PIN -1
  413. //z axis pins
  414. #define Z_STEP_PIN 27
  415. #define Z_DIR_PIN 28
  416. #define Z_ENABLE_PIN 29
  417. #define Z_MIN_PIN 30
  418. #define Z_MAX_PIN -1
  419. //extruder pins
  420. #define E0_STEP_PIN 4 //Edited @ EJE Electronics 20100715
  421. #define E0_DIR_PIN 2 //Edited @ EJE Electronics 20100715
  422. #define E0_ENABLE_PIN 3 //Added @ EJE Electronics 20100715
  423. #define TEMP_0_PIN 5 //changed @ rkoeppl 20110410
  424. #define TEMP_1_PIN -1 //changed @ rkoeppl 20110410
  425. #define TEMP_2_PIN -1 //changed @ rkoeppl 20110410
  426. #define HEATER_0_PIN 14 //changed @ rkoeppl 20110410
  427. #define HEATER_1_PIN -1
  428. #define HEATER_2_PIN -1
  429. #if MOTHERBOARD == 5
  430. #define HEATER_BED_PIN -1 //changed @ rkoeppl 20110410
  431. #define TEMP_BED_PIN -1 //changed @ rkoeppl 20110410
  432. #else
  433. #define HEATER_BED_PIN 1 //changed @ rkoeppl 20110410
  434. #define TEMP_BED_PIN 0 //changed @ rkoeppl 20110410
  435. #endif
  436. #define SDPOWER -1
  437. #define SDSS 17
  438. #define LED_PIN -1 //changed @ rkoeppl 20110410
  439. #define FAN_PIN -1 //changed @ rkoeppl 20110410
  440. #define PS_ON_PIN -1 //changed @ rkoeppl 20110410
  441. //our pin for debugging.
  442. #define DEBUG_PIN 0
  443. //our RS485 pins
  444. #define TX_ENABLE_PIN 12
  445. #define RX_ENABLE_PIN 13
  446. #endif
  447. /****************************************************************************************
  448. * Sanguinololu pin assignment
  449. *
  450. ****************************************************************************************/
  451. #if MOTHERBOARD == 62
  452. #undef MOTHERBOARD
  453. #define MOTHERBOARD 6
  454. #define SANGUINOLOLU_V_1_2
  455. #endif
  456. #if MOTHERBOARD == 6
  457. #define KNOWN_BOARD 1
  458. #ifndef __AVR_ATmega644P__
  459. #ifndef __AVR_ATmega1284P__
  460. #error Oops! Make sure you have 'Sanguino' selected from the 'Tools -> Boards' menu.
  461. #endif
  462. #endif
  463. #define X_STEP_PIN 15
  464. #define X_DIR_PIN 21
  465. #define X_MIN_PIN 18
  466. #define X_MAX_PIN -1
  467. #define Y_STEP_PIN 22
  468. #define Y_DIR_PIN 23
  469. #define Y_MIN_PIN 19
  470. #define Y_MAX_PIN -1
  471. #define Z_STEP_PIN 3
  472. #define Z_DIR_PIN 2
  473. #define Z_MIN_PIN 20
  474. #define Z_MAX_PIN -1
  475. #define E0_STEP_PIN 1
  476. #define E0_DIR_PIN 0
  477. #define LED_PIN -1
  478. #define FAN_PIN -1
  479. #define PS_ON_PIN -1
  480. #define KILL_PIN -1
  481. #define HEATER_0_PIN 13 // (extruder)
  482. #define HEATER_1_PIN -1
  483. #define HEATER_2_PIN -1
  484. #ifdef SANGUINOLOLU_V_1_2
  485. #define HEATER_BED_PIN 12 // (bed)
  486. #define X_ENABLE_PIN 14
  487. #define Y_ENABLE_PIN 14
  488. #define Z_ENABLE_PIN 26
  489. #define E0_ENABLE_PIN 14
  490. #else
  491. #define HEATER_BED_PIN 14 // (bed)
  492. #define X_ENABLE_PIN -1
  493. #define Y_ENABLE_PIN -1
  494. #define Z_ENABLE_PIN -1
  495. #define E0_ENABLE_PIN -1
  496. #endif
  497. #define TEMP_0_PIN 7 // MUST USE ANALOG INPUT NUMBERING NOT DIGITAL OUTPUT NUMBERING!!!!!!!!! (pin 33 extruder)
  498. #define TEMP_1_PIN -1
  499. #define TEMP_2_PIN -1
  500. #define TEMP_BED_PIN 6 // MUST USE ANALOG INPUT NUMBERING NOT DIGITAL OUTPUT NUMBERING!!!!!!!!! (pin 34 bed)
  501. #define SDPOWER -1
  502. #define SDSS 31
  503. #endif
  504. #if MOTHERBOARD == 7
  505. #define KNOWN_BOARD
  506. /*****************************************************************
  507. * Ultimaker pin assignment
  508. ******************************************************************/
  509. #ifndef __AVR_ATmega1280__
  510. #ifndef __AVR_ATmega2560__
  511. #error Oops! Make sure you have 'Arduino Mega' selected from the 'Tools -> Boards' menu.
  512. #endif
  513. #endif
  514. #define X_STEP_PIN 25
  515. #define X_DIR_PIN 23
  516. #define X_MIN_PIN 22
  517. #define X_MAX_PIN 24
  518. #define X_ENABLE_PIN 27
  519. #define Y_STEP_PIN 31
  520. #define Y_DIR_PIN 33
  521. #define Y_MIN_PIN 26
  522. #define Y_MAX_PIN 28
  523. #define Y_ENABLE_PIN 29
  524. #define Z_STEP_PIN 37
  525. #define Z_DIR_PIN 39
  526. #define Z_MIN_PIN 30
  527. #define Z_MAX_PIN 32
  528. #define Z_ENABLE_PIN 35
  529. #define HEATER_BED_PIN 4
  530. #define TEMP_BED_PIN 10
  531. #define HEATER_0_PIN 2
  532. #define TEMP_0_PIN 8
  533. #define HEATER_1_PIN 3
  534. #define TEMP_1_PIN 9
  535. #define HEATER_2_PIN -1
  536. #define TEMP_2_PIN -1
  537. #define E0_STEP_PIN 43
  538. #define E0_DIR_PIN 45
  539. #define E0_ENABLE_PIN 41
  540. #define E1_STEP_PIN 49
  541. #define E1_DIR_PIN 47
  542. #define E1_ENABLE_PIN 51
  543. #define SDPOWER -1
  544. #define SDSS 53
  545. #define LED_PIN 13
  546. #define FAN_PIN 7
  547. #define PS_ON_PIN 12
  548. #define KILL_PIN -1
  549. #define SUICIDE_PIN 54 //PIN that has to be turned on right after start, to keep power flowing.
  550. #ifdef ULTRA_LCD
  551. #ifdef NEWPANEL
  552. //arduino pin witch triggers an piezzo beeper
  553. #define BEEPER 18
  554. #define LCD_PINS_RS 20
  555. #define LCD_PINS_ENABLE 17
  556. #define LCD_PINS_D4 16
  557. #define LCD_PINS_D5 21
  558. #define LCD_PINS_D6 5
  559. #define LCD_PINS_D7 6
  560. //buttons are directly attached
  561. #define BTN_EN1 40
  562. #define BTN_EN2 42
  563. #define BTN_ENC 19 //the click
  564. #define BLEN_C 2
  565. #define BLEN_B 1
  566. #define BLEN_A 0
  567. #define SDCARDDETECT 38
  568. //encoder rotation values
  569. #define encrot0 0
  570. #define encrot1 2
  571. #define encrot2 3
  572. #define encrot3 1
  573. #else //old style panel with shift register
  574. //arduino pin witch triggers an piezzo beeper
  575. #define BEEPER 18
  576. //buttons are attached to a shift register
  577. #define SHIFT_CLK 38
  578. #define SHIFT_LD 42
  579. #define SHIFT_OUT 40
  580. #define SHIFT_EN 17
  581. #define LCD_PINS_RS 16
  582. #define LCD_PINS_ENABLE 5
  583. #define LCD_PINS_D4 6
  584. #define LCD_PINS_D5 21
  585. #define LCD_PINS_D6 20
  586. #define LCD_PINS_D7 19
  587. //encoder rotation values
  588. #define encrot0 0
  589. #define encrot1 2
  590. #define encrot2 3
  591. #define encrot3 1
  592. #define SDCARDDETECT -1
  593. //bits in the shift register that carry the buttons for:
  594. // left up center down right red
  595. #define BL_LE 7
  596. #define BL_UP 6
  597. #define BL_MI 5
  598. #define BL_DW 4
  599. #define BL_RI 3
  600. #define BL_ST 2
  601. #define BLEN_B 1
  602. #define BLEN_A 0
  603. #endif
  604. #endif //ULTRA_LCD
  605. #endif
  606. #if MOTHERBOARD == 71
  607. #define KNOWN_BOARD
  608. /*****************************************************************
  609. * Ultimaker pin assignment (Old electronics)
  610. ******************************************************************/
  611. #ifndef __AVR_ATmega1280__
  612. #ifndef __AVR_ATmega2560__
  613. #error Oops! Make sure you have 'Arduino Mega' selected from the 'Tools -> Boards' menu.
  614. #endif
  615. #endif
  616. #define X_STEP_PIN 25
  617. #define X_DIR_PIN 23
  618. #define X_MIN_PIN 15
  619. #define X_MAX_PIN 14
  620. #define X_ENABLE_PIN 27
  621. #define Y_STEP_PIN 31
  622. #define Y_DIR_PIN 33
  623. #define Y_MIN_PIN 17
  624. #define Y_MAX_PIN 16
  625. #define Y_ENABLE_PIN 29
  626. #define Z_STEP_PIN 37
  627. #define Z_DIR_PIN 39
  628. #define Z_MIN_PIN 19
  629. #define Z_MAX_PIN 18
  630. #define Z_ENABLE_PIN 35
  631. #define HEATER_BED_PIN -1
  632. #define TEMP_BED_PIN -1
  633. #define HEATER_0_PIN 2
  634. #define TEMP_0_PIN 8
  635. #define HEATER_1_PIN 1
  636. #define TEMP_1_PIN 1
  637. #define HEATER_2_PIN -1
  638. #define TEMP_2_PIN -1
  639. #define E0_STEP_PIN 43
  640. #define E0_DIR_PIN 45
  641. #define E0_ENABLE_PIN 41
  642. #define E1_STEP_PIN -1
  643. #define E1_DIR_PIN -1
  644. #define E1_ENABLE_PIN -1
  645. #define SDPOWER -1
  646. #define SDSS -1
  647. #define LED_PIN -1
  648. #define FAN_PIN -1
  649. #define PS_ON_PIN -1
  650. #define KILL_PIN -1
  651. #define SUICIDE_PIN -1 //PIN that has to be turned on right after start, to keep power flowing.
  652. #define LCD_PINS_RS 24
  653. #define LCD_PINS_ENABLE 22
  654. #define LCD_PINS_D4 36
  655. #define LCD_PINS_D5 34
  656. #define LCD_PINS_D6 32
  657. #define LCD_PINS_D7 30
  658. #endif
  659. /****************************************************************************************
  660. * Teensylu 0.7 pin assingments (ATMEGA90USB)
  661. * Requires the Teensyduino software with Teensy2.0++ selected in arduino IDE!
  662. ****************************************************************************************/
  663. #if MOTHERBOARD == 8
  664. #define MOTHERBOARD 8
  665. #define KNOWN_BOARD 1
  666. #define X_STEP_PIN 0
  667. #define X_DIR_PIN 1
  668. #define X_ENABLE_PIN 39
  669. #define X_MIN_PIN 13
  670. #define X_MAX_PIN -1
  671. #define Y_STEP_PIN 2
  672. #define Y_DIR_PIN 3
  673. #define Y_ENABLE_PIN 38
  674. #define Y_MIN_PIN 14
  675. #define Y_MAX_PIN -1
  676. #define Z_STEP_PIN 4
  677. #define Z_DIR_PIN 5
  678. #define Z_ENABLE_PIN 23
  679. #define Z_MIN_PIN 15
  680. #define Z_MAX_PIN -1
  681. #define E0_STEP_PIN 6
  682. #define E0_DIR_PIN 7
  683. #define E0_ENABLE_PIN 19
  684. #define HEATER_0_PIN 21 // Extruder
  685. #define HEATER_1_PIN -1
  686. #define HEATER_2_PIN -1
  687. #define HEATER_BED_PIN 20 // Bed
  688. #define FAN_PIN 22 // Fan
  689. #define TEMP_0_PIN 7 // Extruder
  690. #define TEMP_1_PIN -1
  691. #define TEMP_2_PIN -1
  692. #define TEMP_BED_PIN 6 // Bed
  693. #define SDPOWER -1
  694. #define SDSS 8
  695. #define LED_PIN -1
  696. #define PS_ON_PIN -1
  697. #define KILL_PIN -1
  698. #define ALARM_PIN -1
  699. #ifndef SDSUPPORT
  700. // these pins are defined in the SD library if building with SD support
  701. #define SCK_PIN 9
  702. #define MISO_PIN 11
  703. #define MOSI_PIN 10
  704. #endif
  705. #endif
  706. /****************************************************************************************
  707. * Gen3+ pin assignment
  708. *
  709. ****************************************************************************************/
  710. #if MOTHERBOARD == 9
  711. #define MOTHERBOARD 6
  712. #define KNOWN_BOARD 1
  713. #ifndef __AVR_ATmega644P__
  714. #ifndef __AVR_ATmega1284P__
  715. #error Oops! Make sure you have 'Sanguino' selected from the 'Tools -> Boards' menu.
  716. #endif
  717. #endif
  718. #define X_STEP_PIN 15
  719. #define X_DIR_PIN 18
  720. #define X_MIN_PIN 20
  721. #define X_MAX_PIN -1
  722. #define Y_STEP_PIN 23
  723. #define Y_DIR_PIN 22
  724. #define Y_MIN_PIN 25
  725. #define Y_MAX_PIN -1
  726. #define Z_STEP_PIN 27
  727. #define Z_DIR_PIN 28
  728. #define Z_MIN_PIN 30
  729. #define Z_MAX_PIN -1
  730. #define E_STEP_PIN 17
  731. #define E_DIR_PIN 21
  732. #define LED_PIN -1
  733. #define FAN_PIN -1
  734. #define PS_ON_PIN 14
  735. #define KILL_PIN -1
  736. #define HEATER_0_PIN 12 // (extruder)
  737. #define HEATER_1_PIN 16 // (bed)
  738. #define X_ENABLE_PIN 19
  739. #define Y_ENABLE_PIN 24
  740. #define Z_ENABLE_PIN 29
  741. #define E_ENABLE_PIN 13
  742. #define TEMP_0_PIN 0 // MUST USE ANALOG INPUT NUMBERING NOT DIGITAL OUTPUT NUMBERING!!!!!!!!! (pin 33 extruder)
  743. #define TEMP_1_PIN 5 // MUST USE ANALOG INPUT NUMBERING NOT DIGITAL OUTPUT NUMBERING!!!!!!!!! (pin 34 bed)
  744. #define TEMP_2_PIN -1
  745. #define SDPOWER -1
  746. #define SDSS 4
  747. #define HEATER_2_PIN -1
  748. #endif
  749. /****************************************************************************************
  750. * Open Motion controller with enable based extruders
  751. *
  752. * ATMega644
  753. *
  754. * +---\/---+
  755. * (D 0) PB0 1| |40 PA0 (AI 0 / D31)
  756. * (D 1) PB1 2| |39 PA1 (AI 1 / D30)
  757. * INT2 (D 2) PB2 3| |38 PA2 (AI 2 / D29)
  758. * PWM (D 3) PB3 4| |37 PA3 (AI 3 / D28)
  759. * PWM (D 4) PB4 5| |36 PA4 (AI 4 / D27)
  760. * MOSI (D 5) PB5 6| |35 PA5 (AI 5 / D26)
  761. * MISO (D 6) PB6 7| |34 PA6 (AI 6 / D25)
  762. * SCK (D 7) PB7 8| |33 PA7 (AI 7 / D24)
  763. * RST 9| |32 AREF
  764. * VCC 10| |31 GND
  765. * GND 11| |30 AVCC
  766. * XTAL2 12| |29 PC7 (D 23)
  767. * XTAL1 13| |28 PC6 (D 22)
  768. * RX0 (D 8) PD0 14| |27 PC5 (D 21) TDI
  769. * TX0 (D 9) PD1 15| |26 PC4 (D 20) TDO
  770. * INT0 RX1 (D 10) PD2 16| |25 PC3 (D 19) TMS
  771. * INT1 TX1 (D 11) PD3 17| |24 PC2 (D 18) TCK
  772. * PWM (D 12) PD4 18| |23 PC1 (D 17) SDA
  773. * PWM (D 13) PD5 19| |22 PC0 (D 16) SCL
  774. * PWM (D 14) PD6 20| |21 PD7 (D 15) PWM
  775. * +--------+
  776. *
  777. ****************************************************************************************/
  778. #if MOTHERBOARD == 90 //Alpha OMCA board
  779. #define KNOWN_BOARD 1
  780. #ifndef __AVR_ATmega644__
  781. #error Oops! Make sure you have 'SanguinoA' selected from the 'Tools -> Boards' menu.
  782. #endif
  783. #define X_STEP_PIN 21
  784. #define X_DIR_PIN 20
  785. #define X_ENABLE_PIN 24
  786. #define X_MIN_PIN 0
  787. #define X_MAX_PIN -1
  788. #define Y_STEP_PIN 23
  789. #define Y_DIR_PIN 22
  790. #define Y_ENABLE_PIN 24
  791. #define Y_MIN_PIN 1
  792. #define Y_MAX_PIN -1
  793. #define Z_STEP_PIN 26
  794. #define Z_DIR_PIN 25
  795. #define Z_ENABLE_PIN 24
  796. #define Z_MIN_PIN 2
  797. #define Z_MAX_PIN -1
  798. #define E0_STEP_PIN 28
  799. #define E0_DIR_PIN 27
  800. #define E0_ENABLE_PIN 24
  801. #define E1_STEP_PIN -1 // 19
  802. #define E1_DIR_PIN -1 // 18
  803. #define E1_ENABLE_PIN 24
  804. #define E2_STEP_PIN -1 // 17
  805. #define E2_DIR_PIN -1 // 16
  806. #define E2_ENABLE_PIN 24
  807. #define SDPOWER -1
  808. #define SDSS 11
  809. #define SDCARDDETECT -1 // 10 optional also used as mode pin
  810. #define LED_PIN -1
  811. #define FAN_PIN 3
  812. #define PS_ON_PIN -1
  813. #define KILL_PIN -1
  814. #define HEATER_0_PIN 4
  815. #define HEATER_1_PIN -1 // 12
  816. #define HEATER_2_PIN -1 // 13
  817. #define TEMP_0_PIN 0 //D27 // MUST USE ANALOG INPUT NUMBERING NOT DIGITAL OUTPUT NUMBERING!!!!!!!!!
  818. #define TEMP_1_PIN -1 // 1
  819. #define TEMP_2_PIN -1 // 2
  820. #define HEATER_BED_PIN -1 // 14/15
  821. #define TEMP_BED_PIN -1 // 1,2 or I2C
  822. /* Unused (1) (2) (3) 4 5 6 7 8 9 10 11 12 13 (14) (15) (16) 17 (18) (19) (20) (21) (22) (23) 24 (25) (26) (27) 28 (29) (30) (31) */
  823. #endif
  824. #if MOTHERBOARD == 91 // Final OMCA board -- REF http://sanguino.cc/hardware
  825. #define KNOWN_BOARD 1
  826. #if !defined(__AVR_ATmega644P__) && !defined(__AVR_ATmega644__)
  827. #error Oops! Make sure you have 'Sanguino' selected from the 'Tools -> Boards' menu. (Final OMCA board)
  828. #endif
  829. #define X_STEP_PIN 26
  830. #define X_DIR_PIN 25
  831. #define X_ENABLE_PIN 10
  832. #define X_MIN_PIN 0
  833. #define X_MAX_PIN -1
  834. #define Y_STEP_PIN 28
  835. #define Y_DIR_PIN 27
  836. #define Y_ENABLE_PIN 10
  837. #define Y_MIN_PIN 1
  838. #define Y_MAX_PIN -1
  839. #define Z_STEP_PIN 23
  840. #define Z_DIR_PIN 22
  841. #define Z_ENABLE_PIN 10
  842. #define Z_MIN_PIN 2
  843. #define Z_MAX_PIN -1
  844. #define E0_STEP_PIN 24
  845. #define E0_DIR_PIN 21
  846. #define E0_ENABLE_PIN 10
  847. /* future proofing */
  848. #define __FS 20
  849. #define __FD 19
  850. #define __GS 18
  851. #define __GD 13
  852. #define UNUSED_PWM 14 /* PWM on LEFT connector */
  853. #define E1_STEP_PIN -1 // 21
  854. #define E1_DIR_PIN -1 // 20
  855. #define E1_ENABLE_PIN -1 // 19
  856. #define E2_STEP_PIN -1 // 21
  857. #define E2_DIR_PIN -1 // 20
  858. #define E2_ENABLE_PIN -1 // 18
  859. #define SDPOWER -1
  860. #define SDSS 11
  861. #define SDCARDDETECT -1 // 10 optional also used as mode pin
  862. #define LED_PIN -1
  863. #define FAN_PIN 14 /* PWM on MIDDLE connector */
  864. #define PS_ON_PIN -1
  865. #define KILL_PIN -1
  866. #define HEATER_0_PIN 3 /*DONE PWM on RIGHT connector */
  867. #define HEATER_1_PIN -1
  868. #define HEATER_2_PIN -1
  869. #define HEATER_1_PIN -1
  870. #define HEATER_2_PIN -1
  871. #define TEMP_0_PIN 0 // ANALOG INPUT NUMBERING
  872. #define TEMP_1_PIN 1 // ANALOG
  873. #define TEMP_2_PIN -1 // 2
  874. #define HEATER_BED_PIN 4
  875. #define TEMP_BED_PIN 2 // 1,2 or I2C
  876. #define I2C_SCL 16
  877. #define I2C_SDA 17
  878. #endif
  879. #ifndef KNOWN_BOARD
  880. #error Unknown MOTHERBOARD value in configuration.h
  881. #endif
  882. //List of pins which to ignore when asked to change by gcode, 0 and 1 are RX and TX, do not mess with those!
  883. #define _E0_PINS E0_STEP_PIN, E0_DIR_PIN, E0_ENABLE_PIN, HEATER_0_PIN,
  884. #if EXTRUDERS > 1
  885. #define _E1_PINS E1_STEP_PIN, E1_DIR_PIN, E1_ENABLE_PIN, HEATER_1_PIN,
  886. #else
  887. #define _E1_PINS
  888. #endif
  889. #if EXTRUDERS > 2
  890. #define _E2_PINS E2_STEP_PIN, E2_DIR_PIN, E2_ENABLE_PIN, HEATER_2_PIN,
  891. #else
  892. #define _E2_PINS
  893. #endif
  894. #ifdef DISABLE_MAX_ENDSTOPS
  895. #define X_MAX_PIN -1
  896. #define Y_MAX_PIN -1
  897. #define Z_MAX_PIN -1
  898. #endif
  899. #define SENSITIVE_PINS {0, 1, X_STEP_PIN, X_DIR_PIN, X_ENABLE_PIN, X_MIN_PIN, X_MAX_PIN, Y_STEP_PIN, Y_DIR_PIN, Y_ENABLE_PIN, Y_MIN_PIN, Y_MAX_PIN, Z_STEP_PIN, Z_DIR_PIN, Z_ENABLE_PIN, Z_MIN_PIN, Z_MAX_PIN, LED_PIN, PS_ON_PIN, \
  900. HEATER_BED_PIN, FAN_PIN, \
  901. _E0_PINS _E1_PINS _E2_PINS \
  902. TEMP_0_PIN, TEMP_1_PIN, TEMP_2_PIN, TEMP_BED_PIN }
  903. #endif