Camera mipi power supply voltage suspected below 3.3V

Hi, I’m trying to use my existing raspicam (OV5647 based and not Sony sensor) without success on RockPi4-b v1.4.
After trying all possible Armbian/Debian/Ubuntu images I’m convinced that the problem resides into camera power supply.
As per Raspberry Pi data sheets, MIPI camera requires a 3.3V supply. So also this board I’m expecting to supply 3.3V to the camera.
However when it is connected to Rock Pi4 (and I can assure it is correctly connected on both sides of flat cable) , the led brightness is much lower than when camera is attached to Pi3.
Now on RockPi4 , the camera is powerd by VCC_CAM signal, which is the output of VLDO8 (pin 15) of RK808-D power controller. Since this output can be regulated between 1.8 and 3.3V I suspect a wrong setup.
Now my question is how change this value or how check that VLDO8 output is programmed to generate a 3.3V ?

My kernel version
pi@rockpi:~$ uname -a
Linux rockpi 4.4.192-rk3399 #6 SMP Tue Oct 8 18:32:46 CEST 2019 aarch64 aarch64 aarch64 GNU/Linux

Thankyou

1 Like

I’m also trying to get Arducam OV5647 to work on my Rock Pi 4B (Android 9).

It detects on startup, but when I try to launch the camera app, for some reason, I’m getting symptoms that I can’t find the camera.

ov5647 4-0036: Detected OV005647 sensor
07-31 17:23:28.461  2349  2349 E AndroidRuntime: java.lang.RuntimeException: Unable to start activity ComponentInfo{com.android.camera2/com.android.camera.CameraActivity}: java.lang.ArrayIndexOutOfBoundsException: length=0; index=0
07-31 17:23:28.461  2349  2349 E AndroidRuntime: 	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2951)
07-31 17:23:28.461  2349  2349 E AndroidRuntime: 	at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3086)
07-31 17:23:28.461  2349  2349 E AndroidRuntime: 	at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:78)
07-31 17:23:28.461  2349  2349 E AndroidRuntime: 	at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:108)
07-31 17:23:28.461  2349  2349 E AndroidRuntime: 	at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:68)
07-31 17:23:28.461  2349  2349 E AndroidRuntime: 	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1816)
07-31 17:23:28.461  2349  2349 E AndroidRuntime: 	at android.os.Handler.dispatchMessage(Handler.java:106)
07-31 17:23:28.461  2349  2349 E AndroidRuntime: 	at android.os.Looper.loop(Looper.java:193)
07-31 17:23:28.461  2349  2349 E AndroidRuntime: 	at android.app.ActivityThread.main(ActivityThread.java:6718)
07-31 17:23:28.461  2349  2349 E AndroidRuntime: 	at java.lang.reflect.Method.invoke(Native Method)
07-31 17:23:28.461  2349  2349 E AndroidRuntime: 	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
07-31 17:23:28.461  2349  2349 E AndroidRuntime: 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)
07-31 17:23:28.461  2349  2349 E AndroidRuntime: Caused by: java.lang.ArrayIndexOutOfBoundsException: length=0; index=0
07-31 17:23:28.461  2349  2349 E AndroidRuntime: 	at com.android.camera.CaptureModule.getFacingFromCameraId(CaptureModule.java:1629)
07-31 17:23:28.461  2349  2349 E AndroidRuntime: 	at com.android.camera.CaptureModule.init(CaptureModule.java:427)
07-31 17:23:28.461  2349  2349 E AndroidRuntime: 	at com.android.camera.CameraActivity.onCreateTasks(CameraActivity.java:1801)
07-31 17:23:28.461  2349  2349 E AndroidRuntime: 	at com.android.camera.util.QuickActivity.onCreate(QuickActivity.java:114)
07-31 17:23:28.461  2349  2349 E AndroidRuntime: 	at android.app.Activity.performCreate(Activity.java:7171)
07-31 17:23:28.461  2349  2349 E AndroidRuntime: 	at android.app.Activity.performCreate(Activity.java:7162)
07-31 17:23:28.461  2349  2349 E AndroidRuntime: 	at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1271)
07-31 17:23:28.461  2349  2349 E AndroidRuntime: 	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2931)
07-31 17:23:28.461  2349  2349 E AndroidRuntime: 	... 11 more
07-31 17:23:28.464   435  1233 W ActivityManager:   Force finishing activity com.android.camera2/com.android.camera.CameraActivity

The LED lights up when it starts up, but then it disappears.
When I read this post, I wondered if it might be related to something.
I hope you can find some solution.

uname -a
Linux localhost 4.4.167 #4 SMP PREEMPT Sat Aug 1 12:44:36 UTC 2020 aarch64

I measured the camera supply voltage. It is 3.3 as required. At this point I don’t know what else I can do.

OV5647 is supported by Debian, just enable the overlay.

intfc:dtoverlay=ov5647

Android doesn’t support this one yet.