2016-03-25 07:19:46 +01:00
|
|
|
/**
|
2016-03-24 19:01:20 +01:00
|
|
|
* Marlin 3D Printer Firmware
|
2019-06-28 06:57:50 +02:00
|
|
|
* Copyright (c) 2019 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
|
|
|
/**
|
2016-07-02 15:32:21 +02:00
|
|
|
* 3DRAG (and K8200 / K8400) Arduino Mega with RAMPS v1.4 pin assignments
|
2015-01-26 03:40:00 +01:00
|
|
|
*/
|
|
|
|
|
2016-06-30 11:24:29 +02:00
|
|
|
#ifndef BOARD_NAME
|
|
|
|
#define BOARD_NAME "3Drag"
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef DEFAULT_MACHINE_NAME
|
2019-07-10 04:29:14 +02:00
|
|
|
#define DEFAULT_MACHINE_NAME BOARD_NAME
|
2016-06-30 11:24:29 +02:00
|
|
|
#endif
|
2015-01-26 03:40:00 +01:00
|
|
|
|
2016-06-30 11:24:29 +02:00
|
|
|
#ifndef DEFAULT_SOURCE_CODE_URL
|
|
|
|
#define DEFAULT_SOURCE_CODE_URL "http://3dprint.elettronicain.it/"
|
|
|
|
#endif
|
|
|
|
|
2016-10-08 22:27:04 +02:00
|
|
|
//
|
|
|
|
// Heaters / Fans
|
|
|
|
//
|
2019-02-04 07:06:06 +01:00
|
|
|
#define RAMPS_D8_PIN 9
|
|
|
|
#define RAMPS_D9_PIN 8
|
|
|
|
#define MOSFET_D_PIN 12
|
2016-08-12 00:49:47 +02:00
|
|
|
|
2019-02-04 07:06:06 +01:00
|
|
|
#define CASE_LIGHT_PIN -1 // MUST BE HARDWARE PWM but one is not available on expansion header
|
2017-04-07 20:52:21 +02:00
|
|
|
|
2016-07-30 12:10:30 +02:00
|
|
|
#include "pins_RAMPS.h"
|
2016-04-03 03:53:05 +02:00
|
|
|
|
2016-08-23 00:05:22 +02:00
|
|
|
//
|
|
|
|
// Limit Switches
|
|
|
|
//
|
|
|
|
#undef Z_MAX_PIN
|
2016-08-12 00:49:47 +02:00
|
|
|
|
2016-08-23 00:05:22 +02:00
|
|
|
//
|
|
|
|
// Steppers
|
|
|
|
//
|
2015-03-28 04:29:05 +01:00
|
|
|
#undef Z_ENABLE_PIN
|
2015-02-16 06:56:23 +01:00
|
|
|
#define Z_ENABLE_PIN 63
|
|
|
|
|
2016-08-23 00:05:22 +02:00
|
|
|
//
|
2016-10-08 22:27:04 +02:00
|
|
|
// Heaters / Fans
|
|
|
|
//
|
|
|
|
#define HEATER_2_PIN 6
|
|
|
|
|
|
|
|
//
|
|
|
|
// Misc. Functions
|
2016-08-23 00:05:22 +02:00
|
|
|
//
|
2015-03-28 04:29:05 +01:00
|
|
|
#undef SDSS
|
2016-09-19 06:46:09 +02:00
|
|
|
#define SDSS 25
|
|
|
|
|
|
|
|
#undef SD_DETECT_PIN
|
|
|
|
#define SD_DETECT_PIN 53
|
2015-01-26 03:40:00 +01:00
|
|
|
|
2016-08-23 00:05:22 +02:00
|
|
|
//
|
|
|
|
// LCD / Controller
|
|
|
|
//
|
2019-03-17 05:43:06 +01:00
|
|
|
#if BOTH(ULTRA_LCD, NEWPANEL)
|
2015-07-31 08:19:11 +02:00
|
|
|
#undef BEEPER_PIN
|
2015-01-26 03:40:00 +01:00
|
|
|
|
2015-03-28 04:29:05 +01:00
|
|
|
#undef LCD_PINS_RS
|
|
|
|
#undef LCD_PINS_ENABLE
|
|
|
|
#undef LCD_PINS_D4
|
|
|
|
#undef LCD_PINS_D5
|
|
|
|
#undef LCD_PINS_D6
|
|
|
|
#undef LCD_PINS_D7
|
2016-08-23 00:05:22 +02:00
|
|
|
#define LCD_PINS_RS 27
|
|
|
|
#define LCD_PINS_ENABLE 29
|
|
|
|
#define LCD_PINS_D4 37
|
|
|
|
#define LCD_PINS_D5 35
|
|
|
|
#define LCD_PINS_D6 33
|
|
|
|
#define LCD_PINS_D7 31
|
2015-01-26 03:40:00 +01:00
|
|
|
|
|
|
|
// Buttons
|
2015-03-28 04:29:05 +01:00
|
|
|
#undef BTN_EN1
|
|
|
|
#undef BTN_EN2
|
|
|
|
#undef BTN_ENC
|
2016-08-23 00:05:22 +02:00
|
|
|
#define BTN_EN1 16
|
|
|
|
#define BTN_EN2 17
|
|
|
|
#define BTN_ENC 23
|
2015-03-28 04:29:05 +01:00
|
|
|
|
|
|
|
#else
|
|
|
|
|
2016-08-23 00:05:22 +02:00
|
|
|
#define BEEPER_PIN 33
|
2015-03-28 04:29:05 +01:00
|
|
|
|
2019-06-28 05:14:43 +02:00
|
|
|
#endif // HAS_SPI_LCD && NEWPANEL
|
2017-04-07 20:52:21 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* M3/M4/M5 - Spindle/Laser Control
|
|
|
|
*
|
|
|
|
* If you want to control the speed of your spindle then you'll have
|
|
|
|
* have to sacrifce the Extruder and pull some signals off the Z stepper
|
|
|
|
* driver socket.
|
|
|
|
*
|
|
|
|
* The following assumes:
|
|
|
|
* - the Z stepper driver socket is empty
|
|
|
|
* - the extruder driver socket has a driver board plugged into it
|
|
|
|
* - the Z stepper wires are attached the the extruder connector
|
|
|
|
*
|
|
|
|
* If you want to keep the extruder AND don't have a LCD display then
|
|
|
|
* you can still control the power on/off and spindle direction.
|
|
|
|
*
|
|
|
|
* Where to get spindle signals
|
|
|
|
*
|
|
|
|
* stepper signal socket name socket name
|
|
|
|
* -------
|
2019-04-09 00:52:33 +02:00
|
|
|
* SPINDLE_LASER_ENA_PIN /ENABLE O| |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_LASER_PWM_PIN STEP O| |O VDD
|
|
|
|
* SPINDLE_DIR_PIN DIR O| |O GND
|
|
|
|
* -------
|
|
|
|
*
|
|
|
|
* Note: Socket names vary from vendor to vendor
|
|
|
|
*/
|
|
|
|
#undef SPINDLE_LASER_PWM_PIN // Definitions in pins_RAMPS.h are not good with 3DRAG
|
2019-04-09 00:52:33 +02:00
|
|
|
#undef SPINDLE_LASER_ENA_PIN
|
2017-04-07 20:52:21 +02:00
|
|
|
#undef SPINDLE_DIR_PIN
|
|
|
|
|
2019-06-28 06:06:49 +02:00
|
|
|
#if HAS_CUTTER
|
2017-04-07 20:52:21 +02:00
|
|
|
#if !EXTRUDERS
|
|
|
|
#undef E0_DIR_PIN
|
|
|
|
#undef E0_ENABLE_PIN
|
|
|
|
#undef E0_STEP_PIN
|
|
|
|
#undef Z_DIR_PIN
|
|
|
|
#undef Z_ENABLE_PIN
|
|
|
|
#undef Z_STEP_PIN
|
|
|
|
#define Z_DIR_PIN 28
|
|
|
|
#define Z_ENABLE_PIN 24
|
|
|
|
#define Z_STEP_PIN 26
|
2018-03-28 19:51:59 +02:00
|
|
|
#define SPINDLE_LASER_PWM_PIN 46 // MUST BE HARDWARE PWM
|
2019-04-09 00:52:33 +02:00
|
|
|
#define SPINDLE_LASER_ENA_PIN 62 // Pin should have a pullup!
|
2017-04-07 20:52:21 +02:00
|
|
|
#define SPINDLE_DIR_PIN 48
|
2019-03-17 05:43:06 +01:00
|
|
|
#elif !BOTH(ULTRA_LCD, NEWPANEL) // use expansion header if no LCD in use
|
2019-04-09 00:52:33 +02:00
|
|
|
#define SPINDLE_LASER_ENA_PIN 16 // Pin should have a pullup/pulldown!
|
2017-04-07 20:52:21 +02:00
|
|
|
#define SPINDLE_DIR_PIN 17
|
|
|
|
#endif
|
|
|
|
#endif
|