Prusa MINI Firmware overview
pins_CNCONTROLS_11.h
Go to the documentation of this file.
1 /**
2  * CartesioV11 pin assignments
3  */
4 
5 #if !defined(__AVR_ATmega1280__) && !defined(__AVR_ATmega2560__)
6  #error "Oops! Select 'Arduino/Genuino Mega or Mega 2560' in 'Tools > Board.'"
7 #endif
8 
9 #define BOARD_INFO_NAME "CN Controls V11"
10 
11 //
12 // Limit Switches
13 //
14 #define X_STOP_PIN 43
15 #define Y_STOP_PIN 45
16 #define Z_STOP_PIN 42
17 
18 //
19 // Steppers
20 //
21 #define X_STEP_PIN 34
22 #define X_DIR_PIN 36
23 #define X_ENABLE_PIN 35
24 
25 #define Y_STEP_PIN 37
26 #define Y_DIR_PIN 39
27 #define Y_ENABLE_PIN 38
28 
29 #define Z_STEP_PIN 40
30 #define Z_DIR_PIN 48
31 #define Z_ENABLE_PIN 41
32 
33 #define E0_STEP_PIN 29
34 #define E0_DIR_PIN 28
35 #define E0_ENABLE_PIN 3
36 
37 #define E1_STEP_PIN 61
38 #define E1_DIR_PIN 62
39 #define E1_ENABLE_PIN 60
40 
41 #define E2_STEP_PIN 15
42 #define E2_DIR_PIN 14
43 #define E2_ENABLE_PIN 16
44 
45 #define E3_STEP_PIN 44
46 #define E3_DIR_PIN 49
47 #define E3_ENABLE_PIN 47
48 
49 //
50 // Temperature Sensors
51 //
52 #define TEMP_0_PIN 0 // Analog Input
53 #define TEMP_1_PIN 3 // Analog Input. 3 for tool2 -> 2 for chambertemp
54 #define TEMP_2_PIN 2 // Analog Input. 9 for tool3 -> 2 for chambertemp
55 #define TEMP_3_PIN 11 // Analog Input. 11 for tool4 -> 2 for chambertemp
56 #define TEMP_BED_PIN 1 // Analog Input
57 
58 #ifndef TEMP_CHAMBER_PIN
59  //#define TEMP_CHAMBER_PIN 2 // Analog Input
60 #endif
61 
62 //
63 // Heaters / Fans
64 //
65 #define HEATER_0_PIN 5
66 #define HEATER_1_PIN 58
67 #define HEATER_2_PIN 64
68 #define HEATER_3_PIN 46
69 #define HEATER_BED_PIN 2
70 
71 #ifndef FAN_PIN
72  //#define FAN_PIN 7 // common PWM pin for all tools
73 #endif
74 
75 #define ORIG_E0_AUTO_FAN_PIN 7
76 #define ORIG_E1_AUTO_FAN_PIN 7
77 #define ORIG_E2_AUTO_FAN_PIN 7
78 #define ORIG_E3_AUTO_FAN_PIN 7
79 
80 //
81 // Misc. Functions
82 //
83 #define SDSS 53
84 #define SD_DETECT_PIN 13
85 
86 // Tools
87 
88 //#define TOOL_0_PIN 4
89 //#define TOOL_1_PIN 59
90 //#define TOOL_2_PIN 8
91 //#define TOOL_3_PIN 30
92 //#define TOOL_PWM_PIN 7 // common PWM pin for all tools
93 
94 // Common I/O
95 
96 //#define FIL_RUNOUT_PIN -1
97 //#define PWM_1_PIN 11
98 //#define PWM_2_PIN 10
99 //#define SPARE_IO 12
100 
101 //
102 // LCD / Controller
103 //
104 #define BEEPER_PIN 6
105 
106 // Pins for DOGM SPI LCD Support
107 #define DOGLCD_A0 26
108 #define DOGLCD_CS 24
109 #define DOGLCD_MOSI -1
110 #define DOGLCD_SCK -1
111 
112 #define BTN_EN1 23
113 #define BTN_EN2 25
114 #define BTN_ENC 27
115 
116 // Hardware buttons for manual movement of XYZ
117 #define SHIFT_OUT 19
118 #define SHIFT_LD 18
119 #define SHIFT_CLK 17
120 
121 //#define UI1 31
122 //#define UI2 22
123 
124 #define STAT_LED_BLUE_PIN -1
125 #define STAT_LED_RED_PIN 31