Products

Page tree

Contact: sales@inno-maker.com / support@inno-maker.com /
Download: wiki.inno-maker.com

Skip to end of metadata
Go to start of metadata

CAM-MIPIOV9281

www.inno-maker.com
wiki.inno-maker.com
Download Link: https://github.com/INNO-MAKER/cam-mipiov9281.git

Technical Parameters

CAM-MIPIOV9281 is with OmniVision OV9281 Sensor, and connects via a ribbon cable to the CSI connector on the Raspberry Pi. It is a fully V4L2 compatible device.

  • Sensor size: diagonal 1/4 \
  • Sensor ADC Resolution: 8Bit/10Bit \
  • CSI-2 output: 2 lanes/RAW8 or RAW 10 \
  • Pixel Count:1280 x 800
  • Pixel Size: 3(H)x3(V)um
  • CSI-2 default speed: 800Mbps \
  • Lane Output modes: streaming mode and external Trig mode
  • Shutter resolution: 1 horizontal unit
  • Lens(Optical):F/N= Angle of View:
  • Video OutputModes:
    • Mode0 1280x800, 120fps,Y10
    • Mode1 1280x800, 144fps,Y8
    • Mode2 1280x800,Y10 ext_trig
    • Mode3 1280x800,Y8 ext_trig
  • Board Size:39mm x39mm
  • Connector: 15PIN 1.0mm FPC cable
  • Mounting Holes: 4XD2.2mm
  • Lens Holes: 20mm,2xD2.0mm

Connection

CAM-MIPIOV9281 can be connected to a number of RPI boards.Now we have test is RPI4,RPI3B

Please note that camera modules are static-sensitive. Earth yourself prior to handling the PCB: a sink tap/faucet or similar should suffice if you don’t have an earthing strap. The camera board attaches to the Raspberry Pi via a 15-way ribbon cable. There are only two connections to make: the ribbon cable need to be attached to the camera PCB and the Raspberry Pi itself. You need to get it the right way round, or the camera will not work. On the camera PCB, the blue backing on the cable should be facing away from the PCB, and on the Raspberry Pi it should be facing towards the Ethernet connection (or where the Ethernet connector would be if you are using a model A). Although the connectors on the PCB and the Pi are different, they work in a similar way. On the Raspberry Pi, pull up the tabs on each end of the connector. It should slide up easily, and be able to pivot around slightly. Fully insert the ribbon cable into the slot, ensuring it is straight, then gently press down the tabs to clip it into place. The camera PCB itself also requires you to pull the tabs away from the board, gently insert the cable, then push the tabs back. The PCB connector is a little more awkward than the one on the Pi itself.

How to Set up

  • Step1 Update Your System

    • $ sudo apt-get update
    • $ sudo apt-get upgrade
    • $ sudo apt-get install vim
  • Step2 Download firmware

  • Step3 Enable your Device

    • $ sudo vim /boot/config.txt

    Add Below To the last line then save
    dtparam=i2c_vc=on
    dtoverlay=vc_mipi_ov9281

    • $ sudo vim /boot/cmdline.txt

    Add Below To the last line then save
    cma=128M

  • Step4 Choose Hardware And System (We take PI4 and Kernel 4.19.57 (date19.7.10) for example)

    • $ cd cam-mipiov9281/firmware-pi4/Linux-4.19.57-date19.7.10
    • $ make install //Intall Driver For CAM-MIPIOV9281

You will see below information that means successful
make install

  • $ make setmode1 //set this module work in mode1

You will see below information
make setmode1
** Mode Instruction**
Mode0 1280x800, 120fps,Y10
Mode1 1280x800, 144fps,Y8
Mode2 1280x800,Y10 ext_trig
Mode3 1280x800,Y8 ext_trig
make setmode1

Test

  • 1,VLC Capture Video(8bit Mode)
    • Follow below step
      VLC0
      VLC1
      VLC2
  • 2,Frame rate test
    • Press Alt+Ctrl+F1 Switch to terminal
    • $ cd cam-mipiov9281/tools
    • $ v4l2-ctl --stream-mmap --stream-count=-1 -d /dev/video0 --stream-to=/dev/null

It will show you a frames-per-second information of your module
Frame rate

  • 3,vcmipidemo
    • $ ./vcmipidemo –s 4135500 –g 0x88 –f //4135500=8271*500

It can setting the shutter and gain value of this module and capture the frame into frame buffer or PPM file.,Example:
It will setting the shutter to 3ms ,gain value to 0x88 and copy the capture frame into framebuffer.
More detail please use ./vcmipidemo –help
-s: setting the shutter : range: 8271ns to 8271*885ns ,unit ns
-g: setting the sensor gain: range 0-----254d

  • 4, Sample programs
    • $ ./v4l2_capture_y8 –s 4135500 –g 0x88 –h 1 –v 1 –c 5

using the camera for capture frames into file. Capture y8 format output into file while module work in mode2
-s: setting the shutter : range: 8271ns to 8271*885ns ,unit ns
-g: setting the sensor gain: range 0-----254d
-h: horizon flip
-v:vertical flip
-c:capture count
More detail please use ./v4l2_capture_y12 –help

  • $ ./v4l2_capture_y10 –s 3000 –g 0x88 –h 1 –v 1 –c 5

Capture y10 format output into file while module work in mode0 or mode1
-s: setting the shutter : range: 8271ns to 8271*885ns ,unit ns
-g: setting the sensor gain: range 0-----254d
-h: horizon flip
-v:vertical flip
-c:capture count
More detail please use ./v4l2_capture_y10 –help

Note:While the module is work in ext_trig mode ,A external rise edge on TRIG+ and TRIG- capture application will capture 1 frame of image.

  • No labels
Write a comment…