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_BRAINWAVE_PRO.h 5.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153
  1. /**
  2. * Marlin 3D Printer Firmware
  3. * Copyright (C) 2016 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. /**
  23. * Brainwave Pro pin assignments (AT90USB1286)
  24. *
  25. * Requires hardware bundle for Arduino:
  26. * https://github.com/unrepentantgeek/brainwave-arduino
  27. */
  28. /**
  29. * Rev B 16 JAN 2017
  30. *
  31. * Added pointers to currently available Arduino IDE extensions that will
  32. * allow this board to use the latest Marlin software
  33. */
  34. /**
  35. * There are three Arduino IDE extensions that are compatible with this board
  36. * and with the mainstream Marlin software. All have been used with Arduino 1.6.12
  37. *
  38. * Teensyduino - http://www.pjrc.com/teensy/teensyduino.html
  39. * Select Teensy++ 2.0 in Arduino IDE from the 'Tools -> Boards' menu
  40. *
  41. * Installation instructions are at the above URL. Don't bother loading the
  42. * libraries - they are not used with the Marlin software.
  43. *
  44. * Printrboard - https://github.com/scwimbush/Printrboard-HID-Arduino-IDE-Support
  45. * This is basically Teensyduino but with a bootloader that can handle image sizes
  46. * larger than 64K.
  47. *
  48. * Installation:
  49. *
  50. * 1. Go to the above URL, click on the "Clone or Download" button and then
  51. * click on "Download ZIP" button.
  52. * 2. Unzip the file, find the "printrboard" directory and then copy it to the
  53. * hardware directory in Arduino. The Arduino hardware directory will probably
  54. * be located in a path similar to this: C:\Program Files (x86)\Arduino\hardware.
  55. * 3. Restart Arduino.
  56. * 4. Select "Printrboard" from the 'Tools -> Boards' menu.
  57. *
  58. * Marlin_AT90USB - https://github.com/Bob-the-Kuhn/Marlin_AT90USB
  59. * Uses the bootloader from Printerboard above.
  60. *
  61. * "Marlin_AT90USB" makes PWM0A available rather than the usual PWM1C. These PWMs share
  62. * the same physical pin. Marlin uses TIMER1 to generate interrupts and sets it up such
  63. * that PWM1A, PWM1B & PWM1C can't be used.
  64. *
  65. * Installation:
  66. *
  67. * 1. In the Arduino IDE, under Files -> Preferences paste the following URL
  68. * https://rawgit.com/Bob-the-Kuhn/Marlin_AT90USB/master/package_MARLIN_AT90USB_index.json
  69. * 2. Under Tools -> Board -> Boards manager, scroll to the bottom, click on MARLIN_AT90USB
  70. * and then click on "Install"
  71. * 3. Select "AT90USB1286_TEENSYPP" from the 'Tools -> Boards' menu.
  72. */
  73. /**
  74. * To burn the bootloader that comes with Printrboard and Marlin_AT90USB:
  75. *
  76. * 1. Connect your programmer to the board.
  77. * 2. In the Arduino IDE select "Printrboard" or "AT90USB1286_TEENSYPP" and then select the programmer.
  78. * 3. In the Arduino IDE click on "burn bootloader". Don't worry about the "verify failed at 1F000" error message.
  79. * 4. The programmer is no longer needed. Remove it.
  80. */
  81. #ifndef __AVR_AT90USB1286__
  82. #error "Oops! Make sure you have 'Teensy++ 2.0', 'AT90USB1286_TEENSYPP', or 'Printrboard' selected from the 'Tools -> Boards' menu."
  83. #endif
  84. #include "fastio.h"
  85. #if DISABLED(AT90USBxx_TEENSYPP_ASSIGNMENTS) // use Teensyduino Teensy++2.0 pin assignments instead of Marlin alphabetical.
  86. #error "Uncomment '#define AT90USBxx_TEENSYPP_ASSIGNMENTS' in fastio.h for this config"
  87. #endif
  88. #define BOARD_NAME "Brainwave Pro"
  89. #define USBCON 1286 // Disable MarlinSerial etc.
  90. #define LARGE_FLASH true
  91. //
  92. // Limit Switches
  93. //
  94. #define X_STOP_PIN 47
  95. #define Y_STOP_PIN 18
  96. #define Z_MAX_PIN 36
  97. //
  98. // Z Probe (when not Z_MIN_PIN)
  99. //
  100. #ifndef Z_MIN_PROBE_PIN
  101. #define Z_MIN_PROBE_PIN 17
  102. #endif
  103. //
  104. // Steppers
  105. //
  106. #define X_STEP_PIN 33
  107. #define X_DIR_PIN 32
  108. #define X_ENABLE_PIN 11
  109. #define Y_STEP_PIN 31
  110. #define Y_DIR_PIN 30
  111. #define Y_ENABLE_PIN 8
  112. #define Z_STEP_PIN 29
  113. #define Z_DIR_PIN 28
  114. #define Z_ENABLE_PIN 37
  115. #define E0_STEP_PIN 35
  116. #define E0_DIR_PIN 34
  117. #define E0_ENABLE_PIN 13
  118. //
  119. // Temperature Sensors
  120. //
  121. #define TEMP_0_PIN 2 // Analog Input
  122. #define TEMP_1_PIN 1 // Analog Input
  123. #define TEMP_BED_PIN 0 // Analog Input
  124. //
  125. // Heaters / Fans
  126. //
  127. #define HEATER_0_PIN 15
  128. #define HEATER_BED_PIN 14 // Bed
  129. #define FAN_PIN 16 // Fan, PWM
  130. //
  131. // Misc. Functions
  132. //
  133. #define SDSS 20
  134. #define SD_DETECT_PIN 12
  135. #define LED_PIN 19