ソースを参照

Add HMS434 V15 ATSAM board (#16620)

MaukCC 4年前
コミット
04d64351a2

+ 2
- 1
Marlin/Configuration.h ファイルの表示

@@ -360,7 +360,8 @@
360 360
  *    -1 : thermocouple with AD595
361 361
  *     0 : not used
362 362
  *     1 : 100k thermistor - best choice for EPCOS 100k (4.7k pullup)
363
- *   331 : (3.3V scaled thermistor 1 table)
363
+ *   331 : (3.3V scaled thermistor 1 table for MEGA)
364
+ *   332 : (3.3V scaled thermistor 1 table for DUE)
364 365
  *     2 : 200k thermistor - ATC Semitec 204GT-2 (4.7k pullup)
365 366
  *     3 : Mendel-parts thermistor (4.7k pullup)
366 367
  *     4 : 10k thermistor !! do not use it for a hotend. It gives bad resolution at high temp. !!

+ 1
- 0
Marlin/src/core/boards.h ファイルの表示

@@ -256,6 +256,7 @@
256 256
 #define BOARD_ARCHIM1                 3023  // UltiMachine Archim1 (with DRV8825 drivers)
257 257
 #define BOARD_ARCHIM2                 3024  // UltiMachine Archim2 (with TMC2130 drivers)
258 258
 #define BOARD_ALLIGATOR               3025  // Alligator Board R2
259
+#define BOARD_CNCONTROLS_15D          3026  // Cartesio CN Controls V15 on DUE
259 260
 
260 261
 //
261 262
 // SAM3X8C ARM Cortex M3

+ 50
- 0
Marlin/src/module/thermistor/thermistor_332.h ファイルの表示

@@ -0,0 +1,50 @@
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
+#define OVM(V) OV((V)*(0.327/0.327))
25
+
26
+// R25 = 100 kOhm, beta25 = 4092 K, 4.7 kOhm pull-up, bed thermistor
27
+const short temptable_332[][2] PROGMEM = {
28
+  { OVM( 268), 150 },
29
+  { OVM( 293), 145 },
30
+  { OVM( 320), 141 },
31
+  { OVM( 379), 133 },
32
+  { OVM( 445), 122 },
33
+  { OVM( 516), 108 },
34
+  { OVM( 591),  98 },
35
+  { OVM( 665),  88 },
36
+  { OVM( 737),  79 },
37
+  { OVM( 801),  70 },
38
+  { OVM( 857),  55 },
39
+  { OVM( 903),  46 },
40
+  { OVM( 939),  39 },
41
+  { OVM( 954),  33 },
42
+  { OVM( 966),  27 },
43
+  { OVM( 977),  22 },
44
+  { OVM( 999),  15 },
45
+  { OVM(1004),   5 },
46
+  { OVM(1008),   0 },
47
+  { OVM(1012),  -5 },
48
+  { OVM(1016), -10 },
49
+  { OVM(1020), -15 }
50
+};

+ 4
- 1
Marlin/src/module/thermistor/thermistors.h ファイルの表示

@@ -147,9 +147,12 @@
147 147
 #if ANY_THERMISTOR_IS(201) // Pt100 with LMV324 Overlord
148 148
   #include "thermistor_201.h"
149 149
 #endif
150
-#if ANY_THERMISTOR_IS(331) // Like table 1, but with 3V3 as input voltage
150
+#if ANY_THERMISTOR_IS(331) // Like table 1, but with 3V3 as input voltage for MEGA
151 151
   #include "thermistor_331.h"
152 152
 #endif
153
+#if ANY_THERMISTOR_IS(332) // Like table 1, but with 3V3 as input voltage for DUE
154
+  #include "thermistor_332.h"
155
+#endif
153 156
 #if ANY_THERMISTOR_IS(666) // beta25 = UNK, R25 = 200K, Pull-up = 10 kOhm, "Unidentified 200K NTC thermistor (Einstart S)"
154 157
   #include "thermistor_666.h"
155 158
 #endif

+ 2
- 0
Marlin/src/pins/pins.h ファイルの表示

@@ -451,6 +451,8 @@
451 451
   #include "sam/pins_ADSK.h"                    // SAM3X8E                                env:DUE env:DUE_debug
452 452
 #elif MB(PRINTRBOARD_G2)
453 453
   #include "sam/pins_PRINTRBOARD_G2.h"          // SAM3X8C                                env:DUE_USB
454
+#elif MB(CNCONTROLS_15D)
455
+  #include "sam/pins_CNCONTROLS_15D.h"          // SAM3X8E                                env:DUE env:DUE_USB
454 456
 
455 457
 //
456 458
 // STM32 ARM Cortex-M3

+ 97
- 0
Marlin/src/pins/sam/pins_CNCONTROLS_15D.h ファイルの表示

@@ -0,0 +1,97 @@
1
+/**
2
+ * CNControls V15 for HMS434 with DUE pin assignments
3
+ */
4
+
5
+#ifndef __SAM3X8E__
6
+  #error "Oops! Select 'Arduino Due' in 'Tools > Board.'"
7
+#endif
8
+
9
+#define BOARD_INFO_NAME "CN Controls V15D"
10
+
11
+//
12
+// Servos
13
+//
14
+#define SERVO0_PIN          6
15
+
16
+//
17
+// Limit Switches
18
+//
19
+#define X_STOP_PIN         34
20
+#define Y_STOP_PIN         39
21
+#define Z_STOP_PIN         62
22
+
23
+#ifndef Z_MIN_PROBE_PIN
24
+  #define Z_MIN_PROBE_PIN  49
25
+#endif
26
+
27
+//
28
+// Steppers
29
+//
30
+#define X_STEP_PIN         14
31
+#define X_DIR_PIN          25
32
+#define X_ENABLE_PIN       26
33
+
34
+#define Y_STEP_PIN         11
35
+#define Y_DIR_PIN          12
36
+#define Y_ENABLE_PIN       15
37
+
38
+#define Z_STEP_PIN         24
39
+#define Z_DIR_PIN          27
40
+#define Z_ENABLE_PIN       28
41
+
42
+#define E0_STEP_PIN        64
43
+#define E0_DIR_PIN         65
44
+#define E0_ENABLE_PIN      63
45
+
46
+#define E1_STEP_PIN         8
47
+#define E1_DIR_PIN          7
48
+#define E1_ENABLE_PIN      29
49
+
50
+//
51
+// Temperature Sensors
52
+// Analog Inputs
53
+//
54
+#define TEMP_0_PIN          1
55
+#define TEMP_1_PIN          2  
56
+#define TEMP_BED_PIN        4   
57
+
58
+#ifndef TEMP_CHAMBER_PIN
59
+  #define TEMP_CHAMBER_PIN  5   
60
+#endif
61
+
62
+//
63
+// Heaters
64
+//
65
+#define HEATER_0_PIN        3
66
+#define HEATER_1_PIN        4
67
+#define HEATER_BED_PIN     32
68
+#define HEATER_CHAMBER_PIN 33
69
+
70
+//
71
+// Fans
72
+//
73
+//#define FAN0_PIN              8
74
+#define ORIG_E0_AUTO_FAN_PIN 30
75
+#define ORIG_E1_AUTO_FAN_PIN 30
76
+#define ORIG_E2_AUTO_FAN_PIN 30
77
+#define ORIG_E3_AUTO_FAN_PIN 30
78
+#define ORIG_CHAMBER_AUTO_FAN_PIN 10
79
+
80
+//
81
+// SD card
82
+//
83
+#define SCK_PIN            76
84
+#define MISO_PIN           74
85
+#define MOSI_PIN           75
86
+#define SDSS               53
87
+#define SD_DETECT_PIN      40
88
+
89
+// Common I/O
90
+
91
+//#define PWM_1_PIN           6 // probe
92
+//#define PWM_2_PIN          13
93
+//#define SPARE_IO           17
94
+#define BEEPER_PIN         13
95
+#define CALIBRATION_PIN    66
96
+#define STAT_LED_BLUE_PIN  -1
97
+#define STAT_LED_RED_PIN   31

読み込み中…
キャンセル
保存