User Tools

Site Tools


tutorials:products:camera:index.html

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
tutorials:products:camera:index.html [2011/08/11 20:30]
daigo created
tutorials:products:camera:index.html [2016/01/28 18:05] (current)
Line 36: Line 36:
   ***Current draw: **75mA   ***Current draw: **75mA
   ***Operating voltage: **DC +5V   ***Operating voltage: **DC +5V
-  ***Communication:​ **3.3V TTL (Three wire TX, RX, GND)**[[http://​www.adafruit.com/​products/​397|You can pick up a camera module from the Adafruit shop!]]**+  ***Communication:​ **3.3V TTL (Three wire TX, RX, GND) 
 + 
 +<class center>​ 
 +**[[http://​www.adafruit.com/​products/​397|You can pick up a camera module from the Adafruit shop!]]** 
 +</​class>​
  
  
Line 67: Line 71:
  
 [[http://​www.ladyada.net/​images/​camera/​cameratvwiring.jpg|{{ ​ http://​www.ladyada.net/​images/​camera/​cameratvwiring_t.jpg?​nolink&​500x412 ​ |}}]] [[http://​www.ladyada.net/​images/​camera/​cameratvwiring.jpg|{{ ​ http://​www.ladyada.net/​images/​camera/​cameratvwiring_t.jpg?​nolink&​500x412 ​ |}}]]
 +
 +{{ :​tutorials:​products:​camera:​weathervc0706_lrg.jpg?​500 |}}
 +
 +If you have the weatherproof version of this camera, it comes prewired with the following
 +
 +  * Red is connected to +5V in
 +  * Black is connected to Ground
 +  * **Green is RX**
 +  * **White is TX**
 +  * Yellow is NTSC Video signal out
 +  * Brown is NTSC Video ground
  
  
Line 111: Line 126:
  
 [[http://​www.ladyada.net/​images/​camera/​commhijack.jpg|{{ ​ http://​www.ladyada.net/​images/​camera/​commhijack_t.jpg?​nolink&​500x418 ​ |}}]] [[http://​www.ladyada.net/​images/​camera/​commhijack.jpg|{{ ​ http://​www.ladyada.net/​images/​camera/​commhijack_t.jpg?​nolink&​500x418 ​ |}}]]
 +
 +<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>​
  
 Note the 10K resistor divider, the serial data pins are 3.3v logic and its a good idea to divide the 5V down so that its 2.5V Note the 10K resistor divider, the serial data pins are 3.3v logic and its a good idea to divide the 5V down so that its 2.5V
Line 181: 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 223: 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 251: 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]]
  
  
/home/ladyada/public_html/wiki/data/attic/tutorials/products/camera/index.html.1313094649.txt.gz · Last modified: 2016/01/28 18:05 (external edit)