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