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_RAMPS_SMART.h 4.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  1. /**
  2. * Marlin 3D Printer Firmware
  3. * Copyright (c) 2020 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 <https://www.gnu.org/licenses/>.
  20. *
  21. */
  22. #pragma once
  23. /**
  24. * Arduino Due with RAMPS-SMART pin assignments
  25. *
  26. * Applies to the following boards:
  27. *
  28. * RAMPS_SMART_EFB (Hotend, Fan, Bed)
  29. * RAMPS_SMART_EEB (Hotend0, Hotend1, Bed)
  30. * RAMPS_SMART_EFF (Hotend, Fan0, Fan1)
  31. * RAMPS_SMART_EEF (Hotend0, Hotend1, Fan)
  32. * RAMPS_SMART_SF (Spindle, Controller Fan)
  33. *
  34. * Differences between
  35. * RAMPS_14 | RAMPS-SMART
  36. * NONE | D16 (Additional AUX-3 pin(AUX3_2PIN), shares the same pin with AUX4_18PIN)
  37. * NONE | D17 (Additional AUX-3 pin(AUX3_1PIN), shares the same pin with AUX4_17PIN)
  38. * D0 | NONE
  39. * D1 | NONE
  40. * A3/D57 | NONE
  41. * A4/D58 | NONE
  42. * A5/D59 | A3/D57
  43. * A9/D63 | A4/D58
  44. * A10/D64 | A5/D59
  45. * A11/D65 | D66
  46. * A12/D66 | D67
  47. * A13 | A9
  48. * A14 | A10
  49. * A15 | A11
  50. *
  51. *
  52. * REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER works fine connected to AUX-4 with
  53. * Smart Adapter, but requires removing the AUX3 pin header on the adapter to fit.
  54. * To use the SD card reader, wire its pins to AUX-3 (and use Software SPI).
  55. *
  56. * To use Hardware SPI for SD, the SDSS pin must be set to 52 instead of 53.
  57. * Hardware SPI also requires additional wiring because the board doesn't pass
  58. * the 6-pin SPI header from the DUE board.
  59. * (Search the web for "Arduino DUE Board Pinout" to see the correct header.)
  60. */
  61. #define BOARD_INFO_NAME "RAMPS-SMART"
  62. #define ALLOW_SAM3X8E
  63. #include "../ramps/pins_RAMPS.h"
  64. // I2C EEPROM with 4K of space
  65. #define I2C_EEPROM
  66. #define MARLIN_EEPROM_SIZE 0x1000
  67. #define SDA_PIN 20
  68. #define SCL_PIN 21
  69. // See EEPROM device datasheet for the following values. These are for 24xx256
  70. #define EEPROM_SERIAL_ADDR 0x50 // 7 bit i2c address (without R/W bit)
  71. #define EEPROM_PAGE_SIZE 64 // page write buffer size
  72. #define EEPROM_PAGE_WRITE_TIME 7 // page write time in milliseconds (docs say 5ms but that is too short)
  73. #define TWI_CLOCK_FREQ 400000
  74. #define EEPROM_ADDRSZ_BYTES TWI_MMR_IADRSZ_2_BYTE // TWI_MMR_IADRSZ_1_BYTE for 1 byte, or TWI_MMR_IADRSZ_2_BYTE for 2 byte
  75. #define EEPROM_AVAILABLE EEPROM_I2C
  76. #define RESET_PIN 42 // Resets the board if the jumper is attached
  77. //
  78. // Temperature Sensors
  79. //
  80. #undef TEMP_0_PIN
  81. #define TEMP_0_PIN 9 // Analog Input
  82. #undef TEMP_1_PIN
  83. #define TEMP_1_PIN 10 // Analog Input
  84. #undef TEMP_BED_PIN
  85. #define TEMP_BED_PIN 11 // Analog Input
  86. // SPI for Max6675 or Max31855 Thermocouple
  87. #undef MAX6675_SS_PIN
  88. #if DISABLED(SDSUPPORT)
  89. #define MAX6675_SS_PIN 67 // Don't use 53 if using Display/SD card
  90. #else
  91. #define MAX6675_SS_PIN 67 // Don't use 49 (SD_DETECT_PIN)
  92. #endif
  93. //
  94. // LCD / Controller
  95. //
  96. // Support for AZSMZ 12864 LCD with SD Card 3D printer smart controller control panel
  97. #if ENABLED(AZSMZ_12864)
  98. #define BEEPER_PIN 66 // Smart RAMPS 1.42 pinout diagram on RepRap WIKI erroneously says this should be pin 65
  99. #define DOGLCD_A0 59
  100. #define DOGLCD_CS 44
  101. #define BTN_EN1 58
  102. #define BTN_EN2 40
  103. #define BTN_ENC 67 // Smart RAMPS 1.42 pinout diagram on RepRap WIKI erroneously says this should be pin 66
  104. #define SD_DETECT_PIN 49 // Pin 49 for display sd interface, 72 for easy adapter board
  105. #define KILL_PIN 42
  106. #endif