I just would like to say that I am trying to take a picture and save it in SD card. I tested the camera VC0706 by comm tool and I got very good and pure picture. However, when I use the the adafruit Snapshot code I got a picture with some disturbance.Also, I observed when I repeat the process I usually obtain the same pictures that I got it before even though all the images in the SD card have been deleted before start.I'm a little bit confused and wondering what is the problem and how can I solve it.Is there an original library from adafruit may I have it?I really need your help and your suggestions and opinions.

Thank you.

// This is a basic snapshot sketch using the VC0706 library.// On start, the Arduino will find the camera and SD card and// then snap a photo, saving it to the SD card.// Public domain.

// If using an Arduino Mega (1280, 2560 or ADK) in conjunction// with an SD card shield designed for conventional Arduinos// (Uno, etc.), it's necessary to edit the library file:// libraries/SD/utility/Sd2Card.h// Look for this line:// #define MEGA_SOFT_SPI 0// change to:// #define MEGA_SOFT_SPI 1// This is NOT required if using an SD card breakout interfaced// directly to the SPI bus of the Mega (pins 50-53), or if using// a non-Mega, Uno-style board.

#include <Adafruit_VC0706.h>#include <SPI.h>#include <SD.h>

// comment out this line if using Arduino V23 or earlier#include <SoftwareSerial.h>

// uncomment this line if using Arduino V23 or earlier// #include <NewSoftSerial.h>

// Pins for camera connection are configurable.// With the Arduino Uno, etc., most pins can be used, except for// those already in use for the SD card (10 through 13 plus// chipSelect, if other than pin 10).// With the Arduino Mega, the choices are a bit more involved:// 1) You can still use SoftwareSerial and connect the camera to// a variety of pins...BUT the selection is limited. The TX// pin from the camera (RX on the Arduino, and the first// argument to SoftwareSerial()) MUST be one of: 62, 63, 64,// 65, 66, 67, 68, or 69. If MEGA_SOFT_SPI is set (and using// a conventional Arduino SD shield), pins 50, 51, 52 and 53// are also available. The RX pin from the camera (TX on// Arduino, second argument to SoftwareSerial()) can be any// pin, again excepting those used by the SD card.// 2) You can use any of the additional three hardware UARTs on// the Mega board (labeled as RX1/TX1, RX2/TX2, RX3,TX3),// but must specifically use the two pins defined by that// UART; they are not configurable. In this case, pass the// desired Serial object (rather than a SoftwareSerial// object) to the VC0706 constructor.

// When using hardware SPI, the SS pin MUST be set to an // output (even if not connected or used). If left as a // floating input w/SPI on, this can cause lockuppage.#if !defined(SOFTWARE_SPI)#if defined(__AVR_ATmega1280__) || defined(__AVR_ATmega2560__) if(chipSelect != 53) pinMode(53, OUTPUT); // SS on Mega#else if(chipSelect != 10) pinMode(10, OUTPUT); // SS on Uno, etc.#endif#endif

Serial.begin(9600); Serial.println("VC0706 Camera snapshot test");

// see if the card is present and can be initialized: if (!SD.begin(chipSelect)) { Serial.println("Card failed, or not present"); // don't do anything more: return; }