small changes and notes during build

This commit is contained in:
interfisch 2025-01-25 00:56:48 +01:00
parent 62c78aa020
commit 5c1aa24973
5 changed files with 18933 additions and 18921 deletions

View file

@ -21,9 +21,11 @@ AccelStepper stepperPan(AccelStepper::DRIVER, PAN_STEP_PIN, PAN_DIR_PIN);
AccelStepper stepperTilt(AccelStepper::DRIVER, TILT_STEP_PIN, TILT_DIR_PIN);
unsigned long stepsPerRotationPan=16*42*400/12; //12z to 42z, 16x microstepping
unsigned int microsteppingPan = 4;
unsigned long stepsPerRotationPan=microsteppingPan*42*400/12; //12z to 42z, 16x microstepping
unsigned long stepsPerRotationTilt=16*85*400/17;//17z to 85z, 16x microstepping
unsigned int microsteppingTilt = 4;
unsigned long stepsPerRotationTilt=microsteppingTilt*85*400/17;//17z to 85z, 16x microstepping
void setEnable(bool t){
digitalWrite(EN_PIN,!t); //active low
@ -39,13 +41,13 @@ void setup() {
digitalWrite(PIN_LIGHT, LOW);
setEnable(false);
stepperPan.setMaxSpeed(10000); //tested w/o load 15000
stepperPan.setAcceleration(20000.0); //tested w/o load 80000
stepperPan.setMaxSpeed(2000); //tested w/o load 15000 @16 microsteps
stepperPan.setAcceleration(5000.0); //tested w/o load 80000 @16 microsteps
stepperPan.moveTo(stepsPerRotationPan/2);
stepperTilt.setMaxSpeed(10000); //tested w/o load 15000
stepperTilt.setAcceleration(20000.0); //tested w/o load 80000
stepperTilt.moveTo(stepsPerRotationTilt/8);
stepperTilt.setMaxSpeed(2000); //tested w/o load 15000 @16 microsteps
stepperTilt.setAcceleration(5000.0); //tested w/o load 80000 @16 microsteps
stepperTilt.moveTo(stepsPerRotationTilt/4);
setEnable(true);
}
@ -68,8 +70,8 @@ void loop() {
Serial.print("Tilt Moving to: "); Serial.println(0);
stepperTilt.moveTo(0);
}else{
Serial.print("Tilt Moving to: "); Serial.println(stepsPerRotationTilt/8);
stepperTilt.moveTo(stepsPerRotationTilt/8);
Serial.print("Tilt Moving to: "); Serial.println(stepsPerRotationTilt/4);
stepperTilt.moveTo(stepsPerRotationTilt/4);
}
}

View file

@ -1,6 +1,6 @@
{
"board": {
"active_layer": 37,
"active_layer": 31,
"active_layer_preset": "All Layers",
"auto_track_width": true,
"hidden_netclasses": [],

View file

@ -6387,6 +6387,16 @@
)
(uuid "ff534fc9-31ca-48b2-a462-c984553d2464")
)
(text "TODO:\nStepper Driver Hole size too small in footprint"
(exclude_from_sim no)
(at 105.156 168.148 0)
(effects
(font
(size 1.27 1.27)
)
)
(uuid "79ec59fd-797a-4117-8f8e-fdce04b58b55")
)
(global_label "P_CFG3"
(shape input)
(at 190.5 135.89 180)
@ -11089,7 +11099,7 @@
(justify left)
)
)
(property "Value" "330uF 25V"
(property "Value" "330uF 16V"
(at 36.83 85.4709 0)
(effects
(font