Prusa MINI Firmware overview
pins_SCOOVO_X9H.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  * Rambo pin assignments MODIFIED FOR Scoovo X9H
26  ************************************************/
27 
28 #ifndef __AVR_ATmega2560__
29  #error "Oops! Select 'Arduino/Genuino Mega or Mega 2560' in 'Tools > Board.'"
30 #endif
31 
32 #define BOARD_INFO_NAME "Scoovo X9H"
33 
34 //
35 // Servos
36 //
37 #define SERVO0_PIN 22 // Motor header MX1
38 #define SERVO1_PIN 23 // Motor header MX2
39 #define SERVO2_PIN 24 // Motor header MX3
40 #define SERVO3_PIN 5 // PWM header pin 5
41 
42 //
43 // Limit Switches
44 //
45 #define X_MIN_PIN 12
46 #define X_MAX_PIN 24
47 #define Y_MIN_PIN 11
48 #define Y_MAX_PIN 23
49 #define Z_MIN_PIN 10
50 #define Z_MAX_PIN 30
51 
52 //
53 // Z Probe (when not Z_MIN_IN)
54 //
55 #ifndef Z_MIN_PROBE_PIN
56  #define Z_MIN_PROBE_PIN 30
57 #endif
58 
59 //
60 // Steppers
61 //
62 #define X_STEP_PIN 37
63 #define X_DIR_PIN 48
64 #define X_ENABLE_PIN 29
65 
66 #define Y_STEP_PIN 36
67 #define Y_DIR_PIN 49
68 #define Y_ENABLE_PIN 28
69 
70 #define Z_STEP_PIN 35
71 #define Z_DIR_PIN 47
72 #define Z_ENABLE_PIN 27
73 
74 #define E0_STEP_PIN 34
75 #define E0_DIR_PIN 43
76 #define E0_ENABLE_PIN 26
77 
78 #define E1_STEP_PIN 33
79 #define E1_DIR_PIN 42
80 #define E1_ENABLE_PIN 25
81 
82 // Microstepping pins - Mapping not from fastio.h (?)
83 #define X_MS1_PIN 40
84 #define X_MS2_PIN 41
85 #define Y_MS1_PIN 69
86 #define Y_MS2_PIN 39
87 #define Z_MS1_PIN 68
88 #define Z_MS2_PIN 67
89 #define E0_MS1_PIN 65
90 #define E0_MS2_PIN 66
91 #define E1_MS1_PIN 63
92 #define E1_MS2_PIN 64
93 
94 #define DIGIPOTSS_PIN 38
95 #define DIGIPOT_CHANNELS {4,5,3,0,1} // X Y Z E0 E1 digipot channels to stepper driver mapping
96 
97 //
98 // Temperature Sensors
99 //
100 #define TEMP_0_PIN 0 // Analog Input
101 #define TEMP_BED_PIN 7 // Analog Input
102 
103 //
104 // Heaters / Fans
105 //
106 #define HEATER_0_PIN 9
107 #define HEATER_1_PIN 7
108 #define HEATER_BED_PIN 3
109 
110 #ifndef FAN_PIN
111  #define FAN_PIN 8
112 #endif
113 #define FAN1_PIN 6
114 #define FAN2_PIN 2
115 
116 //
117 // Misc. Functions
118 //
119 #define SDSS 53
120 #define LED_PIN 13
121 #define PS_ON_PIN 4
122 
123 #ifndef FILWIDTH_PIN
124  #define FILWIDTH_PIN 3 // Analog Input
125 #endif
126 
127 //
128 // LCD / Controller
129 //
130 #define LCD_PINS_RS 70 // Ext2_5
131 #define LCD_PINS_ENABLE 71 // Ext2_7
132 #define LCD_PINS_D4 72 // Ext2_9 ?
133 #define LCD_PINS_D5 73 // Ext2_11 ?
134 #define LCD_PINS_D6 74 // Ext2_13
135 #define LCD_PINS_D7 75 // Ext2_15 ?
136 #define BEEPER_PIN -1
137 
138 #define BTN_HOME 80 // Ext_16
139 #define BTN_CENTER 81 // Ext_14
140 #define BTN_ENC BTN_CENTER
141 #define BTN_RIGHT 82 // Ext_12
142 #define BTN_LEFT 83 // Ext_10
143 #define BTN_UP 84 // Ext2_8
144 #define BTN_DOWN 85 // Ext2_6
145 
146 #define HOME_PIN BTN_HOME
147 
148 #if ANY(VIKI2, miniVIKI)
149  #define BEEPER_PIN 44
150  // Pins for DOGM SPI LCD Support
151  #define DOGLCD_A0 70
152  #define DOGLCD_CS 71
153  #define LCD_SCREEN_ROT_180
154 
155  #define SD_DETECT_PIN -1 // Pin 72 if using easy adapter board
156 
157  #define STAT_LED_RED_PIN 22
158  #define STAT_LED_BLUE_PIN 32
159 #endif // VIKI2/miniVIKI