|
@@ -0,0 +1,152 @@
|
|
1
|
+/**
|
|
2
|
+ * Marlin 3D Printer Firmware
|
|
3
|
+ * Copyright (c) 2020 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
|
+ * Intamsys Funmat HT V4.0 Mainboard
|
|
26
|
+ * 4988 Drivers Tested
|
|
27
|
+ * 2208 version exists and may or may not work
|
|
28
|
+ */
|
|
29
|
+
|
|
30
|
+#ifndef __AVR_ATmega2560__
|
|
31
|
+ #error "Oops! Select 'Arduino/Genuino Mega or Mega 2560' in 'Tools > Board.'"
|
|
32
|
+#endif
|
|
33
|
+
|
|
34
|
+#define BOARD_INFO_NAME "Intamsys 4.0"
|
|
35
|
+
|
|
36
|
+//
|
|
37
|
+// Servos
|
|
38
|
+//
|
|
39
|
+#define SERVO0_PIN 12 // Uses High Temp Present Jumper Pin
|
|
40
|
+
|
|
41
|
+//
|
|
42
|
+// Limit Switches
|
|
43
|
+//
|
|
44
|
+#define X_STOP_PIN 22
|
|
45
|
+#define Y_STOP_PIN 26
|
|
46
|
+#define Z_MIN_PIN 29
|
|
47
|
+#define Z_MAX_PIN 69
|
|
48
|
+
|
|
49
|
+#ifndef Z_MIN_PROBE_PIN
|
|
50
|
+ #define Z_MIN_PROBE_PIN 69
|
|
51
|
+#endif
|
|
52
|
+
|
|
53
|
+#define FIL_RUNOUT_PIN 10
|
|
54
|
+
|
|
55
|
+//
|
|
56
|
+// Steppers
|
|
57
|
+//
|
|
58
|
+#define X_STEP_PIN 25
|
|
59
|
+#define X_DIR_PIN 23
|
|
60
|
+#define X_ENABLE_PIN 27 // 44
|
|
61
|
+
|
|
62
|
+#define Y_STEP_PIN 32 // 33
|
|
63
|
+#define Y_DIR_PIN 33 // 31, 32
|
|
64
|
+#define Y_ENABLE_PIN 31 // 32
|
|
65
|
+
|
|
66
|
+#define Z_STEP_PIN 35 // 35
|
|
67
|
+#define Z_DIR_PIN 36
|
|
68
|
+#define Z_ENABLE_PIN 34 // 34
|
|
69
|
+
|
|
70
|
+#define E0_STEP_PIN 42
|
|
71
|
+#define E0_DIR_PIN 43
|
|
72
|
+#define E0_ENABLE_PIN 37
|
|
73
|
+
|
|
74
|
+#define E1_STEP_PIN 49
|
|
75
|
+#define E1_DIR_PIN 47
|
|
76
|
+#define E1_ENABLE_PIN 48
|
|
77
|
+
|
|
78
|
+#define MOTOR_CURRENT_PWM_X_PIN 11
|
|
79
|
+#define MOTOR_CURRENT_PWM_Y_PIN 44
|
|
80
|
+#define MOTOR_CURRENT_PWM_Z_PIN 45
|
|
81
|
+#define MOTOR_CURRENT_PWM_E_PIN 46
|
|
82
|
+
|
|
83
|
+// Motor current PWM conversion, PWM value = MotorCurrentSetting * 255 / range
|
|
84
|
+#ifndef MOTOR_CURRENT_PWM_RANGE
|
|
85
|
+ #define MOTOR_CURRENT_PWM_RANGE 2000
|
|
86
|
+#endif
|
|
87
|
+#define DEFAULT_PWM_MOTOR_CURRENT { 1300, 1300, 1250 }
|
|
88
|
+
|
|
89
|
+//
|
|
90
|
+// Temperature Sensors
|
|
91
|
+//
|
|
92
|
+#define TEMP_0_PIN 8 // Analog Input D62
|
|
93
|
+#define TEMP_BED_PIN 10 // Analog Input D64
|
|
94
|
+
|
|
95
|
+#define TEMP_CHAMBER_PIN 9 // Analog Input D63
|
|
96
|
+
|
|
97
|
+//
|
|
98
|
+// Heaters / Fans
|
|
99
|
+//
|
|
100
|
+#define HEATER_0_PIN 2 // PWM
|
|
101
|
+#define HEATER_BED_PIN 4 // PWM
|
|
102
|
+#define HEATER_CHAMBER_PIN 3 // PWM
|
|
103
|
+#define FAN_PIN 7 // PWM
|
|
104
|
+
|
|
105
|
+//
|
|
106
|
+// Misc. Functions
|
|
107
|
+//
|
|
108
|
+#define SDSS 53
|
|
109
|
+#define SD_DETECT_PIN 39
|
|
110
|
+
|
|
111
|
+#if ENABLED(CASE_LIGHT_ENABLE)
|
|
112
|
+ #define CASE_LIGHT_PIN 8
|
|
113
|
+#endif
|
|
114
|
+
|
|
115
|
+#if ENABLED(PSU_CONTROL)
|
|
116
|
+ #define PS_ON_PIN 38 // UPS Module
|
|
117
|
+#endif
|
|
118
|
+
|
|
119
|
+//
|
|
120
|
+// LCD Controller
|
|
121
|
+//
|
|
122
|
+
|
|
123
|
+#define BEEPER_PIN 18
|
|
124
|
+
|
|
125
|
+#if HAS_SPI_LCD
|
|
126
|
+ #define LCD_PINS_RS 20
|
|
127
|
+ #define LCD_PINS_ENABLE 30
|
|
128
|
+ #define LCD_PINS_D4 14
|
|
129
|
+ #define LCD_PINS_D5 21
|
|
130
|
+ #define LCD_PINS_D6 5
|
|
131
|
+ #define LCD_PINS_D7 6
|
|
132
|
+ #define BTN_EN1 40
|
|
133
|
+ #define BTN_EN2 41
|
|
134
|
+ #define BTN_ENC 19
|
|
135
|
+#endif
|
|
136
|
+
|
|
137
|
+///////////////////// SPARE HEADERS //////////////
|
|
138
|
+
|
|
139
|
+/**
|
|
140
|
+ *
|
|
141
|
+ * J25
|
|
142
|
+ * 1 D54
|
|
143
|
+ * 2 D55
|
|
144
|
+ * 3 D56
|
|
145
|
+ * 4 D57
|
|
146
|
+ * 5 D58
|
|
147
|
+ * 6 D59
|
|
148
|
+ * 7 D60
|
|
149
|
+ * 8 D61
|
|
150
|
+
|
|
151
|
+Hotend High Temp Connected : D12
|
|
152
|
+*/
|