1 |
ron |
1 |
/**
|
|
|
2 |
* Marlin 3D Printer Firmware
|
|
|
3 |
* Copyright (C) 2017 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 |
/**
|
|
|
24 |
* Brainwave Pro pin assignments (AT90USB1286)
|
|
|
25 |
*
|
|
|
26 |
* Requires hardware bundle for Arduino:
|
|
|
27 |
* https://github.com/unrepentantgeek/brainwave-arduino
|
|
|
28 |
*/
|
|
|
29 |
|
|
|
30 |
/**
|
|
|
31 |
* Rev B 16 JAN 2017
|
|
|
32 |
*
|
|
|
33 |
* Added pointers to currently available Arduino IDE extensions that will
|
|
|
34 |
* allow this board to use the latest Marlin software
|
|
|
35 |
*
|
|
|
36 |
*
|
|
|
37 |
* Rev C 2 JUN 2017
|
|
|
38 |
*
|
|
|
39 |
* Converted to Arduino pin numbering
|
|
|
40 |
*/
|
|
|
41 |
|
|
|
42 |
/**
|
|
|
43 |
* There are two Arduino IDE extensions that are compatible with this board
|
|
|
44 |
* and with the mainstream Marlin software.
|
|
|
45 |
*
|
|
|
46 |
* Teensyduino - http://www.pjrc.com/teensy/teensyduino.html
|
|
|
47 |
* Select Teensy++ 2.0 in Arduino IDE from the 'Tools -> Boards' menu
|
|
|
48 |
*
|
|
|
49 |
* Installation instructions are at the above URL. Don't bother loading the
|
|
|
50 |
* libraries - they are not used with the Marlin software.
|
|
|
51 |
*
|
|
|
52 |
* Printrboard - https://github.com/scwimbush/Printrboard-HID-Arduino-IDE-Support
|
|
|
53 |
*
|
|
|
54 |
* Installation:
|
|
|
55 |
*
|
|
|
56 |
* 1. Go to the above URL, click on the "Clone or Download" button and then
|
|
|
57 |
* click on "Download ZIP" button.
|
|
|
58 |
* 2. Unzip the file, find the "printrboard" directory and then copy it to the
|
|
|
59 |
* hardware directory in Arduino. The Arduino hardware directory will probably
|
|
|
60 |
* be located in a path similar to this: C:\Program Files (x86)\Arduino\hardware.
|
|
|
61 |
* 3. Restart Arduino.
|
|
|
62 |
* 4. Select "Printrboard" from the 'Tools -> Boards' menu.
|
|
|
63 |
*
|
|
|
64 |
* Teensyduino is the most popular option. Printrboard is used if your board doesn't have
|
|
|
65 |
* the Teensyduino bootloader on it.
|
|
|
66 |
*/
|
|
|
67 |
|
|
|
68 |
/**
|
|
|
69 |
* To burn the bootloader that comes with Printrboard:
|
|
|
70 |
*
|
|
|
71 |
* 1. Connect your programmer to the board.
|
|
|
72 |
* 2. In the Arduino IDE select "Printrboard" and then select the programmer.
|
|
|
73 |
* 3. In the Arduino IDE click on "burn bootloader". Don't worry about the "verify failed at 1F000" error message.
|
|
|
74 |
* 4. The programmer is no longer needed. Remove it.
|
|
|
75 |
*/
|
|
|
76 |
|
|
|
77 |
#ifndef __AVR_AT90USB1286__
|
|
|
78 |
#error "Oops! Make sure you have 'Teensy++ 2.0' or 'Printrboard' selected from the 'Tools -> Boards' menu."
|
|
|
79 |
#endif
|
|
|
80 |
|
|
|
81 |
#define BOARD_NAME "Brainwave Pro"
|
|
|
82 |
|
|
|
83 |
//
|
|
|
84 |
// Limit Switches
|
|
|
85 |
//
|
|
|
86 |
#define X_STOP_PIN 45 // F7
|
|
|
87 |
#define Y_STOP_PIN 12 // C2
|
|
|
88 |
#define Z_STOP_PIN 36 // E4
|
|
|
89 |
|
|
|
90 |
//
|
|
|
91 |
// Z Probe (when not Z_MIN_PIN)
|
|
|
92 |
//
|
|
|
93 |
#ifndef Z_MIN_PROBE_PIN
|
|
|
94 |
#define Z_MIN_PROBE_PIN 11 // C1
|
|
|
95 |
#endif
|
|
|
96 |
|
|
|
97 |
//
|
|
|
98 |
// Steppers
|
|
|
99 |
//
|
|
|
100 |
#define X_STEP_PIN 9 // E1
|
|
|
101 |
#define X_DIR_PIN 8 // E0
|
|
|
102 |
#define X_ENABLE_PIN 23 // B3
|
|
|
103 |
|
|
|
104 |
#define Y_STEP_PIN 7 // D7
|
|
|
105 |
#define Y_DIR_PIN 6 // D6
|
|
|
106 |
#define Y_ENABLE_PIN 20 // B0
|
|
|
107 |
|
|
|
108 |
#define Z_STEP_PIN 5 // D5
|
|
|
109 |
#define Z_DIR_PIN 4 // D4
|
|
|
110 |
#define Z_ENABLE_PIN 37 // E5
|
|
|
111 |
|
|
|
112 |
#define E0_STEP_PIN 47 // E3
|
|
|
113 |
#define E0_DIR_PIN 46 // E2
|
|
|
114 |
#define E0_ENABLE_PIN 25 // B5
|
|
|
115 |
|
|
|
116 |
//
|
|
|
117 |
// Temperature Sensors
|
|
|
118 |
//
|
|
|
119 |
#define TEMP_0_PIN 2 // F2 Analog Input
|
|
|
120 |
#define TEMP_1_PIN 1 // F1 Analog Input
|
|
|
121 |
#define TEMP_BED_PIN 0 // F0 Analog Input
|
|
|
122 |
|
|
|
123 |
//
|
|
|
124 |
// Heaters / Fans
|
|
|
125 |
//
|
|
|
126 |
#define HEATER_0_PIN 27 // B7
|
|
|
127 |
#define HEATER_BED_PIN 26 // B6 Bed
|
|
|
128 |
#ifndef FAN_PIN
|
|
|
129 |
#define FAN_PIN 16 // C6 Fan, PWM3A
|
|
|
130 |
#endif
|
|
|
131 |
|
|
|
132 |
//
|
|
|
133 |
// Misc. Functions
|
|
|
134 |
//
|
|
|
135 |
#define SDSS 20 // B0
|
|
|
136 |
#define SD_DETECT_PIN 24 // B4
|
|
|
137 |
#define LED_PIN 13 // C3
|