Tommy's RA Drive for EQ-2 Telescope Mount
Description
An easy to install RA drive motor for the EQ-2 telescope mount. It assembles to the side of the EQ-2 without modification and can easily be undone. You will need a Nema 17 stepper, a 200mm (+/-) GT2 closed belt, a GT2 pulley for the motor, four M3 bolts for the motor, one 1/4" bolt to hold the bracket to the EQ-2, and one 1/4" bolt to tension the belt. Assembly is pretty self explanatory; just remove the existing knob and tensioner, replace with the new knob and tensioner, and fit the bracket on over top. Here is my code: // Tommy's RA Drive for EQ-2 Telescope Mount const int stepPin = 9; // Set the stepping pin to pin 9 const int dirPin = 8; // Set the direct pin to pin 8 const int potPin = A0; // Set the potentiometer pin to pin A0 int stepDelay; int absPotVal; int potVal; void setup() { pinMode (stepPin, OUTPUT); // Set stepPin as output pinMode (dirPin, OUTPUT); // Set dirPin as output } void loop() { potVal = analogRead(potPin); // check the value of the pot at a range of 0-1023 potVal = potVal - 512; // change that number to a range of -512 to + 511 if (potVal < 0) { // If the value is negative digitalWrite (dirPin, LOW); // Set the direction to counter-clockwise } else { // If the value is positive digitalWrite (dirPin, HIGH); // Set the direction to clockwise } absPotVal = abs(potVal); // Get a positive pot value stepDelay = map(absPotVal, 0, 511, 1, 500); // Set the step delay using the pot value digitalWrite (stepPin, HIGH); // Start a stepper pulse delay (stepDelay); // Wait digitalWrite (stepPin, LOW); // End a stepepr pulse delay (stepDelay); // Wait }
Statistics
Likes
4
Downloads
0