TTL Serial Camera Won't Change Resolution, plus Motion Detec

For other supported Arduino products from Adafruit: Shields, accessories, etc.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
iamthechad
 
Posts: 3
Joined: Tue Sep 02, 2014 9:35 pm

TTL Serial Camera Won't Change Resolution, plus Motion Detec

Post by iamthechad »

I've got the camera connected and working, per the tutorial. I've noticed that it tales quite a bit of time to save a 640x480 image, so I tried changing the resolution. No matter what I set, the images are always captured at 640x480.

(I'm working from the MotionDetect example.)

Code: Select all

  //cam.setImageSize(VC0706_640x480);        // biggest
  //cam.setImageSize(VC0706_320x240);        // medium
  cam.setImageSize(VC0706_160x120);          // small

  // You can read the size back from the camera (optional, but maybe useful?)
  uint8_t imgsize = cam.getImageSize();
  Serial.print("Image size: ");
  if (imgsize == VC0706_640x480) Serial.println("640x480");
  if (imgsize == VC0706_320x240) Serial.println("320x240");
  if (imgsize == VC0706_160x120) Serial.println("160x120");
  Serial.println(imgsize);
The code doesn't fall into any of the if statements for looking at the image size - imgsize comes back as 255, which isn't a valid size constant in the header file.

I commented out the code that checks the image size and got another surprise - I can't set the camera to motion capture mode unless I call cam.getImageSize() first. I'm thinking I have a module that doesn't quite conform to the expectations of the camera library.

User avatar
adafruit_support_rick
 
Posts: 35092
Joined: Tue Mar 15, 2011 11:42 am

Re: TTL Serial Camera Won't Change Resolution, plus Motion D

Post by adafruit_support_rick »

That's strange. Just curious - can you change the size using CommTool?

User avatar
iamthechad
 
Posts: 3
Joined: Tue Sep 02, 2014 9:35 pm

Re: TTL Serial Camera Won't Change Resolution, plus Motion D

Post by iamthechad »

I don't see any obvious way to do it in the CommTool, and the tutorial only says there's no easy way to do it.

User avatar
adafruit_support_rick
 
Posts: 35092
Joined: Tue Mar 15, 2011 11:42 am

Re: TTL Serial Camera Won't Change Resolution, plus Motion D

Post by adafruit_support_rick »

Well I just tried it all and it works here. Not sure what to tell you? Maybe you've got a bad connection on the camera's RX line?

When you download the pictures, do they look ok?

Can you post a picture of your connections?

User avatar
iamthechad
 
Posts: 3
Joined: Tue Sep 02, 2014 9:35 pm

Re: TTL Serial Camera Won't Change Resolution, plus Motion D

Post by iamthechad »

The pictures I download look fine. They're a bit grainy, but that's what I expected from this camera.

Here's what the connections look like. Everything seems to be ok.
Camera Connections
Camera Connections
photo.JPG (205.1 KiB) Viewed 350 times

User avatar
adafruit_support_rick
 
Posts: 35092
Joined: Tue Mar 15, 2011 11:42 am

Re: TTL Serial Camera Won't Change Resolution, plus Motion D

Post by adafruit_support_rick »

Hmmm. I don't know. We can try replacing it. Please email [email protected] with a link to this thread for a replacement camera

User avatar
jellyfishswimmer
 
Posts: 1
Joined: Fri Nov 27, 2015 2:29 am

Re: TTL Serial Camera Won't Change Resolution, plus Motion D

Post by jellyfishswimmer »

I am having the exact same problem, everything works great, except the camera stays in the default 640x480 and won't change. Was the camera faulty or was the some other problem?

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

Return to “Other Arduino products from Adafruit”