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_RAMBO.h 4.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190
  1. /**
  2. * Rambo pin assignments
  3. */
  4. #ifndef __AVR_ATmega2560__
  5. #error Oops! Make sure you have 'Arduino Mega 2560' selected from the 'Tools -> Boards' menu.
  6. #endif
  7. #define LARGE_FLASH true
  8. // Servo support
  9. #ifdef NUM_SERVOS
  10. #define SERVO0_PIN 22 //motor header MX1
  11. #if NUM_SERVOS > 1
  12. #define SERVO1_PIN 23 //Motor header MX2
  13. #if NUM_SERVOS > 2
  14. #define SERVO2_PIN 24 //Motor header MX3
  15. #if NUM_SERVOS > 3
  16. #define SERVO2_PIN 5 //pwm header pin 5
  17. #endif
  18. #endif
  19. #endif
  20. #endif
  21. #ifdef Z_PROBE_SLED
  22. #define SLED_PIN -1
  23. #endif
  24. #undef X_MS1_PIN
  25. #undef X_MS2_PIN
  26. #undef Y_MS1_PIN
  27. #undef Y_MS2_PIN
  28. #undef Z_MS1_PIN
  29. #undef Z_MS2_PIN
  30. #undef E0_MS1_PIN
  31. #undef E0_MS2_PIN
  32. #undef E1_MS1_PIN
  33. #undef E1_MS2_PIN
  34. #define X_STEP_PIN 37
  35. #define X_DIR_PIN 48
  36. #define X_MIN_PIN 12
  37. #define X_MAX_PIN 24
  38. #define X_ENABLE_PIN 29
  39. #define X_MS1_PIN 40
  40. #define X_MS2_PIN 41
  41. #define Y_STEP_PIN 36
  42. #define Y_DIR_PIN 49
  43. #define Y_MIN_PIN 11
  44. #define Y_MAX_PIN 23
  45. #define Y_ENABLE_PIN 28
  46. #define Y_MS1_PIN 69
  47. #define Y_MS2_PIN 39
  48. #define Z_STEP_PIN 35
  49. #define Z_DIR_PIN 47
  50. #define Z_MIN_PIN 10
  51. #define Z_MAX_PIN 30
  52. #define Z_ENABLE_PIN 27
  53. #define Z_MS1_PIN 68
  54. #define Z_MS2_PIN 67
  55. #define HEATER_BED_PIN 3
  56. #define TEMP_BED_PIN 2
  57. #define HEATER_0_PIN 9
  58. #define TEMP_0_PIN 0
  59. #define HEATER_1_PIN 7
  60. #define TEMP_1_PIN 1
  61. #ifdef BARICUDA
  62. #define HEATER_2_PIN 6
  63. #else
  64. #define HEATER_2_PIN -1
  65. #endif
  66. #define TEMP_2_PIN -1
  67. #define E0_STEP_PIN 34
  68. #define E0_DIR_PIN 43
  69. #define E0_ENABLE_PIN 26
  70. #define E0_MS1_PIN 65
  71. #define E0_MS2_PIN 66
  72. #define E1_STEP_PIN 33
  73. #define E1_DIR_PIN 42
  74. #define E1_ENABLE_PIN 25
  75. #define E1_MS1_PIN 63
  76. #define E1_MS2_PIN 64
  77. #undef DIGIPOTSS_PIN
  78. #define DIGIPOTSS_PIN 38
  79. #define DIGIPOT_CHANNELS {4,5,3,0,1} // X Y Z E0 E1 digipot channels to stepper driver mapping
  80. #define SDPOWER -1
  81. #define SDSS 53
  82. #define LED_PIN 13
  83. #define FAN_PIN 8
  84. /**********************************************************
  85. Fan Pins
  86. Fan_0 8
  87. Fan_1 6
  88. Fan_2 2
  89. ***********************************************************/
  90. #define PS_ON_PIN 4
  91. #define KILL_PIN -1 //80 with Smart Controller LCD
  92. #define SUICIDE_PIN -1 //PIN that has to be turned on right after start, to keep power flowing.
  93. #ifdef ULTRA_LCD
  94. #define KILL_PIN 80
  95. #ifdef NEWPANEL
  96. //arduino pin which triggers an piezzo beeper
  97. #define BEEPER 79 // Beeper on AUX-4
  98. #define LCD_PINS_RS 70
  99. #define LCD_PINS_ENABLE 71
  100. #define LCD_PINS_D4 72
  101. #define LCD_PINS_D5 73
  102. #define LCD_PINS_D6 74
  103. #define LCD_PINS_D7 75
  104. //buttons are directly attached using AUX-2
  105. #define BTN_EN1 76
  106. #define BTN_EN2 77
  107. #define BTN_ENC 78 //the click
  108. #define BLEN_C 2
  109. #define BLEN_B 1
  110. #define BLEN_A 0
  111. #define SDCARDDETECT 81 // Ramps does not use this port
  112. #else //!NEWPANEL - old style panel with shift register
  113. //arduino pin witch triggers an piezzo beeper
  114. #define BEEPER 33 No Beeper added
  115. //buttons are attached to a shift register
  116. // Not wired this yet
  117. // #define SHIFT_CLK 38
  118. // #define SHIFT_LD 42
  119. // #define SHIFT_OUT 40
  120. // #define SHIFT_EN 17
  121. #define LCD_PINS_RS 75
  122. #define LCD_PINS_ENABLE 17
  123. #define LCD_PINS_D4 23
  124. #define LCD_PINS_D5 25
  125. #define LCD_PINS_D6 27
  126. #define LCD_PINS_D7 29
  127. //bits in the shift register that carry the buttons for:
  128. // left up center down right red
  129. #define BL_LE 7
  130. #define BL_UP 6
  131. #define BL_MI 5
  132. #define BL_DW 4
  133. #define BL_RI 3
  134. #define BL_ST 2
  135. #define BLEN_B 1
  136. #define BLEN_A 0
  137. #endif // !NEWPANEL
  138. #endif // ULTRA_LCD
  139. #if defined(VIKI2) || defined(miniVIKI)
  140. #define BEEPER 44
  141. // Pins for DOGM SPI LCD Support
  142. #define DOGLCD_A0 70
  143. #define DOGLCD_CS 71
  144. #define LCD_SCREEN_ROT_180
  145. //The encoder and click button
  146. #define BTN_EN1 85
  147. #define BTN_EN2 84
  148. #define BTN_ENC 83 //the click switch
  149. #define SDCARDDETECT -1 // Pin 72 if using easy adapter board
  150. #ifdef TEMP_STAT_LEDS
  151. #define STAT_LED_RED 22
  152. #define STAT_LED_BLUE 32
  153. #endif
  154. #endif // VIKI2/miniVIKI
  155. #ifdef FILAMENT_SENSOR
  156. //Filip added pin for Filament sensor analog input
  157. #define FILWIDTH_PIN 3
  158. #endif