Subversion Repositories MK-Marlin

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
1 ron 1
/**
2
 * Marlin 3D Printer Firmware
3
 * Copyright (C) 2016 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
4
 *
5
 * Based on Sprinter and grbl.
6
 * Copyright (C) 2011 Camiel Gubbels / Erik van der Zalm
7
 *
8
 * This program is free software: you can redistribute it and/or modify
9
 * it under the terms of the GNU General Public License as published by
10
 * the Free Software Foundation, either version 3 of the License, or
11
 * (at your option) any later version.
12
 *
13
 * This program is distributed in the hope that it will be useful,
14
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16
 * GNU General Public License for more details.
17
 *
18
 * You should have received a copy of the GNU General Public License
19
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
20
 *
21
 */
22
 
23
/**
24
 * Arduino Mega with RAMPS v1.0, v1.1, v1.2 pin assignments
25
 */
26
 
27
#if !defined(__AVR_ATmega1280__) && !defined(__AVR_ATmega2560__)
28
  #error "Oops!  Make sure you have 'Arduino Mega' selected from the 'Tools -> Boards' menu."
29
#endif
30
 
31
#define BOARD_NAME         "MEGA/RAMPS <1.2"
32
 
33
// Uncomment the following line for RAMPS v1.0
34
//#define RAMPS_V_1_0
35
 
36
//
37
// Limit Switches
38
//
39
#define X_MIN_PIN           3
40
#define X_MAX_PIN           2
41
#define Y_MIN_PIN          16
42
#define Y_MAX_PIN          17
43
#define Z_MIN_PIN          18
44
#define Z_MAX_PIN          19
45
 
46
//
47
// Z Probe (when not Z_MIN_PIN)
48
//
49
#ifndef Z_MIN_PROBE_PIN
50
  #define Z_MIN_PROBE_PIN  19
51
#endif
52
 
53
//
54
// Steppers
55
//
56
#define X_STEP_PIN         26
57
#define X_DIR_PIN          28
58
#define X_ENABLE_PIN       24
59
 
60
#define Y_STEP_PIN         38
61
#define Y_DIR_PIN          40
62
#define Y_ENABLE_PIN       36
63
 
64
#define Z_STEP_PIN         44
65
#define Z_DIR_PIN          46
66
#define Z_ENABLE_PIN       42
67
 
68
#define E0_STEP_PIN        32
69
#define E0_DIR_PIN         34
70
#define E0_ENABLE_PIN      30
71
 
72
//
73
// Temperature Sensors
74
//
75
#define TEMP_0_PIN          2   // Analog Input
76
#define TEMP_BED_PIN        1   // Analog Input
77
 
78
// SPI for Max6675 or Max31855 Thermocouple
79
#if DISABLED(SDSUPPORT)
80
  #define MAX6675_SS       66   // Do not use pin 53 if there is even the remote possibility of using Display/SD card
81
#else
82
  #define MAX6675_SS       66   // Do not use pin 49 as this is tied to the switch inside the SD card socket to detect if there is an SD card present
83
#endif
84
 
85
//
86
// Heaters / Fans
87
//
88
#if ENABLED(RAMPS_V_1_0)
89
  #define HEATER_0_PIN     12
90
  #define HEATER_BED_PIN   -1
91
  #ifndef FAN_PIN
92
    #define FAN_PIN        11
93
  #endif
94
#else // RAMPS_V_1_1 or RAMPS_V_1_2
95
  #define HEATER_0_PIN     10
96
  #define HEATER_BED_PIN    8
97
  #ifndef FAN_PIN
98
    #define FAN_PIN         9
99
  #endif
100
#endif
101
 
102
//
103
// Misc. Functions
104
//
105
#define SDPOWER            48
106
#define SDSS               53
107
#define LED_PIN            13
108
#define CASE_LIGHT_PIN     45   // MUST BE HARDWARE PWM
109
 
110
//
111
// M3/M4/M5 - Spindle/Laser Control
112
//
113
#define SPINDLE_LASER_ENABLE_PIN 41   // Pin should have a pullup/pulldown!
114
#define SPINDLE_LASER_PWM_PIN    45   // MUST BE HARDWARE PWM
115
#define SPINDLE_DIR_PIN          43