pins_Rambo_1_0.h 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  1. /*****************************************************************
  2. * Rambo mini 1.0 Pin Assignments
  3. ******************************************************************/
  4. #define ELECTRONICS "RAMBo10a"
  5. #define KNOWN_BOARD
  6. #ifndef __AVR_ATmega2560__
  7. #error Oops! Make sure you have 'Arduino Mega 2560 or Rambo' selected from the 'Tools -> Boards' menu.
  8. #endif
  9. #define PINDA_THERMISTOR
  10. #define SWI2C_SDA 20 //SDA on P3
  11. #define SWI2C_SCL 84 //PH2 on P3, sensor cable must be rewired
  12. #define X_STEP_PIN 37
  13. #define X_DIR_PIN 48
  14. #define X_MIN_PIN 12
  15. #define X_MAX_PIN -1
  16. #define X_ENABLE_PIN 29
  17. #define X_MS1_PIN 40
  18. #define X_MS2_PIN 41
  19. #define Y_STEP_PIN 36
  20. #define Y_DIR_PIN 49
  21. #define Y_MIN_PIN 11
  22. #define Y_MAX_PIN -1
  23. #define Y_ENABLE_PIN 28
  24. #define Y_MS1_PIN 69
  25. #define Y_MS2_PIN 39
  26. #define Z_STEP_PIN 35
  27. #define Z_DIR_PIN 47
  28. #define Z_MIN_PIN 10
  29. #define Z_MAX_PIN 23
  30. #define Z_ENABLE_PIN 27
  31. #define Z_MS1_PIN 68
  32. #define Z_MS2_PIN 67
  33. #define HEATER_BED_PIN 4 //PG5
  34. #define TEMP_BED_PIN 2 //A2
  35. #define HEATER_0_PIN 3 //PE5
  36. #define TEMP_0_PIN 0 //A0
  37. #define HEATER_1_PIN -1
  38. #define TEMP_1_PIN -1 //A1
  39. #define HEATER_2_PIN -1
  40. #define TEMP_2_PIN -1
  41. #define TEMP_AMBIENT_PIN 6 //A6
  42. #define TEMP_PINDA_PIN 1 //A1
  43. #define TEMP_TIM 3
  44. #define E0_STEP_PIN 34
  45. #define E0_DIR_PIN 43
  46. #define E0_ENABLE_PIN 26
  47. #define E0_MS1_PIN 65
  48. #define E0_MS2_PIN 66
  49. #define MOTOR_CURRENT_PWM_XY_PIN 46
  50. #define MOTOR_CURRENT_PWM_Z_PIN 45
  51. #define MOTOR_CURRENT_PWM_E_PIN 44
  52. #define SDPOWER -1
  53. #define SDSS 53
  54. #define LED_PIN 13
  55. #define FAN_PIN 6
  56. #define FAN_1_PIN -1
  57. #define PS_ON_PIN -1
  58. #define KILL_PIN -1 // 80 with Smart Controller LCD
  59. #define SUICIDE_PIN -1 // PIN that has to be turned on right after start, to keep power flowing.
  60. #define TACH_0 30 // noctua hotend fan
  61. //#define KILL_PIN 32
  62. #define BEEPER 78 // Beeper on AUX-4
  63. #define LCD_PINS_RS 38
  64. #define LCD_PINS_ENABLE 5
  65. #define LCD_PINS_D4 14
  66. #define LCD_PINS_D5 15
  67. #define LCD_PINS_D6 32
  68. #define LCD_PINS_D7 31
  69. //buttons are directly attached using AUX-2
  70. #define BTN_EN1 80
  71. #define BTN_EN2 73
  72. #define BTN_ENC 21 // the click
  73. #define SDCARDDETECT 72
  74. #define IR_SENSOR_PIN 20 //idler sensor
  75. // Support for an 8 bit logic analyzer, for example the Saleae.
  76. // Channels 0-2 are fast, they could generate 2.667Mhz waveform with a software loop.
  77. #define LOGIC_ANALYZER_CH0 X_MIN_PIN // PB6
  78. #define LOGIC_ANALYZER_CH1 Y_MIN_PIN // PB5
  79. #define LOGIC_ANALYZER_CH2 53 // PB0 (PROC_nCS)
  80. // Channels 3-7 are slow, they could generate
  81. // 0.889Mhz waveform with a software loop and interrupt locking,
  82. // 1.333MHz waveform without interrupt locking.
  83. #define LOGIC_ANALYZER_CH3 73 // PJ3
  84. // PK0 has no Arduino digital pin assigned, so we set it directly.
  85. #define WRITE_LOGIC_ANALYZER_CH4(value) if (value) PORTK |= (1 << 0); else PORTK &= ~(1 << 0) // PK0
  86. #define LOGIC_ANALYZER_CH5 16 // PH0 (RXD2)
  87. #define LOGIC_ANALYZER_CH6 17 // PH1 (TXD2)
  88. #define LOGIC_ANALYZER_CH7 76 // PJ5
  89. #define LOGIC_ANALYZER_CH0_ENABLE SET_OUTPUT(LOGIC_ANALYZER_CH0)
  90. #define LOGIC_ANALYZER_CH1_ENABLE SET_OUTPUT(LOGIC_ANALYZER_CH1)
  91. #define LOGIC_ANALYZER_CH2_ENABLE SET_OUTPUT(LOGIC_ANALYZER_CH2)
  92. #define LOGIC_ANALYZER_CH3_ENABLE SET_OUTPUT(LOGIC_ANALYZER_CH3)
  93. #define LOGIC_ANALYZER_CH4_ENABLE do { DDRK |= 1 << 0; } while (0)
  94. #define LOGIC_ANALYZER_CH5_ENABLE do { cbi(UCSR2B, TXEN2); cbi(UCSR2B, RXEN2); cbi(UCSR2B, RXCIE2); SET_OUTPUT(LOGIC_ANALYZER_CH5); } while (0)
  95. #define LOGIC_ANALYZER_CH6_ENABLE do { cbi(UCSR2B, TXEN2); cbi(UCSR2B, RXEN2); cbi(UCSR2B, RXCIE2); SET_OUTPUT(LOGIC_ANALYZER_CH6); } while (0)
  96. #define LOGIC_ANALYZER_CH7_ENABLE SET_OUTPUT(LOGIC_ANALYZER_CH7)