Software

Share on FacebookShare on Google+Share on LinkedInTweet about this on Twitter

Where to find the source code

ArduCAM shield latest library and examples can be downloaded from download section. Please download the correct library for the the different shield version. For the Rev.B please use the V2.x.x or below, for the Rev.C please use the V3.0.0 or above.

What are the libraries

The library package contains two independent libraries: ArduCAM library and UTFT4ArduCAM_SPI. The ArduCAM library includes all the functionality to access the camera and the shield. The UTFT4ArduCAM_SPI is derived from the UTFT library from Henningkarlsen , we ported the library with SPI interface and remove the code which is not used in ArduCAM shield for the memory saving.

How to install the libraries

Use Arduino 1.5.2 IDE for example, unzip the downloaded library package to the folder X:\arduino-1.5.2\libraries, X is the disk driver that your Arduino IDE resides. When the libraries are correctly installed, open the menu File->Examples->ArduCAM you can see a lot of examples like the Figure1 shown.

Figure1

ArduCAM_examples

 

 

 

 

 

 

What can the examples do

All the examples can be run in the ArduCAM-LF or ArduCAM-F boards, no matter the LCD exist. But we highly recommend to disable or remove the LCD functions for memory saving.

  • ArduCAM_SPI_BUS_TEST

This example does the bus testing by write the test register and read it back to check it out if the SPI bus communication has errors. If you face problems with ArduCAM shield, you have to upload this example to check out if hardware has any problems.

  •  UTFT_Demo_320x240

This example does the demonstration of graphic functions from UTFT library. User can upload this example to check out if the LCD has any problems and how to use graphic functions to draw lines, circles and text.

  • ArduCAM_xxxx_LCD_CAM_SD_BMP

This example demonstrates how to use most functions from the ArduCAM library. It configures the camera module to output RGB565 QVGA format. Then display the image on the LCD screen in realtime. If user press the snapshot button, ArduCAM saves the image into SD/TF card with a 320×240 RGB565 bmp file.

  •  ArduCAM_xxxx_FIFO_SD_JPEG

This example demonstrates how to capture high resolution JPEG image from the camera module which support JPEG output. The demo configures the camera module to output JPEG format. In JPEG mode LCD doesn’t support realtime playback. And after user trigger the snapshot button, ArduCAM saves the image into SD/TF card with jpg file.

  •  ArduCAM_SPI_xxxx_FIFO_UART

This example demonstrates how to transfer the image back to host computer via Arduino board USB port or serial port. It is useful when user wants to transfer the image wirelessly by bluetooth, Zigbee, Xbee or GPRS/3G.

  • ArduCAM_xxxx_FIFO_SD_JPEG_LP

This example demonstrate how to use low power mode in the ArduCAM shield. When shield in idle mode, it shut down the LCD backlight and disable FIFO circuit. And running in full power after the snapshot button is triggered then getting back to low power mode after image captured.

 

Share on FacebookShare on Google+Share on LinkedInTweet about this on Twitter

Leave a Reply

Your email address will not be published. Required fields are marked *