Cameras for Raspberry Pi

  1. Home
  2. Docs
  3. Cameras for Raspberry Pi
  4. Synchronized Stereo Camera HAT
  5. Arducam 8MP Synchronized Stereo Camera Bundle Kit (SKU: B0298R) Troubleshooting

Arducam 8MP Synchronized Stereo Camera Bundle Kit (SKU: B0298R) Troubleshooting

Because the B0298R kit includes multiple components, any hardware or software problems will simply make it doesn’t work, and the troubleshooting process will be a bit complicated. Please refer to the following steps for a step-by-step diagnosis.

1.Check driver and camera enable

First, check whether the driver is correct and whether the camera is enabled,
Please refer to the Check the Driver and Check the Camera chapters.

If you have installed the Arducam V4L2 OBISP driver, you need to disable it. The Arducam V4L2 OBISP driver will conflict with the official driver.

How to uninstall the driver?

By the way, there are two ways to uninstall the Arducam V4L2 OBISP driver.

Method 1: Execute the uninstall command

Enter the catalog

cd Release/

Excuting an order

./uninstall_driver.sh

It will take effect after rebooting.

Method 2: Modify the configuration file

Excuting an order

sudo nano /boot/config.txt

Press PgDn to find dtoverlay=arducam at the end.

Modify it to #dtoverlay=arducam, press Ctrl+X, y, Enter to save and exit.

It will take effect after rebooting.

2.Check the wiring

B0298R:

When connecting the B0298R to the Raspberry Pi, pay attention to the connection positions in the following image to confirm whether the connection is correct (whether the cable direction is correct, whether the connection is loose or skewed, etc.).

3.Check indicator

Arducam Synchronized Stereo Camera HAT for Raspberry Pi (hereinafter referred to as HAT) has two LEDs, one red and one green. Observe these two LEDs to determine whether the HAT is working properly.

  • After power on, the red LED should always be on.
  • When the power is just turned on, the green LED should flash twice and then go out.
  • When running the plotting commands (raspistill, raspivid, etc.), the green LED should flash twice and then go out.

After running the raspistill and raspivid commands, if there is no video feed, you need to reboot and run

If any of the above three conditions are not satisfied, it means that the HAT is faulty, please contact after-sales service.

4.Detect I2C address

4.1.Download and run the script

First download the I2C address detection script,

wget https://github.com/ArduCAM/MIPI_Camera/raw/master/RPI/utils/rpi3-gpiovirtbuf && wget https://raw.githubusercontent.com/ArduCAM/MIPI_Camera/master/RPI/utils/camera_i2c

Then run the script,

chmod +x rpi3-gpiovirtbuf && chmod +x camera_i2c && ./camera_i2c

For B0298R, the correct I2C detection result is shown in the figure below,

The detection result mainly depends on whether there are two addresses, 0x10 and 0x24, 0x10 represents the camera address, and 0x24 represents the HAT address.

There are several situations in the following table for abnormalities,

working conditionI2C address detection resultVideo Feed : Yes/NoRemarks
normal situationBoth 0x10 and 0x24Video Feed
Abnormal situation oneNeither 0x10 nor 0x24No Video FeedPossible cause: The connection between the HAT and the Raspberry Pi is abnormal.
Abnormal situation twoOnly have 0x24No Video FeedPossible cause: Camera malfunction.
Abnormal situation threeOnly have 0x10No Video FeedPossible cause: HAT failure.
Abnormal situation fourBoth 0x10 and 0x24No Video FeedPossible cause: One camera is normal, the other camera is malfunctioning.

Below we will analyze each situation.

4.2.Abnormal situation one

If neither 0x10 nor 0x24 appears,

  • Confirm whether the HAT has power (red LED should always be on);
  • Check the cable connection between the HAT and the Raspberry Pi again (pay attention to the direction of the cable, whether it is skewed or loose).

After checking, if there are still no 0x10 and 0x24, you can disconnect the two cameras from the HAT, and then check the I2C,

  • If there is still no 0x24, it means the HAT is faulty, please contact after-sales service.
  • If 0x24 appears, it means that the camera malfunction has affected the HAT. Then refer to the abnormal situation two.

4.3.Abnormal situation two

If there is no 0x10 but 0x24, it means that the HAT is normal and the camera is malfunctioning.

  • Check the connection between the HAT and the camera again (pay attention to the direction of the cable; whether it is skewed or loose)
  • Just plug in one camera, try to see if there is 0x10, try both cameras,

If not, unplug and plug the connector of the camera module and try again (see the image below),

If there are still problems, please contact after-sales service.

4.3 Abnormal situation three


If there is 0x10 but not 0x24, it means the HAT is faulty, please contact after-sales service.
Please confirm whether the red LED is always on and the green LED is flashing when the HAT is powered on, and describe the phenomenon with the after-sales service.

4.3 Abnormal situation four


If both 0x10 and 0x24 are present, it is generally that one of the cameras is faulty.
The following scripts and commands can be used to determine which camera is malfunctioning.

4.3.1.Enable I2C


Download the I2C_Enable script,

wget https://raw.githubusercontent.com/ArduCAM/MIPI_Camera/master/RPI/enable_i2c_vc.sh

Assign script execution permissions,

chmod +x enable_i2c_vc.sh

Execute the I2C_Enable script,

./enable_i2c_vc.sh

Prompt to reboot, enter y, Enter.

4.3.2.Test camera 0

After rebooting, open two command windows.
First, execute the command in the second window,

i2cset -y 10 0x24 0x24 0x01

Then execute the command in the first window,

raspistill -t 0

If a video (an image of a single camera) is feed, it means that camera 0 is working properly.
If there is no video feed, it means that the camera 0 is faulty, check the cable, unplug the module connector and try again. If it still doesn’t work, please contact after-sales service.

4.3.3.Test camera 1


Reboot again (after running the official command to export video, it needs to be a reboot to run normally),
Still open two command windows,
First, execute the command in the second window,

i2cset -y 10 0x24 0x24 0x02

Then execute the command in the first window,

raspistill -t 0

If a video (an image of a single camera) is feed, it means that camera 1 is working normally.
If there is no video feed, it means that camera 1 is faulty. Check the cable, unplug the module connector and try again. If it still doesn’t work, please contact after-sales service.

5.Others

Some things to explain:

  • In the after-sales feedback, according to the above test, the more specific the problem is, the better, and please attach some physical photos and order screenshots to help troubleshoot the problem.
  • The B0298R camera is a customized model and cannot be used directly on the Raspberry Pi. (In order to ensure that the two cameras are fully synchronized, the cameras need to share the clock. The clocks of the two cameras are provided by the HAT. If you skip the HAT and plug the camera directly into the Raspberry Pi, the Raspberry Pi cannot provide the clock to the camera. So the camera will not work.)

Was this article helpful to you? Yes No