External triggering of camera and contolling the frame rate.

Hi

Could anyone please help with camera triggering using Arduino.
I need to know how to control the frame rate while triggering with arduino.
What does delay in the code attached meant for? Does the delay helps in controlling the frame rate?


//Code to trigger camera for acquiring 100 images.

unsigned int wait1=100; // TIME DELAY BETWEEN CAMERA TRIGGER

unsigned int x=0;

unsigned int n=100; // count

//byte go;

void setup()
{

Serial.begin(9600);
Serial.begin(9600);

pinMode(2,OUTPUT); //CAMERA TRIGGER

}

void loop()

{

start:
for (x=0;x<n;x++)

{

Serial.begin(9600);
digitalWrite(2,LOW);
delay(wait1);
digitalWrite(2,HIGH);

}

}

sketch_camera_trigg_10Jun2019.ino (458 Bytes)

what is camera trigger type, Rising edge, Falling edge, High, LOW? what is "start:".? are you giving 100 trigger pulses to trigger pin of camera? i think your camera software may have setting for frame acquisition, that is 50 frame, 100 frame etc.. in that case you have to trigger the camera only once.