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
 * Mini-Rambo pin assignments
25
 */
26
 
27
#ifndef __AVR_ATmega2560__
28
  #error "Oops!  Make sure you have 'Rambo' selected from the 'Tools -> Boards' menu."
29
#endif
30
 
31
#if MB(MINIRAMBO_10A)
32
  #define BOARD_NAME "Mini Rambo 1.0a"
33
#else
34
  #define BOARD_NAME "Mini Rambo"
35
#endif
36
 
37
//
38
// Limit Switches
39
//
40
#define X_MIN_PIN          12
41
#define X_MAX_PIN          30
42
#define Y_MIN_PIN          11
43
#define Y_MAX_PIN          24
44
#define Z_MIN_PIN          10
45
#define Z_MAX_PIN          23
46
 
47
//
48
// Z Probe (when not Z_MIN_PIN)
49
//
50
#ifndef Z_MIN_PROBE_PIN
51
  #define Z_MIN_PROBE_PIN  23
52
#endif
53
 
54
//
55
// Steppers
56
//
57
#define X_STEP_PIN         37
58
#define X_DIR_PIN          48
59
#define X_ENABLE_PIN       29
60
 
61
#define Y_STEP_PIN         36
62
#define Y_DIR_PIN          49
63
#define Y_ENABLE_PIN       28
64
 
65
#define Z_STEP_PIN         35
66
#define Z_DIR_PIN          47
67
#define Z_ENABLE_PIN       27
68
 
69
#define E0_STEP_PIN        34
70
#define E0_DIR_PIN         43
71
#define E0_ENABLE_PIN      26
72
 
73
// Microstepping pins - Mapping not from fastio.h (?)
74
#define X_MS1_PIN          40
75
#define X_MS2_PIN          41
76
#define Y_MS1_PIN          69
77
#define Y_MS2_PIN          39
78
#define Z_MS1_PIN          68
79
#define Z_MS2_PIN          67
80
#define E0_MS1_PIN         65
81
#define E0_MS2_PIN         66
82
 
83
#define MOTOR_CURRENT_PWM_XY_PIN 46
84
#define MOTOR_CURRENT_PWM_Z_PIN  45
85
#define MOTOR_CURRENT_PWM_E_PIN  44
86
// Motor current PWM conversion, PWM value = MotorCurrentSetting * 255 / range
87
#ifndef MOTOR_CURRENT_PWM_RANGE
88
  #define MOTOR_CURRENT_PWM_RANGE 2000
89
#endif
90
#define DEFAULT_PWM_MOTOR_CURRENT  {1300, 1300, 1250}
91
 
92
//
93
// Temperature Sensors
94
//
95
#define TEMP_0_PIN          0   // Analog Input
96
#define TEMP_1_PIN          1   // Analog Input
97
#define TEMP_BED_PIN        2   // Analog Input
98
 
99
//
100
// Heaters / Fans
101
//
102
#define HEATER_0_PIN        3
103
#define HEATER_1_PIN        7
104
#if !MB(MINIRAMBO_10A)
105
  #define HEATER_2_PIN      6
106
#endif
107
#define HEATER_BED_PIN      4
108
 
109
#ifndef FAN_PIN
110
  #define FAN_PIN           8
111
#endif
112
#define FAN1_PIN            6
113
 
114
//
115
// Misc. Functions
116
//
117
#define SDSS               53
118
#define LED_PIN            13
119
#if !MB(MINIRAMBO_10A)
120
  #define CASE_LIGHT_PIN    9
121
#endif
122
 
123
//
124
// M3/M4/M5 - Spindle/Laser Control
125
//
126
// use P1 connector for spindle pins
127
#define SPINDLE_LASER_PWM_PIN     9   // MUST BE HARDWARE PWM
128
#define SPINDLE_LASER_ENABLE_PIN 18   // Pin should have a pullup!
129
#define SPINDLE_DIR_PIN          19
130
 
131
//
132
// Průša i3 MK2 Multiplexer Support
133
//
134
#define E_MUX0_PIN         17
135
#define E_MUX1_PIN         16
136
#if !MB(MINIRAMBO_10A)
137
  #define E_MUX2_PIN       78   // 84 in MK2 Firmware, with BEEPER as 78
138
#endif
139
 
140
//
141
// LCD / Controller
142
//
143
#if ENABLED(ULTRA_LCD)
144
 
145
  #if !MB(MINIRAMBO_10A)
146
    #define KILL_PIN       32
147
  #endif
148
 
149
  #if ENABLED(NEWPANEL)
150
 
151
    #if MB(MINIRAMBO_10A)
152
 
153
      #define BEEPER_PIN   78
154
 
155
      #define BTN_EN1      80
156
      #define BTN_EN2      73
157
      #define BTN_ENC      21
158
 
159
      #define LCD_PINS_RS  38
160
      #define LCD_PINS_ENABLE 5
161
      #define LCD_PINS_D4  14
162
      #define LCD_PINS_D5  15
163
      #define LCD_PINS_D6  32
164
      #define LCD_PINS_D7  31
165
 
166
      #define SD_DETECT_PIN  72
167
 
168
    #else // !MINIRAMBO_10A
169
 
170
      // AUX-4
171
      #define BEEPER_PIN   84
172
 
173
      // AUX-2
174
      #define BTN_EN1      14
175
      #define BTN_EN2      72
176
      #define BTN_ENC       9
177
 
178
      #define LCD_PINS_RS  82
179
      #define LCD_PINS_ENABLE 18
180
      #define LCD_PINS_D4  19
181
      #define LCD_PINS_D5  70
182
      #define LCD_PINS_D6  85
183
      #define LCD_PINS_D7  71
184
 
185
      #define SD_DETECT_PIN  15
186
 
187
    #endif // !MINIRAMBO_10A
188
 
189
  #endif // NEWPANEL
190
 
191
#endif // ULTRA_LCD