Unresponsive VC0706 Camera and MicroSD breakoutboard

Post here about your Arduino projects, get help - for Adafruit customers!

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
User avatar
KeanResearch
 
Posts: 38
Joined: Sat Jan 11, 2020 12:22 am

Re: Unresponsive VC0706 Camera and MicroSD breakoutboard

Post by KeanResearch »

Very kind of you!

Upon trying to upload one of these images, I received a notice that "the uploaded file is empty." Checking the data size of each photo, I now see that 0KB files are being stored to the SD card. To me this implies that while the SD card logger is functioning, the camera is not...

I did use connector pins this time around and was very cautious/careful to produce a good solder.

Thank you for continuing to aid me.

User avatar
adafruit_support_carter
 
Posts: 29163
Joined: Tue Nov 29, 2016 2:45 pm

Re: Unresponsive VC0706 Camera and MicroSD breakoutboard

Post by adafruit_support_carter »

Post the complete code for the sketch you are running.

User avatar
KeanResearch
 
Posts: 38
Joined: Sat Jan 11, 2020 12:22 am

Re: Unresponsive VC0706 Camera and MicroSD breakoutboard

Post by KeanResearch »

Hello,

The sketch I am using was included in my original post. It should be titled "Microlab03_button.ino"

User avatar
adafruit_support_carter
 
Posts: 29163
Joined: Tue Nov 29, 2016 2:45 pm

Re: Unresponsive VC0706 Camera and MicroSD breakoutboard

Post by adafruit_support_carter »

Try checking the return status from takePicture() to make sure it's OK. Like in the example:
https://github.com/adafruit/Adafruit-VC ... t.ino#L131
Add the serial prints also and see which one gets printed.

User avatar
KeanResearch
 
Posts: 38
Joined: Sat Jan 11, 2020 12:22 am

Re: Unresponsive VC0706 Camera and MicroSD breakoutboard

Post by KeanResearch »

I guess my response never posted.

The results from using the linked sketch were inconclusive. I made sure to change my serial communication pins to 0 and 1 in the sketch, but whenever I call a command into the serial monitor for example "cam.begin" or "cam.begin()" It crashes my Arduino IDE. Same results occur when attempting to use 'cam.takePicture()'


Anything helps,

thank you so much.

User avatar
adafruit_support_carter
 
Posts: 29163
Joined: Tue Nov 29, 2016 2:45 pm

Re: Unresponsive VC0706 Camera and MicroSD breakoutboard

Post by adafruit_support_carter »

What does your current sketch code look like? The one that at least created a JPEG file on the SD card.

User avatar
KeanResearch
 
Posts: 38
Joined: Sat Jan 11, 2020 12:22 am

Re: Unresponsive VC0706 Camera and MicroSD breakoutboard

Post by KeanResearch »

This is the sketch I have for my complete design. all components work except for the camera. When testing the camera functions I used the sketch you linked to me in your last post.

Thank you for your time
Attachments

[The extension ino has been deactivated and can no longer be displayed.]


User avatar
adafruit_support_carter
 
Posts: 29163
Joined: Tue Nov 29, 2016 2:45 pm

Re: Unresponsive VC0706 Camera and MicroSD breakoutboard

Post by adafruit_support_carter »

In your Snap() function, replace this line:

Code: Select all

  cam.takePicture();
with this:

Code: Select all

  if (! cam.takePicture()) 
    Serial.println("Failed to snap!");
  else 
    Serial.println("Picture taken!");
and see which message gets printed to the serial monitor.

User avatar
KeanResearch
 
Posts: 38
Joined: Sat Jan 11, 2020 12:22 am

Re: Unresponsive VC0706 Camera and MicroSD breakoutboard

Post by KeanResearch »

Hello,

When doing this, the apparatus completed its entire loop task, and only then printed to the serial monitor "Failed to snap!"

I found the timing of the response a bit odd as you would think by my sketch that the camera would be trying to snap during operations not after.

Thank you for your continued help.

User avatar
adafruit_support_carter
 
Posts: 29163
Joined: Tue Nov 29, 2016 2:45 pm

Re: Unresponsive VC0706 Camera and MicroSD breakoutboard

Post by adafruit_support_carter »

It sounds like the camera is failing to take the image for some reason. Not sure about the sequence of things. For the sake of troubleshooting, try running the library example:
https://github.com/adafruit/Adafruit-VC ... apshot.ino
instead of your code with the Snap() function.

User avatar
KeanResearch
 
Posts: 38
Joined: Sat Jan 11, 2020 12:22 am

Re: Unresponsive VC0706 Camera and MicroSD breakoutboard

Post by KeanResearch »

hello,

uploading this sketch fails to do anything.

I reduced the circuit back to the just the camera, sd card module and arduino. running cam.takePicture() just freezes my arduino IDE and no response is printed to terminal.

I have tried 3 different camera modules so I cannot imagine they are all defective.

still, anything helps

many thanks.

User avatar
KeanResearch
 
Posts: 38
Joined: Sat Jan 11, 2020 12:22 am

Re: Unresponsive VC0706 Camera and MicroSD breakoutboard

Post by KeanResearch »

Perhaps this is another wiring issue. Currently I have my sketch such that

Code: Select all

SoftwareSerial Cameraconnection = SoftwareSerial(0, 1)
I intend for the camera's Tx to go to the the arduino micro's Rx and for the camera's Rx to the board's Tx (as the schematics suggest that D1=Tx and Rx=D0). However does this script want digital pin # or literal pin #. for example in the schematic for the micro you posted earlier in the forum, Tx's literal # is 3 and Rx's literal # is 4. so should I use those instead?

Thanks

User avatar
adafruit_support_carter
 
Posts: 29163
Joined: Tue Nov 29, 2016 2:45 pm

Re: Unresponsive VC0706 Camera and MicroSD breakoutboard

Post by adafruit_support_carter »

It takes the digital pin number. The number that's printed on the board. Try using pins 2 and 3 and wire per the guide:
https://learn.adafruit.com/ttl-serial-c ... uino-usage

User avatar
KeanResearch
 
Posts: 38
Joined: Sat Jan 11, 2020 12:22 am

Re: Unresponsive VC0706 Camera and MicroSD breakoutboard

Post by KeanResearch »

I tried this and still got no response. I placed the takePicture and begin function in the loop to see what happens, but my serial monitor was still blank.

User avatar
adafruit_support_carter
 
Posts: 29163
Joined: Tue Nov 29, 2016 2:45 pm

Re: Unresponsive VC0706 Camera and MicroSD breakoutboard

Post by adafruit_support_carter »

Please run the example as is:
https://github.com/adafruit/Adafruit-VC ... apshot.ino

Post everything that gets printed in the Serial Monitor when you run it.

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

Return to “Arduino”