I'm using an Adafruit Mini Spy Camera with Trigger for Photo or Video for an important project, and I'm having some problems with it. I can see the camera taking pictures because the red and blue lights are blinking every few seconds as intended, but the pictures somehow do not get stored to the sd card and when I plug the sd card into my computer, it shows no files. I am using a 32 gb sd card with FAT32 format, and I am using an Arduino Uno to control the camera. I also tried directly connecting the white/green wire to ground and the same result occurs with the pictures not being stored on the sd card. My code is below and a picture of my wiring is attached. It would be great if someone could provide assistance!
Code: Select all
int trig = 2;
int led = 13;[img][/img]
void setup() {
// initialize the digital pins as output.
pinMode(led, OUTPUT);
pinMode(trig, OUTPUT);
digitalWrite(led, HIGH);
digitalWrite(trig, HIGH);
}
// Hold HIGH and trigger quick (<250ms) LOW to take a photo. Holding LOW and
void loop() {
digitalWrite(trig, LOW);
digitalWrite(led, LOW);
delay(50);
digitalWrite(trig, HIGH);
digitalWrite(led, HIGH);
delay(5000);
}