2016-03-25 07:19:46 +01:00
|
|
|
/**
|
2016-03-24 19:01:20 +01:00
|
|
|
* Marlin 3D Printer Firmware
|
2020-02-03 15:00:57 +01:00
|
|
|
* Copyright (c) 2020 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
|
2016-03-24 19:01:20 +01:00
|
|
|
*
|
|
|
|
* Based on Sprinter and grbl.
|
2019-06-28 06:57:50 +02:00
|
|
|
* Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm
|
2016-03-24 19:01:20 +01: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/>.
|
|
|
|
*
|
|
|
|
*/
|
2019-07-05 05:44:12 +02:00
|
|
|
#pragma once
|
2016-03-24 19:01:20 +01:00
|
|
|
|
2015-01-26 03:40:00 +01:00
|
|
|
/**
|
|
|
|
* Ultimaker pin assignments (Old electronics)
|
|
|
|
*/
|
|
|
|
|
2019-06-28 05:14:43 +02:00
|
|
|
/**
|
2017-04-07 20:52:21 +02:00
|
|
|
* Rev B 3 JAN 2017
|
|
|
|
*
|
|
|
|
* Details on pin definitions for M3, M4 & M5 spindle control commands and for
|
|
|
|
* the CASE_LIGHT_PIN are at the end of this file.
|
|
|
|
*
|
|
|
|
* This started out as an attempt to add pin definitions for M3, M4 & M5 spindle
|
|
|
|
* control commands but quickly turned into a head scratcher as the sources for
|
|
|
|
* the revisions provided inconsistent information.
|
|
|
|
*
|
|
|
|
* As best I can determine:
|
2019-08-21 02:08:58 +02:00
|
|
|
* 1.5.3 boards should use the pins_ULTIMAKER.h file which means the BOARD_INFO_NAME
|
2017-04-07 20:52:21 +02:00
|
|
|
* define in this file should say 1.5.3 rather than 1.5.4
|
|
|
|
* This file is meant for 1.1 - 1.3 boards.
|
|
|
|
* The endstops for the 1.0 boards use different definitions than on the 1.1 - 1.3
|
|
|
|
* boards.
|
|
|
|
*
|
|
|
|
* I've added sections that have the 1.0 and 1.5.3 + endstop definitions so you can
|
|
|
|
* easily switch if needed. I've also copied over the 1.5.3 + LCD definitions.
|
|
|
|
*
|
|
|
|
* To be 100% sure of the board you have:
|
|
|
|
* 1. In Configuration_adv.h enable "PINS_DEBUGGING"
|
|
|
|
* 2. Compile & uploade
|
|
|
|
* 3. Enter the command "M43 W1 I1". This command will report that pin nmumber and
|
|
|
|
* name of any pin that changes state.
|
|
|
|
* 4. Using a 1k (approximately) resistor pull the endstops and some of the LCD pins
|
|
|
|
* to ground and see what is reported.
|
|
|
|
* 5. If the reported pin doesn't match the file then try a different board revision
|
|
|
|
* and repeat steps 2 - 5
|
|
|
|
*/
|
|
|
|
|
2019-06-28 05:14:43 +02:00
|
|
|
#define BOARD_REV_1_1_TO_1_3
|
|
|
|
//#define BOARD_REV_1_0
|
|
|
|
//#define BOARD_REV_1_5
|
2017-04-07 20:52:21 +02:00
|
|
|
|
2015-01-26 03:40:00 +01:00
|
|
|
#if !defined(__AVR_ATmega1280__) && !defined(__AVR_ATmega2560__)
|
2018-11-09 04:57:15 +01:00
|
|
|
#error "Oops! Select 'Arduino/Genuino Mega or Mega 2560' in 'Tools > Board.'"
|
2015-01-26 03:40:00 +01:00
|
|
|
#endif
|
|
|
|
|
2019-07-10 04:29:14 +02:00
|
|
|
#ifdef BOARD_REV_1_1_TO_1_3
|
2019-08-21 02:08:58 +02:00
|
|
|
#define BOARD_INFO_NAME "Ultimaker 1.1-1.3"
|
2019-07-10 04:29:14 +02:00
|
|
|
#elif defined(BOARD_REV_1_0)
|
2019-08-21 02:08:58 +02:00
|
|
|
#define BOARD_INFO_NAME "Ultimaker 1.0"
|
2019-07-10 04:29:14 +02:00
|
|
|
#elif defined(BOARD_REV_1_5)
|
2019-08-21 02:08:58 +02:00
|
|
|
#define BOARD_INFO_NAME "Ultimaker 1.5"
|
2019-07-10 04:29:14 +02:00
|
|
|
#else
|
2019-08-21 02:08:58 +02:00
|
|
|
#define BOARD_INFO_NAME "Ultimaker 1.5.4+"
|
2019-07-10 04:29:14 +02:00
|
|
|
#endif
|
2016-04-24 06:19:51 +02:00
|
|
|
#define DEFAULT_MACHINE_NAME "Ultimaker"
|
|
|
|
#define DEFAULT_SOURCE_CODE_URL "https://github.com/Ultimaker/Marlin"
|
2016-04-03 03:53:05 +02:00
|
|
|
|
2016-08-23 00:05:22 +02:00
|
|
|
//
|
|
|
|
// Limit Switches
|
|
|
|
//
|
2019-06-28 05:14:43 +02:00
|
|
|
#if ENABLED(BOARD_REV_1_1_TO_1_3)
|
2020-03-22 03:13:19 +01:00
|
|
|
#define X_MIN_PIN 15 // SW1
|
|
|
|
#define X_MAX_PIN 14 // SW2
|
|
|
|
#define Y_MIN_PIN 17 // SW3
|
|
|
|
#define Y_MAX_PIN 16 // SW4
|
|
|
|
#define Z_MIN_PIN 19 // SW5
|
|
|
|
#define Z_MAX_PIN 18 // SW6
|
2017-04-07 20:52:21 +02:00
|
|
|
#endif
|
|
|
|
|
2019-06-28 05:14:43 +02:00
|
|
|
#if ENABLED(BOARD_REV_1_0)
|
2019-06-28 06:06:49 +02:00
|
|
|
#if HAS_CUTTER
|
2020-03-22 03:13:19 +01:00
|
|
|
#define X_STOP_PIN 13 // SW1 (didn't change) - also has a useable hardware PWM
|
|
|
|
#define Y_STOP_PIN 12 // SW2
|
|
|
|
#define Z_STOP_PIN 11 // SW3
|
2019-06-28 05:14:43 +02:00
|
|
|
#else
|
2020-03-22 03:13:19 +01:00
|
|
|
#define X_MIN_PIN 13 // SW1
|
|
|
|
#define X_MAX_PIN 12 // SW2
|
|
|
|
#define Y_MIN_PIN 11 // SW3
|
|
|
|
#define Y_MAX_PIN 10 // SW4
|
|
|
|
#define Z_MIN_PIN 9 // SW5
|
|
|
|
#define Z_MAX_PIN 8 // SW6
|
2019-06-28 05:14:43 +02:00
|
|
|
#endif
|
2017-04-07 20:52:21 +02:00
|
|
|
#endif
|
|
|
|
|
2019-06-28 05:14:43 +02:00
|
|
|
#if ENABLED(BOARD_REV_1_5)
|
2020-03-22 03:13:19 +01:00
|
|
|
#define X_MIN_PIN 22
|
|
|
|
#define X_MAX_PIN 24
|
|
|
|
#define Y_MIN_PIN 26
|
|
|
|
#define Y_MAX_PIN 28
|
|
|
|
#define Z_MIN_PIN 30
|
|
|
|
#define Z_MAX_PIN 32
|
2017-04-07 20:52:21 +02:00
|
|
|
#endif
|
2015-01-26 03:40:00 +01:00
|
|
|
|
2016-08-23 00:05:22 +02:00
|
|
|
//
|
|
|
|
// Z Probe (when not Z_MIN_PIN)
|
|
|
|
//
|
2019-06-28 06:06:49 +02:00
|
|
|
#if !defined(Z_MIN_PROBE_PIN) && !(HAS_CUTTER && ENABLED(BOARD_REV_1_0))
|
2020-03-22 03:13:19 +01:00
|
|
|
#define Z_MIN_PROBE_PIN Z_MAX_PIN
|
2016-08-23 00:05:22 +02:00
|
|
|
#endif
|
|
|
|
|
|
|
|
//
|
|
|
|
// Steppers
|
|
|
|
//
|
2020-03-22 03:13:19 +01:00
|
|
|
#define X_STEP_PIN 25
|
|
|
|
#define X_DIR_PIN 23
|
|
|
|
#define X_ENABLE_PIN 27
|
2016-08-23 00:05:22 +02:00
|
|
|
|
2020-03-22 03:13:19 +01:00
|
|
|
#define Y_STEP_PIN 31
|
|
|
|
#define Y_DIR_PIN 33
|
|
|
|
#define Y_ENABLE_PIN 29
|
2015-01-26 03:40:00 +01:00
|
|
|
|
2020-03-22 03:13:19 +01:00
|
|
|
#define Z_STEP_PIN 37
|
|
|
|
#define Z_DIR_PIN 39
|
|
|
|
#define Z_ENABLE_PIN 35
|
2015-01-26 03:40:00 +01:00
|
|
|
|
2019-06-28 06:06:49 +02:00
|
|
|
#if HAS_CUTTER && ENABLED(BOARD_REV_1_1_TO_1_3) && EXTRUDERS == 1
|
2019-06-28 05:14:43 +02:00
|
|
|
// Move E0 to the spare and get Spindle/Laser signals from E0
|
2020-03-22 03:13:19 +01:00
|
|
|
#define E0_STEP_PIN 49
|
|
|
|
#define E0_DIR_PIN 47
|
|
|
|
#define E0_ENABLE_PIN 48
|
2019-06-28 05:14:43 +02:00
|
|
|
#else
|
2020-03-22 03:13:19 +01:00
|
|
|
#define E0_STEP_PIN 43
|
|
|
|
#define E0_DIR_PIN 45
|
|
|
|
#define E0_ENABLE_PIN 41
|
2019-06-28 05:14:43 +02:00
|
|
|
|
2020-03-22 03:13:19 +01:00
|
|
|
#define E1_STEP_PIN 49
|
|
|
|
#define E1_DIR_PIN 47
|
|
|
|
#define E1_ENABLE_PIN 48
|
2019-06-28 05:14:43 +02:00
|
|
|
#endif
|
2015-01-26 03:40:00 +01:00
|
|
|
|
2016-08-23 00:05:22 +02:00
|
|
|
//
|
|
|
|
// Temperature Sensors
|
|
|
|
//
|
2020-03-22 03:13:19 +01:00
|
|
|
#define TEMP_0_PIN 8 // Analog Input
|
|
|
|
#define TEMP_1_PIN 1 // Analog Input
|
2015-01-26 03:40:00 +01:00
|
|
|
|
2016-08-23 00:05:22 +02:00
|
|
|
//
|
|
|
|
// Heaters / Fans
|
|
|
|
//
|
2020-03-22 03:13:19 +01:00
|
|
|
#define HEATER_0_PIN 2
|
|
|
|
//#define HEATER_1_PIN 3 // used for case light Rev A said "1"
|
|
|
|
#define HEATER_BED_PIN 4
|
2015-01-26 03:40:00 +01:00
|
|
|
|
2016-08-23 00:05:22 +02:00
|
|
|
//
|
|
|
|
// LCD / Controller
|
|
|
|
//
|
2019-06-28 05:14:43 +02:00
|
|
|
#if ANY(BOARD_REV_1_0, BOARD_REV_1_1_TO_1_3)
|
2019-03-17 05:43:06 +01:00
|
|
|
|
2020-03-22 03:13:19 +01:00
|
|
|
#define LCD_PINS_RS 24
|
|
|
|
#define LCD_PINS_ENABLE 22
|
|
|
|
#define LCD_PINS_D4 36
|
|
|
|
#define LCD_PINS_D5 34
|
|
|
|
#define LCD_PINS_D6 32
|
|
|
|
#define LCD_PINS_D7 30
|
2017-04-07 20:52:21 +02:00
|
|
|
|
2019-06-28 05:14:43 +02:00
|
|
|
#elif ENABLED(BOARD_REV_1_5, ULTRA_LCD)
|
|
|
|
|
2020-03-22 03:13:19 +01:00
|
|
|
#define BEEPER_PIN 18
|
2017-04-07 20:52:21 +02:00
|
|
|
|
|
|
|
#if ENABLED(NEWPANEL)
|
|
|
|
|
2020-03-22 03:13:19 +01:00
|
|
|
#define LCD_PINS_RS 20
|
|
|
|
#define LCD_PINS_ENABLE 17
|
|
|
|
#define LCD_PINS_D4 16
|
|
|
|
#define LCD_PINS_D5 21
|
|
|
|
#define LCD_PINS_D6 5
|
|
|
|
#define LCD_PINS_D7 6
|
2017-04-07 20:52:21 +02:00
|
|
|
|
2019-08-21 12:15:31 +02:00
|
|
|
// Buttons directly attached
|
2020-03-22 03:13:19 +01:00
|
|
|
#define BTN_EN1 40
|
|
|
|
#define BTN_EN2 42
|
|
|
|
#define BTN_ENC 19
|
2017-04-07 20:52:21 +02:00
|
|
|
|
2020-03-22 03:13:19 +01:00
|
|
|
#define SD_DETECT_PIN 38
|
2017-04-07 20:52:21 +02:00
|
|
|
|
2020-03-22 03:13:19 +01:00
|
|
|
#else // !NEWPANEL - Old style panel with shift register
|
2017-04-07 20:52:21 +02:00
|
|
|
|
2019-08-21 12:15:31 +02:00
|
|
|
// Buttons attached to a shift register
|
2020-03-22 03:13:19 +01:00
|
|
|
#define SHIFT_CLK 38
|
|
|
|
#define SHIFT_LD 42
|
|
|
|
#define SHIFT_OUT 40
|
|
|
|
#define SHIFT_EN 17
|
|
|
|
|
|
|
|
#define LCD_PINS_RS 16
|
|
|
|
#define LCD_PINS_ENABLE 5
|
|
|
|
#define LCD_PINS_D4 6
|
|
|
|
#define LCD_PINS_D5 21
|
|
|
|
#define LCD_PINS_D6 20
|
|
|
|
#define LCD_PINS_D7 19
|
2017-04-07 20:52:21 +02:00
|
|
|
|
|
|
|
#endif // !NEWPANEL
|
|
|
|
|
2019-06-28 05:14:43 +02:00
|
|
|
#endif
|
2017-04-07 20:52:21 +02:00
|
|
|
|
|
|
|
//
|
|
|
|
// case light - see spindle section for more info on available hardware PWMs
|
|
|
|
//
|
2019-06-28 05:14:43 +02:00
|
|
|
#if !PIN_EXISTS(CASE_LIGHT) && ENABLED(BOARD_REV_1_5)
|
2020-03-22 03:13:19 +01:00
|
|
|
#define CASE_LIGHT_PIN 7 // use PWM - MUST BE HARDWARE PWM
|
2017-04-07 20:52:21 +02:00
|
|
|
#endif
|
|
|
|
|
|
|
|
//
|
|
|
|
// M3/M4/M5 - Spindle/Laser Control
|
|
|
|
//
|
2019-06-28 06:06:49 +02:00
|
|
|
#if HAS_CUTTER
|
2020-03-22 03:13:19 +01:00
|
|
|
#if EITHER(BOARD_REV_1_0, BOARD_REV_1_5) // Use the last three SW positions
|
|
|
|
#define SPINDLE_DIR_PIN 10 // 1.0: SW4 1.5: EXP3-6 ("10")
|
|
|
|
#define SPINDLE_LASER_PWM_PIN 9 // 1.0: SW5 1.5: EXP3-7 ( "9") .. MUST BE HARDWARE PWM
|
|
|
|
#define SPINDLE_LASER_ENA_PIN 8 // 1.0: SW6 1.5: EXP3-8 ( "8") .. Pin should have a pullup!
|
2019-06-28 05:14:43 +02:00
|
|
|
#elif ENABLED(BOARD_REV_1_1_TO_1_3)
|
2017-04-07 20:52:21 +02:00
|
|
|
/**
|
2019-06-28 05:14:43 +02:00
|
|
|
* Only four hardware PWMs physically connected to anything on these boards:
|
2017-04-07 20:52:21 +02:00
|
|
|
*
|
2019-06-28 05:14:43 +02:00
|
|
|
* HEATER_0_PIN 2 silkscreen varies - usually "PWM 1" or "HEATER1"
|
|
|
|
* HEATER_1_PIN 3 silkscreen varies - usually "PWM 2" or "HEATER2"
|
|
|
|
* HEATER_BED_PIN 4 silkscreen varies - usually "PWM 3" or "HEATED BED"
|
|
|
|
* E0_DIR_PIN 45
|
2017-04-07 20:52:21 +02:00
|
|
|
*
|
2019-06-28 05:14:43 +02:00
|
|
|
* If one of the heaters is used then special precautions will usually be needed.
|
|
|
|
* They have an LED and resistor pullup to +24V which could damage 3.3V-5V ICs.
|
2017-04-07 20:52:21 +02:00
|
|
|
*/
|
2019-06-28 05:14:43 +02:00
|
|
|
#if EXTRUDERS == 1
|
2020-03-22 03:13:19 +01:00
|
|
|
#define SPINDLE_DIR_PIN 43
|
|
|
|
#define SPINDLE_LASER_PWM_PIN 45 // Hardware PWM
|
|
|
|
#define SPINDLE_LASER_ENA_PIN 41 // Pullup!
|
|
|
|
#elif TEMP_SENSOR_BED == 0 // Can't use E0 so see if HEATER_BED_PIN is available
|
2017-04-07 20:52:21 +02:00
|
|
|
#undef HEATER_BED_PIN
|
2020-03-22 03:13:19 +01:00
|
|
|
#define SPINDLE_DIR_PIN 38 // Probably pin 4 on 10 pin connector closest to the E0 socket
|
|
|
|
#define SPINDLE_LASER_PWM_PIN 4 // Hardware PWM - Special precautions usually needed.
|
|
|
|
#define SPINDLE_LASER_ENA_PIN 40 // Pullup! (Probably pin 6 on the 10-pin
|
2018-03-28 19:51:59 +02:00
|
|
|
// connector closest to the E0 socket)
|
2017-04-07 20:52:21 +02:00
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Where to get the spindle signals on the E0 socket
|
|
|
|
*
|
|
|
|
* spindle signal socket name socket name
|
|
|
|
* -------
|
2019-04-09 00:52:33 +02:00
|
|
|
* SPINDLE_LASER_ENA_PIN /ENABLE *| |O VMOT
|
2017-04-07 20:52:21 +02:00
|
|
|
* MS1 O| |O GND
|
|
|
|
* MS2 O| |O 2B
|
|
|
|
* MS3 O| |O 2A
|
|
|
|
* /RESET O| |O 1A
|
|
|
|
* /SLEEP O| |O 1B
|
|
|
|
* SPINDLE_DIR_PIN STEP O| |O VDD
|
|
|
|
* SPINDLE_LASER_PWM_PIN DIR O| |O GND
|
|
|
|
* -------
|
|
|
|
* * - pin closest to MS1, MS2 & MS3 jumpers on the board
|
|
|
|
*
|
|
|
|
* Note: Socket names vary from vendor to vendor.
|
|
|
|
*/
|