I recently built a camera slider and i am having issues with the code i found online. You can give me a screwdriver and i will build you a house but as soon as i see a computer i am completely lost!
I could not add the code since it exceeds the maximum of 9000 characters but here is the link to it:
I think the Arduino software doesn't know the library 'MsTimer2' which you are including in line 20.
Try Sketch>Include Library>Manage Libraries, search for 'MsTimer2' and install it.
This should fix your issue.
I am having another issue with my project. The slider works just fine but it sends power continuously to the camera and not just after a step of the motor. If i have to camera in fast shooting mode it just shoots and never stops.
Would anybody be so friendly and have a look at the code above?
if (currentStepsInt > 0 && currentStep % intervalDistance == 0) { //if current number of motor steps is divisible by the number of motor steps in a camera step, fire the camera
MsTimer2::stop();
delay(20);
digitalWrite(trig, HIGH); //trigger camera shutter
delay(80);
digitalWrite(trig, LOW); //reset trigger pin
delay((shutterDuration * 1000) - 80); //delay needs changing to timer so stop button can be polled
MsTimer2::start();
}
This looks like it should only raise the trigger for 80 milliseconds. What is the hardware on the output of this pin? Usually cameras need LOW to trigger the shutter, but you also don't want to connect the Arduino directly so there should be some relay or opto-isolator there, which may invert the output.
Hi
On the picture you see my setup. Red and white are going to the camera, black (21 on bread board) to ground and yellow to pin nr 13 on my arduino uno.
To use a bipolar transistor like that, you need to know more about the voltage and current coming from the camera. Do you know the voltage and current?
I checked the project again and i realized i used a different transistor than the publisher of the project. He uses a BC109 transistor and i use a D882. Do you think this is the problem?