Browse Source

Board definitions for Ultratronics Pro v1.0

teemuatlut 6 years ago
parent
commit
f011a32771

+ 7
- 3
Marlin/src/HAL/HAL_DUE/MarlinSerial_Due.cpp View File

@@ -34,18 +34,22 @@
34 34
 #include "../../Marlin.h"
35 35
 
36 36
 // Based on selected port, use the proper configuration
37
-#if SERIAL_PORT == 0
37
+#if SERIAL_PORT == -1
38 38
   #define HWUART UART
39 39
   #define HWUART_IRQ UART_IRQn
40 40
   #define HWUART_IRQ_ID ID_UART
41
-#elif SERIAL_PORT == 1
41
+#elif SERIAL_PORT == 0
42 42
   #define HWUART USART0
43 43
   #define HWUART_IRQ USART0_IRQn
44 44
   #define HWUART_IRQ_ID ID_USART0
45
-#elif SERIAL_PORT == 2
45
+#elif SERIAL_PORT == 1
46 46
   #define HWUART USART1
47 47
   #define HWUART_IRQ USART1_IRQn
48 48
   #define HWUART_IRQ_ID ID_USART1
49
+#elif SERIAL_PORT == 2
50
+  #define HWUART USART2
51
+  #define HWUART_IRQ USART2_IRQn
52
+  #define HWUART_IRQ_ID ID_USART2
49 53
 #elif SERIAL_PORT == 3
50 54
   #define HWUART USART3
51 55
   #define HWUART_IRQ USART3_IRQn

+ 1
- 0
Marlin/src/core/boards.h View File

@@ -175,6 +175,7 @@
175 175
 #define BOARD_RAMPS4DUE_EEF    1546   // RAMPS4DUE (Power outputs: Hotend0, Hotend1, Fan)
176 176
 #define BOARD_RAMPS4DUE_SF     1548   // RAMPS4DUE (Power outputs: Spindle, Controller Fan)
177 177
 #define BOARD_RURAMPS4D        1550   // RuRAMPS4Duo v1 (Power outputs: Hotend0, Hotend2, Hotend2, Fan0, Fan1, Bed)
178
+#define BOARD_ULTRATRONICS_PRO 1560   // ReprapWorld Ultratronics Pro V1.0
178 179
 #define BOARD_ARCHIM2          1590   // UltiMachine Archim2 (with TMC2130 drivers)
179 180
 #define BOARD_ALLIGATOR        1602   // Alligator Board R2
180 181
 

+ 4
- 1
Marlin/src/lcd/ultralcd_impl_DOGM.h View File

@@ -164,8 +164,11 @@
164 164
 
165 165
 // LCD selection
166 166
 #if ENABLED(REPRAPWORLD_GRAPHICAL_LCD)
167
+  #ifdef CPU_32_BIT // SPI too fast with 32bit?
168
+    U8GLIB_ST7920_128X64_4X u8g(LCD_PINS_D4, LCD_PINS_ENABLE, LCD_PINS_RS); // Original u8glib device. 2 stripes, SW SPI
169
+  #else
167 170
     U8GLIB_ST7920_128X64_4X u8g(LCD_PINS_RS); // 2 stripes, HW SPI
168
-    //U8GLIB_ST7920_128X64_4X u8g(LCD_PINS_D4, LCD_PINS_ENABLE, LCD_PINS_RS); // Original u8glib device. 2 stripes, SW SPI
171
+  #endif
169 172
 #elif ENABLED(U8GLIB_ST7920)
170 173
   // RepRap Discount Full Graphics Smart Controller
171 174
     //U8GLIB_ST7920_128X64_4X u8g(LCD_PINS_RS); // 2 stripes, HW SPI

+ 2
- 0
Marlin/src/pins/pins.h View File

@@ -304,6 +304,8 @@
304 304
   #include "pins_RAMPS4DUE.h"
305 305
 #elif MB(RAMPS4DUE_SF)
306 306
   #include "pins_RAMPS4DUE.h"
307
+#elif MB(ULTRATRONICS_PRO)
308
+  #include "pins_ULTRATRONICS_PRO.h"
307 309
 #elif MB(ARCHIM2)
308 310
   #include "pins_ARCHIM2.h"
309 311
 #elif MB(ALLIGATOR)

+ 151
- 0
Marlin/src/pins/pins_ULTRATRONICS_PRO.h View File

@@ -0,0 +1,151 @@
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
+ * ReprapWorld ULTRATRONICS v1.0
25
+ */
26
+
27
+#define KNOWN_BOARD
28
+#define BOARD_NAME "Ultratronics v1.0"
29
+
30
+#ifndef ARDUINO_ARCH_SAM
31
+  #error Oops!  Make sure you have 'Arduino Due' selected from the 'Tools -> Boards' menu.
32
+#endif
33
+
34
+//
35
+// Servos
36
+//
37
+#if NUM_SERVOS > 0
38
+  #define SERVO0_PIN     11
39
+  #if NUM_SERVOS > 1
40
+    #define SERVO1_PIN   12
41
+  #endif
42
+#endif
43
+
44
+//
45
+// Limit Switches
46
+//
47
+#define X_MIN_PIN        31
48
+#define X_MAX_PIN        30
49
+#define Y_MIN_PIN        12
50
+#define Y_MAX_PIN        11
51
+#define Z_MIN_PIN        29
52
+#define Z_MAX_PIN        28
53
+
54
+//
55
+// Steppers
56
+//
57
+#define X_STEP_PIN       35
58
+#define X_DIR_PIN        34
59
+#define X_ENABLE_PIN     37
60
+
61
+#define Y_STEP_PIN       22
62
+#define Y_DIR_PIN        23
63
+#define Y_ENABLE_PIN     33
64
+
65
+#define Z_STEP_PIN       25
66
+#define Z_DIR_PIN        26
67
+#define Z_ENABLE_PIN     24
68
+
69
+#define E0_STEP_PIN      47
70
+#define E0_DIR_PIN       46
71
+#define E0_ENABLE_PIN    48
72
+
73
+#define E1_STEP_PIN      44
74
+#define E1_DIR_PIN       36
75
+#define E1_ENABLE_PIN    45
76
+
77
+#define E2_STEP_PIN      42
78
+#define E2_DIR_PIN       41
79
+#define E2_ENABLE_PIN    43
80
+
81
+#define E3_STEP_PIN      39
82
+#define E3_DIR_PIN       38
83
+#define E3_ENABLE_PIN    40
84
+
85
+//
86
+// Temperature Sensors
87
+//
88
+#define TEMP_0_PIN        0  // Analog Input
89
+#define TEMP_1_PIN        2  // Analog Input
90
+#define TEMP_2_PIN        3  // Analog Input
91
+#define TEMP_3_PIN        4  // Analog Input
92
+#define TEMP_BED_PIN      1  // Analog Input
93
+
94
+//
95
+// Heaters / Fans
96
+//
97
+#define HEATER_0_PIN      3
98
+#define HEATER_1_PIN      8
99
+#define HEATER_2_PIN      7
100
+#define HEATER_3_PIN      9
101
+#define HEATER_BED_PIN    2
102
+
103
+#define FAN_PIN           6
104
+#define FAN2_PIN          5
105
+
106
+//
107
+// Misc. Functions
108
+//
109
+#define SDSS             59
110
+#define SD_DETECT_PIN    60
111
+#define LED_PIN          13
112
+#define PS_ON_PIN        32
113
+
114
+//
115
+// SPI Buses
116
+//
117
+
118
+#define DAC0_SYNC        53 // PB14
119
+#define SPI_CHAN_DAC      1
120
+
121
+#define SPI_CHAN_EEPROM1 -1
122
+#define SPI_EEPROM1_CS   -1
123
+#define SPI_EEPROM2_CS   -1
124
+#define SPI_FLASH_CS     -1
125
+
126
+// SPI for Max6675 or Max31855 Thermocouple
127
+#define MAX6675_SS       65
128
+#define MAX31855_SS0     65
129
+#define MAX31855_SS1     52
130
+#define MAX31855_SS2     50
131
+#define MAX31855_SS3     51
132
+
133
+#define ENC424_SS        61
134
+
135
+//
136
+// LCD / Controller
137
+//
138
+
139
+#define BEEPER_PIN       27
140
+
141
+#if ENABLED(REPRAPWORLD_GRAPHICAL_LCD)
142
+
143
+  #define LCD_PINS_RS     A8    // CS chip select / SS chip slave select
144
+  #define LCD_PINS_ENABLE MOSI  // SID (MOSI)
145
+  #define LCD_PINS_D4     SCK   // SCK (CLK) clock
146
+
147
+  #define BTN_EN1         20
148
+  #define BTN_EN2         21
149
+  #define BTN_ENC         64
150
+
151
+#endif // REPRAPWORLD_GRAPHICAL_LCD

Loading…
Cancel
Save