pins_Rambo.h 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162
  1. /*****************************************************************
  2. * Rambo Pin Assignments
  3. ******************************************************************/
  4. #define ELECTRONICS "RAMBoBig"
  5. #define KNOWN_BOARD
  6. #ifndef __AVR_ATmega2560__
  7. #error Oops! Make sure you have 'Arduino Mega 2560' selected from the 'Tools -> Boards' menu.
  8. #endif
  9. #define FR_SENS 21
  10. #define X_STEP_PIN 37
  11. #define X_DIR_PIN 48
  12. #define X_MIN_PIN 12
  13. #define X_MAX_PIN 30
  14. #define X_ENABLE_PIN 29
  15. #define X_MS1_PIN 40
  16. #define X_MS2_PIN 41
  17. #define Y_STEP_PIN 36
  18. #define Y_DIR_PIN 49
  19. #define Y_MIN_PIN 11
  20. #define Y_MAX_PIN 24
  21. #define Y_ENABLE_PIN 28
  22. #define Y_MS1_PIN 69
  23. #define Y_MS2_PIN 39
  24. #define Z_STEP_PIN 35
  25. #define Z_DIR_PIN 47
  26. #define Z_MIN_PIN 10
  27. #define Z_MAX_PIN 23
  28. #define Z_ENABLE_PIN 27
  29. #define Z_MS1_PIN 68
  30. #define Z_MS2_PIN 67
  31. #define TEMP_BED_PIN 2
  32. #define TEMP_0_PIN 0
  33. #define HEATER_1_PIN 7
  34. #define TEMP_1_PIN 1
  35. #define TEMP_2_PIN -1
  36. #ifdef SNMM
  37. #define E_MUX0_PIN 17
  38. #define E_MUX1_PIN 16
  39. #define E_MUX2_PIN 84
  40. #endif
  41. #ifdef DIS
  42. #define D_REQUIRE 30
  43. #define D_DATA 20
  44. #define D_DATACLOCK 21
  45. #endif
  46. // The SDSS pin uses a different pin mapping from file Sd2PinMap.h
  47. #define SDSS 53
  48. #ifndef SDSUPPORT
  49. // these pins are defined in the SD library if building with SD support
  50. #define SCK_PIN 52
  51. #define MISO_PIN 50
  52. #define MOSI_PIN 51
  53. #endif
  54. #define BEEPER 84
  55. #define BTN_EN1 72
  56. #define BTN_EN2 14
  57. #define BTN_ENC 9
  58. #define SDCARDDETECT 15
  59. #define LCD_PINS_RS 82
  60. #define LCD_PINS_ENABLE 18
  61. #define LCD_PINS_D4 19
  62. #define LCD_PINS_D5 70
  63. #define LCD_PINS_D6 85
  64. #define LCD_PINS_D7 71
  65. #define E0_STEP_PIN 34
  66. #define E0_DIR_PIN 43
  67. #define E0_ENABLE_PIN 26
  68. #define E0_MS1_PIN 65
  69. #define E0_MS2_PIN 66
  70. #define LED_PIN 13
  71. #ifdef THREEMM_PRINTER
  72. #define FAN_PIN 8
  73. #else
  74. #define FAN_PIN 6
  75. #endif
  76. #define KILL_PIN -1 //80 with Smart Controller LCD
  77. #define SUICIDE_PIN -1 //PIN that has to be turned on right after start, to keep power flowing.
  78. #define SDPOWER -1
  79. #define HEATER_2_PIN -1
  80. #define E1_STEP_PIN 33
  81. #define E1_DIR_PIN 42
  82. #define E1_ENABLE_PIN 25
  83. #define E1_MS1_PIN 63
  84. #define E1_MS2_PIN 64
  85. #define DIGIPOTSS_PIN 38
  86. #define DIGIPOT_CHANNELS {4,5,3,0,1} // X Y Z E0 E1 digipot channels to stepper driver mapping
  87. #define HEATER_0_PIN 9
  88. #define HEATER_BED_PIN 3
  89. #define PS_ON_PIN 4
  90. #define SDSS 53
  91. #ifdef ULTRA_LCD
  92. #define KILL_PIN 80
  93. #ifdef NEWPANEL
  94. //arduino pin which triggers an piezzo beeper
  95. #define BEEPER 84 // Beeper on AUX-4
  96. #define LCD_PINS_RS 82
  97. #define LCD_PINS_ENABLE 18
  98. #define LCD_PINS_D4 19
  99. #define LCD_PINS_D5 70
  100. #define LCD_PINS_D6 85
  101. #define LCD_PINS_D7 71
  102. //buttons are directly attached using AUX-2
  103. #define BTN_EN1 76
  104. #define BTN_EN2 77
  105. #define BTN_ENC 78 //the click
  106. #define BLEN_C 2
  107. #define BLEN_B 1
  108. #define BLEN_A 0
  109. #define SDCARDDETECT 81 // Ramps does not use this port
  110. //encoder rotation values
  111. #define encrot0 0
  112. #define encrot1 2
  113. #define encrot2 3
  114. #define encrot3 1
  115. #else //old style panel with shift register
  116. //arduino pin witch triggers an piezzo beeper
  117. #define BEEPER 84 //No Beeper added
  118. //buttons are attached to a shift register
  119. // Not wired this yet
  120. // #define SHIFT_CLK 38
  121. // #define SHIFT_LD 42
  122. // #define SHIFT_OUT 40
  123. // #define SHIFT_EN 17
  124. #define LCD_PINS_RS 82
  125. #define LCD_PINS_ENABLE 18
  126. #define LCD_PINS_D4 19
  127. #define LCD_PINS_D5 70
  128. #define LCD_PINS_D6 85
  129. #define LCD_PINS_D7 71
  130. //encoder rotation values
  131. #define encrot0 0
  132. #define encrot1 2
  133. #define encrot2 3
  134. #define encrot3 1
  135. //bits in the shift register that carry the buttons for:
  136. // left up center down right red
  137. #define BL_LE 7
  138. #define BL_UP 6
  139. #define BL_MI 5
  140. #define BL_DW 4
  141. #define BL_RI 3
  142. #define BL_ST 2
  143. #define BLEN_B 1
  144. #define BLEN_A 0
  145. #endif
  146. #endif //ULTRA_LCD