Browse Source

Add AJ4P pins and fix RAMBO pins

Scott Lahteine 8 years ago
parent
commit
eafbc5e0cc
4 changed files with 142 additions and 1 deletions
  1. 1
    0
      Marlin/boards.h
  2. 2
    0
      Marlin/pins.h
  3. 138
    0
      Marlin/pins_A4JP.h
  4. 1
    1
      Marlin/pins_RAMBO.h

+ 1
- 0
Marlin/boards.h View File

@@ -54,6 +54,7 @@
54 54
 #define BOARD_OMCA              91   // Final OMCA board
55 55
 #define BOARD_RAMBO             301  // Rambo
56 56
 #define BOARD_MINIRAMBO         302  // Mini-Rambo
57
+#define BOARD_AJ4P              303  // AJ4P
57 58
 #define BOARD_MEGACONTROLLER    310  // Mega controller
58 59
 #define BOARD_ELEFU_3           21   // Elefu Ra Board (v3)
59 60
 #define BOARD_5DPRINT           88   // 5DPrint D8 Driver Board

+ 2
- 0
Marlin/pins.h View File

@@ -127,6 +127,8 @@
127 127
   #include "pins_BQ_ZUM_MEGA_3D.h"
128 128
 #elif MB(99)
129 129
   #include "pins_99.h"
130
+#elif MB(AJ4P)
131
+  #include "pins_AJ4P.h"
130 132
 #else
131 133
   #error Unknown MOTHERBOARD value set in Configuration.h
132 134
 #endif

+ 138
- 0
Marlin/pins_A4JP.h View File

@@ -0,0 +1,138 @@
1
+/************************************************
2
+ * Rambo pin assignments MODIFIED FOR A4JP
3
+ ************************************************/
4
+
5
+#ifndef __AVR_ATmega2560__
6
+  #error Oops!  Make sure you have 'Arduino Mega 2560' selected from the 'Tools -> Boards' menu.
7
+#endif
8
+
9
+// Servo support
10
+#define SERVO0_PIN 22 // Motor header MX1
11
+#define SERVO1_PIN 23 // Motor header MX2
12
+#define SERVO2_PIN 24 // Motor header MX3
13
+#define SERVO3_PIN  5 // PWM header pin 5
14
+
15
+#if ENABLED(Z_PROBE_SLED)
16
+  #define SLED_PIN -1
17
+#endif
18
+
19
+#undef X_MS1_PIN
20
+#undef X_MS2_PIN
21
+#undef Y_MS1_PIN
22
+#undef Y_MS2_PIN
23
+#undef Z_MS1_PIN
24
+#undef Z_MS2_PIN
25
+#undef E0_MS1_PIN
26
+#undef E0_MS2_PIN
27
+#undef E1_MS1_PIN
28
+#undef E1_MS2_PIN
29
+
30
+#undef DIGIPOTSS_PIN
31
+//Fan_2 2
32
+
33
+/*****************
34
+#if ENABLED(ULTRA_LCD)
35
+
36
+  #define KILL_PIN -1 //was 80 Glen maybe a mistake
37
+
38
+#endif // ULTRA_LCD */
39
+
40
+#if ENABLED(VIKI2) || ENABLED(miniVIKI)
41
+  #define BEEPER_PIN 44
42
+  // Pins for DOGM SPI LCD Support
43
+  #define DOGLCD_A0  70
44
+  #define DOGLCD_CS  71
45
+  #define LCD_SCREEN_ROT_180
46
+
47
+  #define SD_DETECT_PIN -1 // Pin 72 if using easy adapter board
48
+
49
+  #if ENABLED(TEMP_STAT_LEDS)
50
+    #define STAT_LED_RED      22
51
+    #define STAT_LED_BLUE     32
52
+  #endif
53
+#endif // VIKI2/miniVIKI
54
+
55
+#if ENABLED(FILAMENT_SENSOR)
56
+  //Filip added pin for Filament sensor analog input
57
+  #define FILWIDTH_PIN        3
58
+#endif
59
+
60
+/************************************************
61
+ * Rambo pin assignments old
62
+ ************************************************/
63
+
64
+#define LARGE_FLASH true
65
+#define X_STEP_PIN    37
66
+#define X_DIR_PIN     48
67
+#define X_MIN_PIN     12
68
+#define X_MAX_PIN     24
69
+#define X_ENABLE_PIN  29
70
+#define X_MS1_PIN     40
71
+#define X_MS2_PIN     41
72
+#define Y_STEP_PIN    36
73
+#define Y_DIR_PIN     49
74
+#define Y_MIN_PIN     11
75
+#define Y_MAX_PIN     23
76
+#define Y_ENABLE_PIN  28
77
+#define Y_MS1_PIN     69
78
+#define Y_MS2_PIN     39
79
+#define Z_STEP_PIN    35
80
+#define Z_DIR_PIN     47
81
+#define Z_MIN_PIN     10
82
+#define Z_MAX_PIN     30
83
+#define Z_ENABLE_PIN  27
84
+#define Z_MS1_PIN     68
85
+#define Z_MS2_PIN     67
86
+
87
+#define HEATER_BED_PIN 3
88
+#define TEMP_BED_PIN   7 //2014/02/04  0:T0 / 1:T1 / 2:T2 / 7:T3
89
+#define HEATER_0_PIN   9
90
+#define TEMP_0_PIN     0
91
+#define HEATER_1_PIN   7
92
+#define TEMP_1_PIN    -1
93
+#define HEATER_2_PIN  -1
94
+#define TEMP_2_PIN    -1
95
+
96
+#define E0_STEP_PIN   34
97
+#define E0_DIR_PIN    43
98
+#define E0_ENABLE_PIN 26
99
+#define E0_MS1_PIN    65
100
+#define E0_MS2_PIN    66
101
+#define E1_STEP_PIN   33
102
+#define E1_DIR_PIN    42
103
+#define E1_ENABLE_PIN 25
104
+#define E1_MS1_PIN    63
105
+#define E1_MS2_PIN    64
106
+
107
+#define DIGIPOTSS_PIN 38
108
+#define DIGIPOT_CHANNELS {4,5,3,0,1} // X Y Z E0 E1 digipot channels to stepper driver mapping
109
+
110
+#define SDPOWER       -1
111
+#define SDSS          53
112
+#define LED_PIN       13
113
+#define FAN_PIN        8
114
+#define PS_ON_PIN      4
115
+#define KILL_PIN      -1
116
+#define SUICIDE_PIN   -1 //PIN that has to be turned on right after start, to keep power flowing.
117
+#define FAN_0_PIN      6 //Glen
118
+#define FAN_1_PIN      2 //Glen
119
+
120
+// 2015/12/23
121
+
122
+#define LCD_PINS_RS     70 //ext2_5
123
+#define LCD_PINS_ENABLE 71 //ext2_7
124
+#define LCD_PINS_D4     72 ///////Ext2 9 ?
125
+#define LCD_PINS_D5     73 ///////Ext2 11 ?
126
+#define LCD_PINS_D6     74 //ext2_13
127
+#define LCD_PINS_D7     75 ///////Ext2 15 ?
128
+#define BEEPER_PIN      -1
129
+
130
+#define BTN_HOME        80 //ext_16
131
+#define BTN_CENTER      81 //ext_14
132
+#define BTN_ENC         BTN_CENTER
133
+#define BTN_RIGHT       82 //ext_12
134
+#define BTN_LEFT        83 //ext_10
135
+#define BTN_UP          84 //ext2_8
136
+#define BTN_DOWN        85 //ext2_6
137
+
138
+#define HOME_PIN        BTN_HOME

+ 1
- 1
Marlin/pins_RAMBO.h View File

@@ -12,7 +12,7 @@
12 12
 #define SERVO0_PIN 22 // Motor header MX1
13 13
 #define SERVO1_PIN 23 // Motor header MX2
14 14
 #define SERVO2_PIN 24 // Motor header MX3
15
-#define SERVO2_PIN  5 // PWM header pin 5
15
+#define SERVO3_PIN  5 // PWM header pin 5
16 16
 
17 17
 #if ENABLED(Z_PROBE_SLED)
18 18
   #define SLED_PIN         -1

Loading…
Cancel
Save