This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
tutorials:products:camera:index.html [2012/01/25 17:31] ladyada [Using CommTool] |
tutorials:products:camera:index.html [2016/01/28 18:05] (current) |
||
---|---|---|---|
Line 200: | Line 200: | ||
[[http://www.ladyada.net/images/camera/cameraduino.jpg|{{ http://www.ladyada.net/images/camera/cameraduino_t.jpg?nolink&500x385 |}}]] | [[http://www.ladyada.net/images/camera/cameraduino.jpg|{{ http://www.ladyada.net/images/camera/cameraduino_t.jpg?nolink&500x385 |}}]] | ||
+ | |||
+ | |||
+ | <class notewarning> | ||
+ | For the weatherproof camera, the white and green wires are swapped on some cameras! So please flip the white and green wires indicated if using the metal camera. Red should still be connected to +5 and Black to Ground | ||
+ | </class> | ||
We suggest testing the microSD card first. [[http://www.ladyada.net/products/microsd/|Check out our microSD breakout board tutorial and verify that you can read from the card by listing the files]]. Once you have verified the microSD card wiring, you can come back here and install the VC0706 camera library. | We suggest testing the microSD card first. [[http://www.ladyada.net/products/microsd/|Check out our microSD breakout board tutorial and verify that you can read from the card by listing the files]]. Once you have verified the microSD card wiring, you can come back here and install the VC0706 camera library. | ||
- | [[https://github.com/adafruit/VC0706-Serial-Camera-Library|Visit the Github repository here]]. To download. click the DOWNLOADS button in the top right corner, rename the uncompressed folder VC0706. Check that the VC0706 folder contains VC0706.cpp and VC0706.hPlace the VC0706 library folder your /libraries/ folder. You may need to create the libraries subfolder if its your first library. Restart the IDE. | + | [[https://github.com/adafruit/Adafruit-VC0706-Serial-Camera-Library|Visit the Github repository here]]. To download. click the DOWNLOADS button in the top right corner, rename the uncompressed folder Adafruit_VC0706. Check that the Adafruit_VC0706 folder contains Adafruit_VC0706.cpp and Adafruit_VC0706.h Place the Adafruit_VC0706 library folder your /libraries/ folder. You may need to create the libraries subfolder if its your first library. Restart the IDE. |
- | You'll also need to install the NewSoftSerial library. [[http://arduiniana.org/NewSoftSerial/NewSoftSerial10c.zip|Download it by clicking this link]] and install it as you did the VC0706 library. | + | If you're using Arduino v23 or earlier, you'll also need to install the NewSoftSerial library. [[http://arduiniana.org/NewSoftSerial/NewSoftSerial10c.zip|Download it by clicking this link]] and install it as you did the Adafruit_VC0706 library. Arduino 1.0 has this built in now (called SoftwareSerial) |
==== Taking a snapshot ==== | ==== Taking a snapshot ==== | ||
- | OK now you're finally ready to run the snapshot demo. Open up the Arduino IDE and select **File->Examples->VC0706->Snapshot **sketch and upload it to the Arduino. Open up the serial monitor and you can see the sketch will take a 640x480 photo and save it to the microSD card. You can then pop the card into your computer to see the JPG file | + | OK now you're finally ready to run the snapshot demo. Open up the Arduino IDE and select **File->Examples->Adafruit_VC0706->Snapshot **sketch and upload it to the Arduino. Open up the serial monitor and you can see the sketch will take a 640x480 photo and save it to the microSD card. You can then pop the card into your computer to see the JPG file |
{{ http://www.ladyada.net/images/camera/snapshot.gif?nolink&416x302 |}} \\ | {{ http://www.ladyada.net/images/camera/snapshot.gif?nolink&416x302 |}} \\ | ||
Line 242: | Line 247: | ||
- | Load up the **File->Examples->VC0706->MotionDetect** sketch and upload it to the Arduino. It will take a photo immediately because it just turned on. Then wait a few minutes and wave you hand in front of the camera, it will take another photo. | + | Load up the **File->Examples->Adafruit_VC0706->MotionDetect** sketch and upload it to the Arduino. It will take a photo immediately because it just turned on. Then wait a few minutes and wave you hand in front of the camera, it will take another photo. |
{{ http://www.ladyada.net/images/camera/motiondetect.gif?nolink&444x445 |}} | {{ http://www.ladyada.net/images/camera/motiondetect.gif?nolink&444x445 |}} | ||
Line 270: | Line 275: | ||
- | [[https://github.com/adafruit/VC0706-Serial-Camera-Library|VC0706 Arduino library Github repository]] | + | [[https://github.com/adafruit/Adafruit-VC0706-Serial-Camera-Library|Adafruit VC0706 Arduino library Github repository]] |