//define trigger pin
const int trig = 2;
Code: Select all
//at end of each step
if (currentStep % intervalDistance == 0) { //if current number of motor steps is divisible by the number of motor steps in a camera step, fire the camera
Serial.println(trig, LOW);
delay(750);
digitalWrite(trig, HIGH); //trigger camera shutter
delay(525);
digitalWrite(trig, LOW); //reset trigger pin
delay((shutterDuration * 1000)-80); //delay needs changing to timer so stop button can be polled
}
the circuit is as the picture. It isn't triggering at all, I have an LED in place of the jack for the camera just for test purposes.
}