Browse Source

Merge pull request #4301 from Ingramz/RCBugFix

Add Cartesio CN Controls V11
Scott Lahteine 8 years ago
parent
commit
b14888501b

+ 1
- 0
Marlin/boards.h View File

@@ -29,6 +29,7 @@
29 29
 #define BOARD_GEN7_12           11   // Gen7 v1.1, v1.2
30 30
 #define BOARD_GEN7_13           12   // Gen7 v1.3
31 31
 #define BOARD_GEN7_14           13   // Gen7 v1.4
32
+#define BOARD_CNCONTROLS_11     111  // Cartesio CN Controls V11
32 33
 #define BOARD_CNCONTROLS_12     112  // Cartesio CN Controls V12
33 34
 #define BOARD_CHEAPTRONIC       2    // Cheaptronic v1.0
34 35
 #define BOARD_SETHI             20   // Sethi 3D_1

+ 7
- 2
Marlin/dogm_lcd_implementation.h View File

@@ -143,8 +143,13 @@
143 143
   //U8GLIB_ST7920_128X64_RRD u8g(0,0,0);
144 144
   U8GLIB_ST7920_128X64_RRD u8g(0);
145 145
 #elif defined(CARTESIO_UI)
146
-  // The CartesioUI display with SW-SPI
147
-  U8GLIB_DOGM128 u8g(DOGLCD_SCK, DOGLCD_MOSI, DOGLCD_CS, DOGLCD_A0);
146
+  // The CartesioUI display
147
+  #if DOGLCD_MOSI != -1 && DOGLCD_SCK != -1
148
+    // using SW-SPI
149
+    U8GLIB_DOGM128 u8g(DOGLCD_SCK, DOGLCD_MOSI, DOGLCD_CS, DOGLCD_A0);
150
+  #else
151
+    U8GLIB_DOGM128 u8g(DOGLCD_CS, DOGLCD_A0);
152
+  #endif
148 153
 #elif ENABLED(U8GLIB_LM6059_AF)
149 154
   // Based on the Adafruit ST7565 (http://www.adafruit.com/products/250)
150 155
   U8GLIB_LM6059 u8g(DOGLCD_CS, DOGLCD_A0);

+ 1
- 0
Marlin/example_configurations/Cartesio/Configuration.h View File

@@ -134,6 +134,7 @@
134 134
 // The following define selects which electronics board you have.
135 135
 // Please choose the name from boards.h that matches your setup
136 136
 #ifndef MOTHERBOARD
137
+  //#define MOTHERBOARD BOARD_CNCONTROLS_11
137 138
   #define MOTHERBOARD BOARD_CNCONTROLS_12
138 139
 #endif
139 140
 

+ 2
- 1
Marlin/pins.h View File

@@ -31,6 +31,8 @@
31 31
   #include "pins_GEN7_13.h"
32 32
 #elif MB(GEN7_14)
33 33
   #include "pins_GEN7_14.h"
34
+#elif MB(CNCONTROLS_11)
35
+  #include "pins_CNCONTROLS_11.h"
34 36
 #elif MB(CNCONTROLS_12)
35 37
   #include "pins_CNCONTROLS_12.h"
36 38
 #elif MB(CHEAPTRONIC)
@@ -422,4 +424,3 @@
422 424
 #define HAS_DIGIPOTSS (PIN_EXISTS(DIGIPOTSS))
423 425
 
424 426
 #endif //__PINS_H
425
-

+ 101
- 0
Marlin/pins_CNCONTROLS_11.h View File

@@ -0,0 +1,101 @@
1
+/**
2
+ * CartesioV11 pin assignments
3
+ */
4
+
5
+#if !defined(__AVR_ATmega1280__) && !defined(__AVR_ATmega2560__)
6
+  #error Oops!  Make sure you have 'Arduino Mega' selected from the 'Tools -> Boards' menu.
7
+#endif
8
+
9
+#define BOARD_NAME            "CN Controls V11"
10
+
11
+//#define LARGE_FLASH true
12
+
13
+#define X_ENABLE_PIN          35
14
+#define X_STEP_PIN            34
15
+#define X_DIR_PIN             36
16
+#define X_MIN_PIN             43
17
+#define X_MAX_PIN             -1
18
+
19
+#define Y_ENABLE_PIN          38
20
+#define Y_STEP_PIN            37
21
+#define Y_DIR_PIN             39
22
+#define Y_MIN_PIN             45
23
+#define Y_MAX_PIN             -1
24
+
25
+#define Z_ENABLE_PIN          41
26
+#define Z_STEP_PIN            40
27
+#define Z_DIR_PIN             48
28
+#define Z_MIN_PIN             42
29
+#define Z_MAX_PIN             -1
30
+
31
+#define E0_ENABLE_PIN          3
32
+#define E0_STEP_PIN           29
33
+#define E0_DIR_PIN            28
34
+#define HEATER_0_PIN           5
35
+#define TEMP_0_PIN             0  // ANALOG INPUT !!
36
+
37
+#define E1_ENABLE_PIN         60
38
+#define E1_STEP_PIN           61
39
+#define E1_DIR_PIN            62
40
+#define HEATER_1_PIN          58
41
+#define TEMP_1_PIN             3  // 3 for tool2 -> 2 for chambertemp
42
+
43
+#define E2_ENABLE_PIN         16
44
+#define E2_STEP_PIN           15
45
+#define E2_DIR_PIN            14
46
+#define HEATER_2_PIN          64
47
+#define TEMP_2_PIN             2  // 9 for tool3 -> 2 for chambertemp
48
+
49
+#define E3_ENABLE_PIN         47
50
+#define E3_STEP_PIN           44
51
+#define E3_DIR_PIN            49
52
+#define HEATER_3_PIN          46
53
+#define TEMP_3_PIN            11  // 11 for tool4 -> 2 for chambertemp
54
+
55
+#define HEATER_BED_PIN         2
56
+#define TEMP_BED_PIN           1  // ANALOG INPUT !!
57
+
58
+// Tools
59
+
60
+//#define TOOL_0_PIN           4
61
+//#define TOOL_1_PIN          59
62
+//#define TOOL_2_PIN           8
63
+//#define TOOL_3_PIN          30
64
+//#define TOOL_PWM_PIN         7  // common PWM pin for all tools
65
+
66
+// Common I/O
67
+
68
+//#define TEMP_CHAMBER_PIN     2  // ANALOG INPUT !!
69
+//#define FIL_RUNOUT_PIN      -1
70
+//#define PWM_1_PIN           11
71
+//#define PWM_2_PIN           10
72
+//#define SPARE_IO            12
73
+//#define FAN_PIN              7  // common PWM pin for all tools
74
+
75
+// User interface
76
+#define BEEPER_PIN             6
77
+
78
+// Pins for DOGM SPI LCD Support
79
+#define DOGLCD_A0             26
80
+#define DOGLCD_CS             24
81
+#define DOGLCD_MOSI           -1
82
+#define DOGLCD_SCK            -1
83
+
84
+// The encoder and click button
85
+#define BTN_EN1               23
86
+#define BTN_EN2               25
87
+#define BTN_ENC               27
88
+
89
+// Hardware buttons for manual movement of XYZ
90
+#define SHIFT_OUT             19
91
+#define SHIFT_LD              18
92
+#define SHIFT_CLK             17
93
+
94
+//#define UI1                 31
95
+//#define UI2                 22
96
+
97
+// Other
98
+#define SDSS                  53
99
+#define SD_DETECT_PIN         13
100
+#define STAT_LED_BLUE         -1
101
+#define STAT_LED_RED          31

+ 5
- 5
Marlin/pins_CNCONTROLS_12.h View File

@@ -32,13 +32,13 @@
32 32
 #define E0_STEP_PIN           57
33 33
 #define E0_DIR_PIN            55
34 34
 #define HEATER_0_PIN          11
35
-#define TEMP_0_PIN            0   // ANALOG INPUT !!
35
+#define TEMP_0_PIN             0  // ANALOG INPUT !!
36 36
 
37 37
 #define E1_ENABLE_PIN         60
38 38
 #define E1_STEP_PIN           61
39 39
 #define E1_DIR_PIN            62
40 40
 #define HEATER_1_PIN           9
41
-#define TEMP_1_PIN             9  // 9 for tool3 -> 13 for chambertemp
41
+#define TEMP_1_PIN             9  // 9 for tool2 -> 13 for chambertemp
42 42
 
43 43
 #define E2_ENABLE_PIN         44
44 44
 #define E2_STEP_PIN           46
@@ -86,9 +86,9 @@
86 86
 #define LCD_SCREEN_ROT_180
87 87
 
88 88
 // The encoder and click button
89
-#define BTN_EN1 36
90
-#define BTN_EN2 34
91
-#define BTN_ENC 38
89
+#define BTN_EN1               36
90
+#define BTN_EN2               34
91
+#define BTN_ENC               38
92 92
 
93 93
 // Hardware buttons for manual movement of XYZ
94 94
 #define SHIFT_OUT             42

Loading…
Cancel
Save