Browse Source

Create pins_FORMBOT.h

Roxy-3D 6 years ago
parent
commit
a82be36d5d
No account linked to committer's email address
1 changed files with 184 additions and 0 deletions
  1. 184
    0
      Marlin/src/pins/pins_FORMBOT.h

+ 184
- 0
Marlin/src/pins/pins_FORMBOT.h View File

@@ -0,0 +1,184 @@
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
+ * Formbot pin assignments
25
+ */
26
+
27
+#ifndef __AVR_ATmega2560__
28
+  #error "Oops!  Make sure you have 'Arduino Mega' selected from the 'Tools -> Boards' menu."
29
+#endif
30
+
31
+#if E_STEPPERS > 3 || HOTENDS > 3
32
+  #error "Formbot supports up to 3 hotends / E-steppers. Comment this line to keep going."
33
+#endif
34
+
35
+#define DEFAULT_MACHINE_NAME "Formbot"
36
+#define BOARD_NAME           "Formbot"
37
+
38
+#define LARGE_FLASH true
39
+
40
+//
41
+// Servos
42
+//
43
+#define SERVO0_PIN          11
44
+#define SERVO1_PIN          6
45
+#define SERVO2_PIN          5
46
+#define SERVO3_PIN          -1
47
+
48
+//
49
+// Limit Switches
50
+//
51
+#define X_MIN_PIN           3
52
+#ifndef X_MAX_PIN
53
+  #define X_MAX_PIN         2
54
+#endif
55
+#define Y_MIN_PIN          14
56
+#define Y_MAX_PIN          15
57
+#define Z_MIN_PIN          18
58
+#define Z_MAX_PIN          19
59
+
60
+//
61
+// Z Probe (when not Z_MIN_PIN)
62
+//
63
+#ifndef Z_MIN_PROBE_PIN
64
+  #define Z_MIN_PROBE_PIN  32
65
+#endif
66
+
67
+#define SLED_PIN           -1
68
+
69
+//
70
+// Steppers
71
+//
72
+#define X_STEP_PIN         54
73
+#define X_DIR_PIN          55
74
+#define X_ENABLE_PIN       38
75
+#define X_CS_PIN           53
76
+
77
+#define Y_STEP_PIN         60
78
+#define Y_DIR_PIN          61
79
+#define Y_ENABLE_PIN       56
80
+#define Y_CS_PIN           49
81
+
82
+#define Z_STEP_PIN         46
83
+#define Z_DIR_PIN          48
84
+#define Z_ENABLE_PIN       62
85
+#define Z_CS_PIN           40
86
+
87
+#define E0_STEP_PIN        26
88
+#define E0_DIR_PIN         28
89
+#define E0_ENABLE_PIN      24
90
+#define E0_CS_PIN          42
91
+
92
+#define E1_STEP_PIN        36
93
+#define E1_DIR_PIN         34
94
+#define E1_ENABLE_PIN      30
95
+#define E1_CS_PIN          44
96
+
97
+#define E2_STEP_PIN        42
98
+#define E2_DIR_PIN         43
99
+#define E2_ENABLE_PIN      44
100
+
101
+//
102
+// Temperature Sensors
103
+//
104
+#define TEMP_0_PIN         13   // Analog Input
105
+#define TEMP_1_PIN         15   // Analog Input
106
+#define TEMP_BED_PIN       3   // Analog Input
107
+
108
+// SPI for Max6675 or Max31855 Thermocouple
109
+#if DISABLED(SDSUPPORT)
110
+  #define MAX6675_SS       66 // Do not use pin 53 if there is even the remote possibility of using Display/SD card
111
+#else
112
+  #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
113
+#endif
114
+
115
+//
116
+// Augmentation for auto-assigning RAMPS plugs
117
+//
118
+#if DISABLED(IS_RAMPS_EEB) && DISABLED(IS_RAMPS_EEF) && DISABLED(IS_RAMPS_EFB) && DISABLED(IS_RAMPS_EFF) && DISABLED(IS_RAMPS_SF) && !PIN_EXISTS(MOSFET_D)
119
+  #if HOTENDS > 1
120
+    #if TEMP_SENSOR_BED
121
+      #define IS_RAMPS_EEB
122
+    #else
123
+      #define IS_RAMPS_EEF
124
+    #endif
125
+  #elif TEMP_SENSOR_BED
126
+    #define IS_RAMPS_EFB
127
+  #else
128
+    #define IS_RAMPS_EFF
129
+  #endif
130
+#endif
131
+
132
+//
133
+// Heaters / Fans
134
+//
135
+#define HEATER_0_PIN        10
136
+#define HEATER_1_PIN        7
137
+#define HEATER_BED_PIN      58
138
+
139
+#define LED4_PIN            8
140
+#define LASER_PIN          -1
141
+
142
+#define FAN_PIN             9
143
+#if(!ENABLED(FilamentSensor))
144
+  #define FAN1_PIN            4
145
+#endif
146
+
147
+//
148
+// Misc. Functions
149
+//
150
+#define SDSS               53
151
+#define LED_PIN            13
152
+
153
+// Use the RAMPS 1.4 Analog input 5 on the AUX2 connector
154
+#define FILWIDTH_PIN        5   // Analog Input
155
+
156
+#define PS_ON_PIN          12
157
+
158
+//
159
+// LCD / Controller
160
+//
161
+// Formbot boards only support the use of the REPRAP_DISCOUNT_SMART_CONTROLLER LCD Panel
162
+//
163
+
164
+#if ENABLED(ULTRA_LCD)
165
+
166
+    #define LCD_PINS_RS 16
167
+    #define LCD_PINS_ENABLE 17
168
+    #define LCD_PINS_D4 23
169
+    #define LCD_PINS_D5 25
170
+    #define LCD_PINS_D6 27
171
+    #define LCD_PINS_D7 29
172
+
173
+  #if ENABLED(NEWPANEL)
174
+    #if ENABLED(REPRAP_DISCOUNT_SMART_CONTROLLER)
175
+      #define BEEPER_PIN 37
176
+      #define BTN_EN1 31
177
+      #define BTN_EN2 33
178
+      #define BTN_ENC 35
179
+      #define SD_DETECT_PIN 49
180
+      #define KILL_PIN 41
181
+    #endif
182
+  #endif // NEWPANEL
183
+
184
+#endif // ULTRA_LCD

Loading…
Cancel
Save