Prusa MINI Firmware overview
pins_BQ_ZUM_MEGA_3D.h
Go to the documentation of this file.
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 /**
25  * bq ZUM Mega 3D board definition
26  */
27 
28 #ifndef __AVR_ATmega2560__
29  #error "Oops! Select 'Arduino/Genuino Mega or Mega 2560' in 'Tools > Board.'"
30 #endif
31 
32 #define BOARD_INFO_NAME "ZUM Mega 3D"
33 
34 //
35 // Heaters / Fans
36 //
37 #define RAMPS_D8_PIN 10
38 #define RAMPS_D9_PIN 12
39 #define RAMPS_D10_PIN 9
40 #define MOSFET_D_PIN 7
41 
42 //
43 // Auto fans
44 //
45 #define ORIG_E0_AUTO_FAN_PIN 11
46 #define ORIG_E1_AUTO_FAN_PIN 6
47 #define ORIG_E2_AUTO_FAN_PIN 6
48 #define ORIG_E3_AUTO_FAN_PIN 6
49 
50 //
51 // M3/M4/M5 - Spindle/Laser Control
52 //
53 #define SPINDLE_LASER_ENA_PIN 40 // Pullup or pulldown!
54 #define SPINDLE_LASER_PWM_PIN 44 // Hardware PWM
55 #define SPINDLE_DIR_PIN 42
56 
57 //
58 // Limit Switches
59 //
60 #define X_MAX_PIN 79 // 2
61 
62 //
63 // Import RAMPS 1.3 pins
64 //
65 #include "pins_RAMPS_13.h"
66 
67 //
68 // Z Probe (when not Z_MIN_PIN)
69 //
70 #undef Z_MIN_PROBE_PIN
71 #define Z_MIN_PROBE_PIN 19 // IND_S_5V
72 
73 #undef Z_ENABLE_PIN
74 #define Z_ENABLE_PIN 77 // 62
75 
76 //
77 // Steppers
78 //
79 #define DIGIPOTSS_PIN 22
80 #define DIGIPOT_CHANNELS { 4, 5, 3, 0, 1 }
81 
82 //
83 // Temperature Sensors
84 //
85 #undef TEMP_1_PIN
86 #define TEMP_1_PIN 14 // Analog Input (15)
87 
88 #undef TEMP_BED_PIN
89 #define TEMP_BED_PIN 15 // Analog Input (14)
90 
91 //
92 // Misc. Functions
93 //
94 #undef PS_ON_PIN // 12
95 #define PS_ON_PIN 81 // External Power Supply
96 
97 #define CASE_LIGHT_PIN 44 // Hardware PWM
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 // Used by the Hephestos 2 heated bed upgrade kit
113 //
114 #if ENABLED(HEPHESTOS2_HEATED_BED_KIT)
115  #undef HEATER_BED_PIN
116  #define HEATER_BED_PIN 8
117 #endif
pins_RAMPS_13.h