Installation problems with Arducam 8MP Syncro Stereo Camera Bundle Kit BO195S8MP

hardware

Hi, I have run the all step in the tutorial

https://www.arducam.com/docs/cameras-for-raspberry-pi/synchronized-stereo-camera-hat/opencv-and-depth-map-on-arducam-stereo-camera-hat-tutorial/#video-tutorial

after the step python3 1_test.py the answer is Load Libarducam_mipicamera fail

if run sudo cp MIPI_Camera/RPI/lib/aarch64/libarducam_mitipicamera.so /usr/lib/ and re run python3 1_test.py the answer is :

Open camera...

Error: could not open file ‘/dev/i2c-0’ or ‘/dev/i2c/0’: No such file or directory
I2c check functionality fail

init camera: Unexpected resul


 

if run sudo cp MIPI_Camera/RPI/lib/libarducam_mitipicamera.so /usr/lib/

the answer is renow

Load Libarducam_mipicamera fail

My first question is:
with my hardware (see image)

Do I have to use the 64bit or the32 bit version ? (libarducam_mitipicamera.so)
Thank you very much

PS I’m lost
Naturally post cp command for copy new LIB version I have run make install

 

 

Hi @francesco-peluso,

Please confirm the camera work according to this document before trying Depth Mapping:

https://www.arducam.com/docs/cameras-for-raspberry-pi/mipi-camera-modules/camera-userland-driver-sdk-and-examples/

thanks a lot for you feedback!

I have see you suggest link and my cam is found
This is the print screen for my test with ./arducamstil


 

[email protected]:~ $ cd MIPI_Camera/RPI/
[email protected]:~/MIPI_Camera/RPI $ ./arducamstill -t 5000 -m 8 -e jpg -o test.jpg
Open camera…
Found sensor imx219 at address 10
mode: 0, width: 800, height: 600, pixelformat: pRAA, desc: (null)
mode: 1, width: 1280, height: 720, pixelformat: pRAA, desc: (null)
mode: 2, width: 1600, height: 1200, pixelformat: pRAA, desc: (null)
mode: 3, width: 1920, height: 1080, pixelformat: pRAA, desc: (null)
mode: 4, width: 2592, height: 1944, pixelformat: pRAA, desc: (null)
mode: 5, width: 3264, height: 1848, pixelformat: pRAA, desc: (null)
mode: 6, width: 3264, height: 2464, pixelformat: pRAA, desc: (null)
mode: 7, width: 1600, height: 600, pixelformat: pRAA, desc: Used for Arducam synchronized stereo camera HAT
mode: 8, width: 2560, height: 720, pixelformat: pRAA, desc: Used for Arducam synchronized stereo camera HAT
mode: 9, width: 3840, height: 1080, pixelformat: pRAA, desc: Used for Arducam synchronized stereo camera HAT
mode: 10, width: 5184, height: 1944, pixelformat: pRAA, desc: Used for Arducam synchronized stereo camera HAT
mode: 11, width: 6528, height: 1848, pixelformat: pRAA, desc: Used for Arducam synchronized stereo camera HAT
mode: 12, width: 6528, height: 2464, pixelformat: pRAA, desc: Used for Arducam synchronized stereo camera HAT
index: 0, CID: 0x00980911, desc: V4L2_CID_EXPOSURE, min: 0, max: 65535, default: 1606, current: 1000
index: 1, CID: 0x00980914, desc: V4L2_CID_HFLIP, min: 0, max: 1, default: 0, current: 0
index: 2, CID: 0x00980915, desc: V4L2_CID_VFLIP, min: 0, max: 1, default: 0, current: 0
mmal: Failed to fix lens shading, use the default mode!
Failed to set focus, the camera may not support this control.
Failed to set focus, the camera may not support this control.
Start preview…
Current mode: 8, width: 2560, height: 720, pixelformat: pRAA, desc: Used for Arducam synchronized stereo camera HAT
mmal: Enable JPEG encoder.

capture timeout.
Stop preview…
Close camera…

[email protected]:~/MIPI_Camera/RPI $

but I don’t see any images on the screen…

 

Furthemore if I run python3 1_test.py this is:

[email protected]:~ $ cd MIPI_Camera/RPI/stereo_depth_demo/
[email protected]:~/MIPI_Camera/RPI/stereo_depth_demo $ python3 1_test.py
Open camera…
Hardware platform: a02082
Found sensor imx219 at address 10
mode: 7, width: 1600, height: 600
mode: 8, width: 2560, height: 720
mode: 9, width: 3840, height: 1080
mode: 10, width: 5184, height: 1944
mode: 11, width: 6528, height: 1848
mode: 12, width: 6528, height: 2464
Please enter the mode number:^[[H7
Please enter a number.
Please enter the mode number:7
mmal: Failed to fix lens shading, use the default mode!
The stereo hat firmware version: 2.5 2020/4/23
Current mode: 7,resolution: 1600x600
NULL pointer access
[email protected]:~/MIPI_Camera/RPI/stereo_depth_demo $

without any image visualitation

Hi @francesco-peluso,

This seems to be a cable connection problem, please check the connections in these places.

thank’s for yours answer

I’ve double checked the connections several times without result
my installation

 

Hi @francesco-peluso,

Can you try to connect each camera directly to RaspberrpPi? (without Stereo Hat)
We need to test whether each camera is working properly.

dear Wong,

I have connect each camera directly to RaspberrpPi 3B (without Stereo Hat)

this is the print screen of result

[email protected]:~ $ raspistill -t
mmal: Cannot read camera info, keeping the defaults for OV5647
mmal: mmal_vc_component_create: failed to create component ‘vc.ril.camera’ (1:ENOMEM)
mmal: mmal_component_create_core: could not create component ‘vc.ril.camera’ (1)
mmal: Failed to create camera component
mmal: main: Failed to create camera component
mmal: Camera is not detected. Please check carefully the camera module is installed correctly

[email protected]:~ $


I have connect a standard cam 5 MP (see next shot) to a Raspberry and it’s ok
I see the preview on the screen normally

arducam

Hi @francesco-peluso,

Please use our arducamstil under MIPI_Camera to test the camera.

Sorry for mistake

this is the new result, for CAM A and B

thank for you feedbak

[email protected]:~/MIPI_camera/RPI $ ./arducamstill -t 0
Open camera…
Hardware platform: a02082
init camera status = 4100
[email protected]:~/MIPI_camera/RPI $ ./arducamstill -t 0 -m 7
Open camera…
Hardware platform: a02082
init camera status = 4100
[email protected]:~/MIPI_camera/RPI $

news

after the change ribbon flat UC-440 with another ribbon flat UC-440 I see output of camera B!

turn off Raspberry and repeat operation (change flat position from camera B to camera A) but I no see camera A

the line command is the same

./arducamstill -t 0 - m 7

this is the print screen result of camera A test
print screen

thanks for you help

 

Also print screen Camera B

cameraB

Hi @francesco-peluso,

Please try to reconnect the sensor, or swap A and B.

Dear Wong,

Solved thanks!!!
I pressed on the chip above the cam that didn’t work
I heard a click!
I retry the full system and … voilà!
I view stereocam !!!
thanks very much

After resolved the previous problem I have a new problem
python3 1_test.py it’s ok but the next step…

 

[email protected]:~/MIPI_Camera/RPI/stereo_depth_demo $ python3 2_chess_cycle.py
Open camera…
Found sensor imx219 at address 10
Can’t open the file
mmal: Failed to fix lens shading, use the default mode!
Current mode: 2,resolution: 1600x1200
Used camera resolution: 1600 x 1200
Scaled image resolution: 1280 x 480
Starting photo sequence
Traceback (most recent call last):
File “2_chess_cycle.py”, line 88, in <module>
frame = get_frame(camera)
File “2_chess_cycle.py”, line 44, in get_frame
image = frame.as_array.reshape(int(height * 1.5), width)
File “/home/pi/MIPI_Camera/RPI/stereo_depth_demo/arducam_mipicamera.py”, line 266, in as_array
return np.ctypeslib.as_array(self.buffer_ptr[0].data, shape=(self.length,))
ValueError: NULL pointer access

 

Hi @francesco-peluso,

This is very strange, if 1_test.py can work normally, other scripts should not have camera-related problems. Does this error occur every time?

excuse me, i want to ask, when you tried python3 1_test.py did you encounter this error on your image ? i’m already using arducamstill command and a full-combine too, can you explain the reasons and what should i do ? thank you the image output become green, can you explain the reason and what should i do ?

Hi @AldifaJulian

Already replied in your post:
https://www.arducam.com/forums/topic/python3-1_test-py-is-unstable/