LeMaker Guitar:Camera

From BananaPro/Pi
Jump to: navigation, search

Other languages:
English • ‎中文(简体)‎

Description

LeMaker Guitar's camera interface is compatible with Banana Pi/Pro, so we can use the Banana Pi Camera module on LeMaker Guitar. The Banana Pi Camera module is a high definition camera using Omnivision 5640 CMOS image sensor. The camera module connects to the CSI connector on LeMaker Guitar base board. It provides high sensitivity, low crosstalk and low noise image capture in a small and lightweight design.

Specifications
Image sensor Omnivision 5640 CMOS image sensor in
an auto-focus module with integral IR filter (650±10nm)
Still resolution 5 Megapixels
Active array size 2592×1944
Max frame rate 1080P 30fps@24Mhz
Picture formats JPEG, PNG, YUV420, RGB888
Video formats Raw
Image control functions Automatic exposure control (AEC)
Automatic white balance(AWB)
Automatic black level calibration(ABLC)
Automatic band filter
Mirror and flip
Temp range Operating: -30℃ to 70℃
Stable image: 0℃ to 50℃
Lens size Optical size of 1/4"
Dimension 36 x 32 x 10mm
Weight 5g

Prequisities

1、A LeMaker Guitar with Base Board Rev.B;
2、A Banana Pi Camera module;
3、40 pin FPC cable.
4、Connect the camera to COM2 on LeMaker Guitar Base Board Rev.B

Banana Pi Camera Module
FPC Cable
Banana Pi Camera Module FPC Cable

Yor can purchase the Banana Pi Camera module from lenovator


Implementation

Step 1: Load the necessary drivers needed by the camera module

sudo modprobe owl_camera
sudo modprobe ov5640 rear=1


Step 2: List camera driver module
We can list driver modules that have been loaded to make sure that ov5640 has been loaded.

lsmod 
Module                  Size  Used by
...
ov5640                 34118  1

If the camera dirver ov5640 has been loaded correctly, we can find the “/dev/video0” deviece file.

ls /dev/video0
/dev/video0


Step 3: If have not installed MPlayer or guvcview, install MPlayer or guvcview.
MPlayer is a movie player which runs on many systems (see the documentation). It plays most MPEG/VOB, AVI, Ogg/OGM, VIVO, ASF/WMA/WMV, QT/MOV/MP4, RealMedia, Matroska, NUT, NuppelVideo, FLI, YUV4MPEG, FILM, RoQ, PVA files, supported by many native, XAnim, and Win32 DLL codecs. You can watch VideoCD, SVCD, DVD, 3ivx, DivX 3/4/5, WMV and even H.264 movies.
guvcview is A simple V4L2 full-featured video grabber

sudo apt-get install mplayer


Step 4: Use MPlayer to test the camera.

mplayer tv:// -fs

Notice: MPlayer or guvcview runs on LeMaker Guitar's command terminal, not on the serial terminal.

Reference

1、http://www.ovt.com/products/sensor.php?id=177
2、http://www.mplayerhq.hu/design7/info.html
3、http://sourceforge.net/projects/guvcview/