Line 259: |
Line 259: |
| | | |
| ====概述==== | | ====概述==== |
− | 树莓派Computer Module 和树莓派Zero与树莓派经典版型MIPI CSI-2 接口有所不同,故需要使用增强版转接板来连接摄像头主板。下面以树莓派Computer Module与VEYE-MIPI-290/327 摄像头模组的连接使用来进行说明。硬件连接方法与树莓派经典版本不同,软件使用方法与上类似。 | + | 树莓派Computer Module 和树莓派Zero的MIPI CSI-2 接口为22pin,对于VEYE-MIPI-327E,可直连,其他型号使用15转22pin的FPC线连接。硬件连接方法与树莓派经典版本不同,软件使用方法与上类似。 |
| | | |
− | 注:我们使用的是深圳市微雪电子有限公司生产的Computer Module IO Board Plus for raspberry pi 底板。树莓派官方CMIO板用法与此类似。
| + | 注:对于CM3,我们使用的是深圳市微雪电子有限公司生产的Computer Module IO Board Plus for raspberry pi 底板。树莓派官方CMIO板用法与此类似。 |
| + | |
| + | 对于CM4,我们使用的是官方CMIO底板。 |
| ====硬件连接==== | | ====硬件连接==== |
| | | |
− | =====视频接口连接===== | + | =====CM3连接===== |
− | 摄像头主板加增强版转接板构成摄像头模组,摄像头模组通过FFC同面线及杜邦黑红线连接到Computer Module(黑线连接GND接口,红线连接5V接口),Computer Module可同时连接两个摄像头模组,CAM1和CAM0分别连接一个摄像头模组。
| |
− | | |
− | =====I2C接口连接=====
| |
| 树莓派官方CMIO板接线方法请参见[https://www.raspberrypi.org/documentation/hardware/computemodule/cmio-camera.md 链接]。 | | 树莓派官方CMIO板接线方法请参见[https://www.raspberrypi.org/documentation/hardware/computemodule/cmio-camera.md 链接]。 |
| | | |
Line 292: |
Line 291: |
| [[File:Veye computer moduleWiring scheme01.jpg|center|thumb|600x600px|树莓派Computer Module 主板插接示意图|alt=]] | | [[File:Veye computer moduleWiring scheme01.jpg|center|thumb|600x600px|树莓派Computer Module 主板插接示意图|alt=]] |
| <br />利用USB网线转换器帮助Computer Module 连接网络,HDMI接口接入显示器,电源线连接power接口提供电源。 | | <br />利用USB网线转换器帮助Computer Module 连接网络,HDMI接口接入显示器,电源线连接power接口提供电源。 |
| + | |
| + | ===== CM4接口连接 ===== |
| + | [[File:Raspberry Pi CM4 system connect.jpg|center|thumb|800x800px|Raspberry Pi CM4 system connec]] |
| + | <br /> |
| ====树莓派Computer Module系统安装==== | | ====树莓派Computer Module系统安装==== |
| 树莓派官方CMIO板安装树莓派系统方法请参见[https://www.raspberrypi.org/documentation/hardware/computemodule/cm-emmc-flashing.md 链接] | | 树莓派官方CMIO板安装树莓派系统方法请参见[https://www.raspberrypi.org/documentation/hardware/computemodule/cm-emmc-flashing.md 链接] |
Line 313: |
Line 316: |
| | | |
| ====视频控制软件包使用==== | | ====视频控制软件包使用==== |
− | 点击[https://www.raspberrypi.org/documentation/hardware/computemodule/dt-blob-dualcam.bin 链接]下载dt-blob.bin文件,将文件放在/root下,然后执行命令 | + | 点击[https://www.raspberrypi.org/documentation/hardware/computemodule/dt-blob-dualcam.bin 链接]下载dt-blob-dualcam.bin,改名为dt-blob.bin文件,将文件放在/boot下,然后执行命令: |
| | | |
| + | ===== CM3 ===== |
| CM3模块采用分时复用I2C1的方式来进行I2C通信 | | CM3模块采用分时复用I2C1的方式来进行I2C通信 |
| | | |
Line 329: |
Line 333: |
| |} | | |} |
| <code>./veye_mipi_i2c.sh -b 1</code> | | <code>./veye_mipi_i2c.sh -b 1</code> |
| + | |
| + | ===== CM4 ===== |
| + | CM3模块采用两路I2C分别与两个摄像头通信 |
| + | |
| + | <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> |
| | | |
| 其余选项具体使用说明详见:[http://wiki.veye.cc/index.php/VEYE-MIPI-290/327/zh/i2c I2C脚本使用说明] | | 其余选项具体使用说明详见:[http://wiki.veye.cc/index.php/VEYE-MIPI-290/327/zh/i2c I2C脚本使用说明] |