mirror of
https://github.com/isaac879/Pan-Tilt-Mount.git
synced 2026-08-16 13:03:15 +02:00
Add files via upload
Switched the pan and slider stepper driver pins.
This commit is contained in:
@@ -75,17 +75,17 @@ void initPanTilt(void){
|
|||||||
multi_stepper.addStepper(stepper_tilt);
|
multi_stepper.addStepper(stepper_tilt);
|
||||||
multi_stepper.addStepper(stepper_slider);
|
multi_stepper.addStepper(stepper_slider);
|
||||||
digitalWrite(PIN_ENABLE, LOW); //Enable the stepper drivers
|
digitalWrite(PIN_ENABLE, LOW); //Enable the stepper drivers
|
||||||
if(homing_mode == 1){
|
// if(homing_mode == 1){
|
||||||
printi(F("Homing\n"));
|
// printi(F("Homing\n"));
|
||||||
if(findHome()){
|
// if(findHome()){
|
||||||
printi(F("Complete\n"));
|
// printi(F("Complete\n"));
|
||||||
}
|
// }
|
||||||
else{
|
// else{
|
||||||
stepper_pan.setCurrentPosition(0);
|
// stepper_pan.setCurrentPosition(0);
|
||||||
stepper_tilt.setCurrentPosition(0);
|
// stepper_tilt.setCurrentPosition(0);
|
||||||
printi(F("Error homing\n"));
|
// printi(F("Error homing\n"));
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
}
|
}
|
||||||
|
|
||||||
/*--------------------------------------------------------------------------------------------------------------------------------------------------------*/
|
/*--------------------------------------------------------------------------------------------------------------------------------------------------------*/
|
||||||
|
|||||||
@@ -13,12 +13,21 @@
|
|||||||
#define PIN_ENABLE 12
|
#define PIN_ENABLE 12
|
||||||
#define PIN_MS1 11
|
#define PIN_MS1 11
|
||||||
#define PIN_MS2 10
|
#define PIN_MS2 10
|
||||||
#define PIN_STEP_SLIDER 8
|
|
||||||
#define PIN_DIRECTION_SLIDER 7
|
//#define PIN_STEP_SLIDER 8
|
||||||
|
//#define PIN_DIRECTION_SLIDER 7
|
||||||
|
//#define PIN_STEP_TILT 6
|
||||||
|
//#define PIN_DIRECTION_TILT 5
|
||||||
|
//#define PIN_STEP_PAN 4
|
||||||
|
//#define PIN_DIRECTION_PAN 3
|
||||||
|
|
||||||
|
#define PIN_STEP_SLIDER 4
|
||||||
|
#define PIN_DIRECTION_SLIDER 3
|
||||||
#define PIN_STEP_TILT 6
|
#define PIN_STEP_TILT 6
|
||||||
#define PIN_DIRECTION_TILT 5
|
#define PIN_DIRECTION_TILT 5
|
||||||
#define PIN_STEP_PAN 4
|
#define PIN_STEP_PAN 8
|
||||||
#define PIN_DIRECTION_PAN 3
|
#define PIN_DIRECTION_PAN 7
|
||||||
|
|
||||||
#define PIN_SLIDER_HALL 2
|
#define PIN_SLIDER_HALL 2
|
||||||
|
|
||||||
#define HALF_STEP 2
|
#define HALF_STEP 2
|
||||||
@@ -102,7 +111,7 @@
|
|||||||
#define NUM_LEDS 1
|
#define NUM_LEDS 1
|
||||||
#define BRIGHTNESS 255
|
#define BRIGHTNESS 255
|
||||||
|
|
||||||
#define VERSION_NUMBER "Version: 3.9.5\n"
|
#define VERSION_NUMBER "Version: 3.9.7\n"
|
||||||
|
|
||||||
/*------------------------------------------------------------------------------------------------------------------------------------------------------*/
|
/*------------------------------------------------------------------------------------------------------------------------------------------------------*/
|
||||||
|
|
||||||
|
|||||||
@@ -18,7 +18,7 @@
|
|||||||
*
|
*
|
||||||
* Code written by isaac879
|
* Code written by isaac879
|
||||||
*
|
*
|
||||||
* Last modified: 06/08/2020
|
* Last modified: 17/08/2020
|
||||||
*
|
*
|
||||||
*--------------------------------------------------------------------------------------------------------------------------------------------------------*/
|
*--------------------------------------------------------------------------------------------------------------------------------------------------------*/
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user