Skip to content

Commit dc9f211

Browse files
author
Cameron Tetford
committed
Reorganize NEMA pins
1 parent 3dc600d commit dc9f211

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

Software/Arduino code/OpenAstroTracker/Configuration_pins.hpp

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -17,36 +17,36 @@
1717
// If using NEMA steppers
1818
#define RA_STEP_PIN 22 // STEP
1919
#define RA_DIR_PIN 24 // DIR
20-
#define RA_EN_PIN 25 // Enable
20+
#define RA_EN_PIN 26 // Enable
21+
#define RA_DIAG_PIN 28 // only needed for autohome function
2122
#define RA_MS0_PIN 30, HIGH //
2223
#define RA_MS1_PIN 32, HIGH
2324
#define RA_MS2_PIN 34, HIGH
2425
//RA TMC2209 UART specific pins
2526
#define RA_SERIAL_PORT Serial3 // HardwareSerial port, wire to TX3 for write-only
2627
#define RA_DRIVER_ADDRESS 0b00 // Set by MS1/MS2. LOW/LOW in this case
27-
#define RA_DIAG_PIN 40 // only needed for autohome function
2828

29-
#define DEC_STEP_PIN 26 // STEP
30-
#define DEC_DIR_PIN 28 // DIR
31-
#define DEC_EN_PIN 29 // Enable
29+
#define DEC_STEP_PIN 23 // STEP
30+
#define DEC_DIR_PIN 25 // DIR
31+
#define DEC_EN_PIN 27 // Enable
32+
#define DEC_DIAG_PIN 29 // only needed for autohome function
3233
#define DEC_MS0_PIN 31 //
3334
#define DEC_MS1_PIN 33
3435
#define DEC_MS2_PIN 35
3536
//DEC TMC2209 UART specific pins
3637
#define DEC_SERIAL_PORT Serial3 // HardwareSerial port, wire to TX2 for write-only
3738
#define DEC_DRIVER_ADDRESS 0b01 // Set by MS1/MS2 (MS1 HIGH, MS2 LOW)
38-
#define DEC_DIAG_PIN 41 // only needed for autohome function
3939

4040
#if AZIMUTH_ALTITUDE_MOTORS == 1
4141
// Azimuth and Altitude pins
42-
#define AZ_IN1_PIN 38
43-
#define AZ_IN2_PIN 40
44-
#define AZ_IN3_PIN 42
45-
#define AZ_IN4_PIN 44
46-
#define ALT_IN1_PIN 46
47-
#define ALT_IN2_PIN 48
48-
#define ALT_IN3_PIN 50
49-
#define ALT_IN4_PIN 52
42+
#define AZ_IN1_PIN 46
43+
#define AZ_IN2_PIN 48
44+
#define AZ_IN3_PIN 50
45+
#define AZ_IN4_PIN 52
46+
#define ALT_IN1_PIN 47
47+
#define ALT_IN2_PIN 49
48+
#define ALT_IN3_PIN 51
49+
#define ALT_IN4_PIN 53
5050
#endif
5151
//---------------
5252
// MISC PINS amd SETTINGS

0 commit comments

Comments
 (0)