Hi Everyone,
I’ve bought an Arducam OV-9281 module with MIPI connection and am using it with a Raspberry Pi version 3.
I have followed the following steps and reached a dead end, I need help capturing images, any help about what I am doing incorrectly or am missing would be highly appreciated.
I have git cloned https://github.com/ArduCAM/MIPI_Camera.git (87774fc0d1f77b79e1de7909ec1f10da9eb5743a)
running ./capture:
./capture
Open camera…
init camera status = -1
I am using a raspberry pi: (from dmesg)
Raspberry Pi 3 Model B Rev 1.2
Ubuntu xenial, uname -a:
kernel version Linux dynamic 4.4.0-1118-raspi2 #127-Ubuntu SMP Tue Jul 30 16:43:05 UTC 2019 armv7l armv7l armv7l GNU/Linux
Via strace I see the following: (select output lines to show things are installed and devices are available)
open("/usr/lib/libarducam_mipicamera.so", O_RDONLY|O_CLOEXEC) = 3
open("/dev/vcsm", O_RDWR|O_LARGEFILE) = 3
Open camera…
open("/dev/vchiq", O_RDWR|O_LARGEFILE) = 4
[pid 1437] stat64("/usr/sbin/i2cdetect", {st_mode=S_IFREG|0755, st_size=13924, …}) = 0
[pid 1438] execve("/usr/sbin/i2cdetect", [“i2cdetect”, “-y”, “0”], [/* 29 vars */]) = 0
[pid 1438] open("/dev/i2c-0", O_RDWR) = 5
I enabled the vc i2c bus:
cat /boot/firmware/config.txt
gpu_mem=128
enable_uart=1
kernel=uboot.bin
device_tree_address=0x02008000
dtparam=i2c_vc=on
disable_splash=1
I can see the device after boot:
ls -l /dev/i2c-0
crw-rw---- 1 root i2c 89, 0 Feb 11 2016 /dev/i2c-0
dmesg | grep -i i2c
[ 2.870514] i2c /dev entries driver
[ 8.171671] bcm2708_i2c 3f205000.i2c: BSC0 Controller at 0x3f205000 (irq 83) (baudrate 100000)
I can see some devices with i2cdetect.
i2cdetect -y 0
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: – – – – – – – – – – – – –
10: – – – – – – – – – – – – 1c – – –
20: – – – – – – – – – – – – – – – –
30: – – – – – – – – – – – – – – – –
40: – – – 43 – – – – – – – – – – – –
50: – – – – – – – – – – – – – – – –
60: – – – – – – – – – – – – – – – –
70: – – – – – – – –
Running the utility in MIPI_Camera/RPI/util gives the following:
bash camera_i2c
setting GPIO for board revsion: a02082
Raspberry Pi3B / Pi3B+ / 3A / 4B(1G/2G/4G)
Set state of 133 to 1
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: – – – – – – – – – – – – –
10: – – – – – – – – – – – – 1c – – –
20: – – – – – – – – – – – – – – – –
30: – – – – – – – – – – – – – – – –
40: – – – 43 – – – – – – – – – – – –
50: – – – – – – – – – – – – – – – –
60: – – – – – – – – – – – – – – – –
70: – – – – – – – –
I have a bare raspberry pi with the UC-599 connected via the bus. I’ve double checked the ribbon connection. The board works with another non global shutter camera via the same MIPI connector, ruling out a problem with the RPI itself.
I am left with either a problem with my configuration, the connection, or the arducam itself.
Thanks in advance for any help,
Alon