Problems about using Synchronized Stereo Camera HAT (B0195)
Published by HunterTom on
New Home › Forums › 1. Cameras Modules for Raspberry Pi › Multi-Camera and Sync Stereo Camera HAT › Problems about using Synchronized Stereo Camera HAT (B0195)
- This topic has 9 replies, 2 voices, and was last updated 8 months, 3 weeks ago by
bin.
- AuthorPosts
- April 23, 2020 at 5:50 pm #21962
HunterTom
ParticipantHello,
I am using Ras Pi Compute Module 3+ to use the Synchronized Stereo Camera HAT connected with two IMX 219 cameras. I am now able to use OpenCV in python to get images in half resolution combined mode (by default) (640×480 pixels).
I now want to use the full resolution combine mode so I am following instructions on the user document. https://www.arducam.com/docs/cameras-for-raspberry-pi/synchronized-stereo-camera-hat/sync-stereo-camera-hat-user-manual/#wp-block-themeisle-blocks-advanced-heading-39868b26
However, when I run ./list_format in MIPI_Camera/RPI, I got “init camera status = 4099” and I did not see any devices as shown in the document’s screenshot.
Can anyone help me with this issue?
Also, when I try to use Arducam Sensor Extension Cable (B0186) with the HAT, the HAT does not work anymore. Is there a way to fix this?
Thank you very much for the help!
I can also chat via QQ if that’s easier for you.
- April 24, 2020 at 4:46 am #21975
bin
KeymasterHello,
Don’t worry and I will try my best to help you.
For Ras Pi Compute Module 3+ module, it is different from Pi3 modeB. Using CM3 module, we should configure the i2c pin. we have provided preivew-camera0 for user https://github.com/ArduCAM/MIPI_Camera/blob/master/RPI/preview-camera0.c
In the demo, we configure the i2c interface using struct camera_interface cam_interface = {
.i2c_bus = 0, // /dev/i2c-0 or /dev/i2c-1
.camera_num = 0, // mipi interface num
.sda_pins = {28, 0}, // enable sda_pins[camera_num], disable sda_pins[camera_num ? 0 : 1]
.scl_pins = {29, 1}, // enable scl_pins[camera_num], disable scl_pins[camera_num ? 0 : 1]
.led_pins = {30, 2},
.shutdown_pins ={31, 3},
};
Hope what I said will help you.
Let me know if you need more help.
- April 24, 2020 at 10:32 pm #21995
HunterTom
ParticipantSorry I do not know how “preview-camera0.c” works. I do not know how to use this file. Can you tell me what steps I should take?
Also, do you know why Arducam Sensor Extension Cable (B0186) cannot work together with the Synchronized Stereo Camera HAT (B0195)?
Thank you very much!
- April 25, 2020 at 6:58 pm #22011
bin
KeymasterHello,
Don’t worry and I will try my best to help you.
Just need to connect the camera to the CM3 camera0 interface.
preview-camera0.c is our demo for CM3 module. You just need to
cd MIPI_Camera/RPI
make preview-camera0
Then run the demo using ./preview-camera0
Arducam Sensor Extension Cable (B0186) is designed for native Pi platform instead of our stereo hat. Due to the speed limit, we are not ensure if it can be used on stereo hat if try to reduce the sensor clock.
- April 25, 2020 at 8:06 pm #22030
HunterTom
ParticipantHello,
Thank you for your reply. I did what you suggested but I got
“Open camera…
init camera status = 4100”
Can you help me with this?
Thank you!
- April 26, 2020 at 6:22 am #22032
bin
KeymasterHello,
Don’t worry, Please attach me your hardware connection.
I will try my best to help you solve all of your problems. Tomorrow I will test it on CM3 module and attach you a detail operation guide.
- April 26, 2020 at 5:38 pm #22036
HunterTom
ParticipantThank you very much for the help!
I am using CM3+ with a Compute Module PoE Board
Eng_wiki: https://www.waveshare.com/wiki/Compute_Module_PoE_Board
Ch_wiki: http://www.waveshare.net/wiki/Compute_Module_PoE_Board
I used the system image that is provided by the seller (which can be found from chinese wiki), and I believe they changed some device tree. The details of the change are written in the wiki.
In terms of connection, I just connect the 6 pins accordingly and the CSI camera cable to camera0 slot.
Please let me know if you need more information. Thank you!
- April 26, 2020 at 5:59 pm #22039
bin
KeymasterHello,
I have tested the CM3 platform and I have attached your some details:
1: Connect the camera to the camera1 interface
2, power on the stereo camera hat board
The following image is my test result :
Let me know if you need more help.
- April 27, 2020 at 5:20 pm #22051
HunterTom
ParticipantHello,
I do get some image after connecting HAT to camera slot1.
However, the frame rate is extremely low and the FOV seems to be not complete.
You can compare the images I got from directly using OpenCV in Python and using the preview-camera:
This is from OpenCV which has bigger FOV and the frame rate is good.
This is from preview-camera0. The FOV is smaller and frame rate is low.
Also, when using preview-camera0, the camera closes by itself after around half a minute.
It prints the following message:
[email protected]:~/MIPI_Camera/RPI $ ./preview-camera0
Open camera…
Found sensor imx219 at address 10
Setting the resolution…
Can’t open the file
mmal: Failed to fix lens shading, use the default mode!
Current resolution is 1920×1080
Notice:You can use the list_format sample program to see the resolution and control supported by the camera.
Start preview…
Reset the focus…
Failed to set focus, the camera may not support this control.
Setting the exposure…
Setting the exposure…
Setting the hfilp…
Failed to set hflip, the camera may not support this control.
Enable Auto Exposure…
Enable Auto White Balance…
Setting the resolution…
Can’t open the file
mmal: Failed to fix lens shading, use the default mode!
Current resolution is 3264×2464
Stop preview…
Close camera…[email protected]:~/MIPI_Camera/RPI $ ./preview-camera0
Open camera…
Found sensor imx219 at address 10
Setting the resolution…
Can’t open the file
mmal: Failed to fix lens shading, use the default mode!
Current resolution is 1920×1080
Notice:You can use the list_format sample program to see the resolution and control supported by the camera.
Start preview…
Reset the focus…
Failed to set focus, the camera may not support this control.
Setting the exposure…
Setting the exposure…
Setting the hfilp…
Failed to set hflip, the camera may not support this control.
Enable Auto Exposure…
Enable Auto White Balance…
Setting the resolution…
mmal: Failed to stop sensor.
Can’t open the file
mmal: Failed to fix lens shading, use the default mode!
mmal: Failed to start sensor.
mmal: Failed to enable camera
set resolution status = 3My questions are the following:
1. I want to use full-resolution combined feature, but why the FOV is getting smaller? I thought in full-resolution combined mode, the FOV will be bigger than default (I assume in OpenCV it is default half-resolution combined).
2. Why is the frame rate so low? I actually tried with a single camera (not HAT) connected to camera slot 1 and use preview-camera0. It also gives me low frame rate video.
Thanks for the help!
- April 27, 2020 at 10:19 pm #22087
bin
KeymasterHello,
Great to hear you have got some images. About the FOV and frame speed. There are something to do with the sensor init configuration.
Do you use our new MIPI_Camera library? For single camera I have optimized our sensor configuration recently and improve the frame speed. About the stereo camera hat, Due to bandwidth limitation, the total bandwidth is about 140M. We are working on improve the speed.
Let me know if you need more help.
- AuthorPosts
- You must be logged in to reply to this topic.