Prusa MINI Firmware overview
pins_ALLIGATOR_R2.h
Go to the documentation of this file.
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 /**
25  * Alligator Board R2
26  * http://www.3dartists.org/
27  */
28 
29 #ifndef __SAM3X8E__
30  #error "Oops! Select 'Arduino Due' in 'Tools > Board.'"
31 #endif
32 
33 #define BOARD_INFO_NAME "Alligator Board R2"
34 
35 //
36 // Servos
37 //
38 #define SERVO0_PIN 36
39 #define SERVO1_PIN 40
40 #define SERVO2_PIN 41
41 #define SERVO3_PIN -1
42 
43 //
44 // Limit Switches
45 //
46 #define X_MIN_PIN 33 // PC1
47 #define X_MAX_PIN 34 // PC2
48 #define Y_MIN_PIN 35 // PC3
49 #define Y_MAX_PIN 37 // PC5
50 #define Z_MIN_PIN 38 // PC6
51 #define Z_MAX_PIN 39 // PC7
52 
53 //
54 // Steppers
55 //
56 #define X_STEP_PIN 96 // PB24
57 #define X_DIR_PIN 2 // PB25
58 #define X_ENABLE_PIN 24 // PA15, motor RESET pin
59 
60 #define Y_STEP_PIN 94 // PB22
61 #define Y_DIR_PIN 95 // PB23
62 #define Y_ENABLE_PIN 24 // PA15, motor RESET pin
63 
64 #define Z_STEP_PIN 98 // PC27
65 #define Z_DIR_PIN 3 // PC28
66 #define Z_ENABLE_PIN 24 // PA15, motor RESET pin
67 
68 #define E0_STEP_PIN 5 // PC25
69 #define E0_DIR_PIN 4 // PC26
70 #define E0_ENABLE_PIN 24 // PA15, motor RESET pin
71 
72 #define E1_STEP_PIN 28 // PD3 on piggy
73 #define E1_DIR_PIN 27 // PD2 on piggy
74 #define E1_ENABLE_PIN 24 // PA15, motor RESET pin
75 
76 #define E2_STEP_PIN 11 // PD7 on piggy
77 #define E2_DIR_PIN 29 // PD6 on piggy
78 #define E2_ENABLE_PIN 24 // PA15, motor RESET pin
79 
80 #define E3_STEP_PIN 30 // PD9 on piggy
81 #define E3_DIR_PIN 12 // PD8 on piggy
82 #define E3_ENABLE_PIN 24 // PA15, motor RESET pin
83 
84 // Microstepping pins - Mapping not from fastio.h (?)
85 #define X_MS1_PIN 99 // PC10
86 #define Y_MS1_PIN 10 // PC29
87 #define Z_MS1_PIN 44 // PC19
88 #define E0_MS1_PIN 45 // PC18
89 
90 //#define MOTOR_FAULT_PIN 22 // PB26 , motor X-Y-Z-E0 motor FAULT
91 
92 //
93 // Temperature Sensors
94 //
95 #define TEMP_0_PIN 1 // Analog Input (PA24)
96 #define TEMP_1_PIN 2 // Analog Input (PA23 on piggy)
97 #define TEMP_2_PIN 3 // Analog Input (PA22 on piggy)
98 #define TEMP_3_PIN 4 // Analog Input (PA6 on piggy)
99 #define TEMP_BED_PIN 0 // Analog Input (PA16)
100 
101 //
102 // Heaters / Fans
103 //
104 // Note that on the Due pin A0 on the board is channel 2 on the ARM chip
105 #define HEATER_0_PIN 68 // PA1
106 #define HEATER_1_PIN 8 // PC22 on piggy
107 #define HEATER_2_PIN 9 // PC21 on piggy
108 #define HEATER_3_PIN 97 // PC20 on piggy
109 #define HEATER_BED_PIN 69 // PA0
110 
111 #ifndef FAN_PIN
112  #define FAN_PIN 92 // PA5
113 #endif
114 #define FAN1_PIN 31 // PA7
115 
116 //
117 // Misc. Functions
118 //
119 #define SDSS 77 // PA28
120 #define SD_DETECT_PIN 87 // PA29
121 #define LED_RED_PIN 40 // PC8
122 #define LED_GREEN_PIN 41 // PC9
123 
124 #define EXP_VOLTAGE_LEVEL_PIN 65
125 
126 #define SPI_CHAN_DAC 1
127 
128 #define DAC0_SYNC 53 // PB14
129 #define DAC1_SYNC 6 // PC24
130 
131 // 64K SPI EEPROM
132 #define SPI_EEPROM
133 #define SPI_CHAN_EEPROM1 2
134 #define SPI_EEPROM1_CS 25 // PD0
135 
136 // 2K SPI EEPROM
137 #define SPI_EEPROM2_CS 26 // PD1
138 
139 // FLASH SPI
140 // 32Mb
141 #define SPI_FLASH_CS 23 // PA14
142 
143 //
144 // LCD / Controller
145 //
146 #if ENABLED(REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
147 
148  #define LCD_PINS_RS 18
149  #define LCD_PINS_ENABLE 15
150  #define LCD_PINS_D4 19
151  #define BEEPER_PIN 64
152 
153  #define BTN_EN1 14
154  #define BTN_EN2 16
155  #define BTN_ENC 17
156 
157  #undef UI_VOLTAGE_LEVEL
158  #define UI_VOLTAGE_LEVEL 1
159 
160 #endif // REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER