Excellent tutorial, clear & concise and super helpful to me as I want to do exactly the same. The translation between German & English worked spectacularly well for me as I do not speak German. Thank you for sharing!
Danke für das tolle Video. habe mir auch so ein Arduino Set bestellt für ca. 17 Euro komplett! Suche mir noch eine kleine alte Montierung. Meine EQ6 ist mir zu schwer für mal schnell was zu fotografieren.
here is the code simplified: #include // Define the number of steps per revolution for your stepper motor const int stepsPerRevolution = 2048; // Create an instance of the Stepper class Stepper myStepper(stepsPerRevolution, 3, 5, 4, 6); void setup() { // No initialization needed in this example } void loop() { // Rotate the motor clockwise myStepper.step(-1); // Add a delay to make the movement visible delay(420); // Adjust according to your needs to set the speed }
Excellent tutorial, clear & concise and super helpful to me as I want to do exactly the same. The translation between German & English worked spectacularly well for me as I do not speak German. Thank you for sharing!
Praise is always good. It is the lubricant of social relations. Thanks.
Danke für das tolle Video. habe mir auch so ein Arduino Set bestellt für ca. 17 Euro komplett! Suche mir noch eine kleine alte Montierung. Meine EQ6 ist mir zu schwer für mal schnell was zu fotografieren.
jou! Nur zu!
here is the code simplified:
#include
// Define the number of steps per revolution for your stepper motor
const int stepsPerRevolution = 2048;
// Create an instance of the Stepper class
Stepper myStepper(stepsPerRevolution, 3, 5, 4, 6);
void setup() {
// No initialization needed in this example
}
void loop() {
// Rotate the motor clockwise
myStepper.step(-1);
// Add a delay to make the movement visible
delay(420); // Adjust according to your needs to set the speed
}
ok. thank you
Awesome, Just one question, Does the tracker moves once every 0.42 seconds?
yes, a little bit every 0.42 seconds. So the stars remain as points.
//try also:
unsigned long T1 = 0, T2 = 0;
unsigned long TimeInterval=420723;
int stepcounter=0;
byte bitpattern[] ={ 0b01001000, 0b01100000,0b00110000,0b00011000};
void setup() {
DDRD=0b01111000; //datareg D dig 3,4,5,6 Output
//TimeInterval= 4000; // for testing
}
void loop() {
T2=micros();
if( (unsigned long)(T2-T1) >= TimeInterval ){
PORTD=bitpattern[stepcounter];
stepcounter=stepcounter+1;
if (stepcounter>3){ stepcounter=0;}
T1=micros();
}
}
Simpel ist das aber nicht!
jou!