2016-03-25 06:19:46 +00:00
|
|
|
/**
|
2016-03-24 18:01:20 +00:00
|
|
|
* Marlin 3D Printer Firmware
|
2019-02-12 21:06:53 +00:00
|
|
|
* Copyright (C) 2019 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
|
2016-03-24 18:01:20 +00:00
|
|
|
*
|
|
|
|
* Based on Sprinter and grbl.
|
|
|
|
* Copyright (C) 2011 Camiel Gubbels / Erik van der Zalm
|
|
|
|
*
|
|
|
|
* This program is free software: you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation, either version 3 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
2016-02-27 19:17:07 +00:00
|
|
|
/**
|
|
|
|
* bq ZUM Mega 3D board definition
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __AVR_ATmega2560__
|
2018-11-09 03:57:15 +00:00
|
|
|
#error "Oops! Select 'Arduino/Genuino Mega or Mega 2560' in 'Tools > Board.'"
|
2016-02-27 19:17:07 +00:00
|
|
|
#endif
|
|
|
|
|
2016-06-30 09:24:29 +00:00
|
|
|
#define BOARD_NAME "ZUM Mega 3D"
|
|
|
|
|
2016-10-08 20:27:04 +00:00
|
|
|
//
|
|
|
|
// Heaters / Fans
|
|
|
|
//
|
2018-11-06 04:35:48 +00:00
|
|
|
#define RAMPS_D8_PIN 10
|
|
|
|
#define RAMPS_D9_PIN 12
|
|
|
|
#define RAMPS_D10_PIN 9
|
|
|
|
#define MOSFET_D_PIN 7
|
2016-08-07 00:17:09 +00:00
|
|
|
|
2016-10-22 23:25:59 +00:00
|
|
|
//
|
|
|
|
// Auto fans
|
|
|
|
//
|
|
|
|
#define ORIG_E0_AUTO_FAN_PIN 11
|
|
|
|
#define ORIG_E1_AUTO_FAN_PIN 6
|
2016-12-13 09:26:07 +00:00
|
|
|
#define ORIG_E2_AUTO_FAN_PIN 6
|
2016-10-22 23:25:59 +00:00
|
|
|
#define ORIG_E3_AUTO_FAN_PIN 6
|
|
|
|
|
2017-04-07 18:52:21 +00:00
|
|
|
//
|
|
|
|
// M3/M4/M5 - Spindle/Laser Control
|
|
|
|
//
|
2019-04-08 22:52:33 +00:00
|
|
|
#define SPINDLE_LASER_ENA_PIN 40 // Pin should have a pullup/pulldown!
|
2018-03-28 17:51:59 +00:00
|
|
|
#define SPINDLE_LASER_PWM_PIN 44 // MUST BE HARDWARE PWM
|
2017-04-07 18:52:21 +00:00
|
|
|
#define SPINDLE_DIR_PIN 42
|
|
|
|
|
2016-10-08 20:27:04 +00:00
|
|
|
//
|
|
|
|
// Limit Switches
|
|
|
|
//
|
2018-11-06 04:35:48 +00:00
|
|
|
#define X_MAX_PIN 79 // 2
|
2016-02-27 19:17:07 +00:00
|
|
|
|
2019-06-06 02:32:10 +00:00
|
|
|
//
|
|
|
|
// Import RAMPS 1.3 pins
|
|
|
|
//
|
|
|
|
#include "pins_RAMPS_13.h"
|
|
|
|
|
2016-10-08 20:27:04 +00:00
|
|
|
//
|
|
|
|
// Z Probe (when not Z_MIN_PIN)
|
|
|
|
//
|
2016-08-22 20:08:52 +00:00
|
|
|
#undef Z_MIN_PROBE_PIN
|
2018-11-06 04:35:48 +00:00
|
|
|
#define Z_MIN_PROBE_PIN 19 // IND_S_5V
|
2016-08-22 20:08:52 +00:00
|
|
|
|
2016-03-01 01:24:57 +00:00
|
|
|
#undef Z_ENABLE_PIN
|
2018-11-06 04:35:48 +00:00
|
|
|
#define Z_ENABLE_PIN 77 // 62
|
2016-02-27 19:17:07 +00:00
|
|
|
|
2016-10-08 20:27:04 +00:00
|
|
|
//
|
|
|
|
// Steppers
|
|
|
|
//
|
2018-11-06 04:35:48 +00:00
|
|
|
#define DIGIPOTSS_PIN 22
|
|
|
|
#define DIGIPOT_CHANNELS { 4, 5, 3, 0, 1 }
|
2016-10-08 20:27:04 +00:00
|
|
|
|
|
|
|
//
|
|
|
|
// Temperature Sensors
|
|
|
|
//
|
2016-03-01 01:24:57 +00:00
|
|
|
#undef TEMP_1_PIN
|
2018-11-06 04:35:48 +00:00
|
|
|
#define TEMP_1_PIN 14 // Analog Input (15)
|
2016-02-27 19:17:07 +00:00
|
|
|
|
2016-03-01 01:24:57 +00:00
|
|
|
#undef TEMP_BED_PIN
|
2018-11-06 04:35:48 +00:00
|
|
|
#define TEMP_BED_PIN 15 // Analog Input (14)
|
2016-02-27 19:17:07 +00:00
|
|
|
|
2016-10-08 20:27:04 +00:00
|
|
|
//
|
|
|
|
// Misc. Functions
|
|
|
|
//
|
2018-11-06 04:35:48 +00:00
|
|
|
#undef PS_ON_PIN // 12
|
|
|
|
#define PS_ON_PIN 81 // External Power Supply
|
|
|
|
|
|
|
|
#define CASE_LIGHT_PIN 44 // MUST BE HARDWARE PWM
|
2016-12-13 09:26:07 +00:00
|
|
|
|
|
|
|
|
|
|
|
// This board has headers for Z-min, Z-max and IND_S_5V *but* as the bq team
|
|
|
|
// decided to ship the printer only with the probe and no additional Z-min
|
|
|
|
// endstop and the instruction manual advises the user to connect the probe to
|
|
|
|
// IND_S_5V the option Z_MIN_PROBE_USES_Z_MIN_ENDSTOP_PIN will not work.
|
|
|
|
#ifdef Z_MIN_PROBE_USES_Z_MIN_ENDSTOP_PIN
|
|
|
|
#undef Z_MIN_PIN
|
|
|
|
#undef Z_MAX_PIN
|
2018-11-06 04:35:48 +00:00
|
|
|
#define Z_MIN_PIN 19 // IND_S_5V
|
|
|
|
#define Z_MAX_PIN 18 // Z-MIN Label
|
2016-12-13 09:26:07 +00:00
|
|
|
#endif
|
2017-07-06 17:10:06 +00:00
|
|
|
|
|
|
|
//
|
2018-11-06 04:35:48 +00:00
|
|
|
// Used by the Hephestos 2 heated bed upgrade kit
|
2017-07-06 17:10:06 +00:00
|
|
|
//
|
|
|
|
#if ENABLED(HEPHESTOS2_HEATED_BED_KIT)
|
|
|
|
#undef HEATER_BED_PIN
|
2018-11-06 04:35:48 +00:00
|
|
|
#define HEATER_BED_PIN 8
|
2017-07-06 17:10:06 +00:00
|
|
|
#endif
|