Line 256: |
Line 256: |
| | | |
| ====Overview==== | | ====Overview==== |
− | RPI CM and Zero have a different MIPI CSI-2 port with standard RPI. And CM has can support dual cameras. Here I use a VEYE-MIPI-290/327 and a RPI CM3 as an example. | + | RPI CM and Zero have a different MIPI CSI-2 port with standard RPI. And CM has can support dual cameras. |
| | | |
− | PS: I use a Computer Module IO Board Plus designed by [http://www.waveshare.net/ WAVESHARE ELECTRONICS]. The official CMIO Board is similar.
| + | For CM3, I use a Computer Module IO Board Plus designed by [http://www.waveshare.net/ WAVESHARE ELECTRONICS]. The official CMIO Board is similar. |
| + | |
| + | For CM4,I use official CMIO board. |
| | | |
| ====Hardware Setup==== | | ====Hardware Setup==== |
Line 266: |
Line 268: |
| *Connect the VEYE Camera Module the CSI-2 port using FFC Cable('''type A'''). | | *Connect the VEYE Camera Module the CSI-2 port using FFC Cable('''type A'''). |
| *Connect Dupont Line as shown below. VEYE-MIPI-290/327 need an addtional power. | | *Connect Dupont Line as shown below. VEYE-MIPI-290/327 need an addtional power. |
− | *CM3 can support dual cameras. | + | *CM can support dual cameras. |
| | | |
− | =====Connecting I2C to CMIO===== | + | =====Connecting I2C to CM3===== |
| | | |
| *CAM1: | | *CAM1: |
Line 293: |
Line 295: |
| [[File:Veye computermodule Wiring scheme00.jpg|center|thumb|600x600px|RPI CM2 to dual VEYE modules(Part1)]] | | [[File:Veye computermodule Wiring scheme00.jpg|center|thumb|600x600px|RPI CM2 to dual VEYE modules(Part1)]] |
| [[File:Veye computer moduleWiring scheme01.jpg|center|thumb|600x600px|RPI CM2 to dual VEYE modules(Part2)]] | | [[File:Veye computer moduleWiring scheme01.jpg|center|thumb|600x600px|RPI CM2 to dual VEYE modules(Part2)]] |
| + | |
| + | ===== Connecting camera to CM4 ===== |
| + | [[File:Raspberry Pi CM4 system connect.jpg|alt=Raspberry Pi CM4 system connect|center|thumb|800x800px|'''Raspberry Pi CM4 system connect''']] |
| <br /> | | <br /> |
− |
| |
| ====System Setup and Configuration==== | | ====System Setup and Configuration==== |
| For RPI official CMIO board, please refer to [https://www.raspberrypi.org/documentation/hardware/computemodule/cm-emmc-flashing.md Link]. | | For RPI official CMIO board, please refer to [https://www.raspberrypi.org/documentation/hardware/computemodule/cm-emmc-flashing.md Link]. |
Line 316: |
Line 320: |
| Implement H.264 format encoding and record for 5 seconds from camera 1,Record the stream data to file ~/test.h264.<br /> | | Implement H.264 format encoding and record for 5 seconds from camera 1,Record the stream data to file ~/test.h264.<br /> |
| ====Video Control Toolkits==== | | ====Video Control Toolkits==== |
− | Downloading dt-blob.bin file from link,and upload it to /root/,reboot RPI. | + | Downloading dt-blob.bin file from [https://www.raspberrypi.org/documentation/hardware/computemodule/dt-blob-dualcam.bin link],rename to dt-blob.bin and upload it to /boot/,reboot RPI. |
| | | |
| + | ===== CM3 ===== |
| CM3 use I2C-1 to control 2 cameras,It is time-sharing multiplexing. | | CM3 use I2C-1 to control 2 cameras,It is time-sharing multiplexing. |
| | | |
Line 332: |
Line 337: |
| |}<code>./veye_mipi_i2c.sh -b 1</code> | | |}<code>./veye_mipi_i2c.sh -b 1</code> |
| | | |
− | <br />Other options see : [[VEYE-MIPI-290/327 i2c/zh|VEYE-MIPI-290/327 i2c]] | + | ===== CM4 ===== |
| + | The CM4 module uses two I2C to communicate with two cameras respectively. |
| + | |
| + | <code>./camera_i2c_config</code> |
| + | {| class="wikitable" |
| + | !i2c bus num |
| + | !description |
| + | |- |
| + | |0 |
| + | |CAM0 |
| + | |- |
| + | |10 |
| + | |CAM1 |
| + | |} |
| + | <code>./veye_mipi_i2c.sh -b [i2c bus num]</code><br />Other options see : [[VEYE-MIPI-290/327 i2c/zh|VEYE-MIPI-290/327 i2c]] |
| ===FFC Cable Remarks=== | | ===FFC Cable Remarks=== |
| | | |