File tree Expand file tree Collapse file tree 2 files changed +28
-6
lines changed
Software/Arduino code/OpenAstroTracker Expand file tree Collapse file tree 2 files changed +28
-6
lines changed Original file line number Diff line number Diff line change 282
282
#if RA_RMSCURRENT > 2000 || DEC_RMSCURRENT > 2000
283
283
#error "Do you really want to set the RMS motorcurrent above 2 Ampere? Thats almost 3A peak! Delete this error if you know what youre doing"
284
284
#endif
285
- #if RA_STEPPER_TYPE != STEPPER_TYPE_28BYJ48 && ESP32
286
- #error "Sorry, ESP32 only supports 28BYJ48 steppers at this moment"
287
- #endif
Original file line number Diff line number Diff line change 63
63
// ESP32
64
64
// //////////////////////////////////////////////////////////////////
65
65
#ifdef ESP32
66
- #if (RA_STEPPER_TYPE != STEPPER_TYPE_28BYJ48) || (DEC_STEPPER_TYPE != STEPPER_TYPE_28BYJ48)
67
- #error Only 28BJY-48 stepper motors are supported on the ESP (for now)
68
- #endif
66
+ // #if (RA_STEPPER_TYPE != STEPPER_TYPE_28BYJ48) || (DEC_STEPPER_TYPE != STEPPER_TYPE_28BYJ48)
67
+ // #error Only 28BJY-48 stepper motors are supported on the ESP (for now)
68
+ // #endif
69
69
70
70
// RA Motor pins
71
71
#define RA_IN1_PIN 19
79
79
#define DEC_IN3_PIN 5
80
80
#define DEC_IN4_PIN 18
81
81
82
+ // If using NEMA steppers
83
+ #define RA_STEP_PIN 19 // STEP
84
+ #define RA_DIR_PIN 21 // DIR
85
+ #define RA_EN_PIN 22 // Enable
86
+ #define RA_DIAG_PIN 23 // only needed for autohome function
87
+ #define RA_MS0_PIN 4
88
+ #define RA_MS1_PIN 0
89
+ #define RA_MS2_PIN 2
90
+
91
+ // RA TMC2209 UART specific pins
92
+ #define RA_SERIAL_PORT Serial2 // HardwareSerial port, wire to TX2 for write-only
93
+ #define RA_DRIVER_ADDRESS 0b00 // Set by MS1/MS2. LOW/LOW in this case
94
+
95
+ #define DEC_STEP_PIN 16 // STEP
96
+ #define DEC_DIR_PIN 17 // DIR
97
+ #define DEC_EN_PIN 5 // Enable
98
+ #define DEC_DIAG_PIN 18 // only needed for autohome function
99
+ #define DEC_MS0_PIN 15
100
+ #define DEC_MS1_PIN 8
101
+ #define DEC_MS2_PIN 7
102
+
103
+ // DEC TMC2209 UART specific pins
104
+ #define DEC_SERIAL_PORT Serial2 // HardwareSerial port, wire to TX2 for write-only
105
+ #define DEC_DRIVER_ADDRESS 0b01 // Set by MS1/MS2 (MS1 HIGH, MS2 LOW)
106
+
82
107
#if AZIMUTH_ALTITUDE_MOTORS == 1
83
108
#define AZ_IN1_PIN 38
84
109
#define AZ_IN2_PIN 40
You can’t perform that action at this time.
0 commit comments