mirror of
https://github.com/MarlinFirmware/Marlin.git
synced 2024-11-26 21:36:21 +00:00
✨ Geeetech GT2560 V4.1B board (#25888)
This commit is contained in:
parent
863198a73f
commit
f66323ecfb
@ -179,6 +179,7 @@
|
||||
#define BOARD_GT2560_V4_A20 1328 // Geeetech GT2560 Rev B for A20(M/T/D)
|
||||
#define BOARD_PROTONEER_CNC_SHIELD_V3 1329 // Mega controller & Protoneer CNC Shield V3.00
|
||||
#define BOARD_WEEDO_62A 1330 // WEEDO 62A board (TINA2, Monoprice Cadet, etc.)
|
||||
#define BOARD_GT2560_V41B 1331 // Geeetech GT2560 V4.1B for A10(M/T/D)
|
||||
|
||||
//
|
||||
// ATmega1281, ATmega2561
|
||||
|
@ -95,7 +95,7 @@
|
||||
#endif
|
||||
|
||||
//
|
||||
// Power Recovery
|
||||
// Power Loss Detection
|
||||
//
|
||||
#define POWER_LOSS_PIN 69 // Pin to detect power loss
|
||||
#define POWER_LOSS_STATE LOW
|
||||
@ -168,10 +168,18 @@
|
||||
#define BEEPER_PIN 18
|
||||
|
||||
#if ENABLED(YHCB2004)
|
||||
#ifndef YHCB2004_MOSI_PIN
|
||||
#define YHCB2004_MOSI_PIN 21
|
||||
#endif
|
||||
#ifndef YHCB2004_MISO_PIN
|
||||
#define YHCB2004_MISO_PIN 36
|
||||
#endif
|
||||
#ifndef YHCB2004_SCK_PIN
|
||||
#define YHCB2004_SCK_PIN 5
|
||||
#endif
|
||||
#ifndef YHCB2004_SS_PIN
|
||||
#define YHCB2004_SS_PIN SS
|
||||
#endif
|
||||
#elif HAS_WIRED_LCD
|
||||
#ifndef LCD_PINS_RS
|
||||
#define LCD_PINS_RS 20
|
||||
|
248
Marlin/src/pins/mega/pins_GT2560_V41b.h
Normal file
248
Marlin/src/pins/mega/pins_GT2560_V41b.h
Normal file
@ -0,0 +1,248 @@
|
||||
/**
|
||||
* Marlin 3D Printer Firmware
|
||||
* Copyright (c) 2023 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
|
||||
*
|
||||
* 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 <https://www.gnu.org/licenses/>.
|
||||
*
|
||||
*/
|
||||
#pragma once
|
||||
|
||||
/**
|
||||
* Geeetech GT2560 V4.1b Pins
|
||||
* Schematic (4.1B): https://green-candy.osdn.jp/external/MarlinFW/board_schematics/Geeetech%20GT2560%20V4.x%20+%20A20/GT2560V4.1BSCHA20T.pdf
|
||||
* Origin: https://www.geeetech.com/download.html?spm=a2g0s.imconversation.0.0.22d23e5fXlQBWv&download_id=45
|
||||
* ATmega2560
|
||||
*/
|
||||
|
||||
#define ALLOW_MEGA1280
|
||||
#include "env_validate.h"
|
||||
|
||||
#if HOTENDS > 3 || E_STEPPERS > 3
|
||||
#error "GT2560 supports up to 3 hotends / E steppers."
|
||||
#endif
|
||||
|
||||
#define BOARD_INFO_NAME "GT2560 4.1b"
|
||||
|
||||
/** Limit Switches Connectors
|
||||
* All have external 10k pull-up resistors
|
||||
*
|
||||
* X-Y-Z AXIS MAX LIMIT SWITCHES CONNECTOR (H6)
|
||||
* ---------
|
||||
* | 1 4 7 | 5V 32 Z0_MAX GND
|
||||
* | 2 5 8 | 5V 26 Y_MAX GND
|
||||
* | 3 6 9 | 5V 22 X_MAX GND
|
||||
* ---------
|
||||
* H6
|
||||
*
|
||||
* X AXIS Y AXIS Z1 AXIS Z0 AXIS
|
||||
* --- --- --- ---
|
||||
* | 1 | 5V | 1 | 5V | 1 | 5V | 1 | 5V
|
||||
* | 2 | 24 X_MIN | 2 | 28 Y_MIN | 2 | PE7 Z1_MIN | 2 | 30 Z0_MIN
|
||||
* | 3 | GND | 3 | GND | 3 | GND | 3 | GND
|
||||
* --- --- --- ---
|
||||
* J3 J4 J5 J6
|
||||
*
|
||||
*/
|
||||
|
||||
//#define Z1_MIN PE7 // Number??
|
||||
|
||||
#ifndef X_STOP_PIN
|
||||
#ifndef X_MIN_PIN
|
||||
#define X_MIN_PIN 24
|
||||
#endif
|
||||
#ifndef X_MAX_PIN
|
||||
#define X_MAX_PIN 22
|
||||
#endif
|
||||
#endif
|
||||
#ifndef Y_STOP_PIN
|
||||
#ifndef Y_MIN_PIN
|
||||
#define Y_MIN_PIN 28
|
||||
#endif
|
||||
#ifndef Y_MAX_PIN
|
||||
#define Y_MAX_PIN 26
|
||||
#endif
|
||||
#endif
|
||||
#ifndef Z_STOP_PIN
|
||||
#ifndef Z_MIN_PIN
|
||||
#define Z_MIN_PIN 30
|
||||
#endif
|
||||
#ifndef Z_MAX_PIN
|
||||
#define Z_MAX_PIN 32
|
||||
#endif
|
||||
#endif
|
||||
|
||||
/** Filament Runout Sensors
|
||||
*
|
||||
* Filament 1 Filament 2 Filament 3
|
||||
* --- --- ---
|
||||
* | 1 | 5V | 1 | 5V | 1 | 5V
|
||||
* | 2 | 66 F_DET0 | 2 | 67 F_DET1 | 2 | 54 F_DET2
|
||||
* | 3 | GND | 3 | GND | 3 | GND
|
||||
* --- --- ---
|
||||
* J12 J13 J14
|
||||
*/
|
||||
|
||||
#ifndef FIL_RUNOUT_PIN
|
||||
#define FIL_RUNOUT_PIN 66
|
||||
#endif
|
||||
#ifndef FIL_RUNOUT2_PIN
|
||||
#define FIL_RUNOUT2_PIN 67
|
||||
#endif
|
||||
#ifndef FIL_RUNOUT3_PIN
|
||||
#define FIL_RUNOUT3_PIN 54
|
||||
#endif
|
||||
|
||||
//
|
||||
// Power Loss Detection
|
||||
//
|
||||
#define POWER_LOSS_PIN 69 // Pin to detect power loss
|
||||
#define POWER_LOSS_STATE LOW
|
||||
|
||||
//
|
||||
// Steppers
|
||||
//
|
||||
#define X_STEP_PIN 37
|
||||
#define X_DIR_PIN 39
|
||||
#define X_ENABLE_PIN 35
|
||||
|
||||
#define Y_STEP_PIN 31
|
||||
#define Y_DIR_PIN 33
|
||||
#define Y_ENABLE_PIN 29
|
||||
|
||||
#define Z_STEP_PIN 25
|
||||
#define Z_DIR_PIN 23
|
||||
#define Z_ENABLE_PIN 27
|
||||
|
||||
#define E0_STEP_PIN 46
|
||||
#define E0_DIR_PIN 44
|
||||
#define E0_ENABLE_PIN 12
|
||||
|
||||
#define E1_STEP_PIN 49
|
||||
#define E1_DIR_PIN 47
|
||||
#define E1_ENABLE_PIN 48
|
||||
|
||||
#define E2_STEP_PIN 43
|
||||
#define E2_DIR_PIN 45
|
||||
#define E2_ENABLE_PIN 41
|
||||
|
||||
/** Printhead Connector
|
||||
* ------
|
||||
* (PWM8_FAN0) FAN_E0 9 | 1 2 | 9 FAN_E0 24V PWM FROM (PWM8_FAN0)
|
||||
* (T0) A11 | 3 4 | A11 (T0) E0 Temp
|
||||
* GND | 5 6 | 30 Z_MIN1 same as (Z0_MIN)
|
||||
* 5V | 7 8 | 11 (PB5) servo for BL_TOUCH/3D_TOUCH
|
||||
* (PB4_HE2) HE2 19 | 9 10 | GND
|
||||
* (PB4_HE2) HE2 19 |11 12 | 19 HE2 24V PWM out for E0 (PB4_HE2)
|
||||
* V24 |13 14 | V24
|
||||
* V24 |15 16 | V24
|
||||
* ------
|
||||
* H3
|
||||
*/
|
||||
|
||||
#define SERVO0_PIN 11 // BLTouch / 3DTouch
|
||||
|
||||
//
|
||||
// Z Probe PIN6 Header H3 (Print head connector)
|
||||
//
|
||||
#ifndef Z_MIN_PROBE_PIN
|
||||
#define Z_MIN_PROBE_PIN Z_MIN_PIN
|
||||
#endif
|
||||
|
||||
//
|
||||
// Temperature Sensors
|
||||
//
|
||||
#define TEMP_0_PIN 11 // Analog Input
|
||||
#define TEMP_1_PIN 9 // Analog Input
|
||||
#define TEMP_2_PIN 8 // Analog Input
|
||||
#define TEMP_BED_PIN 10 // Analog Input
|
||||
|
||||
//
|
||||
// Heaters / Fans
|
||||
//
|
||||
#define HEATER_0_PIN 10 // PWM out to E0
|
||||
#define HEATER_1_PIN 3
|
||||
#define HEATER_2_PIN 2
|
||||
#define HEATER_BED_PIN 4
|
||||
#define FAN0_PIN 9
|
||||
#define FAN1_PIN 8
|
||||
#define FAN2_PIN 7
|
||||
|
||||
//
|
||||
// Misc. Functions
|
||||
//
|
||||
#define SD_DETECT_PIN 38
|
||||
#define SDSS 53
|
||||
#define LED_PIN 13 // Use 6 (case light) for external LED. 13 is internal (yellow) LED.
|
||||
#define PS_ON_PIN 12
|
||||
|
||||
#if NUM_RUNOUT_SENSORS < 3
|
||||
#define SUICIDE_PIN 54 // This pin must be enabled at boot to keep power flowing
|
||||
#endif
|
||||
|
||||
#ifndef CASE_LIGHT_PIN
|
||||
#define CASE_LIGHT_PIN 6 // 21
|
||||
#endif
|
||||
|
||||
/** LCD Connector
|
||||
* ------
|
||||
* 5V | 1 2 | GND
|
||||
* (LCM_D7) 36 | 3 4 | 5 (LCM_D6)
|
||||
* (LCM_D5) 21 | 5 6 | GND
|
||||
* (LCM_D4) 16 | 7 8 | 17 (LCM_EN)
|
||||
* (EC_PRESS) 19 | 9 10 | GND
|
||||
* (RESET) |11 12 | 19 (BEEP)
|
||||
* ------
|
||||
* H2
|
||||
*/
|
||||
|
||||
#define LCM_D4 16 // Used as BTN_EN1 for YHCB2004 LCD Module
|
||||
#define LCM_D5 21 // YHCB2004_SCK_PIN
|
||||
#define LCM_D6 5 // YHCB2004_SS_PIN
|
||||
#define LCM_D7 36 // YHCB2004_MOSI_PIN
|
||||
#define LCM_EN 17 // BTN_EN2
|
||||
#define EC_PRESS 19 // BTN_ENC
|
||||
#define BEEP 18
|
||||
|
||||
#define BEEPER_PIN BEEP
|
||||
#define LCM_RS 20 // Pin named and connected to 10k pull-up resistor but unused
|
||||
|
||||
#if ENABLED(YHCB2004)
|
||||
#define YHCB2004_SS_PIN LCM_D6
|
||||
#define YHCB2004_SCK_PIN LCM_D5
|
||||
#define YHCB2004_MOSI_PIN LCM_D7
|
||||
#define YHCB2004_MISO_PIN LCM_RS // Unused on V4.1b board
|
||||
#elif HAS_WIRED_LCD
|
||||
#error "GT2560 V4.1b requires an adapter for common LCDs."
|
||||
/* Cannot use because V4.1b board has not LCD_PINS_RS wired to display connector
|
||||
#define LCD_PINS_RS 20
|
||||
#define LCD_PINS_EN 17
|
||||
#define LCD_PINS_D4 16
|
||||
#define LCD_PINS_D5 21
|
||||
#define LCD_PINS_D6 5
|
||||
#define LCD_PINS_D7 36
|
||||
//*/
|
||||
#endif
|
||||
|
||||
#if ENABLED(YHCB2004)
|
||||
#define BTN_EN1 LCM_D4
|
||||
#define BTN_EN2 LCM_EN
|
||||
#define BTN_ENC EC_PRESS
|
||||
#elif IS_NEWPANEL
|
||||
#define BTN_EN1 42
|
||||
#define BTN_EN2 40
|
||||
#define BTN_ENC 19
|
||||
#endif
|
@ -348,6 +348,8 @@
|
||||
#include "mega/pins_PROTONEER_CNC_SHIELD_V3.h" // ATmega2560 env:mega2560
|
||||
#elif MB(WEEDO_62A)
|
||||
#include "mega/pins_WEEDO_62A.h" // ATmega2560 env:mega2560
|
||||
#elif MB(GT2560_V41B)
|
||||
#include "mega/pins_GT2560_V41b.h" // ATmega2560 env:mega2560
|
||||
|
||||
//
|
||||
// ATmega1281, ATmega2561
|
||||
|
Loading…
Reference in New Issue
Block a user