2016-03-25 06:19:46 +00:00
|
|
|
/**
|
2016-03-24 18:01:20 +00:00
|
|
|
* Marlin 3D Printer Firmware
|
2019-06-28 04:57:50 +00:00
|
|
|
* Copyright (c) 2019 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
|
2016-03-24 18:01:20 +00:00
|
|
|
*
|
|
|
|
* Based on Sprinter and grbl.
|
2019-06-28 04:57:50 +00:00
|
|
|
* Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm
|
2016-03-24 18:01:20 +00:00
|
|
|
*
|
|
|
|
* 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/>.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
2015-01-26 02:40:00 +00:00
|
|
|
/**
|
|
|
|
* AZTEEG_X3_PRO (Arduino Mega) pin assignments
|
|
|
|
*/
|
|
|
|
|
2018-06-07 21:46:13 +00:00
|
|
|
#ifndef __AVR_ATmega2560__
|
2018-11-09 03:57:15 +00:00
|
|
|
#error "Oops! Select 'Arduino/Genuino Mega or Mega 2560' in 'Tools > Board.'"
|
2018-06-07 21:46:13 +00:00
|
|
|
#endif
|
|
|
|
|
2017-04-06 21:46:30 +00:00
|
|
|
#if HOTENDS > 5 || E_STEPPERS > 5
|
|
|
|
#error "Azteeg X3 Pro supports up to 5 hotends / E-steppers. Comment out this line to continue."
|
|
|
|
#endif
|
|
|
|
|
2018-06-07 21:46:13 +00:00
|
|
|
#define BOARD_NAME "Azteeg X3 Pro"
|
|
|
|
|
|
|
|
//
|
|
|
|
// RAMPS pins overrides
|
|
|
|
//
|
2017-10-11 20:42:24 +00:00
|
|
|
|
2016-10-08 20:27:04 +00:00
|
|
|
//
|
|
|
|
// Servos
|
2016-08-22 22:05:22 +00:00
|
|
|
//
|
|
|
|
// Tested this pin with bed leveling on a Delta with 1 servo.
|
|
|
|
// Physical wire attachment on EXT1: GND, 5V, D47.
|
|
|
|
//
|
|
|
|
#define SERVO0_PIN 47
|
2016-04-29 01:04:45 +00:00
|
|
|
|
2016-10-08 20:27:04 +00:00
|
|
|
//
|
|
|
|
// Limit Switches
|
2015-03-29 02:14:42 +00:00
|
|
|
//
|
2019-06-06 02:32:10 +00:00
|
|
|
#define X_STOP_PIN 3
|
|
|
|
#define Y_STOP_PIN 14
|
|
|
|
#define Z_STOP_PIN 18
|
|
|
|
|
|
|
|
#ifndef FAN_PIN
|
|
|
|
#define FAN_PIN 6
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if ENABLED(CASE_LIGHT_ENABLE) && !PIN_EXISTS(CASE_LIGHT)
|
|
|
|
#define CASE_LIGHT_PIN 44
|
|
|
|
#endif
|
|
|
|
|
|
|
|
//
|
|
|
|
// Import RAMPS 1.4 pins
|
2015-03-29 02:14:42 +00:00
|
|
|
//
|
2019-06-06 02:32:10 +00:00
|
|
|
#include "pins_RAMPS.h"
|
|
|
|
|
|
|
|
// DIGIPOT slave addresses
|
|
|
|
#ifndef DIGIPOT_I2C_ADDRESS_A
|
|
|
|
#define DIGIPOT_I2C_ADDRESS_A 0x2C // unshifted slave address for first DIGIPOT 0x2C (0x58 <- 0x2C << 1)
|
|
|
|
#endif
|
|
|
|
#ifndef DIGIPOT_I2C_ADDRESS_B
|
|
|
|
#define DIGIPOT_I2C_ADDRESS_B 0x2E // unshifted slave address for second DIGIPOT 0x2E (0x5C <- 0x2E << 1)
|
2015-10-03 06:08:58 +00:00
|
|
|
#endif
|
2016-04-29 01:04:45 +00:00
|
|
|
|
2016-08-22 22:05:22 +00:00
|
|
|
//
|
|
|
|
// Z Probe (when not Z_MIN_PIN)
|
|
|
|
//
|
2016-08-03 03:31:44 +00:00
|
|
|
#ifndef Z_MIN_PROBE_PIN
|
2016-08-22 22:05:22 +00:00
|
|
|
#define Z_MIN_PROBE_PIN 18
|
2015-10-03 06:08:58 +00:00
|
|
|
#endif
|
2016-08-03 03:31:44 +00:00
|
|
|
|
2016-08-22 22:05:22 +00:00
|
|
|
//
|
|
|
|
// Steppers
|
|
|
|
//
|
2015-01-26 02:40:00 +00:00
|
|
|
#define E2_STEP_PIN 23
|
|
|
|
#define E2_DIR_PIN 25
|
|
|
|
#define E2_ENABLE_PIN 40
|
|
|
|
|
|
|
|
#define E3_STEP_PIN 27
|
|
|
|
#define E3_DIR_PIN 29
|
|
|
|
#define E3_ENABLE_PIN 41
|
|
|
|
|
|
|
|
#define E4_STEP_PIN 43
|
|
|
|
#define E4_DIR_PIN 37
|
|
|
|
#define E4_ENABLE_PIN 42
|
|
|
|
|
2016-08-22 22:05:22 +00:00
|
|
|
//
|
|
|
|
// Temperature Sensors
|
|
|
|
//
|
2016-10-08 20:27:04 +00:00
|
|
|
#define TEMP_2_PIN 12 // Analog Input
|
|
|
|
#define TEMP_3_PIN 11 // Analog Input
|
|
|
|
#define TEMP_4_PIN 10 // Analog Input
|
|
|
|
#define TC1 4 // Analog Input (Thermo couple on Azteeg X3Pro)
|
|
|
|
#define TC2 5 // Analog Input (Thermo couple on Azteeg X3Pro)
|
2016-08-22 22:05:22 +00:00
|
|
|
|
|
|
|
//
|
|
|
|
// Heaters / Fans
|
|
|
|
//
|
2015-01-26 02:40:00 +00:00
|
|
|
#define HEATER_2_PIN 16
|
|
|
|
#define HEATER_3_PIN 17
|
2015-02-20 01:26:22 +00:00
|
|
|
#define HEATER_4_PIN 4
|
|
|
|
#define HEATER_5_PIN 5
|
|
|
|
#define HEATER_6_PIN 6
|
2015-01-26 02:40:00 +00:00
|
|
|
#define HEATER_7_PIN 11
|
|
|
|
|
2017-05-03 01:18:31 +00:00
|
|
|
#ifndef CONTROLLER_FAN_PIN
|
2018-03-28 17:51:59 +00:00
|
|
|
#define CONTROLLER_FAN_PIN 4 // Pin used for the fan to cool motherboard (-1 to disable)
|
2017-05-03 01:18:31 +00:00
|
|
|
#endif
|
2016-08-22 22:05:22 +00:00
|
|
|
|
|
|
|
// Fans/Water Pump to cool the hotend cool side.
|
2016-10-22 23:25:59 +00:00
|
|
|
#define ORIG_E0_AUTO_FAN_PIN 5
|
|
|
|
#define ORIG_E1_AUTO_FAN_PIN 5
|
|
|
|
#define ORIG_E2_AUTO_FAN_PIN 5
|
|
|
|
#define ORIG_E3_AUTO_FAN_PIN 5
|
2015-03-29 02:14:42 +00:00
|
|
|
|
|
|
|
//
|
2016-08-22 22:05:22 +00:00
|
|
|
// LCD / Controller
|
2015-03-29 02:14:42 +00:00
|
|
|
//
|
2016-08-22 22:05:22 +00:00
|
|
|
#undef BEEPER_PIN
|
|
|
|
#define BEEPER_PIN 33
|
2015-03-29 06:52:53 +00:00
|
|
|
|
2019-03-17 04:43:06 +00:00
|
|
|
#if ANY(VIKI2, miniVIKI)
|
2016-06-29 01:11:32 +00:00
|
|
|
#undef SD_DETECT_PIN
|
2017-06-08 23:08:03 +00:00
|
|
|
#define SD_DETECT_PIN 49 // For easy adapter board
|
2017-04-07 18:52:21 +00:00
|
|
|
#undef BEEPER_PIN
|
2018-03-28 17:51:59 +00:00
|
|
|
#define BEEPER_PIN 12 // 33 isn't physically available to the LCD display
|
2016-08-22 22:05:22 +00:00
|
|
|
#else
|
2017-10-09 21:18:10 +00:00
|
|
|
#define STAT_LED_RED_PIN 32
|
2016-09-24 21:26:41 +00:00
|
|
|
#define STAT_LED_BLUE_PIN 35
|
2015-10-03 06:08:58 +00:00
|
|
|
#endif
|
2017-04-07 18:52:21 +00:00
|
|
|
|
|
|
|
//
|
|
|
|
// Misc. Functions
|
|
|
|
//
|
2019-03-17 04:43:06 +00:00
|
|
|
#if ENABLED(CASE_LIGHT_ENABLE) && PIN_EXISTS(CASE_LIGHT) && defined(DOGLCD_A0) && DOGLCD_A0 == CASE_LIGHT_PIN
|
2018-03-28 17:51:59 +00:00
|
|
|
#undef DOGLCD_A0 // Steal pin 44 for the case light; if you have a Viki2 and have connected it
|
|
|
|
#define DOGLCD_A0 57 // following the Panucatt wiring diagram, you may need to tweak these pin assignments
|
|
|
|
// as the wiring diagram uses pin 44 for DOGLCD_A0
|
2017-04-07 18:52:21 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
//
|
|
|
|
// M3/M4/M5 - Spindle/Laser Control
|
|
|
|
//
|
2017-06-01 17:33:24 +00:00
|
|
|
#undef SPINDLE_LASER_PWM_PIN // Definitions in pins_RAMPS.h are no good with the AzteegX3pro board
|
2019-04-08 22:52:33 +00:00
|
|
|
#undef SPINDLE_LASER_ENA_PIN
|
2017-04-07 18:52:21 +00:00
|
|
|
#undef SPINDLE_DIR_PIN
|
|
|
|
|
2019-06-28 04:06:49 +00:00
|
|
|
#if HAS_CUTTER // EXP2 header
|
2019-03-17 04:43:06 +00:00
|
|
|
#if ANY(VIKI2, miniVIKI)
|
2017-04-07 18:52:21 +00:00
|
|
|
#undef BTN_EN2
|
2018-03-28 17:51:59 +00:00
|
|
|
#define BTN_EN2 31 // need 7 for the spindle speed PWM
|
2017-04-07 18:52:21 +00:00
|
|
|
#endif
|
2018-03-28 17:51:59 +00:00
|
|
|
#define SPINDLE_LASER_PWM_PIN 7 // must have a hardware PWM
|
2019-04-08 22:52:33 +00:00
|
|
|
#define SPINDLE_LASER_ENA_PIN 20 // Pin should have a pullup!
|
2017-04-07 18:52:21 +00:00
|
|
|
#define SPINDLE_DIR_PIN 21
|
|
|
|
#endif
|