Dual camera with CM4 and CM4IO
Posted: Fri May 07, 2021 1:04 pm
Hi all
I am French, please be indulgent with my mistakes in English ...
I look forward to the delivery of my "Stereopi V2" card.
In the meantime, I started testing with a CM4 module mounted on the "CM4IO" development board.
I spent a lot of time before arriving at a solution to simultaneously access the 2 cameras connected to CAM0 and CAM1(IMX219)!
I started by modifying the "dt-blob.dts" file without finding a solution. Only one camera was accessible at a time, impossible to activate both at the same time.
I think I identified the problem: it comes from the "CAM-GPIO" signal. This is common to the 2 cameras and controls the power supply to the cameras.
The "Raspistill -csX" command only activates this signal for one of the 2 cameras, which is abnormal.
The reason is that the Raspberry detects only one at startup. This shouldn't be the case with my "dt-blob.dts" file.
I then checked the I2C lines of the 2 cameras: they indeed contain the identification frames of the cameras: BUT ONLY ONE IS POWERED !!!
I tried to find information to drive the "CAM_GPIO" signal, without success.
I then used an electronic technician's solution (which I am ...): scraping a track and soldering a bridge! View the photo.
Now the 2 cameras are operational. View the photo
I hope my tests and observations will be of use to others ...
I am French, please be indulgent with my mistakes in English ...
I look forward to the delivery of my "Stereopi V2" card.
In the meantime, I started testing with a CM4 module mounted on the "CM4IO" development board.
I spent a lot of time before arriving at a solution to simultaneously access the 2 cameras connected to CAM0 and CAM1(IMX219)!
I started by modifying the "dt-blob.dts" file without finding a solution. Only one camera was accessible at a time, impossible to activate both at the same time.
I think I identified the problem: it comes from the "CAM-GPIO" signal. This is common to the 2 cameras and controls the power supply to the cameras.
The "Raspistill -csX" command only activates this signal for one of the 2 cameras, which is abnormal.
The reason is that the Raspberry detects only one at startup. This shouldn't be the case with my "dt-blob.dts" file.
I then checked the I2C lines of the 2 cameras: they indeed contain the identification frames of the cameras: BUT ONLY ONE IS POWERED !!!
I tried to find information to drive the "CAM_GPIO" signal, without success.
I then used an electronic technician's solution (which I am ...): scraping a track and soldering a bridge! View the photo.
Now the 2 cameras are operational. View the photo
I hope my tests and observations will be of use to others ...