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_OLD.h 3.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. /**
  2. * Marlin 3D Printer Firmware
  3. * Copyright (c) 2019 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 <http://www.gnu.org/licenses/>.
  20. *
  21. */
  22. #pragma once
  23. /**
  24. * Arduino Mega with RAMPS v1.0, v1.1, v1.2 pin assignments
  25. */
  26. #if !defined(__AVR_ATmega1280__) && !defined(__AVR_ATmega2560__)
  27. #error "Oops! Select 'Arduino/Genuino Mega or Mega 2560' in 'Tools > Board.'"
  28. #endif
  29. #define BOARD_NAME "RAMPS <1.2"
  30. // Uncomment the following line for RAMPS v1.0
  31. //#define RAMPS_V_1_0
  32. //
  33. // Limit Switches
  34. //
  35. #define X_MIN_PIN 3
  36. #define X_MAX_PIN 2
  37. #define Y_MIN_PIN 16
  38. #define Y_MAX_PIN 17
  39. #define Z_MIN_PIN 18
  40. #define Z_MAX_PIN 19
  41. //
  42. // Z Probe (when not Z_MIN_PIN)
  43. //
  44. #ifndef Z_MIN_PROBE_PIN
  45. #define Z_MIN_PROBE_PIN 19
  46. #endif
  47. //
  48. // Steppers
  49. //
  50. #define X_STEP_PIN 26
  51. #define X_DIR_PIN 28
  52. #define X_ENABLE_PIN 24
  53. #define Y_STEP_PIN 38
  54. #define Y_DIR_PIN 40
  55. #define Y_ENABLE_PIN 36
  56. #define Z_STEP_PIN 44
  57. #define Z_DIR_PIN 46
  58. #define Z_ENABLE_PIN 42
  59. #define E0_STEP_PIN 32
  60. #define E0_DIR_PIN 34
  61. #define E0_ENABLE_PIN 30
  62. //
  63. // Temperature Sensors
  64. //
  65. #define TEMP_0_PIN 2 // Analog Input
  66. #define TEMP_BED_PIN 1 // Analog Input
  67. // SPI for Max6675 or Max31855 Thermocouple
  68. #if DISABLED(SDSUPPORT)
  69. #define MAX6675_SS_PIN 66 // Don't use 53 if there is even the remote possibility of using Display/SD card
  70. #else
  71. #define MAX6675_SS_PIN 66 // Don't use 49 as this is tied to the switch inside the SD card socket to detect if there is an SD card present
  72. #endif
  73. //
  74. // Heaters / Fans
  75. //
  76. #if ENABLED(RAMPS_V_1_0)
  77. #define HEATER_0_PIN 12
  78. #define HEATER_BED_PIN -1
  79. #ifndef FAN_PIN
  80. #define FAN_PIN 11
  81. #endif
  82. #else // RAMPS_V_1_1 or RAMPS_V_1_2
  83. #define HEATER_0_PIN 10
  84. #define HEATER_BED_PIN 8
  85. #ifndef FAN_PIN
  86. #define FAN_PIN 9
  87. #endif
  88. #endif
  89. //
  90. // Misc. Functions
  91. //
  92. #define SDPOWER_PIN 48
  93. #define SDSS 53
  94. #define LED_PIN 13
  95. #define CASE_LIGHT_PIN 45 // Hardware PWM
  96. //
  97. // M3/M4/M5 - Spindle/Laser Control
  98. //
  99. #define SPINDLE_LASER_ENA_PIN 41 // Pullup or pulldown!
  100. #define SPINDLE_LASER_PWM_PIN 45 // Hardware PWM
  101. #define SPINDLE_DIR_PIN 43