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-MIPI327RAW

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

Technical Parameters

PI Camera IMX327LQR module with SONY IMX327LQR Sensor, and connects via a ribbon cable to the CSI connector on the Raspberry Pi. It is a fully V4L2 compatible device.

  • Sensor type: SONY STARVIS IMX327LQR color CMOS with 2.07M pixel.
  • Sensor size: diagonal 6.46 mm (Type 1/2.8)
  • Sensor ADC Resolution: 10Bit/12Bit
  • CSI-2 output: 2 lanes/RAW10 or RAW 12
  • Pixel Count:1920 x 1080
  • Pixel Size: 2.9(H)x2.9(V)um
  • CSI-2 default speed: 891Mbps/lane
  • Output modes: streaming mode
  • Shutter resolution: 1 horizontal unit
  • Gain: 0—72dB
  • Lens:f=
    • Angle of View:
  • Video OutputModes:
    • Mode0 1920x1080 30fps,SRGGB10P(option,with 37.125MHZ OSC)
      Mode1 1920x1080 60fps, SRGGB10P
      Mode2 1920x1080 50fps, SRGGB12P
  • Board Size:39mm x39mm
    Connector: 15PIN 1.0mm FPC cable
    Mounting Holes: 4XD2.2mm
    Lens Holes: 20mm,2xD2.0mm

Connection

PI Camera IMX327LQR module 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_imx327c

    • $ 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-mipi327raw/firmware-pi4/Linux-4.19.57-date19.7.10
    • $ make install //Intall Driver For CAM-MIPI327RAW

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
This module support 3 work modes.
Mode0: 1920x1080 30fps, SRGGB10P (option,with 37.125MHZ OSC)
Mode1: 1920x1080 60fps, SRGGB10P
Mode2: 1920x1080 50fps, SRGGB12P
Note : by default this module’s hardware with 74.25MHZ OSC so it can’t work at Mode0.
Make setmode1 to set this module work in mode1.

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-mipi327raw/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,Sample programs1:vcmipidemo
    • $ ./vcmipidemo –s 3000 –g 0x88 –f

It can setting the shutter and gain value of this module and capture the frame into frame buffer or PPM file.
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: 29us to 1S ,unit us
-g: setting the sensor gain: range 0-----240d

  • 4, Sample programs2:using the camera for capture frames into file
    • $ ./v4l2_capture_raw12 –s 3000 –g 0x88 –h 1 –v 1 –c 5

Capture y12 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_raw10 –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: 29us to 1S ,unit us
-g: setting the sensor gain: range 0-----240d
-h: horizon flip
-v:vertical flip
-c:capture count
More detail please use ./v4l2_capture_raw10 –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…