-
Notifications
You must be signed in to change notification settings - Fork 79
Expand file tree
/
Copy pathpins_RAMPS.hpp
More file actions
186 lines (174 loc) · 5.03 KB
/
pins_RAMPS.hpp
File metadata and controls
186 lines (174 loc) · 5.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
/**
* @brief a pins configuration file for a RAMPS 1.4 + Arduino Mega OAT.
*/
#pragma once
// DRIVER_TYPE_TMC2209_UART requires 4 digital pins in Arduino pin numbering
#ifndef RA_STEP_PIN
#define RA_STEP_PIN 54 // STEP
#endif
#ifndef RA_DIR_PIN
#define RA_DIR_PIN 55 // DIR
#endif
#ifndef RA_EN_PIN
#define RA_EN_PIN 38 // Enable
#endif
#ifndef RA_DIAG_PIN
#define RA_DIAG_PIN 43 // only needed for autohome function
#endif
// DRIVER_TYPE_TMC2209_UART requires 2 additional digital pins for SoftwareSerial, can be shared across all drivers
#ifndef RA_SERIAL_PORT_TX
#define RA_SERIAL_PORT_TX 23 // SoftwareSerial TX port
#endif
#ifndef RA_SERIAL_PORT_RX
#define RA_SERIAL_PORT_RX 25 // SoftwareSerial RX port
#endif
#ifndef RA_DRIVER_ADDRESS
#define RA_DRIVER_ADDRESS 0b00
#endif
// DRIVER_TYPE_TMC2209_UART requires 4 digital pins in Arduino pin numbering
#ifndef DEC_STEP_PIN
#define DEC_STEP_PIN 60 // STEP
#endif
#ifndef DEC_DIR_PIN
#define DEC_DIR_PIN 61 // DIR
#endif
#ifndef DEC_EN_PIN
#define DEC_EN_PIN 56 // Enable
#endif
#ifndef DEC_DIAG_PIN
#define DEC_DIAG_PIN 45 // only needed for autohome function
#endif
// DRIVER_TYPE_TMC2209_UART requires 2 additional digital pins for SoftwareSerial, can be shared across all drivers
#ifndef DEC_SERIAL_PORT_TX
#define DEC_SERIAL_PORT_TX 27 // SoftwareSerial TX port
#endif
#ifndef DEC_SERIAL_PORT_RX
#define DEC_SERIAL_PORT_RX 29 // SoftwareSerial RX port
#endif
#ifndef DEC_DRIVER_ADDRESS
#define DEC_DRIVER_ADDRESS 0b00
#endif
#ifndef SW_SERIAL_UART
#define SW_SERIAL_UART 1
#endif
// DRIVER_TYPE_TMC2209_UART requires 4 digital pins in Arduino pin numbering
#ifndef AZ_STEP_PIN
#define AZ_STEP_PIN 46 // STEP
#endif
#ifndef AZ_DIR_PIN
#define AZ_DIR_PIN 48 // DIR
#endif
#ifndef AZ_EN_PIN
#define AZ_EN_PIN 62 // Enable
#endif
#ifndef AZ_DIAG_PIN
#define AZ_DIAG_PIN 47 // only needed for autohome function
#endif
// DRIVER_TYPE_TMC2209_UART requires 2 additional digital pins for SoftwareSerial, can be shared across all drivers
#ifndef AZ_SERIAL_PORT_TX
#define AZ_SERIAL_PORT_TX 31 // SoftwareSerial TX port
#endif
#ifndef AZ_SERIAL_PORT_RX
#define AZ_SERIAL_PORT_RX 33 // SoftwareSerial RX port
#endif
#ifndef AZ_DRIVER_ADDRESS
#define AZ_DRIVER_ADDRESS 0b00
#endif
// DRIVER_TYPE_TMC2209_UART requires 4 digital pins in Arduino pin numbering
#ifndef ALT_STEP_PIN
#define ALT_STEP_PIN 26 // STEP
#endif
#ifndef ALT_DIR_PIN
#define ALT_DIR_PIN 28 // DIR
#endif
#ifndef ALT_EN_PIN
#define ALT_EN_PIN 24 // Enable
#endif
#ifndef ALT_DIAG_PIN
#define ALT_DIAG_PIN 32 // only needed for autohome function
#endif
// DRIVER_TYPE_TMC2209_UART requires 2 additional digital pins for SoftwareSerial, can be shared across all drivers
#ifndef ALT_SERIAL_PORT_TX
#define ALT_SERIAL_PORT_TX 35 // SoftwareSerial TX port
#endif
#ifndef ALT_SERIAL_PORT_RX
#define ALT_SERIAL_PORT_RX 37 // SoftwareSerial RX port
#endif
#ifndef ALT_DRIVER_ADDRESS
#define ALT_DRIVER_ADDRESS 0b00
#endif
// DRIVER_TYPE_TMC2209_UART requires 4 digital pins in Arduino pin numbering. This is the E1 port.
#ifndef FOCUS_STEP_PIN
#define FOCUS_STEP_PIN 36 // STEP
#endif
#ifndef FOCUS_DIR_PIN
#define FOCUS_DIR_PIN 34 // DIR
#endif
#ifndef FOCUS_EN_PIN
#define FOCUS_EN_PIN 30 // Enable
#endif
#ifndef FOCUS_DIAG_PIN
#define FOCUS_DIAG_PIN 49 // only needed for autohome function
#endif
// DRIVER_TYPE_TMC2209_UART requires 2 additional digital pins for SoftwareSerial, can be shared across all drivers
#ifndef FOCUS_SERIAL_PORT_TX
#define FOCUS_SERIAL_PORT_TX 39 // SoftwareSerial TX port
#endif
#ifndef FOCUS_SERIAL_PORT_RX
#define FOCUS_SERIAL_PORT_RX 41 // SoftwareSerial RX port
#endif
#ifndef FOCUS_DRIVER_ADDRESS
#define FOCUS_DRIVER_ADDRESS 0b00
#endif
// RA Homing pin for Hall sensor
#ifndef RA_HOMING_SENSOR_PIN
#define RA_HOMING_SENSOR_PIN 53
#endif
// DEC Homing pin for Hall sensor
#ifndef DEC_HOMING_SENSOR_PIN
#define DEC_HOMING_SENSOR_PIN 52
#endif
//GPS pin configuration
#ifndef GPS_SERIAL_PORT
#define GPS_SERIAL_PORT Serial2 // Pins 16 and 17
#endif
// DISPLAY_TYPE_LCD_KEYPAD requires 6 digital & 1 analog output in Arduino pin numbering
#ifndef LCD_PIN4
#define LCD_PIN4 63
#endif
#ifndef LCD_PIN5
#define LCD_PIN5 40
#endif
#ifndef LCD_PIN6
#define LCD_PIN6 42
#endif
#ifndef LCD_PIN7
#define LCD_PIN7 59
#endif
#ifndef LCD_PIN8
#define LCD_PIN8 64
#endif
#ifndef LCD_PIN9
#define LCD_PIN9 44
#endif
// DISPLAY_TYPE_LCD_KEYPAD requires 1 analog input in Arduino pin numbering
#ifndef LCD_KEY_SENSE_PIN
#define LCD_KEY_SENSE_PIN 65
#endif
//Pin to turn on dew heater MOSFET
#ifndef DEW_HEATER_1_PIN
#define DEW_HEATER_1_PIN 10
#endif
#ifndef DEW_HEATER_2_PIN
#define DEW_HEATER_2_PIN 9
#endif
//Serial port for external debugging
#if DEBUG_SEPARATE_SERIAL == 1
#ifndef DEBUG_SERIAL_PORT
#define DEBUG_SERIAL_PORT Serial2 //D16 - TX3 and D17 - RX3
#endif
#else
#ifndef DEBUG_SERIAL_PORT
#define DEBUG_SERIAL_PORT Serial
#endif
#endif