Skip to content

Commit 1decfdf

Browse files
author
OpenAstroTech
committed
V1.8.18 - Updates
1 parent d6ffeef commit 1decfdf

File tree

4 files changed

+18
-19
lines changed

4 files changed

+18
-19
lines changed

Software/Arduino code/OpenAstroTracker/Configuration.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,11 +74,11 @@ float DEC_Circumference = 565.5;
7474
// These values are needed to calculate the current position during initial alignment.
7575
// Use something like Stellarium to look up the RA of Polaris in JNow (on date) variant.
7676
// This changes slightly over weeks, so adjust every couple of months.
77-
// This value is from 15.Jul.2020, next adjustment suggested at end 2020
77+
// This value is from 13.Aug.2020, next adjustment suggested at end 2020
7878
// The same could be done for the DEC coordinates but they dont change significantly for the next 5 years
7979
byte PolarisRAHour = 2;
8080
byte PolarisRAMinute = 57;
81-
byte PolarisRASecond = 22;
81+
byte PolarisRASecond = 27;
8282

8383
// Some explanations:
8484

Software/Arduino code/OpenAstroTracker/Configuration_adv.hpp

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,13 @@
44
#include <WString.h>
55

66
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
7-
// Some definitions. ////
7+
// Some definitions. ////
88
// ////
99
// DO NOT EDIT THESE ////
1010
////////////////////////////
1111
// Stepper motor types
1212
#define STEP_28BYJ48 0
1313
#define STEP_NEMA17 1
14-
15-
// Driver selection
1614
#define ULN2003_DRIVER 0
1715
#define GENERIC_DRIVER 1
1816
#define TMC2209_STANDALONE 2
@@ -28,26 +26,26 @@
2826
////////////////////////////
2927
//
3028
// STEPPER TYPE
31-
#define RA_STEPPER_TYPE STEP_28BYJ48
32-
#define DEC_STEPPER_TYPE STEP_28BYJ48
29+
#define RA_STEPPER_TYPE STEP_28BYJ48 // STEP_28BYJ48 | STEP_NEMA17
30+
#define DEC_STEPPER_TYPE STEP_28BYJ48 // Change according to the steppers you are using
3331
//
3432
//
3533
////////////////////////////
3634
//
3735
// MICROSTEPPING
3836
// Only affects NEMA steppers!
3937
// Only affects calculations, Microstepping is set by MS pins,
40-
// EXCEPT for TMC2209 UART where this value actually sets the SLEW microstepping
38+
// !!EXCEPT for TMC2209 UART where this value actually sets the SLEW microstepping
4139
#define SET_MICROSTEPPING 8 // 1 | 2 | 4 | 8 | 16 | 32 | 64 | 128 | 256
4240
// ^-----------------^
4341
// only if your driver can handle it.
4442
// TMC2209 can
4543
////////////////////////////
4644
//
47-
48-
// GENERIC drivers include A4988 and any Bipolar STEP/DIR based drivers
49-
#define RA_DRIVER_TYPE ULN2003_DRIVER
50-
#define DEC_DRIVER_TYPE ULN2003_DRIVER
45+
// DRIVER SELECTION
46+
// GENERIC drivers include A4988 and any Bipolar STEP/DIR based drivers. Note Microstep assignments in config_pins.
47+
#define RA_DRIVER_TYPE ULN2003_DRIVER // ULN2003_DRIVER | GENERIC_DRIVER | TMC2209_STANDALONE | TMC2209_UART
48+
#define DEC_DRIVER_TYPE ULN2003_DRIVER //
5149
//
5250
//
5351
////////////////////////////

Software/Arduino code/OpenAstroTracker/Configuration_pins.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@
3030
#define DEC_DIR_PIN 25 // DIR
3131
#define DEC_EN_PIN 27 // Enable
3232
#define DEC_DIAG_PIN 29 // only needed for autohome function
33-
#define DEC_MS0_PIN 31 //
34-
#define DEC_MS1_PIN 33
35-
#define DEC_MS2_PIN 35
33+
#define DEC_MS0_PIN 31, HIGH //
34+
#define DEC_MS1_PIN 33, HIGH
35+
#define DEC_MS2_PIN 35, HIGH
3636
//DEC TMC2209 UART specific pins
3737
#define DEC_SERIAL_PORT Serial3 // HardwareSerial port, wire to TX2 for write-only
3838
#define DEC_DRIVER_ADDRESS 0b01 // Set by MS1/MS2 (MS1 HIGH, MS2 LOW)

Software/Arduino code/OpenAstroTracker/b_setup.hpp

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ void setup() {
8787
#if RA_DRIVER_TYPE == GENERIC_DRIVER
8888
// include A4988 microstep pins
8989
//#error "Define Microstep pins and delete this error."
90+
digitalWrite(RA_EN_PIN, HIGH);
9091
digitalWrite(RA_MS0_PIN); // MS0
9192
digitalWrite(RA_MS1_PIN); // MS1
9293
digitalWrite(RA_MS2_PIN); // MS2
@@ -108,10 +109,10 @@ void setup() {
108109
#endif
109110
#if DEC_STEPPER_TYPE == STEP_NEMA17 // DEC driver startup (for A4988)
110111
#if DEC_DRIVER_TYPE == GENERIC_DRIVER // DEC driver startup (for A4988)
111-
pinMode(45, OUTPUT);
112-
digitalWrite(45, LOW); // ENABLE
113-
digitalWrite(46, LOW); // MS2
114-
digitalWrite(44, HIGH); // MS1
112+
digitalWrite(DEC_EN_PIN, HIGH);
113+
digitalWrite(DEC_MS0_PIN); // MS1
114+
digitalWrite(DEC_MS1_PIN); // MS2
115+
digitalWrite(DEC_MS2_PIN); // MS3
115116
#endif
116117
#if DEC_DRIVER_TYPE == TMC2209_STANDALONE
117118
// include TMC2209 Standalone pins TODO-----------------------

0 commit comments

Comments
 (0)