Mini Spy Camera not saving photos onto SD Card

This is a special forum devoted to educators using Adafruit and Arduino products for teaching.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
pnat1040
 
Posts: 2
Joined: Fri Apr 08, 2022 5:56 pm

Mini Spy Camera not saving photos onto SD Card

Post by pnat1040 »

Hello! My students are working on a project with the Mini Spy Camera with Trigger for Photo or Video (Part No. 3202). The code below compiles and will upload to the Arduino Uno or MEGA that we have tried, and the LED associated with pin 13 on the Arduino blinks every 10 seconds as does the BLUE LED on the camera module (interestingly, not the red LED as listed in the documentation) at the same rate, so it appears to be taking photos, but nothing shows up on the SD card. The card was formatted FAT32 (as suggested in the documentation). We just can't figure out why pictures are not getting saved on the SD card as the documentation indicates it should happen automatically. If you have any insight, please let us know!

The code the students used they got from a sample project given on adafruit below the product (shown below):

Code: Select all

int trig = 2;
int led = 13;

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 trigger HIGH starts/stops video recording

void loop() {
  digitalWrite(trig, LOW);   
  digitalWrite(led, LOW);
  
  delay(50);               

  digitalWrite(trig, HIGH);    
  digitalWrite(led, HIGH);   

  //Delay between pictures
  delay(10000);               
  
}

User avatar
adafruit_support_mike
 
Posts: 67446
Joined: Thu Feb 11, 2010 2:51 pm

Re: Mini Spy Camera not saving photos onto SD Card

Post by adafruit_support_mike »

Post a photo showing your hardware and connections and we'll take a look. 800x600 images usually work best.

User avatar
pnat1040
 
Posts: 2
Joined: Fri Apr 08, 2022 5:56 pm

Re: Mini Spy Camera not saving photos onto SD Card

Post by pnat1040 »

Thanks for the reply! Attached is a photo of how everything is connected to a MEGA2560 R3, but the students had tried similar connections with an Arduino MEGA. Let me know if you want to see anything else. The SD card they have inserted is a mini SD 32 Gb (we have tried two different 32 Gb SD cards with the same result.
Attachments
mini_spycam_sample_connections (800 x 600).jpg
mini_spycam_sample_connections (800 x 600).jpg (76.67 KiB) Viewed 1622 times

User avatar
adafruit_support_mike
 
Posts: 67446
Joined: Thu Feb 11, 2010 2:51 pm

Re: Mini Spy Camera not saving photos onto SD Card

Post by adafruit_support_mike »

Everything seems to be in order there, and those camera modules can ber flaky at times.

Send a note containing a link to this page and your order number to [email protected]. The folks there will get you a replacement.

Locked
Please be positive and constructive with your questions and comments.

Return to “For Educators”