This post introduces how to use ArduCAM host application to take high resolution time elapse image with ArduCAM shield. We need the following items to complete this demonstration:
- Arduino UNO board
- ArduCAM-F or ArduCAM-LF shield
- OV5642 camera module with fisheye lens
- Arduino example sketch ArduCAM_SPI_OV5642_FIFO_UART.ino
- ArduCAM host application
ArduCAM host application is an Windows application which runs in your Windows computer. It is written in Microsoft C# .NET, precompiled execute program can be download from here, source project files can be download from here. Please note that it requires Microsoft .NET Framework 3.5 version to run.
The example sketch ArduCAM_SPI_OV5642_FIFO_UART.ino receives commands from ArduCAM host application then send back image data when capture is done. The ArduCAM host side save the received image binary data into a JPEG file.
With basic knowledge about example and ArduCAM host application, now let’s connect ArduCAM shield to UNO board, attach the OV5642 camera module, then downloading the example sketch ArduCAM_SPI_OV5642_FIFO_UART.ino .
By opening the ArduCAM dialog, you have to select the correct COM port for your Arduino board (here using COM77 for example) and select the correct baud rate for the COM port (here using 115200bps). Once you click the Open button, the Capture button activated. Now you can manually issue the capture command by click the Capture button or set the proper time interval (millisecond unit) for auto capture.
Time interval should be set great than the time to transfer one entire image data. ArduCAM has max 384KB memory to hold the image data, so the maxim image data will be 384KB. To transfer this amount of image data with 115200 baudrate 1 start bit 1 stop bit none parity, the maxim transfer time will be (384K x 10)/115.2 = 33.3 seconds. If you are sure about the time interval the 40 seconds will work for you. Another example sketch ArduCAM_SPI_OV2640_FIFO_UART.ino also work with ArduCAM host application, it output smaller image data with smaller resolution, so the time interval can be reduced.
The SaveImage option should be selected if you want to save the captured image on your hard disk. The saved file will be appeared on the parent directory of the ArduCAM host application.
The Verbose option can be selected for debug purpose, and check out what binary data is received from the COM port.
With ArduCAM host application we can make a high resolution Arduino time elapse camera by setting the time intervals and select the save image option. Then combine all the capture images into AVI file, you can create your own time elapse video. here is the demo video we created so far, the original images is here.
[embedplusvideo height=”328″ width=”584″ editlink=”http://bit.ly/1tpBjZj” standard=”http://www.youtube.com/v/LIzvhL9tSE8?fs=1&vq=hd720″ vars=”ytid=LIzvhL9tSE8&width=584&height=328&start=&stop=&rs=w&hd=1&autoplay=0&react=1&chapters=¬es=” id=”ep6478″ /]