1 |
ron |
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 |
/**
|
|
|
24 |
* bq ZUM Mega 3D board definition
|
|
|
25 |
*/
|
|
|
26 |
|
|
|
27 |
#ifndef __AVR_ATmega2560__
|
|
|
28 |
#error "Oops! Make sure you have 'Arduino Mega 2560' selected from the 'Tools -> Boards' menu."
|
|
|
29 |
#endif
|
|
|
30 |
|
|
|
31 |
#define BOARD_NAME "ZUM Mega 3D"
|
|
|
32 |
|
|
|
33 |
//
|
|
|
34 |
// Heaters / Fans
|
|
|
35 |
//
|
|
|
36 |
#define RAMPS_D8_PIN 10
|
|
|
37 |
#define RAMPS_D9_PIN 12
|
|
|
38 |
#define RAMPS_D10_PIN 9
|
|
|
39 |
#define MOSFET_D_PIN 7
|
|
|
40 |
|
|
|
41 |
//
|
|
|
42 |
// Auto fans
|
|
|
43 |
//
|
|
|
44 |
#define ORIG_E0_AUTO_FAN_PIN 11
|
|
|
45 |
#define ORIG_E1_AUTO_FAN_PIN 6
|
|
|
46 |
#define ORIG_E2_AUTO_FAN_PIN 6
|
|
|
47 |
#define ORIG_E3_AUTO_FAN_PIN 6
|
|
|
48 |
|
|
|
49 |
//
|
|
|
50 |
// Misc. Functions
|
|
|
51 |
//
|
|
|
52 |
#define CASE_LIGHT_PIN 44 // MUST BE HARDWARE PWM
|
|
|
53 |
|
|
|
54 |
//
|
|
|
55 |
// M3/M4/M5 - Spindle/Laser Control
|
|
|
56 |
//
|
|
|
57 |
#define SPINDLE_LASER_ENABLE_PIN 40 // Pin should have a pullup/pulldown!
|
|
|
58 |
#define SPINDLE_LASER_PWM_PIN 44 // MUST BE HARDWARE PWM
|
|
|
59 |
#define SPINDLE_DIR_PIN 42
|
|
|
60 |
|
|
|
61 |
#include "pins_RAMPS_13.h"
|
|
|
62 |
|
|
|
63 |
//
|
|
|
64 |
// Limit Switches
|
|
|
65 |
//
|
|
|
66 |
#undef X_MAX_PIN
|
|
|
67 |
#define X_MAX_PIN 79 // 2
|
|
|
68 |
|
|
|
69 |
//
|
|
|
70 |
// Z Probe (when not Z_MIN_PIN)
|
|
|
71 |
//
|
|
|
72 |
#undef Z_MIN_PROBE_PIN
|
|
|
73 |
#define Z_MIN_PROBE_PIN 19 // IND_S_5V
|
|
|
74 |
|
|
|
75 |
#undef Z_ENABLE_PIN
|
|
|
76 |
#define Z_ENABLE_PIN 77 // 62
|
|
|
77 |
|
|
|
78 |
//
|
|
|
79 |
// Steppers
|
|
|
80 |
//
|
|
|
81 |
#define DIGIPOTSS_PIN 22
|
|
|
82 |
#define DIGIPOT_CHANNELS { 4, 5, 3, 0, 1 }
|
|
|
83 |
|
|
|
84 |
//
|
|
|
85 |
// Temperature Sensors
|
|
|
86 |
//
|
|
|
87 |
#undef TEMP_1_PIN
|
|
|
88 |
#define TEMP_1_PIN 14 // Analog Input (15)
|
|
|
89 |
|
|
|
90 |
#undef TEMP_BED_PIN
|
|
|
91 |
#define TEMP_BED_PIN 15 // Analog Input (14)
|
|
|
92 |
|
|
|
93 |
//
|
|
|
94 |
// Misc. Functions
|
|
|
95 |
//
|
|
|
96 |
#undef PS_ON_PIN // 12
|
|
|
97 |
#define PS_ON_PIN 81 // External Power Supply
|
|
|
98 |
|
|
|
99 |
|
|
|
100 |
// This board has headers for Z-min, Z-max and IND_S_5V *but* as the bq team
|
|
|
101 |
// decided to ship the printer only with the probe and no additional Z-min
|
|
|
102 |
// endstop and the instruction manual advises the user to connect the probe to
|
|
|
103 |
// IND_S_5V the option Z_MIN_PROBE_USES_Z_MIN_ENDSTOP_PIN will not work.
|
|
|
104 |
#ifdef Z_MIN_PROBE_USES_Z_MIN_ENDSTOP_PIN
|
|
|
105 |
#undef Z_MIN_PIN
|
|
|
106 |
#undef Z_MAX_PIN
|
|
|
107 |
#define Z_MIN_PIN 19 // IND_S_5V
|
|
|
108 |
#define Z_MAX_PIN 18 // Z-MIN Label
|
|
|
109 |
#endif
|
|
|
110 |
|
|
|
111 |
|
|
|
112 |
//
|
|
|
113 |
// This pin is used by the official Hephestos 2 heated bed upgrade kit
|
|
|
114 |
//
|
|
|
115 |
#if ENABLED(HEPHESTOS2_HEATED_BED_KIT)
|
|
|
116 |
#undef HEATER_BED_PIN
|
|
|
117 |
#define HEATER_BED_PIN 8
|
|
|
118 |
#endif
|